Struct aws_sdk_s3control::model::s3_copy_object_operation::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for S3CopyObjectOperation
Implementations
sourceimpl Builder
impl Builder
sourcepub fn target_resource(self, input: impl Into<String>) -> Self
pub fn target_resource(self, input: impl Into<String>) -> Self
Specifies the destination bucket ARN for the batch copy operation. For example, to copy objects to a bucket named "destinationBucket", set the TargetResource 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 ARN for the batch copy operation. For example, to copy objects to a bucket named "destinationBucket", set the TargetResource 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 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 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 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 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 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 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 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 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 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 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 target_key_prefix(self, input: impl Into<String>) -> Self
pub fn target_key_prefix(self, input: impl Into<String>) -> Self
Specifies the folder prefix into which you would like the objects to be copied. For example, to copy objects into a folder named Folder1
in the destination bucket, set the TargetKeyPrefix 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 into which you would like the objects to be copied. For example, to copy objects into a folder named Folder1
in the destination bucket, set the TargetKeyPrefix 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 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 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 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 checksum_algorithm(self, input: S3ChecksumAlgorithm) -> Self
pub fn checksum_algorithm(self, input: S3ChecksumAlgorithm) -> Self
Indicates the algorithm 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 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
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more