Interface S3CopyObjectOperation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<S3CopyObjectOperation.Builder,S3CopyObjectOperation>,SdkBuilder<S3CopyObjectOperation.Builder,S3CopyObjectOperation>,SdkPojo
- Enclosing class:
- S3CopyObjectOperation
public static interface S3CopyObjectOperation.Builder extends SdkPojo, CopyableBuilder<S3CopyObjectOperation.Builder,S3CopyObjectOperation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description S3CopyObjectOperation.BuilderaccessControlGrants(Collection<S3Grant> accessControlGrants)S3CopyObjectOperation.BuilderaccessControlGrants(Consumer<S3Grant.Builder>... accessControlGrants)S3CopyObjectOperation.BuilderaccessControlGrants(S3Grant... accessControlGrants)S3CopyObjectOperation.BuilderbucketKeyEnabled(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).S3CopyObjectOperation.BuildercannedAccessControlList(String cannedAccessControlList)S3CopyObjectOperation.BuildercannedAccessControlList(S3CannedAccessControlList cannedAccessControlList)S3CopyObjectOperation.BuilderchecksumAlgorithm(String checksumAlgorithm)Indicates the algorithm that you want Amazon S3 to use to create the checksum.S3CopyObjectOperation.BuilderchecksumAlgorithm(S3ChecksumAlgorithm checksumAlgorithm)Indicates the algorithm that you want Amazon S3 to use to create the checksum.S3CopyObjectOperation.BuildermetadataDirective(String metadataDirective)S3CopyObjectOperation.BuildermetadataDirective(S3MetadataDirective metadataDirective)S3CopyObjectOperation.BuildermodifiedSinceConstraint(Instant modifiedSinceConstraint)default S3CopyObjectOperation.BuildernewObjectMetadata(Consumer<S3ObjectMetadata.Builder> newObjectMetadata)If you don't provide this parameter, Amazon S3 copies all the metadata from the original objects.S3CopyObjectOperation.BuildernewObjectMetadata(S3ObjectMetadata newObjectMetadata)If you don't provide this parameter, Amazon S3 copies all the metadata from the original objects.S3CopyObjectOperation.BuildernewObjectTagging(Collection<S3Tag> newObjectTagging)Specifies a list of tags to add to the destination objects after they are copied.S3CopyObjectOperation.BuildernewObjectTagging(Consumer<S3Tag.Builder>... newObjectTagging)Specifies a list of tags to add to the destination objects after they are copied.S3CopyObjectOperation.BuildernewObjectTagging(S3Tag... newObjectTagging)Specifies a list of tags to add to the destination objects after they are copied.S3CopyObjectOperation.BuilderobjectLockLegalHoldStatus(String objectLockLegalHoldStatus)The legal hold status to be applied to all objects in the Batch Operations job.S3CopyObjectOperation.BuilderobjectLockLegalHoldStatus(S3ObjectLockLegalHoldStatus objectLockLegalHoldStatus)The legal hold status to be applied to all objects in the Batch Operations job.S3CopyObjectOperation.BuilderobjectLockMode(String objectLockMode)The retention mode to be applied to all objects in the Batch Operations job.S3CopyObjectOperation.BuilderobjectLockMode(S3ObjectLockMode objectLockMode)The retention mode to be applied to all objects in the Batch Operations job.S3CopyObjectOperation.BuilderobjectLockRetainUntilDate(Instant objectLockRetainUntilDate)The date when the applied object retention configuration expires on all objects in the Batch Operations job.S3CopyObjectOperation.BuilderredirectLocation(String redirectLocation)If the destination bucket is configured as a website, specifies an optional metadata property for website redirects,x-amz-website-redirect-location.S3CopyObjectOperation.BuilderrequesterPays(Boolean requesterPays)S3CopyObjectOperation.BuildersseAwsKmsKeyId(String sseAwsKmsKeyId)S3CopyObjectOperation.BuilderstorageClass(String storageClass)Specify the storage class for the destination objects in aCopyoperation.S3CopyObjectOperation.BuilderstorageClass(S3StorageClass storageClass)Specify the storage class for the destination objects in aCopyoperation.S3CopyObjectOperation.BuildertargetKeyPrefix(String targetKeyPrefix)Specifies the folder prefix that you want the objects to be copied into.S3CopyObjectOperation.BuildertargetResource(String targetResource)Specifies the destination bucket Amazon Resource Name (ARN) for the batch copy operation.S3CopyObjectOperation.BuilderunModifiedSinceConstraint(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 Detail
-
targetResource
S3CopyObjectOperation.Builder targetResource(String targetResource)
Specifies the destination bucket Amazon Resource Name (ARN) for the batch copy operation.
-
General purpose buckets - For example, to copy objects to a general purpose bucket named
destinationBucket, set theTargetResourceproperty toarn:aws:s3:::destinationBucket. -
Directory buckets - For example, to copy objects to a directory bucket named
destinationBucketin the Availability Zone; identified by the AZ IDusw2-az2, set theTargetResourceproperty toarn:aws:s3express:region:account_id:/bucket/destination_bucket_base_name--usw2-az2--x-s3.
- Parameters:
targetResource- Specifies the destination bucket Amazon Resource Name (ARN) for the batch copy operation.-
General purpose buckets - For example, to copy objects to a general purpose bucket named
destinationBucket, set theTargetResourceproperty toarn:aws:s3:::destinationBucket. -
Directory buckets - For example, to copy objects to a directory bucket named
destinationBucketin the Availability Zone; identified by the AZ IDusw2-az2, set theTargetResourceproperty toarn:aws:s3express:region:account_id:/bucket/destination_bucket_base_name--usw2-az2--x-s3.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
cannedAccessControlList
S3CopyObjectOperation.Builder cannedAccessControlList(String cannedAccessControlList)
This functionality is not supported by directory buckets.
- Parameters:
cannedAccessControlList-This functionality is not supported by directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
S3CannedAccessControlList,S3CannedAccessControlList
-
cannedAccessControlList
S3CopyObjectOperation.Builder cannedAccessControlList(S3CannedAccessControlList cannedAccessControlList)
This functionality is not supported by directory buckets.
- Parameters:
cannedAccessControlList-This functionality is not supported by directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
S3CannedAccessControlList,S3CannedAccessControlList
-
accessControlGrants
S3CopyObjectOperation.Builder accessControlGrants(Collection<S3Grant> accessControlGrants)
This functionality is not supported by directory buckets.
- Parameters:
accessControlGrants-This functionality is not supported by directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessControlGrants
S3CopyObjectOperation.Builder accessControlGrants(S3Grant... accessControlGrants)
This functionality is not supported by directory buckets.
- Parameters:
accessControlGrants-This functionality is not supported by directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessControlGrants
S3CopyObjectOperation.Builder accessControlGrants(Consumer<S3Grant.Builder>... accessControlGrants)
This is a convenience method that creates an instance of theThis functionality is not supported by directory buckets.
S3Grant.Builderavoiding the need to create one manually viaS3Grant.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#accessControlGrants(List.) - 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:
#accessControlGrants(java.util.Collection)
-
metadataDirective
S3CopyObjectOperation.Builder metadataDirective(String metadataDirective)
- Parameters:
metadataDirective-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
S3MetadataDirective,S3MetadataDirective
-
metadataDirective
S3CopyObjectOperation.Builder metadataDirective(S3MetadataDirective metadataDirective)
- Parameters:
metadataDirective-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
S3MetadataDirective,S3MetadataDirective
-
modifiedSinceConstraint
S3CopyObjectOperation.Builder modifiedSinceConstraint(Instant modifiedSinceConstraint)
- Parameters:
modifiedSinceConstraint-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
newObjectMetadata
S3CopyObjectOperation.Builder newObjectMetadata(S3ObjectMetadata 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.Builderavoiding the need to create one manually viaS3ObjectMetadata.builder().When the
Consumercompletes,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:
newObjectMetadata(S3ObjectMetadata)
-
newObjectTagging
S3CopyObjectOperation.Builder newObjectTagging(Collection<S3Tag> newObjectTagging)
Specifies a list of tags to add to the destination objects after they are copied. If
NewObjectTaggingis not specified, the tags of the source objects are copied to destination objects by default.Directory buckets - Tags aren't supported by directory buckets. If your source objects have tags and your destination bucket is a directory bucket, specify an empty tag set in the
NewObjectTaggingfield to prevent copying the source object tags to the directory bucket.- Parameters:
newObjectTagging- Specifies a list of tags to add to the destination objects after they are copied. IfNewObjectTaggingis not specified, the tags of the source objects are copied to destination objects by default.Directory buckets - Tags aren't supported by directory buckets. If your source objects have tags and your destination bucket is a directory bucket, specify an empty tag set in the
NewObjectTaggingfield to prevent copying the source object tags to the directory bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
newObjectTagging
S3CopyObjectOperation.Builder newObjectTagging(S3Tag... newObjectTagging)
Specifies a list of tags to add to the destination objects after they are copied. If
NewObjectTaggingis not specified, the tags of the source objects are copied to destination objects by default.Directory buckets - Tags aren't supported by directory buckets. If your source objects have tags and your destination bucket is a directory bucket, specify an empty tag set in the
NewObjectTaggingfield to prevent copying the source object tags to the directory bucket.- Parameters:
newObjectTagging- Specifies a list of tags to add to the destination objects after they are copied. IfNewObjectTaggingis not specified, the tags of the source objects are copied to destination objects by default.Directory buckets - Tags aren't supported by directory buckets. If your source objects have tags and your destination bucket is a directory bucket, specify an empty tag set in the
NewObjectTaggingfield to prevent copying the source object tags to the directory bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
newObjectTagging
S3CopyObjectOperation.Builder newObjectTagging(Consumer<S3Tag.Builder>... newObjectTagging)
Specifies a list of tags to add to the destination objects after they are copied. If
NewObjectTaggingis not specified, the tags of the source objects are copied to destination objects by default. This is a convenience method that creates an instance of theDirectory buckets - Tags aren't supported by directory buckets. If your source objects have tags and your destination bucket is a directory bucket, specify an empty tag set in the
NewObjectTaggingfield to prevent copying the source object tags to the directory bucket.S3Tag.Builderavoiding the need to create one manually viaS3Tag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#newObjectTagging(List.) - 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:
#newObjectTagging(java.util.Collection)
-
redirectLocation
S3CopyObjectOperation.Builder redirectLocation(String redirectLocation)
If the destination bucket is configured as a website, specifies an optional metadata property for website redirects,
x-amz-website-redirect-location. Allows webpage redirects if the object copy is accessed through a website endpoint.This functionality is not supported by directory buckets.
- Parameters:
redirectLocation- If the destination bucket is configured as a website, specifies an optional metadata property for website redirects,x-amz-website-redirect-location. Allows webpage redirects if the object copy is accessed through a website endpoint.This functionality is not supported by directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requesterPays
S3CopyObjectOperation.Builder requesterPays(Boolean requesterPays)
This functionality is not supported by directory buckets.
- Parameters:
requesterPays-This functionality is not supported by directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageClass
S3CopyObjectOperation.Builder storageClass(String storageClass)
Specify the storage class for the destination objects in a
Copyoperation.Directory buckets - This functionality is not supported by directory buckets.
- Parameters:
storageClass- Specify the storage class for the destination objects in aCopyoperation.Directory buckets - This functionality is not supported by directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
S3StorageClass,S3StorageClass
-
storageClass
S3CopyObjectOperation.Builder storageClass(S3StorageClass storageClass)
Specify the storage class for the destination objects in a
Copyoperation.Directory buckets - This functionality is not supported by directory buckets.
- Parameters:
storageClass- Specify the storage class for the destination objects in aCopyoperation.Directory buckets - This functionality is not supported by directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
S3StorageClass,S3StorageClass
-
unModifiedSinceConstraint
S3CopyObjectOperation.Builder unModifiedSinceConstraint(Instant unModifiedSinceConstraint)
- Parameters:
unModifiedSinceConstraint-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sseAwsKmsKeyId
S3CopyObjectOperation.Builder sseAwsKmsKeyId(String sseAwsKmsKeyId)
This functionality is not supported by directory buckets.
- Parameters:
sseAwsKmsKeyId-This functionality is not supported by directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetKeyPrefix
S3CopyObjectOperation.Builder targetKeyPrefix(String targetKeyPrefix)
Specifies the folder prefix that you want the objects to be copied into. For example, to copy objects into a folder named
Folder1in the destination bucket, set theTargetKeyPrefixproperty toFolder1.- Parameters:
targetKeyPrefix- Specifies the folder prefix that you want the objects to be copied into. For example, to copy objects into a folder namedFolder1in the destination bucket, set theTargetKeyPrefixproperty toFolder1.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
objectLockLegalHoldStatus
S3CopyObjectOperation.Builder objectLockLegalHoldStatus(String objectLockLegalHoldStatus)
The legal hold status to be applied to all objects in the Batch Operations job.
This functionality is not supported by directory buckets.
- Parameters:
objectLockLegalHoldStatus- The legal hold status to be applied to all objects in the Batch Operations job.This functionality is not supported by directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
S3ObjectLockLegalHoldStatus,S3ObjectLockLegalHoldStatus
-
objectLockLegalHoldStatus
S3CopyObjectOperation.Builder objectLockLegalHoldStatus(S3ObjectLockLegalHoldStatus objectLockLegalHoldStatus)
The legal hold status to be applied to all objects in the Batch Operations job.
This functionality is not supported by directory buckets.
- Parameters:
objectLockLegalHoldStatus- The legal hold status to be applied to all objects in the Batch Operations job.This functionality is not supported by directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
S3ObjectLockLegalHoldStatus,S3ObjectLockLegalHoldStatus
-
objectLockMode
S3CopyObjectOperation.Builder objectLockMode(String objectLockMode)
The retention mode to be applied to all objects in the Batch Operations job.
This functionality is not supported by directory buckets.
- Parameters:
objectLockMode- The retention mode to be applied to all objects in the Batch Operations job.This functionality is not supported by directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
S3ObjectLockMode,S3ObjectLockMode
-
objectLockMode
S3CopyObjectOperation.Builder objectLockMode(S3ObjectLockMode objectLockMode)
The retention mode to be applied to all objects in the Batch Operations job.
This functionality is not supported by directory buckets.
- Parameters:
objectLockMode- The retention mode to be applied to all objects in the Batch Operations job.This functionality is not supported by directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
S3ObjectLockMode,S3ObjectLockMode
-
objectLockRetainUntilDate
S3CopyObjectOperation.Builder objectLockRetainUntilDate(Instant objectLockRetainUntilDate)
The date when the applied object retention configuration expires on all objects in the Batch Operations job.
This functionality is not supported by directory buckets.
- Parameters:
objectLockRetainUntilDate- The date when the applied object retention configuration expires on all objects in the Batch Operations job.This functionality is not supported by directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketKeyEnabled
S3CopyObjectOperation.Builder 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). Setting this header to
truecauses 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.
This functionality is not supported by directory buckets.
- 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 totruecauses 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.
This functionality is not supported by directory buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checksumAlgorithm
S3CopyObjectOperation.Builder checksumAlgorithm(String 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:
S3ChecksumAlgorithm,S3ChecksumAlgorithm
-
checksumAlgorithm
S3CopyObjectOperation.Builder checksumAlgorithm(S3ChecksumAlgorithm 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:
S3ChecksumAlgorithm,S3ChecksumAlgorithm
-
-