public static interface CopyObjectResponse.Builder extends S3Response.Builder, SdkPojo, CopyableBuilder<CopyObjectResponse.Builder,CopyObjectResponse>
Modifier and Type | Method and Description |
---|---|
default CopyObjectResponse.Builder |
copyObjectResult(Consumer<CopyObjectResult.Builder> copyObjectResult)
This is a convenience that creates an instance of the
CopyObjectResult.Builder avoiding the need to
create one manually via CopyObjectResult.builder() . |
CopyObjectResponse.Builder |
copyObjectResult(CopyObjectResult copyObjectResult)
|
CopyObjectResponse.Builder |
copySourceVersionId(String copySourceVersionId)
|
CopyObjectResponse.Builder |
expiration(String expiration)
If the object expiration is configured, the response includes this header.
|
CopyObjectResponse.Builder |
requestCharged(RequestCharged requestCharged)
Sets the value of the RequestCharged property for this object.
|
CopyObjectResponse.Builder |
requestCharged(String requestCharged)
Sets the value of the RequestCharged property for this object.
|
CopyObjectResponse.Builder |
serverSideEncryption(ServerSideEncryption serverSideEncryption)
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
|
CopyObjectResponse.Builder |
serverSideEncryption(String serverSideEncryption)
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
|
CopyObjectResponse.Builder |
sseCustomerAlgorithm(String sseCustomerAlgorithm)
If server-side encryption with a customer-provided encryption key was requested, the response will include
this header confirming the encryption algorithm used.
|
CopyObjectResponse.Builder |
sseCustomerKeyMD5(String sseCustomerKeyMD5)
If server-side encryption with a customer-provided encryption key was requested, the response will include
this header to provide round trip message integrity verification of the customer-provided encryption key.
|
CopyObjectResponse.Builder |
ssekmsEncryptionContext(String ssekmsEncryptionContext)
If present, specifies the AWS KMS Encryption Context to use for object encryption.
|
CopyObjectResponse.Builder |
ssekmsKeyId(String ssekmsKeyId)
If present, specifies the ID of the AWS Key Management Service (KMS) master encryption key that was used for
the object.
|
CopyObjectResponse.Builder |
versionId(String versionId)
Version ID of the newly created copy.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
equalsBySdkFields, sdkFields
copy
applyMutation, build
CopyObjectResponse.Builder copyObjectResult(CopyObjectResult copyObjectResult)
copyObjectResult
- default CopyObjectResponse.Builder copyObjectResult(Consumer<CopyObjectResult.Builder> copyObjectResult)
CopyObjectResult.Builder
avoiding the need to
create one manually via CopyObjectResult.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to copyObjectResult(CopyObjectResult)
.copyObjectResult
- a consumer that will call methods on CopyObjectResult.Builder
copyObjectResult(CopyObjectResult)
CopyObjectResponse.Builder expiration(String expiration)
If the object expiration is configured, the response includes this header.
expiration
- If the object expiration is configured, the response includes this header.CopyObjectResponse.Builder copySourceVersionId(String copySourceVersionId)
copySourceVersionId
- CopyObjectResponse.Builder versionId(String versionId)
Version ID of the newly created copy.
versionId
- Version ID of the newly created copy.CopyObjectResponse.Builder serverSideEncryption(String serverSideEncryption)
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
serverSideEncryption
- The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).ServerSideEncryption
,
ServerSideEncryption
CopyObjectResponse.Builder serverSideEncryption(ServerSideEncryption serverSideEncryption)
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
serverSideEncryption
- The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).ServerSideEncryption
,
ServerSideEncryption
CopyObjectResponse.Builder sseCustomerAlgorithm(String sseCustomerAlgorithm)
If server-side encryption with a customer-provided encryption key was requested, the response will include this header confirming the encryption algorithm used.
sseCustomerAlgorithm
- If server-side encryption with a customer-provided encryption key was requested, the response will
include this header confirming the encryption algorithm used.CopyObjectResponse.Builder sseCustomerKeyMD5(String sseCustomerKeyMD5)
If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide round trip message integrity verification of the customer-provided encryption key.
sseCustomerKeyMD5
- If server-side encryption with a customer-provided encryption key was requested, the response will
include this header to provide round trip message integrity verification of the customer-provided
encryption key.CopyObjectResponse.Builder ssekmsKeyId(String ssekmsKeyId)
If present, specifies the ID of the AWS Key Management Service (KMS) master encryption key that was used for the object.
ssekmsKeyId
- If present, specifies the ID of the AWS Key Management Service (KMS) master encryption key that was
used for the object.CopyObjectResponse.Builder ssekmsEncryptionContext(String ssekmsEncryptionContext)
If present, specifies the AWS KMS Encryption Context to use for object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.
ssekmsEncryptionContext
- If present, specifies the AWS KMS Encryption Context to use for object encryption. The value of this
header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.CopyObjectResponse.Builder requestCharged(String requestCharged)
requestCharged
- The new value for the RequestCharged property for this object.RequestCharged
,
RequestCharged
CopyObjectResponse.Builder requestCharged(RequestCharged requestCharged)
requestCharged
- The new value for the RequestCharged property for this object.RequestCharged
,
RequestCharged
Copyright © 2019. All rights reserved.