Interface S3CopyObjectOperation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<S3CopyObjectOperation.Builder,
,S3CopyObjectOperation> SdkBuilder<S3CopyObjectOperation.Builder,
,S3CopyObjectOperation> SdkPojo
- Enclosing class:
S3CopyObjectOperation
-
Method Summary
Modifier and TypeMethodDescriptionaccessControlGrants
(Collection<S3Grant> accessControlGrants) accessControlGrants
(Consumer<S3Grant.Builder>... accessControlGrants) This is a convenience method that creates an instance of theS3Grant.Builder
avoiding the need to create one manually viaS3Grant.builder()
.accessControlGrants
(S3Grant... accessControlGrants) bucketKeyEnabled
(Boolean bucketKeyEnabled) Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Amazon Web Services KMS (SSE-KMS).cannedAccessControlList
(String cannedAccessControlList) cannedAccessControlList
(S3CannedAccessControlList cannedAccessControlList) checksumAlgorithm
(String checksumAlgorithm) Indicates the algorithm that you want Amazon S3 to use to create the checksum.checksumAlgorithm
(S3ChecksumAlgorithm checksumAlgorithm) Indicates the algorithm that you want Amazon S3 to use to create the checksum.metadataDirective
(String metadataDirective) metadataDirective
(S3MetadataDirective metadataDirective) modifiedSinceConstraint
(Instant modifiedSinceConstraint) default S3CopyObjectOperation.Builder
newObjectMetadata
(Consumer<S3ObjectMetadata.Builder> newObjectMetadata) If you don't provide this parameter, Amazon S3 copies all the metadata from the original objects.newObjectMetadata
(S3ObjectMetadata newObjectMetadata) If you don't provide this parameter, Amazon S3 copies all the metadata from the original objects.newObjectTagging
(Collection<S3Tag> newObjectTagging) newObjectTagging
(Consumer<S3Tag.Builder>... newObjectTagging) This is a convenience method that creates an instance of theS3Tag.Builder
avoiding the need to create one manually viaS3Tag.builder()
.newObjectTagging
(S3Tag... newObjectTagging) objectLockLegalHoldStatus
(String objectLockLegalHoldStatus) The legal hold status to be applied to all objects in the Batch Operations job.objectLockLegalHoldStatus
(S3ObjectLockLegalHoldStatus objectLockLegalHoldStatus) The legal hold status to be applied to all objects in the Batch Operations job.objectLockMode
(String objectLockMode) The retention mode to be applied to all objects in the Batch Operations job.objectLockMode
(S3ObjectLockMode objectLockMode) The retention mode to be applied to all objects in the Batch Operations job.objectLockRetainUntilDate
(Instant objectLockRetainUntilDate) The date when the applied object retention configuration expires on all objects in the Batch Operations job.redirectLocation
(String redirectLocation) Specifies an optional metadata property for website redirects,x-amz-website-redirect-location
.requesterPays
(Boolean requesterPays) sseAwsKmsKeyId
(String sseAwsKmsKeyId) storageClass
(String storageClass) storageClass
(S3StorageClass storageClass) targetKeyPrefix
(String targetKeyPrefix) Specifies the folder prefix that you want the objects to be copied into.targetResource
(String targetResource) Specifies the destination bucket Amazon Resource Name (ARN) for the batch copy operation.unModifiedSinceConstraint
(Instant unModifiedSinceConstraint) Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
targetResource
Specifies the destination bucket Amazon Resource Name (ARN) for the batch copy operation. For example, to copy objects to a bucket named
destinationBucket
, set theTargetResource
property toarn:aws:s3:::destinationBucket
.- Parameters:
targetResource
- Specifies the destination bucket Amazon Resource Name (ARN) for the batch copy operation. For example, to copy objects to a bucket nameddestinationBucket
, set theTargetResource
property toarn:aws:s3:::destinationBucket
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cannedAccessControlList
- Parameters:
cannedAccessControlList
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cannedAccessControlList
S3CopyObjectOperation.Builder cannedAccessControlList(S3CannedAccessControlList cannedAccessControlList) - Parameters:
cannedAccessControlList
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accessControlGrants
- Parameters:
accessControlGrants
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessControlGrants
- Parameters:
accessControlGrants
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessControlGrants
This is a convenience method that creates an instance of theS3Grant.Builder
avoiding the need to create one manually viaS3Grant.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessControlGrants(List<S3Grant>)
.- Parameters:
accessControlGrants
- a consumer that will call methods onS3Grant.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadataDirective
- Parameters:
metadataDirective
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadataDirective
- Parameters:
metadataDirective
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modifiedSinceConstraint
- Parameters:
modifiedSinceConstraint
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
newObjectMetadata
If you don't provide this parameter, Amazon S3 copies all the metadata from the original objects. If you specify an empty set, the new objects will have no tags. Otherwise, Amazon S3 assigns the supplied tags to the new objects.
- Parameters:
newObjectMetadata
- If you don't provide this parameter, Amazon S3 copies all the metadata from the original objects. If you specify an empty set, the new objects will have no tags. Otherwise, Amazon S3 assigns the supplied tags to the new objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
newObjectMetadata
default S3CopyObjectOperation.Builder newObjectMetadata(Consumer<S3ObjectMetadata.Builder> newObjectMetadata) If you don't provide this parameter, Amazon S3 copies all the metadata from the original objects. If you specify an empty set, the new objects will have no tags. Otherwise, Amazon S3 assigns the supplied tags to the new objects.
This is a convenience method that creates an instance of theS3ObjectMetadata.Builder
avoiding the need to create one manually viaS3ObjectMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonewObjectMetadata(S3ObjectMetadata)
.- Parameters:
newObjectMetadata
- a consumer that will call methods onS3ObjectMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
newObjectTagging
- Parameters:
newObjectTagging
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
newObjectTagging
- Parameters:
newObjectTagging
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
newObjectTagging
This is a convenience method that creates an instance of theS3Tag.Builder
avoiding the need to create one manually viaS3Tag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonewObjectTagging(List<S3Tag>)
.- Parameters:
newObjectTagging
- a consumer that will call methods onS3Tag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
redirectLocation
Specifies an optional metadata property for website redirects,
x-amz-website-redirect-location
. Allows webpage redirects if the object is accessed through a website endpoint.- Parameters:
redirectLocation
- Specifies an optional metadata property for website redirects,x-amz-website-redirect-location
. Allows webpage redirects if the object is accessed through a website endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requesterPays
- Parameters:
requesterPays
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageClass
- Parameters:
storageClass
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageClass
- Parameters:
storageClass
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unModifiedSinceConstraint
- Parameters:
unModifiedSinceConstraint
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sseAwsKmsKeyId
- Parameters:
sseAwsKmsKeyId
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetKeyPrefix
Specifies the folder prefix that you want the objects to be copied into. For example, to copy objects into a folder named
Folder1
in the destination bucket, set theTargetKeyPrefix
property toFolder1
.- Parameters:
targetKeyPrefix
- Specifies the folder prefix that you want the objects to be copied into. For example, to copy objects into a folder namedFolder1
in the destination bucket, set theTargetKeyPrefix
property toFolder1
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
objectLockLegalHoldStatus
The legal hold status to be applied to all objects in the Batch Operations job.
- Parameters:
objectLockLegalHoldStatus
- The legal hold status to be applied to all objects in the Batch Operations job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
objectLockLegalHoldStatus
S3CopyObjectOperation.Builder objectLockLegalHoldStatus(S3ObjectLockLegalHoldStatus objectLockLegalHoldStatus) The legal hold status to be applied to all objects in the Batch Operations job.
- Parameters:
objectLockLegalHoldStatus
- The legal hold status to be applied to all objects in the Batch Operations job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
objectLockMode
The retention mode to be applied to all objects in the Batch Operations job.
- Parameters:
objectLockMode
- The retention mode to be applied to all objects in the Batch Operations job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
objectLockMode
The retention mode to be applied to all objects in the Batch Operations job.
- Parameters:
objectLockMode
- The retention mode to be applied to all objects in the Batch Operations job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
objectLockRetainUntilDate
The date when the applied object retention configuration expires on all objects in the Batch Operations job.
- Parameters:
objectLockRetainUntilDate
- The date when the applied object retention configuration expires on all objects in the Batch Operations job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketKeyEnabled
Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Amazon Web Services KMS (SSE-KMS). Setting this header to
true
causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS.Specifying this header with an object action doesn’t affect bucket-level settings for S3 Bucket Key.
- Parameters:
bucketKeyEnabled
- Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Amazon Web Services KMS (SSE-KMS). Setting this header totrue
causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS.Specifying this header with an object action doesn’t affect bucket-level settings for S3 Bucket Key.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checksumAlgorithm
Indicates the algorithm that you want Amazon S3 to use to create the checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.
- Parameters:
checksumAlgorithm
- Indicates the algorithm that you want Amazon S3 to use to create the checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
checksumAlgorithm
Indicates the algorithm that you want Amazon S3 to use to create the checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.
- Parameters:
checksumAlgorithm
- Indicates the algorithm that you want Amazon S3 to use to create the checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-