Class GenerateDataEncryptionKeyRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.keymanagement.requests.GenerateDataEncryptionKeyRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<GenerateDataEncryptionKeyRequest,GenerateKeyDetails>
- Enclosing class:
- GenerateDataEncryptionKeyRequest
public static class GenerateDataEncryptionKeyRequest.Builder extends Object implements BmcRequest.Builder<GenerateDataEncryptionKeyRequest,GenerateKeyDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenerateDataEncryptionKeyRequest.Builderbody$(GenerateKeyDetails body)Alternative setter for the body parameter.GenerateDataEncryptionKeyRequestbuild()Build the instance of GenerateDataEncryptionKeyRequest as configured by this builderGenerateDataEncryptionKeyRequestbuildWithoutInvocationCallback()Build the instance of GenerateDataEncryptionKeyRequest as configured by this builderGenerateDataEncryptionKeyRequest.Buildercopy(GenerateDataEncryptionKeyRequest o)Copy method to populate the builder with values from the given instance.GenerateDataEncryptionKeyRequest.BuildergenerateKeyDetails(GenerateKeyDetails generateKeyDetails)GenerateKeyDetailsGenerateDataEncryptionKeyRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.GenerateDataEncryptionKeyRequest.BuilderopcRequestId(String opcRequestId)Unique identifier for the request.GenerateDataEncryptionKeyRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
generateKeyDetails
public GenerateDataEncryptionKeyRequest.Builder generateKeyDetails(GenerateKeyDetails generateKeyDetails)
GenerateKeyDetails- Parameters:
generateKeyDetails- the value to set- Returns:
- this builder instance
-
opcRequestId
public GenerateDataEncryptionKeyRequest.Builder opcRequestId(String opcRequestId)
Unique identifier for the request.If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service.
- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public GenerateDataEncryptionKeyRequest.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 GenerateDataEncryptionKeyRequest.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 GenerateDataEncryptionKeyRequest.Builder copy(GenerateDataEncryptionKeyRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<GenerateDataEncryptionKeyRequest,GenerateKeyDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public GenerateDataEncryptionKeyRequest build()
Build the instance of GenerateDataEncryptionKeyRequest 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<GenerateDataEncryptionKeyRequest,GenerateKeyDetails>- Returns:
- instance of GenerateDataEncryptionKeyRequest
-
body$
public GenerateDataEncryptionKeyRequest.Builder body$(GenerateKeyDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<GenerateDataEncryptionKeyRequest,GenerateKeyDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public GenerateDataEncryptionKeyRequest buildWithoutInvocationCallback()
Build the instance of GenerateDataEncryptionKeyRequest 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 GenerateDataEncryptionKeyRequest
-
-