public static interface CopyObjectResponse.Builder extends S3Response.Builder, CopyableBuilder<CopyObjectResponse.Builder,CopyObjectResponse>
Modifier and Type | Method and Description |
---|---|
default CopyObjectResponse.Builder |
copyObjectResult(Consumer<CopyObjectResult.Builder> copyObjectResult)
Sets the value of the CopyObjectResult property for this object.
|
CopyObjectResponse.Builder |
copyObjectResult(CopyObjectResult copyObjectResult)
Sets the value of the CopyObjectResult property for this object.
|
CopyObjectResponse.Builder |
copySourceVersionId(String copySourceVersionId)
Sets the value of the CopySourceVersionId property for this object.
|
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 |
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
copy
apply, build
CopyObjectResponse.Builder copyObjectResult(CopyObjectResult copyObjectResult)
copyObjectResult
- The new value for the CopyObjectResult property for this object.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)
expiration
- If the object expiration is configured, the response includes this header.CopyObjectResponse.Builder copySourceVersionId(String copySourceVersionId)
copySourceVersionId
- The new value for the CopySourceVersionId property for this object.CopyObjectResponse.Builder versionId(String versionId)
versionId
- Version ID of the newly created copy.CopyObjectResponse.Builder serverSideEncryption(String serverSideEncryption)
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)
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)
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)
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)
ssekmsKeyId
- If present, specifies the ID of the AWS Key Management Service (KMS) master encryption key that was
used for the object.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 © 2017 Amazon Web Services, Inc. All Rights Reserved.