#[non_exhaustive]pub struct S3CopyObjectOperationBuilder { /* private fields */ }
Expand description
A builder for S3CopyObjectOperation
.
Implementations§
source§impl S3CopyObjectOperationBuilder
impl S3CopyObjectOperationBuilder
sourcepub fn target_resource(self, input: impl Into<String>) -> Self
pub fn target_resource(self, input: impl Into<String>) -> Self
Specifies the destination bucket Amazon Resource Name (ARN) for the batch copy operation. For example, to copy objects to a bucket named destinationBucket
, set the TargetResource
property to arn:aws:s3:::destinationBucket
.
sourcepub fn set_target_resource(self, input: Option<String>) -> Self
pub fn set_target_resource(self, input: Option<String>) -> Self
Specifies the destination bucket Amazon Resource Name (ARN) for the batch copy operation. For example, to copy objects to a bucket named destinationBucket
, set the TargetResource
property to arn:aws:s3:::destinationBucket
.
sourcepub fn get_target_resource(&self) -> &Option<String>
pub fn get_target_resource(&self) -> &Option<String>
Specifies the destination bucket Amazon Resource Name (ARN) for the batch copy operation. For example, to copy objects to a bucket named destinationBucket
, set the TargetResource
property to arn:aws:s3:::destinationBucket
.
sourcepub fn canned_access_control_list(
self,
input: S3CannedAccessControlList
) -> Self
pub fn canned_access_control_list( self, input: S3CannedAccessControlList ) -> Self
sourcepub fn set_canned_access_control_list(
self,
input: Option<S3CannedAccessControlList>
) -> Self
pub fn set_canned_access_control_list( self, input: Option<S3CannedAccessControlList> ) -> Self
sourcepub fn get_canned_access_control_list(
&self
) -> &Option<S3CannedAccessControlList>
pub fn get_canned_access_control_list( &self ) -> &Option<S3CannedAccessControlList>
sourcepub fn access_control_grants(self, input: S3Grant) -> Self
pub fn access_control_grants(self, input: S3Grant) -> Self
Appends an item to access_control_grants
.
To override the contents of this collection use set_access_control_grants
.
sourcepub fn set_access_control_grants(self, input: Option<Vec<S3Grant>>) -> Self
pub fn set_access_control_grants(self, input: Option<Vec<S3Grant>>) -> Self
sourcepub fn get_access_control_grants(&self) -> &Option<Vec<S3Grant>>
pub fn get_access_control_grants(&self) -> &Option<Vec<S3Grant>>
sourcepub fn metadata_directive(self, input: S3MetadataDirective) -> Self
pub fn metadata_directive(self, input: S3MetadataDirective) -> Self
sourcepub fn set_metadata_directive(self, input: Option<S3MetadataDirective>) -> Self
pub fn set_metadata_directive(self, input: Option<S3MetadataDirective>) -> Self
sourcepub fn get_metadata_directive(&self) -> &Option<S3MetadataDirective>
pub fn get_metadata_directive(&self) -> &Option<S3MetadataDirective>
sourcepub fn modified_since_constraint(self, input: DateTime) -> Self
pub fn modified_since_constraint(self, input: DateTime) -> Self
sourcepub fn set_modified_since_constraint(self, input: Option<DateTime>) -> Self
pub fn set_modified_since_constraint(self, input: Option<DateTime>) -> Self
sourcepub fn get_modified_since_constraint(&self) -> &Option<DateTime>
pub fn get_modified_since_constraint(&self) -> &Option<DateTime>
sourcepub fn new_object_metadata(self, input: S3ObjectMetadata) -> Self
pub fn new_object_metadata(self, input: S3ObjectMetadata) -> Self
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.
sourcepub fn set_new_object_metadata(self, input: Option<S3ObjectMetadata>) -> Self
pub fn set_new_object_metadata(self, input: Option<S3ObjectMetadata>) -> Self
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.
sourcepub fn get_new_object_metadata(&self) -> &Option<S3ObjectMetadata>
pub fn get_new_object_metadata(&self) -> &Option<S3ObjectMetadata>
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.
sourcepub fn new_object_tagging(self, input: S3Tag) -> Self
pub fn new_object_tagging(self, input: S3Tag) -> Self
Appends an item to new_object_tagging
.
To override the contents of this collection use set_new_object_tagging
.
sourcepub fn set_new_object_tagging(self, input: Option<Vec<S3Tag>>) -> Self
pub fn set_new_object_tagging(self, input: Option<Vec<S3Tag>>) -> Self
sourcepub fn get_new_object_tagging(&self) -> &Option<Vec<S3Tag>>
pub fn get_new_object_tagging(&self) -> &Option<Vec<S3Tag>>
sourcepub fn redirect_location(self, input: impl Into<String>) -> Self
pub fn redirect_location(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_redirect_location(self, input: Option<String>) -> Self
pub fn set_redirect_location(self, input: Option<String>) -> Self
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.
sourcepub fn get_redirect_location(&self) -> &Option<String>
pub fn get_redirect_location(&self) -> &Option<String>
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.
sourcepub fn requester_pays(self, input: bool) -> Self
pub fn requester_pays(self, input: bool) -> Self
sourcepub fn set_requester_pays(self, input: Option<bool>) -> Self
pub fn set_requester_pays(self, input: Option<bool>) -> Self
sourcepub fn get_requester_pays(&self) -> &Option<bool>
pub fn get_requester_pays(&self) -> &Option<bool>
sourcepub fn storage_class(self, input: S3StorageClass) -> Self
pub fn storage_class(self, input: S3StorageClass) -> Self
sourcepub fn set_storage_class(self, input: Option<S3StorageClass>) -> Self
pub fn set_storage_class(self, input: Option<S3StorageClass>) -> Self
sourcepub fn get_storage_class(&self) -> &Option<S3StorageClass>
pub fn get_storage_class(&self) -> &Option<S3StorageClass>
sourcepub fn un_modified_since_constraint(self, input: DateTime) -> Self
pub fn un_modified_since_constraint(self, input: DateTime) -> Self
sourcepub fn set_un_modified_since_constraint(self, input: Option<DateTime>) -> Self
pub fn set_un_modified_since_constraint(self, input: Option<DateTime>) -> Self
sourcepub fn get_un_modified_since_constraint(&self) -> &Option<DateTime>
pub fn get_un_modified_since_constraint(&self) -> &Option<DateTime>
sourcepub fn sse_aws_kms_key_id(self, input: impl Into<String>) -> Self
pub fn sse_aws_kms_key_id(self, input: impl Into<String>) -> Self
sourcepub fn set_sse_aws_kms_key_id(self, input: Option<String>) -> Self
pub fn set_sse_aws_kms_key_id(self, input: Option<String>) -> Self
sourcepub fn get_sse_aws_kms_key_id(&self) -> &Option<String>
pub fn get_sse_aws_kms_key_id(&self) -> &Option<String>
sourcepub fn target_key_prefix(self, input: impl Into<String>) -> Self
pub fn target_key_prefix(self, input: impl Into<String>) -> Self
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 the TargetKeyPrefix
property to Folder1
.
sourcepub fn set_target_key_prefix(self, input: Option<String>) -> Self
pub fn set_target_key_prefix(self, input: Option<String>) -> Self
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 the TargetKeyPrefix
property to Folder1
.
sourcepub fn get_target_key_prefix(&self) -> &Option<String>
pub fn get_target_key_prefix(&self) -> &Option<String>
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 the TargetKeyPrefix
property to Folder1
.
sourcepub fn object_lock_legal_hold_status(
self,
input: S3ObjectLockLegalHoldStatus
) -> Self
pub fn object_lock_legal_hold_status( self, input: S3ObjectLockLegalHoldStatus ) -> Self
The legal hold status to be applied to all objects in the Batch Operations job.
sourcepub fn set_object_lock_legal_hold_status(
self,
input: Option<S3ObjectLockLegalHoldStatus>
) -> Self
pub fn set_object_lock_legal_hold_status( self, input: Option<S3ObjectLockLegalHoldStatus> ) -> Self
The legal hold status to be applied to all objects in the Batch Operations job.
sourcepub fn get_object_lock_legal_hold_status(
&self
) -> &Option<S3ObjectLockLegalHoldStatus>
pub fn get_object_lock_legal_hold_status( &self ) -> &Option<S3ObjectLockLegalHoldStatus>
The legal hold status to be applied to all objects in the Batch Operations job.
sourcepub fn object_lock_mode(self, input: S3ObjectLockMode) -> Self
pub fn object_lock_mode(self, input: S3ObjectLockMode) -> Self
The retention mode to be applied to all objects in the Batch Operations job.
sourcepub fn set_object_lock_mode(self, input: Option<S3ObjectLockMode>) -> Self
pub fn set_object_lock_mode(self, input: Option<S3ObjectLockMode>) -> Self
The retention mode to be applied to all objects in the Batch Operations job.
sourcepub fn get_object_lock_mode(&self) -> &Option<S3ObjectLockMode>
pub fn get_object_lock_mode(&self) -> &Option<S3ObjectLockMode>
The retention mode to be applied to all objects in the Batch Operations job.
sourcepub fn object_lock_retain_until_date(self, input: DateTime) -> Self
pub fn object_lock_retain_until_date(self, input: DateTime) -> Self
The date when the applied object retention configuration expires on all objects in the Batch Operations job.
sourcepub fn set_object_lock_retain_until_date(self, input: Option<DateTime>) -> Self
pub fn set_object_lock_retain_until_date(self, input: Option<DateTime>) -> Self
The date when the applied object retention configuration expires on all objects in the Batch Operations job.
sourcepub fn get_object_lock_retain_until_date(&self) -> &Option<DateTime>
pub fn get_object_lock_retain_until_date(&self) -> &Option<DateTime>
The date when the applied object retention configuration expires on all objects in the Batch Operations job.
sourcepub fn bucket_key_enabled(self, input: bool) -> Self
pub fn bucket_key_enabled(self, input: bool) -> Self
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.
sourcepub fn set_bucket_key_enabled(self, input: Option<bool>) -> Self
pub fn set_bucket_key_enabled(self, input: Option<bool>) -> Self
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.
sourcepub fn get_bucket_key_enabled(&self) -> &Option<bool>
pub fn get_bucket_key_enabled(&self) -> &Option<bool>
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.
sourcepub fn checksum_algorithm(self, input: S3ChecksumAlgorithm) -> Self
pub fn checksum_algorithm(self, input: S3ChecksumAlgorithm) -> Self
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.
sourcepub fn set_checksum_algorithm(self, input: Option<S3ChecksumAlgorithm>) -> Self
pub fn set_checksum_algorithm(self, input: Option<S3ChecksumAlgorithm>) -> Self
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.
sourcepub fn get_checksum_algorithm(&self) -> &Option<S3ChecksumAlgorithm>
pub fn get_checksum_algorithm(&self) -> &Option<S3ChecksumAlgorithm>
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.
sourcepub fn build(self) -> S3CopyObjectOperation
pub fn build(self) -> S3CopyObjectOperation
Consumes the builder and constructs a S3CopyObjectOperation
.
Trait Implementations§
source§impl Clone for S3CopyObjectOperationBuilder
impl Clone for S3CopyObjectOperationBuilder
source§fn clone(&self) -> S3CopyObjectOperationBuilder
fn clone(&self) -> S3CopyObjectOperationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for S3CopyObjectOperationBuilder
impl Debug for S3CopyObjectOperationBuilder
source§impl Default for S3CopyObjectOperationBuilder
impl Default for S3CopyObjectOperationBuilder
source§fn default() -> S3CopyObjectOperationBuilder
fn default() -> S3CopyObjectOperationBuilder
source§impl PartialEq for S3CopyObjectOperationBuilder
impl PartialEq for S3CopyObjectOperationBuilder
source§fn eq(&self, other: &S3CopyObjectOperationBuilder) -> bool
fn eq(&self, other: &S3CopyObjectOperationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.