Package com.oracle.bmc.core.requests
Class CreateVolumeBackupPolicyRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.core.requests.CreateVolumeBackupPolicyRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<CreateVolumeBackupPolicyRequest,CreateVolumeBackupPolicyDetails>
- Enclosing class:
- CreateVolumeBackupPolicyRequest
public static class CreateVolumeBackupPolicyRequest.Builder extends Object implements BmcRequest.Builder<CreateVolumeBackupPolicyRequest,CreateVolumeBackupPolicyDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateVolumeBackupPolicyRequest.Builderbody$(CreateVolumeBackupPolicyDetails body)Alternative setter for the body parameter.CreateVolumeBackupPolicyRequestbuild()Build the instance of CreateVolumeBackupPolicyRequest as configured by this builderCreateVolumeBackupPolicyRequestbuildWithoutInvocationCallback()Build the instance of CreateVolumeBackupPolicyRequest as configured by this builderCreateVolumeBackupPolicyRequest.Buildercopy(CreateVolumeBackupPolicyRequest o)Copy method to populate the builder with values from the given instance.CreateVolumeBackupPolicyRequest.BuildercreateVolumeBackupPolicyDetails(CreateVolumeBackupPolicyDetails createVolumeBackupPolicyDetails)Request to create a new scheduled backup policy.CreateVolumeBackupPolicyRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.CreateVolumeBackupPolicyRequest.BuilderopcRequestId(String opcRequestId)Unique identifier for the request.CreateVolumeBackupPolicyRequest.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.CreateVolumeBackupPolicyRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
createVolumeBackupPolicyDetails
public CreateVolumeBackupPolicyRequest.Builder createVolumeBackupPolicyDetails(CreateVolumeBackupPolicyDetails createVolumeBackupPolicyDetails)
Request to create a new scheduled backup policy.- Parameters:
createVolumeBackupPolicyDetails- the value to set- Returns:
- this builder instance
-
opcRetryToken
public CreateVolumeBackupPolicyRequest.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
-
opcRequestId
public CreateVolumeBackupPolicyRequest.Builder opcRequestId(String opcRequestId)
Unique 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 CreateVolumeBackupPolicyRequest.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 CreateVolumeBackupPolicyRequest.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 CreateVolumeBackupPolicyRequest.Builder copy(CreateVolumeBackupPolicyRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<CreateVolumeBackupPolicyRequest,CreateVolumeBackupPolicyDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public CreateVolumeBackupPolicyRequest build()
Build the instance of CreateVolumeBackupPolicyRequest 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<CreateVolumeBackupPolicyRequest,CreateVolumeBackupPolicyDetails>- Returns:
- instance of CreateVolumeBackupPolicyRequest
-
body$
public CreateVolumeBackupPolicyRequest.Builder body$(CreateVolumeBackupPolicyDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<CreateVolumeBackupPolicyRequest,CreateVolumeBackupPolicyDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public CreateVolumeBackupPolicyRequest buildWithoutInvocationCallback()
Build the instance of CreateVolumeBackupPolicyRequest 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 CreateVolumeBackupPolicyRequest
-
-