Class ChangeEncryptionKeyLocationRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.database.requests.ChangeEncryptionKeyLocationRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ChangeEncryptionKeyLocationRequest,EncryptionKeyLocationDetails>
- Enclosing class:
- ChangeEncryptionKeyLocationRequest
public static class ChangeEncryptionKeyLocationRequest.Builder extends Object implements BmcRequest.Builder<ChangeEncryptionKeyLocationRequest,EncryptionKeyLocationDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeEncryptionKeyLocationRequest.Builderbody$(EncryptionKeyLocationDetails body)Alternative setter for the body parameter.ChangeEncryptionKeyLocationRequestbuild()Build the instance of ChangeEncryptionKeyLocationRequest as configured by this builderChangeEncryptionKeyLocationRequestbuildWithoutInvocationCallback()Build the instance of ChangeEncryptionKeyLocationRequest as configured by this builderChangeEncryptionKeyLocationRequest.Buildercopy(ChangeEncryptionKeyLocationRequest o)Copy method to populate the builder with values from the given instance.ChangeEncryptionKeyLocationRequest.BuilderdatabaseId(String databaseId)The database OCID.ChangeEncryptionKeyLocationRequest.BuilderencryptionKeyLocationDetails(EncryptionKeyLocationDetails encryptionKeyLocationDetails)Request to change the source of the encryption key for the database.ChangeEncryptionKeyLocationRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.ChangeEncryptionKeyLocationRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ChangeEncryptionKeyLocationRequest.BuilderopcRequestId(String opcRequestId)Unique identifier for the request.ChangeEncryptionKeyLocationRequest.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.ChangeEncryptionKeyLocationRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
databaseId
public ChangeEncryptionKeyLocationRequest.Builder databaseId(String databaseId)
The database OCID.- Parameters:
databaseId- the value to set- Returns:
- this builder instance
-
encryptionKeyLocationDetails
public ChangeEncryptionKeyLocationRequest.Builder encryptionKeyLocationDetails(EncryptionKeyLocationDetails encryptionKeyLocationDetails)
Request to change the source of the encryption key for the database.- Parameters:
encryptionKeyLocationDetails- the value to set- Returns:
- this builder instance
-
ifMatch
public ChangeEncryptionKeyLocationRequest.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
-
opcRetryToken
public ChangeEncryptionKeyLocationRequest.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 ChangeEncryptionKeyLocationRequest.Builder opcRequestId(String opcRequestId)
Unique identifier for the request.- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public ChangeEncryptionKeyLocationRequest.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 ChangeEncryptionKeyLocationRequest.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 ChangeEncryptionKeyLocationRequest.Builder copy(ChangeEncryptionKeyLocationRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<ChangeEncryptionKeyLocationRequest,EncryptionKeyLocationDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public ChangeEncryptionKeyLocationRequest build()
Build the instance of ChangeEncryptionKeyLocationRequest 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<ChangeEncryptionKeyLocationRequest,EncryptionKeyLocationDetails>- Returns:
- instance of ChangeEncryptionKeyLocationRequest
-
body$
public ChangeEncryptionKeyLocationRequest.Builder body$(EncryptionKeyLocationDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<ChangeEncryptionKeyLocationRequest,EncryptionKeyLocationDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public ChangeEncryptionKeyLocationRequest buildWithoutInvocationCallback()
Build the instance of ChangeEncryptionKeyLocationRequest 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 ChangeEncryptionKeyLocationRequest
-
-