#[non_exhaustive]pub struct ResourceDataSyncS3DestinationBuilder { /* private fields */ }
Expand description
A builder for ResourceDataSyncS3Destination
.
Implementations§
source§impl ResourceDataSyncS3DestinationBuilder
impl ResourceDataSyncS3DestinationBuilder
sourcepub fn bucket_name(self, input: impl Into<String>) -> Self
pub fn bucket_name(self, input: impl Into<String>) -> Self
The name of the S3 bucket where the aggregated data is stored.
This field is required.sourcepub fn set_bucket_name(self, input: Option<String>) -> Self
pub fn set_bucket_name(self, input: Option<String>) -> Self
The name of the S3 bucket where the aggregated data is stored.
sourcepub fn get_bucket_name(&self) -> &Option<String>
pub fn get_bucket_name(&self) -> &Option<String>
The name of the S3 bucket where the aggregated data is stored.
sourcepub fn set_prefix(self, input: Option<String>) -> Self
pub fn set_prefix(self, input: Option<String>) -> Self
An Amazon S3 prefix for the bucket.
sourcepub fn get_prefix(&self) -> &Option<String>
pub fn get_prefix(&self) -> &Option<String>
An Amazon S3 prefix for the bucket.
sourcepub fn sync_format(self, input: ResourceDataSyncS3Format) -> Self
pub fn sync_format(self, input: ResourceDataSyncS3Format) -> Self
A supported sync format. The following format is currently supported: JsonSerDe
This field is required.sourcepub fn set_sync_format(self, input: Option<ResourceDataSyncS3Format>) -> Self
pub fn set_sync_format(self, input: Option<ResourceDataSyncS3Format>) -> Self
A supported sync format. The following format is currently supported: JsonSerDe
sourcepub fn get_sync_format(&self) -> &Option<ResourceDataSyncS3Format>
pub fn get_sync_format(&self) -> &Option<ResourceDataSyncS3Format>
A supported sync format. The following format is currently supported: JsonSerDe
sourcepub fn region(self, input: impl Into<String>) -> Self
pub fn region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region with the S3 bucket targeted by the resource data sync.
This field is required.sourcepub fn set_region(self, input: Option<String>) -> Self
pub fn set_region(self, input: Option<String>) -> Self
The Amazon Web Services Region with the S3 bucket targeted by the resource data sync.
sourcepub fn get_region(&self) -> &Option<String>
pub fn get_region(&self) -> &Option<String>
The Amazon Web Services Region with the S3 bucket targeted by the resource data sync.
sourcepub fn awskms_key_arn(self, input: impl Into<String>) -> Self
pub fn awskms_key_arn(self, input: impl Into<String>) -> Self
The ARN of an encryption key for a destination in Amazon S3. Must belong to the same Region as the destination S3 bucket.
sourcepub fn set_awskms_key_arn(self, input: Option<String>) -> Self
pub fn set_awskms_key_arn(self, input: Option<String>) -> Self
The ARN of an encryption key for a destination in Amazon S3. Must belong to the same Region as the destination S3 bucket.
sourcepub fn get_awskms_key_arn(&self) -> &Option<String>
pub fn get_awskms_key_arn(&self) -> &Option<String>
The ARN of an encryption key for a destination in Amazon S3. Must belong to the same Region as the destination S3 bucket.
sourcepub fn destination_data_sharing(
self,
input: ResourceDataSyncDestinationDataSharing
) -> Self
pub fn destination_data_sharing( self, input: ResourceDataSyncDestinationDataSharing ) -> Self
Enables destination data sharing. By default, this field is null
.
sourcepub fn set_destination_data_sharing(
self,
input: Option<ResourceDataSyncDestinationDataSharing>
) -> Self
pub fn set_destination_data_sharing( self, input: Option<ResourceDataSyncDestinationDataSharing> ) -> Self
Enables destination data sharing. By default, this field is null
.
sourcepub fn get_destination_data_sharing(
&self
) -> &Option<ResourceDataSyncDestinationDataSharing>
pub fn get_destination_data_sharing( &self ) -> &Option<ResourceDataSyncDestinationDataSharing>
Enables destination data sharing. By default, this field is null
.
sourcepub fn build(self) -> Result<ResourceDataSyncS3Destination, BuildError>
pub fn build(self) -> Result<ResourceDataSyncS3Destination, BuildError>
Consumes the builder and constructs a ResourceDataSyncS3Destination
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResourceDataSyncS3DestinationBuilder
impl Clone for ResourceDataSyncS3DestinationBuilder
source§fn clone(&self) -> ResourceDataSyncS3DestinationBuilder
fn clone(&self) -> ResourceDataSyncS3DestinationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResourceDataSyncS3DestinationBuilder
impl Default for ResourceDataSyncS3DestinationBuilder
source§fn default() -> ResourceDataSyncS3DestinationBuilder
fn default() -> ResourceDataSyncS3DestinationBuilder
source§impl PartialEq for ResourceDataSyncS3DestinationBuilder
impl PartialEq for ResourceDataSyncS3DestinationBuilder
source§fn eq(&self, other: &ResourceDataSyncS3DestinationBuilder) -> bool
fn eq(&self, other: &ResourceDataSyncS3DestinationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.