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 Summary
Constructors Constructor Description Builder()
-
Method Summary
All 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
-
autoScalingConfigurationId
public CreateAutoScalingPolicyRequest.Builder autoScalingConfigurationId(String autoScalingConfigurationId)
The OCID of the autoscaling configuration.- Parameters:
autoScalingConfigurationId- the value to set- Returns:
- this builder instance
-
createAutoScalingPolicyDetails
public CreateAutoScalingPolicyRequest.Builder createAutoScalingPolicyDetails(CreateAutoScalingPolicyDetails createAutoScalingPolicyDetails)
Creation details for an autoscaling policy.- Parameters:
createAutoScalingPolicyDetails- the value to set- Returns:
- this builder instance
-
opcRequestId
public CreateAutoScalingPolicyRequest.Builder opcRequestId(String opcRequestId)
- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
opcRetryToken
public 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
-
invocationCallback
public 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
-
retryConfiguration
public 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
-
copy
public CreateAutoScalingPolicyRequest.Builder copy(CreateAutoScalingPolicyRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<CreateAutoScalingPolicyRequest,CreateAutoScalingPolicyDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public 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 interfaceBmcRequest.Builder<CreateAutoScalingPolicyRequest,CreateAutoScalingPolicyDetails>- Returns:
- instance of CreateAutoScalingPolicyRequest
-
body$
public CreateAutoScalingPolicyRequest.Builder body$(CreateAutoScalingPolicyDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<CreateAutoScalingPolicyRequest,CreateAutoScalingPolicyDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public 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
-
-