public static class CreateSuppressionRequest.Builder extends Object implements BmcRequest.Builder<CreateSuppressionRequest,CreateSuppressionDetails>
Constructor and Description |
---|
Builder() |
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()
Build the instance of CreateSuppressionRequest as configured by this builder
|
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(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 system
|
CreateSuppressionRequest.Builder |
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
|
public CreateSuppressionRequest.Builder createSuppressionDetails(CreateSuppressionDetails createSuppressionDetails)
Adds a single email address to the suppression list for a compartment’s tenancy.
createSuppressionDetails
- the value to setpublic CreateSuppressionRequest.Builder opcRequestId(String opcRequestId)
The request ID for tracing from the system
opcRequestId
- the value to setpublic CreateSuppressionRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor 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.http.client.RequestInterceptor)
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 buildWithoutInvocationCallback()
Build the instance of CreateSuppressionRequest as configured by this builder
Note that this method does not take calls to invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account,
while the method build()
does
Copyright © 2016–2024. All rights reserved.