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 SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll 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- 
protectionPolicyIdpublic UpdateProtectionPolicyRequest.Builder protectionPolicyId(String protectionPolicyId) The protection policy OCID.- Parameters:
- protectionPolicyId- the value to set
- Returns:
- this builder instance
 
 - 
updateProtectionPolicyDetailspublic UpdateProtectionPolicyRequest.Builder updateProtectionPolicyDetails(UpdateProtectionPolicyDetails updateProtectionPolicyDetails) The information to be updated.- Parameters:
- updateProtectionPolicyDetails- the value to set
- Returns:
- this builder instance
 
 - 
ifMatchpublic 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
 
 - 
opcRequestIdpublic UpdateProtectionPolicyRequest.Builder opcRequestId(String opcRequestId) Unique identifier for the request.- Parameters:
- opcRequestId- the value to set
- Returns:
- this builder instance
 
 - 
invocationCallbackpublic 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
 
 - 
retryConfigurationpublic 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
 
 - 
copypublic UpdateProtectionPolicyRequest.Builder copy(UpdateProtectionPolicyRequest o) Copy method to populate the builder with values from the given instance.- Specified by:
- copyin interface- BmcRequest.Builder<UpdateProtectionPolicyRequest,UpdateProtectionPolicyDetails>
- Parameters:
- o- other request from which to copy values
- Returns:
- this builder instance
 
 - 
buildpublic 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 interface- BmcRequest.Builder<UpdateProtectionPolicyRequest,UpdateProtectionPolicyDetails>
- Returns:
- instance of UpdateProtectionPolicyRequest
 
 - 
body$public UpdateProtectionPolicyRequest.Builder body$(UpdateProtectionPolicyDetails body) Alternative setter for the body parameter.- Specified by:
- body$in interface- BmcRequest.Builder<UpdateProtectionPolicyRequest,UpdateProtectionPolicyDetails>
- Parameters:
- body- the body parameter
- Returns:
- this builder instance
 
 - 
buildWithoutInvocationCallbackpublic 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
 
 
- 
 
-