Package com.oracle.bmc.recovery.requests
Class UpdateProtectionPolicyRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.recovery.requests.UpdateProtectionPolicyRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<UpdateProtectionPolicyRequest,UpdateProtectionPolicyDetails>
- Enclosing class:
- UpdateProtectionPolicyRequest
public static class UpdateProtectionPolicyRequest.Builder extends Object implements BmcRequest.Builder<UpdateProtectionPolicyRequest,UpdateProtectionPolicyDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateProtectionPolicyRequest.Builderbody$(UpdateProtectionPolicyDetails body)Alternative setter for the body parameter.UpdateProtectionPolicyRequestbuild()Build the instance of UpdateProtectionPolicyRequest as configured by this builderUpdateProtectionPolicyRequestbuildWithoutInvocationCallback()Build the instance of UpdateProtectionPolicyRequest as configured by this builderUpdateProtectionPolicyRequest.Buildercopy(UpdateProtectionPolicyRequest o)Copy method to populate the builder with values from the given instance.UpdateProtectionPolicyRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.UpdateProtectionPolicyRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.UpdateProtectionPolicyRequest.BuilderopcRequestId(String opcRequestId)Unique identifier for the request.UpdateProtectionPolicyRequest.BuilderprotectionPolicyId(String protectionPolicyId)The protection policy OCID.UpdateProtectionPolicyRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.UpdateProtectionPolicyRequest.BuilderupdateProtectionPolicyDetails(UpdateProtectionPolicyDetails updateProtectionPolicyDetails)The information to be updated.
-
-
-
Method Detail
-
protectionPolicyId
public UpdateProtectionPolicyRequest.Builder protectionPolicyId(String protectionPolicyId)
The protection policy OCID.- Parameters:
protectionPolicyId- the value to set- Returns:
- this builder instance
-
updateProtectionPolicyDetails
public UpdateProtectionPolicyRequest.Builder updateProtectionPolicyDetails(UpdateProtectionPolicyDetails updateProtectionPolicyDetails)
The information to be updated.- Parameters:
updateProtectionPolicyDetails- the value to set- Returns:
- this builder instance
-
ifMatch
public UpdateProtectionPolicyRequest.Builder ifMatch(String ifMatch)
For optimistic concurrency control.In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
- Parameters:
ifMatch- the value to set- Returns:
- this builder instance
-
opcRequestId
public UpdateProtectionPolicyRequest.Builder opcRequestId(String opcRequestId)
Unique identifier for the request.- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public UpdateProtectionPolicyRequest.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 UpdateProtectionPolicyRequest.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 UpdateProtectionPolicyRequest.Builder copy(UpdateProtectionPolicyRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<UpdateProtectionPolicyRequest,UpdateProtectionPolicyDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public UpdateProtectionPolicyRequest build()
Build the instance of UpdateProtectionPolicyRequest 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<UpdateProtectionPolicyRequest,UpdateProtectionPolicyDetails>- Returns:
- instance of UpdateProtectionPolicyRequest
-
body$
public UpdateProtectionPolicyRequest.Builder body$(UpdateProtectionPolicyDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<UpdateProtectionPolicyRequest,UpdateProtectionPolicyDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public UpdateProtectionPolicyRequest buildWithoutInvocationCallback()
Build the instance of UpdateProtectionPolicyRequest 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 UpdateProtectionPolicyRequest
-
-