Class CreateCcdCommitmentRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.ccdoffers.requests.CreateCcdCommitmentRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<CreateCcdCommitmentRequest,CreateCcdCommitmentDetails>
- Enclosing class:
- CreateCcdCommitmentRequest
public static class CreateCcdCommitmentRequest.Builder extends Object implements BmcRequest.Builder<CreateCcdCommitmentRequest,CreateCcdCommitmentDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateCcdCommitmentRequest.Builderbody$(CreateCcdCommitmentDetails body)Alternative setter for the body parameter.CreateCcdCommitmentRequestbuild()Build the instance of CreateCcdCommitmentRequest as configured by this builderCreateCcdCommitmentRequestbuildWithoutInvocationCallback()Build the instance of CreateCcdCommitmentRequest as configured by this builderCreateCcdCommitmentRequest.BuilderccdOfferId(String ccdOfferId)CCD offer OCID.CreateCcdCommitmentRequest.Buildercopy(CreateCcdCommitmentRequest o)Copy method to populate the builder with values from the given instance.CreateCcdCommitmentRequest.BuildercreateCcdCommitmentDetails(CreateCcdCommitmentDetails createCcdCommitmentDetails)The create CCD commitment details model.CreateCcdCommitmentRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.CreateCcdCommitmentRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.CreateCcdCommitmentRequest.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.CreateCcdCommitmentRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
ccdOfferId
public CreateCcdCommitmentRequest.Builder ccdOfferId(String ccdOfferId)
CCD offer OCID.If you’re trying to commit against the CCD offer, ensure that the CCD offer’s lifecycleDetails field value is Current or Scheduled. You can only sign up for a current or scheduled CCD offer, but not for any canceled, or ended CCD offer.
- Parameters:
ccdOfferId- the value to set- Returns:
- this builder instance
-
createCcdCommitmentDetails
public CreateCcdCommitmentRequest.Builder createCcdCommitmentDetails(CreateCcdCommitmentDetails createCcdCommitmentDetails)
The create CCD commitment details model.- Parameters:
createCcdCommitmentDetails- the value to set- Returns:
- this builder instance
-
opcRetryToken
public CreateCcdCommitmentRequest.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.- Parameters:
opcRetryToken- the value to set- Returns:
- this builder instance
-
opcRequestId
public CreateCcdCommitmentRequest.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, please provide the request ID.
- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public CreateCcdCommitmentRequest.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 CreateCcdCommitmentRequest.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 CreateCcdCommitmentRequest.Builder copy(CreateCcdCommitmentRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<CreateCcdCommitmentRequest,CreateCcdCommitmentDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public CreateCcdCommitmentRequest build()
Build the instance of CreateCcdCommitmentRequest 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<CreateCcdCommitmentRequest,CreateCcdCommitmentDetails>- Returns:
- instance of CreateCcdCommitmentRequest
-
body$
public CreateCcdCommitmentRequest.Builder body$(CreateCcdCommitmentDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<CreateCcdCommitmentRequest,CreateCcdCommitmentDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public CreateCcdCommitmentRequest buildWithoutInvocationCallback()
Build the instance of CreateCcdCommitmentRequest 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 CreateCcdCommitmentRequest
-
-