Struct aws_sdk_s3control::model::storage_lens_data_export::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for StorageLensDataExport
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn s3_bucket_destination(self, input: S3BucketDestination) -> Self
pub fn s3_bucket_destination(self, input: S3BucketDestination) -> Self
A container for the bucket where the S3 Storage Lens metrics export will be located.
This bucket must be located in the same Region as the storage lens configuration.
sourcepub fn set_s3_bucket_destination(
self,
input: Option<S3BucketDestination>
) -> Self
pub fn set_s3_bucket_destination(
self,
input: Option<S3BucketDestination>
) -> Self
A container for the bucket where the S3 Storage Lens metrics export will be located.
This bucket must be located in the same Region as the storage lens configuration.
Examples found in repository?
src/xml_deser.rs (line 4311)
4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328
pub fn deser_structure_crate_model_storage_lens_data_export(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StorageLensDataExport, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StorageLensDataExport::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("S3BucketDestination") /* S3BucketDestination com.amazonaws.s3control#StorageLensDataExport$S3BucketDestination */ => {
let var_194 =
Some(
crate::xml_deser::deser_structure_crate_model_s3_bucket_destination(&mut tag)
?
)
;
builder = builder.set_s3_bucket_destination(var_194);
}
,
s if s.matches("CloudWatchMetrics") /* CloudWatchMetrics com.amazonaws.s3control#StorageLensDataExport$CloudWatchMetrics */ => {
let var_195 =
Some(
crate::xml_deser::deser_structure_crate_model_cloud_watch_metrics(&mut tag)
?
)
;
builder = builder.set_cloud_watch_metrics(var_195);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn cloud_watch_metrics(self, input: CloudWatchMetrics) -> Self
pub fn cloud_watch_metrics(self, input: CloudWatchMetrics) -> Self
A container for enabling Amazon CloudWatch publishing for S3 Storage Lens metrics.
sourcepub fn set_cloud_watch_metrics(self, input: Option<CloudWatchMetrics>) -> Self
pub fn set_cloud_watch_metrics(self, input: Option<CloudWatchMetrics>) -> Self
A container for enabling Amazon CloudWatch publishing for S3 Storage Lens metrics.
Examples found in repository?
src/xml_deser.rs (line 4321)
4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328
pub fn deser_structure_crate_model_storage_lens_data_export(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StorageLensDataExport, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StorageLensDataExport::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("S3BucketDestination") /* S3BucketDestination com.amazonaws.s3control#StorageLensDataExport$S3BucketDestination */ => {
let var_194 =
Some(
crate::xml_deser::deser_structure_crate_model_s3_bucket_destination(&mut tag)
?
)
;
builder = builder.set_s3_bucket_destination(var_194);
}
,
s if s.matches("CloudWatchMetrics") /* CloudWatchMetrics com.amazonaws.s3control#StorageLensDataExport$CloudWatchMetrics */ => {
let var_195 =
Some(
crate::xml_deser::deser_structure_crate_model_cloud_watch_metrics(&mut tag)
?
)
;
builder = builder.set_cloud_watch_metrics(var_195);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> StorageLensDataExport
pub fn build(self) -> StorageLensDataExport
Consumes the builder and constructs a StorageLensDataExport
.
Examples found in repository?
src/xml_deser.rs (line 4327)
4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328
pub fn deser_structure_crate_model_storage_lens_data_export(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StorageLensDataExport, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StorageLensDataExport::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("S3BucketDestination") /* S3BucketDestination com.amazonaws.s3control#StorageLensDataExport$S3BucketDestination */ => {
let var_194 =
Some(
crate::xml_deser::deser_structure_crate_model_s3_bucket_destination(&mut tag)
?
)
;
builder = builder.set_s3_bucket_destination(var_194);
}
,
s if s.matches("CloudWatchMetrics") /* CloudWatchMetrics com.amazonaws.s3control#StorageLensDataExport$CloudWatchMetrics */ => {
let var_195 =
Some(
crate::xml_deser::deser_structure_crate_model_cloud_watch_metrics(&mut tag)
?
)
;
builder = builder.set_cloud_watch_metrics(var_195);
}
,
_ => {}
}
}
Ok(builder.build())
}