Struct aws_sdk_s3::model::analytics_and_operator::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AnalyticsAndOperator
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn prefix(self, input: impl Into<String>) -> Self
pub fn prefix(self, input: impl Into<String>) -> Self
The prefix to use when evaluating an AND predicate: The prefix that an object must have to be included in the metrics results.
sourcepub fn set_prefix(self, input: Option<String>) -> Self
pub fn set_prefix(self, input: Option<String>) -> Self
The prefix to use when evaluating an AND predicate: The prefix that an object must have to be included in the metrics results.
Examples found in repository?
src/xml_deser.rs (line 6893)
6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917
pub fn deser_structure_crate_model_analytics_and_operator(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AnalyticsAndOperator, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AnalyticsAndOperator::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Prefix") /* Prefix com.amazonaws.s3#AnalyticsAndOperator$Prefix */ => {
let var_377 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_prefix(var_377);
}
,
s if s.matches("Tag") /* Tags com.amazonaws.s3#AnalyticsAndOperator$Tags */ => {
let var_378 =
Some(
Result::<std::vec::Vec<crate::model::Tag>, aws_smithy_xml::decode::XmlDecodeError>::Ok({
let mut list_379 = builder.tags.take().unwrap_or_default();
list_379.push(
crate::xml_deser::deser_structure_crate_model_tag(&mut tag)
?
);
list_379
})
?
)
;
builder = builder.set_tags(var_378);
}
,
_ => {}
}
}
Ok(builder.build())
}
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The list of tags to use when evaluating an AND predicate.
The list of tags to use when evaluating an AND predicate.
Examples found in repository?
src/xml_deser.rs (line 6910)
6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917
pub fn deser_structure_crate_model_analytics_and_operator(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AnalyticsAndOperator, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AnalyticsAndOperator::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Prefix") /* Prefix com.amazonaws.s3#AnalyticsAndOperator$Prefix */ => {
let var_377 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_prefix(var_377);
}
,
s if s.matches("Tag") /* Tags com.amazonaws.s3#AnalyticsAndOperator$Tags */ => {
let var_378 =
Some(
Result::<std::vec::Vec<crate::model::Tag>, aws_smithy_xml::decode::XmlDecodeError>::Ok({
let mut list_379 = builder.tags.take().unwrap_or_default();
list_379.push(
crate::xml_deser::deser_structure_crate_model_tag(&mut tag)
?
);
list_379
})
?
)
;
builder = builder.set_tags(var_378);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> AnalyticsAndOperator
pub fn build(self) -> AnalyticsAndOperator
Consumes the builder and constructs a AnalyticsAndOperator
.
Examples found in repository?
src/xml_deser.rs (line 6916)
6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917
pub fn deser_structure_crate_model_analytics_and_operator(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AnalyticsAndOperator, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AnalyticsAndOperator::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Prefix") /* Prefix com.amazonaws.s3#AnalyticsAndOperator$Prefix */ => {
let var_377 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_prefix(var_377);
}
,
s if s.matches("Tag") /* Tags com.amazonaws.s3#AnalyticsAndOperator$Tags */ => {
let var_378 =
Some(
Result::<std::vec::Vec<crate::model::Tag>, aws_smithy_xml::decode::XmlDecodeError>::Ok({
let mut list_379 = builder.tags.take().unwrap_or_default();
list_379.push(
crate::xml_deser::deser_structure_crate_model_tag(&mut tag)
?
);
list_379
})
?
)
;
builder = builder.set_tags(var_378);
}
,
_ => {}
}
}
Ok(builder.build())
}