public static class CreateSuppressionRequest.Builder extends Object implements BmcRequest.Builder<CreateSuppressionRequest,CreateSuppressionDetails>
Modifier and Type | Method and Description |
---|---|
CreateSuppressionRequest.Builder |
body$(CreateSuppressionDetails body)
Alternative setter for the body parameter.
|
CreateSuppressionRequest |
build()
Build the instance of CreateSuppressionRequest as configured by this builder
|
CreateSuppressionRequest |
buildWithoutInvocationCallback() |
CreateSuppressionRequest.Builder |
copy(CreateSuppressionRequest o)
Copy method to populate the builder with values from the given instance.
|
CreateSuppressionRequest.Builder |
createSuppressionDetails(CreateSuppressionDetails createSuppressionDetails)
Adds a single email address to the suppression list for a compartment’s tenancy.
|
CreateSuppressionRequest.Builder |
invocationCallback(Consumer<javax.ws.rs.client.Invocation.Builder> invocationCallback)
Set the invocation callback for the request to be built.
|
CreateSuppressionRequest.Builder |
opcRequestId(String opcRequestId)
The request ID for tracing from the system
|
CreateSuppressionRequest.Builder |
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
|
String |
toString() |
public CreateSuppressionRequest.Builder invocationCallback(Consumer<javax.ws.rs.client.Invocation.Builder> invocationCallback)
Set the invocation callback for the request to be built.
invocationCallback
- the invocation callback to be set for the requestpublic CreateSuppressionRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
retryConfiguration
- the retry configuration to be used for the requestpublic CreateSuppressionRequest.Builder copy(CreateSuppressionRequest o)
Copy method to populate the builder with values from the given instance.
copy
in interface BmcRequest.Builder<CreateSuppressionRequest,CreateSuppressionDetails>
o
- other request from which to copy valuespublic CreateSuppressionRequest build()
Build the instance of CreateSuppressionRequest as configured by this builder
Note that this method takes calls to invocationCallback(com.oracle.bmc.util.internal.Consumer)
into account,
while the method buildWithoutInvocationCallback()
does not.
This is the preferred method to build an instance.
build
in interface BmcRequest.Builder<CreateSuppressionRequest,CreateSuppressionDetails>
public CreateSuppressionRequest.Builder body$(CreateSuppressionDetails body)
Alternative setter for the body parameter.
body$
in interface BmcRequest.Builder<CreateSuppressionRequest,CreateSuppressionDetails>
body
- the body parameterpublic CreateSuppressionRequest.Builder createSuppressionDetails(CreateSuppressionDetails createSuppressionDetails)
Adds a single email address to the suppression list for a compartment’s tenancy.
this
.public CreateSuppressionRequest.Builder opcRequestId(String opcRequestId)
The request ID for tracing from the system
this
.public CreateSuppressionRequest buildWithoutInvocationCallback()
Copyright © 2016–2022. All rights reserved.