Class CopyObjectRequest.Builder
- java.lang.Object
- 
- com.oracle.bmc.objectstorage.requests.CopyObjectRequest.Builder
 
- 
- All Implemented Interfaces:
- BmcRequest.Builder<CopyObjectRequest,CopyObjectDetails>
 - Enclosing class:
- CopyObjectRequest
 
 public static class CopyObjectRequest.Builder extends Object implements BmcRequest.Builder<CopyObjectRequest,CopyObjectDetails> 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CopyObjectRequest.Builderbody$(CopyObjectDetails body)Alternative setter for the body parameter.CopyObjectRequest.BuilderbucketName(String bucketName)The name of the bucket.CopyObjectRequestbuild()Build the instance of CopyObjectRequest as configured by this builderCopyObjectRequestbuildWithoutInvocationCallback()Build the instance of CopyObjectRequest as configured by this builderCopyObjectRequest.Buildercopy(CopyObjectRequest o)Copy method to populate the builder with values from the given instance.CopyObjectRequest.BuildercopyObjectDetails(CopyObjectDetails copyObjectDetails)The source and destination of the object to be copied.CopyObjectRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.CopyObjectRequest.BuildernamespaceName(String namespaceName)The Object Storage namespace used for the request.CopyObjectRequest.BuilderopcClientRequestId(String opcClientRequestId)The client request ID for tracing.CopyObjectRequest.BuilderopcSourceSseCustomerAlgorithm(String opcSourceSseCustomerAlgorithm)The optional header that specifies “AES256” as the encryption algorithm to use to decrypt the source object.CopyObjectRequest.BuilderopcSourceSseCustomerKey(String opcSourceSseCustomerKey)The optional header that specifies the base64-encoded 256-bit encryption key to use to decrypt the source object.CopyObjectRequest.BuilderopcSourceSseCustomerKeySha256(String opcSourceSseCustomerKeySha256)The optional header that specifies the base64-encoded SHA256 hash of the encryption key used to decrypt the source object.CopyObjectRequest.BuilderopcSseCustomerAlgorithm(String opcSseCustomerAlgorithm)The optional header that specifies “AES256” as the encryption algorithm.CopyObjectRequest.BuilderopcSseCustomerKey(String opcSseCustomerKey)The optional header that specifies the base64-encoded 256-bit encryption key to use to encrypt or decrypt the data.CopyObjectRequest.BuilderopcSseCustomerKeySha256(String opcSseCustomerKeySha256)The optional header that specifies the base64-encoded SHA256 hash of the encryption key.CopyObjectRequest.BuilderopcSseKmsKeyId(String opcSseKmsKeyId)The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.CopyObjectRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.
 
- 
- 
- 
Method Detail- 
namespaceNamepublic CopyObjectRequest.Builder namespaceName(String namespaceName) The Object Storage namespace used for the request.- Parameters:
- namespaceName- the value to set
- Returns:
- this builder instance
 
 - 
bucketNamepublic CopyObjectRequest.Builder bucketName(String bucketName) The name of the bucket.Avoid entering confidential information. Example: my-new-bucket1 - Parameters:
- bucketName- the value to set
- Returns:
- this builder instance
 
 - 
copyObjectDetailspublic CopyObjectRequest.Builder copyObjectDetails(CopyObjectDetails copyObjectDetails) The source and destination of the object to be copied.- Parameters:
- copyObjectDetails- the value to set
- Returns:
- this builder instance
 
 - 
opcClientRequestIdpublic CopyObjectRequest.Builder opcClientRequestId(String opcClientRequestId) The client request ID for tracing.- Parameters:
- opcClientRequestId- the value to set
- Returns:
- this builder instance
 
 - 
opcSseCustomerAlgorithmpublic CopyObjectRequest.Builder opcSseCustomerAlgorithm(String opcSseCustomerAlgorithm) The optional header that specifies “AES256” as the encryption algorithm.For more information, see Using Your Own Keys for Server-Side Encryption. - Parameters:
- opcSseCustomerAlgorithm- the value to set
- Returns:
- this builder instance
 
 - 
opcSseCustomerKeypublic CopyObjectRequest.Builder opcSseCustomerKey(String opcSseCustomerKey) The optional header that specifies the base64-encoded 256-bit encryption key to use to encrypt or decrypt the data.For more information, see Using Your Own Keys for Server-Side Encryption. - Parameters:
- opcSseCustomerKey- the value to set
- Returns:
- this builder instance
 
 - 
opcSseCustomerKeySha256public CopyObjectRequest.Builder opcSseCustomerKeySha256(String opcSseCustomerKeySha256) The optional header that specifies the base64-encoded SHA256 hash of the encryption key.This value is used to check the integrity of the encryption key. For more information, see Using Your Own Keys for Server-Side Encryption. - Parameters:
- opcSseCustomerKeySha256- the value to set
- Returns:
- this builder instance
 
 - 
opcSourceSseCustomerAlgorithmpublic CopyObjectRequest.Builder opcSourceSseCustomerAlgorithm(String opcSourceSseCustomerAlgorithm) The optional header that specifies “AES256” as the encryption algorithm to use to decrypt the source object.For more information, see Using Your Own Keys for Server-Side Encryption. - Parameters:
- opcSourceSseCustomerAlgorithm- the value to set
- Returns:
- this builder instance
 
 - 
opcSourceSseCustomerKeypublic CopyObjectRequest.Builder opcSourceSseCustomerKey(String opcSourceSseCustomerKey) The optional header that specifies the base64-encoded 256-bit encryption key to use to decrypt the source object.For more information, see Using Your Own Keys for Server-Side Encryption. - Parameters:
- opcSourceSseCustomerKey- the value to set
- Returns:
- this builder instance
 
 - 
opcSourceSseCustomerKeySha256public CopyObjectRequest.Builder opcSourceSseCustomerKeySha256(String opcSourceSseCustomerKeySha256) The optional header that specifies the base64-encoded SHA256 hash of the encryption key used to decrypt the source object.This value is used to check the integrity of the encryption key. For more information, see Using Your Own Keys for Server-Side Encryption. - Parameters:
- opcSourceSseCustomerKeySha256- the value to set
- Returns:
- this builder instance
 
 - 
opcSseKmsKeyIdpublic CopyObjectRequest.Builder opcSseKmsKeyId(String opcSseKmsKeyId) The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.- Parameters:
- opcSseKmsKeyId- the value to set
- Returns:
- this builder instance
 
 - 
invocationCallbackpublic CopyObjectRequest.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 CopyObjectRequest.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 CopyObjectRequest.Builder copy(CopyObjectRequest o) Copy method to populate the builder with values from the given instance.- Specified by:
- copyin interface- BmcRequest.Builder<CopyObjectRequest,CopyObjectDetails>
- Parameters:
- o- other request from which to copy values
- Returns:
- this builder instance
 
 - 
buildpublic CopyObjectRequest build() Build the instance of CopyObjectRequest 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<CopyObjectRequest,CopyObjectDetails>
- Returns:
- instance of CopyObjectRequest
 
 - 
body$public CopyObjectRequest.Builder body$(CopyObjectDetails body) Alternative setter for the body parameter.- Specified by:
- body$in interface- BmcRequest.Builder<CopyObjectRequest,CopyObjectDetails>
- Parameters:
- body- the body parameter
- Returns:
- this builder instance
 
 - 
buildWithoutInvocationCallbackpublic CopyObjectRequest buildWithoutInvocationCallback() Build the instance of CopyObjectRequest 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 CopyObjectRequest
 
 
- 
 
-