Class CreateAutoScalingPolicyRequest.Builder
- java.lang.Object
- 
- com.oracle.bmc.autoscaling.requests.CreateAutoScalingPolicyRequest.Builder
 
- 
- All Implemented Interfaces:
- BmcRequest.Builder<CreateAutoScalingPolicyRequest,CreateAutoScalingPolicyDetails>
 - Enclosing class:
- CreateAutoScalingPolicyRequest
 
 public static class CreateAutoScalingPolicyRequest.Builder extends Object implements BmcRequest.Builder<CreateAutoScalingPolicyRequest,CreateAutoScalingPolicyDetails> 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateAutoScalingPolicyRequest.BuilderautoScalingConfigurationId(String autoScalingConfigurationId)The OCID of the autoscaling configuration.CreateAutoScalingPolicyRequest.Builderbody$(CreateAutoScalingPolicyDetails body)Alternative setter for the body parameter.CreateAutoScalingPolicyRequestbuild()Build the instance of CreateAutoScalingPolicyRequest as configured by this builderCreateAutoScalingPolicyRequestbuildWithoutInvocationCallback()Build the instance of CreateAutoScalingPolicyRequest as configured by this builderCreateAutoScalingPolicyRequest.Buildercopy(CreateAutoScalingPolicyRequest o)Copy method to populate the builder with values from the given instance.CreateAutoScalingPolicyRequest.BuildercreateAutoScalingPolicyDetails(CreateAutoScalingPolicyDetails createAutoScalingPolicyDetails)Creation details for an autoscaling policy.CreateAutoScalingPolicyRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.CreateAutoScalingPolicyRequest.BuilderopcRequestId(String opcRequestId)CreateAutoScalingPolicyRequest.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.CreateAutoScalingPolicyRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.
 
- 
- 
- 
Method Detail- 
autoScalingConfigurationIdpublic CreateAutoScalingPolicyRequest.Builder autoScalingConfigurationId(String autoScalingConfigurationId) The OCID of the autoscaling configuration.- Parameters:
- autoScalingConfigurationId- the value to set
- Returns:
- this builder instance
 
 - 
createAutoScalingPolicyDetailspublic CreateAutoScalingPolicyRequest.Builder createAutoScalingPolicyDetails(CreateAutoScalingPolicyDetails createAutoScalingPolicyDetails) Creation details for an autoscaling policy.- Parameters:
- createAutoScalingPolicyDetails- the value to set
- Returns:
- this builder instance
 
 - 
opcRequestIdpublic CreateAutoScalingPolicyRequest.Builder opcRequestId(String opcRequestId) - Parameters:
- opcRequestId- the value to set
- Returns:
- this builder instance
 
 - 
opcRetryTokenpublic CreateAutoScalingPolicyRequest.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 (for example, 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
 
 - 
invocationCallbackpublic CreateAutoScalingPolicyRequest.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
 
 - 
retryConfigurationpublic CreateAutoScalingPolicyRequest.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
 
 - 
copypublic CreateAutoScalingPolicyRequest.Builder copy(CreateAutoScalingPolicyRequest o) Copy method to populate the builder with values from the given instance.- Specified by:
- copyin interface- BmcRequest.Builder<CreateAutoScalingPolicyRequest,CreateAutoScalingPolicyDetails>
- Parameters:
- o- other request from which to copy values
- Returns:
- this builder instance
 
 - 
buildpublic CreateAutoScalingPolicyRequest build() Build the instance of CreateAutoScalingPolicyRequest 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 interface- BmcRequest.Builder<CreateAutoScalingPolicyRequest,CreateAutoScalingPolicyDetails>
- Returns:
- instance of CreateAutoScalingPolicyRequest
 
 - 
body$public CreateAutoScalingPolicyRequest.Builder body$(CreateAutoScalingPolicyDetails body) Alternative setter for the body parameter.- Specified by:
- body$in interface- BmcRequest.Builder<CreateAutoScalingPolicyRequest,CreateAutoScalingPolicyDetails>
- Parameters:
- body- the body parameter
- Returns:
- this builder instance
 
 - 
buildWithoutInvocationCallbackpublic CreateAutoScalingPolicyRequest buildWithoutInvocationCallback() Build the instance of CreateAutoScalingPolicyRequest 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 CreateAutoScalingPolicyRequest
 
 
- 
 
-