Struct aws_sdk_s3::types::builders::DestinationBuilder
source · #[non_exhaustive]pub struct DestinationBuilder { /* private fields */ }
Expand description
A builder for Destination
.
Implementations§
source§impl DestinationBuilder
impl DestinationBuilder
sourcepub fn bucket(self, input: impl Into<String>) -> Self
pub fn bucket(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.
This field is required.sourcepub fn set_bucket(self, input: Option<String>) -> Self
pub fn set_bucket(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.
sourcepub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.
sourcepub fn account(self, input: impl Into<String>) -> Self
pub fn account(self, input: impl Into<String>) -> Self
Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the Amazon Web Services account that owns the destination bucket by specifying the AccessControlTranslation
property, this is the account ID of the destination bucket owner. For more information, see Replication Additional Configuration: Changing the Replica Owner in the Amazon S3 User Guide.
sourcepub fn set_account(self, input: Option<String>) -> Self
pub fn set_account(self, input: Option<String>) -> Self
Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the Amazon Web Services account that owns the destination bucket by specifying the AccessControlTranslation
property, this is the account ID of the destination bucket owner. For more information, see Replication Additional Configuration: Changing the Replica Owner in the Amazon S3 User Guide.
sourcepub fn get_account(&self) -> &Option<String>
pub fn get_account(&self) -> &Option<String>
Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the Amazon Web Services account that owns the destination bucket by specifying the AccessControlTranslation
property, this is the account ID of the destination bucket owner. For more information, see Replication Additional Configuration: Changing the Replica Owner in the Amazon S3 User Guide.
sourcepub fn storage_class(self, input: StorageClass) -> Self
pub fn storage_class(self, input: StorageClass) -> Self
The storage class to use when replicating objects, such as S3 Standard or reduced redundancy. By default, Amazon S3 uses the storage class of the source object to create the object replica.
For valid values, see the StorageClass
element of the PUT Bucket replication action in the Amazon S3 API Reference.
sourcepub fn set_storage_class(self, input: Option<StorageClass>) -> Self
pub fn set_storage_class(self, input: Option<StorageClass>) -> Self
The storage class to use when replicating objects, such as S3 Standard or reduced redundancy. By default, Amazon S3 uses the storage class of the source object to create the object replica.
For valid values, see the StorageClass
element of the PUT Bucket replication action in the Amazon S3 API Reference.
sourcepub fn get_storage_class(&self) -> &Option<StorageClass>
pub fn get_storage_class(&self) -> &Option<StorageClass>
The storage class to use when replicating objects, such as S3 Standard or reduced redundancy. By default, Amazon S3 uses the storage class of the source object to create the object replica.
For valid values, see the StorageClass
element of the PUT Bucket replication action in the Amazon S3 API Reference.
sourcepub fn access_control_translation(self, input: AccessControlTranslation) -> Self
pub fn access_control_translation(self, input: AccessControlTranslation) -> Self
Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the Amazon Web Services account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same Amazon Web Services account that owns the source object.
sourcepub fn set_access_control_translation(
self,
input: Option<AccessControlTranslation>,
) -> Self
pub fn set_access_control_translation( self, input: Option<AccessControlTranslation>, ) -> Self
Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the Amazon Web Services account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same Amazon Web Services account that owns the source object.
sourcepub fn get_access_control_translation(
&self,
) -> &Option<AccessControlTranslation>
pub fn get_access_control_translation( &self, ) -> &Option<AccessControlTranslation>
Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the Amazon Web Services account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same Amazon Web Services account that owns the source object.
sourcepub fn encryption_configuration(self, input: EncryptionConfiguration) -> Self
pub fn encryption_configuration(self, input: EncryptionConfiguration) -> Self
A container that provides information about encryption. If SourceSelectionCriteria
is specified, you must specify this element.
sourcepub fn set_encryption_configuration(
self,
input: Option<EncryptionConfiguration>,
) -> Self
pub fn set_encryption_configuration( self, input: Option<EncryptionConfiguration>, ) -> Self
A container that provides information about encryption. If SourceSelectionCriteria
is specified, you must specify this element.
sourcepub fn get_encryption_configuration(&self) -> &Option<EncryptionConfiguration>
pub fn get_encryption_configuration(&self) -> &Option<EncryptionConfiguration>
A container that provides information about encryption. If SourceSelectionCriteria
is specified, you must specify this element.
sourcepub fn replication_time(self, input: ReplicationTime) -> Self
pub fn replication_time(self, input: ReplicationTime) -> Self
A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with a Metrics
block.
sourcepub fn set_replication_time(self, input: Option<ReplicationTime>) -> Self
pub fn set_replication_time(self, input: Option<ReplicationTime>) -> Self
A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with a Metrics
block.
sourcepub fn get_replication_time(&self) -> &Option<ReplicationTime>
pub fn get_replication_time(&self) -> &Option<ReplicationTime>
A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with a Metrics
block.
sourcepub fn metrics(self, input: Metrics) -> Self
pub fn metrics(self, input: Metrics) -> Self
A container specifying replication metrics-related settings enabling replication metrics and events.
sourcepub fn set_metrics(self, input: Option<Metrics>) -> Self
pub fn set_metrics(self, input: Option<Metrics>) -> Self
A container specifying replication metrics-related settings enabling replication metrics and events.
sourcepub fn get_metrics(&self) -> &Option<Metrics>
pub fn get_metrics(&self) -> &Option<Metrics>
A container specifying replication metrics-related settings enabling replication metrics and events.
sourcepub fn build(self) -> Result<Destination, BuildError>
pub fn build(self) -> Result<Destination, BuildError>
Consumes the builder and constructs a Destination
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DestinationBuilder
impl Clone for DestinationBuilder
source§fn clone(&self) -> DestinationBuilder
fn clone(&self) -> DestinationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DestinationBuilder
impl Debug for DestinationBuilder
source§impl Default for DestinationBuilder
impl Default for DestinationBuilder
source§fn default() -> DestinationBuilder
fn default() -> DestinationBuilder
source§impl PartialEq for DestinationBuilder
impl PartialEq for DestinationBuilder
impl StructuralPartialEq for DestinationBuilder
Auto Trait Implementations§
impl Freeze for DestinationBuilder
impl RefUnwindSafe for DestinationBuilder
impl Send for DestinationBuilder
impl Sync for DestinationBuilder
impl Unpin for DestinationBuilder
impl UnwindSafe for DestinationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)