#[non_exhaustive]pub struct PrefixLevelStorageMetrics { /* private fields */ }
Expand description
A container for the prefix-level storage metrics for S3 Storage Lens.
Implementations§
source§impl PrefixLevelStorageMetrics
impl PrefixLevelStorageMetrics
sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
A container for whether prefix-level storage metrics are enabled.
sourcepub fn selection_criteria(&self) -> Option<&SelectionCriteria>
pub fn selection_criteria(&self) -> Option<&SelectionCriteria>
source§impl PrefixLevelStorageMetrics
impl PrefixLevelStorageMetrics
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PrefixLevelStorageMetrics
.
Examples found in repository?
src/xml_deser.rs (line 6723)
6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755
pub fn deser_structure_crate_model_prefix_level_storage_metrics(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PrefixLevelStorageMetrics, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PrefixLevelStorageMetrics::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("IsEnabled") /* IsEnabled com.amazonaws.s3control#PrefixLevelStorageMetrics$IsEnabled */ => {
let var_315 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.s3control#IsEnabled`)"))
}
?
)
;
builder = builder.set_is_enabled(var_315);
}
,
s if s.matches("SelectionCriteria") /* SelectionCriteria com.amazonaws.s3control#PrefixLevelStorageMetrics$SelectionCriteria */ => {
let var_316 =
Some(
crate::xml_deser::deser_structure_crate_model_selection_criteria(&mut tag)
?
)
;
builder = builder.set_selection_criteria(var_316);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for PrefixLevelStorageMetrics
impl Clone for PrefixLevelStorageMetrics
source§fn clone(&self) -> PrefixLevelStorageMetrics
fn clone(&self) -> PrefixLevelStorageMetrics
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more