Package com.oracle.bmc.email.requests
Class CreateSuppressionRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.email.requests.CreateSuppressionRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<CreateSuppressionRequest,CreateSuppressionDetails>
- Enclosing class:
- CreateSuppressionRequest
public static class CreateSuppressionRequest.Builder extends Object implements BmcRequest.Builder<CreateSuppressionRequest,CreateSuppressionDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSuppressionRequest.Builder
body$(CreateSuppressionDetails body)
Alternative setter for the body parameter.CreateSuppressionRequest
build()
Build the instance of CreateSuppressionRequest as configured by this builderCreateSuppressionRequest
buildWithoutInvocationCallback()
Build the instance of CreateSuppressionRequest as configured by this builderCreateSuppressionRequest.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(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.CreateSuppressionRequest.Builder
opcRequestId(String opcRequestId)
The request ID for tracing from the systemCreateSuppressionRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
createSuppressionDetails
public CreateSuppressionRequest.Builder createSuppressionDetails(CreateSuppressionDetails createSuppressionDetails)
Adds a single email address to the suppression list for a compartment’s tenancy.- Parameters:
createSuppressionDetails
- the value to set- Returns:
- this builder instance
-
opcRequestId
public CreateSuppressionRequest.Builder opcRequestId(String opcRequestId)
The request ID for tracing from the system- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
invocationCallback
public CreateSuppressionRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.- Parameters:
invocationCallback
- the invocation callback to be set for the request- Returns:
- this builder instance
-
retryConfiguration
public CreateSuppressionRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.- Parameters:
retryConfiguration
- the retry configuration to be used for the request- Returns:
- this builder instance
-
copy
public CreateSuppressionRequest.Builder copy(CreateSuppressionRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<CreateSuppressionRequest,CreateSuppressionDetails>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public CreateSuppressionRequest build()
Build the instance of CreateSuppressionRequest as configured by this builderNote that this method takes calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuildWithoutInvocationCallback()
does not.This is the preferred method to build an instance.
- Specified by:
build
in interfaceBmcRequest.Builder<CreateSuppressionRequest,CreateSuppressionDetails>
- Returns:
- instance of CreateSuppressionRequest
-
body$
public CreateSuppressionRequest.Builder body$(CreateSuppressionDetails body)
Alternative setter for the body parameter.- Specified by:
body$
in interfaceBmcRequest.Builder<CreateSuppressionRequest,CreateSuppressionDetails>
- Parameters:
body
- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public CreateSuppressionRequest buildWithoutInvocationCallback()
Build the instance of CreateSuppressionRequest as configured by this builderNote that this method does not take calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuild()
does- Returns:
- instance of CreateSuppressionRequest
-
-