Package com.oracle.bmc.identity.requests
Class CreateSmtpCredentialRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.identity.requests.CreateSmtpCredentialRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<CreateSmtpCredentialRequest,CreateSmtpCredentialDetails>
- Enclosing class:
- CreateSmtpCredentialRequest
public static class CreateSmtpCredentialRequest.Builder extends Object implements BmcRequest.Builder<CreateSmtpCredentialRequest,CreateSmtpCredentialDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSmtpCredentialRequest.Builderbody$(CreateSmtpCredentialDetails body)Alternative setter for the body parameter.CreateSmtpCredentialRequestbuild()Build the instance of CreateSmtpCredentialRequest as configured by this builderCreateSmtpCredentialRequestbuildWithoutInvocationCallback()Build the instance of CreateSmtpCredentialRequest as configured by this builderCreateSmtpCredentialRequest.Buildercopy(CreateSmtpCredentialRequest o)Copy method to populate the builder with values from the given instance.CreateSmtpCredentialRequest.BuildercreateSmtpCredentialDetails(CreateSmtpCredentialDetails createSmtpCredentialDetails)Request object for creating a new SMTP credential with the user.CreateSmtpCredentialRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.CreateSmtpCredentialRequest.BuilderopcRetryToken(String opcRetryToken)A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.CreateSmtpCredentialRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.CreateSmtpCredentialRequest.BuilderuserId(String userId)The OCID of the user.
-
-
-
Method Detail
-
createSmtpCredentialDetails
public CreateSmtpCredentialRequest.Builder createSmtpCredentialDetails(CreateSmtpCredentialDetails createSmtpCredentialDetails)
Request object for creating a new SMTP credential with the user.- Parameters:
createSmtpCredentialDetails- the value to set- Returns:
- this builder instance
-
userId
public CreateSmtpCredentialRequest.Builder userId(String userId)
The OCID of the user.- Parameters:
userId- the value to set- Returns:
- this builder instance
-
opcRetryToken
public CreateSmtpCredentialRequest.Builder opcRetryToken(String opcRetryToken)
A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (e.g., if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
- Parameters:
opcRetryToken- the value to set- Returns:
- this builder instance
-
invocationCallback
public CreateSmtpCredentialRequest.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 CreateSmtpCredentialRequest.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 CreateSmtpCredentialRequest.Builder copy(CreateSmtpCredentialRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<CreateSmtpCredentialRequest,CreateSmtpCredentialDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public CreateSmtpCredentialRequest build()
Build the instance of CreateSmtpCredentialRequest 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:
buildin interfaceBmcRequest.Builder<CreateSmtpCredentialRequest,CreateSmtpCredentialDetails>- Returns:
- instance of CreateSmtpCredentialRequest
-
body$
public CreateSmtpCredentialRequest.Builder body$(CreateSmtpCredentialDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<CreateSmtpCredentialRequest,CreateSmtpCredentialDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public CreateSmtpCredentialRequest buildWithoutInvocationCallback()
Build the instance of CreateSmtpCredentialRequest 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 CreateSmtpCredentialRequest
-
-