pub struct Builder { /* private fields */ }
Expand description
A builder for IntelligentTieringConfiguration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID used to identify the S3 Intelligent-Tiering configuration.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID used to identify the S3 Intelligent-Tiering configuration.
Examples found in repository?
3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016
pub fn deser_structure_crate_model_intelligent_tiering_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IntelligentTieringConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IntelligentTieringConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Id") /* Id com.amazonaws.s3#IntelligentTieringConfiguration$Id */ => {
let var_217 =
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_id(var_217);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3#IntelligentTieringConfiguration$Filter */ => {
let var_218 =
Some(
crate::xml_deser::deser_structure_crate_model_intelligent_tiering_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_218);
}
,
s if s.matches("Status") /* Status com.amazonaws.s3#IntelligentTieringConfiguration$Status */ => {
let var_219 =
Some(
Result::<crate::model::IntelligentTieringStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IntelligentTieringStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_219);
}
,
s if s.matches("Tiering") /* Tierings com.amazonaws.s3#IntelligentTieringConfiguration$Tierings */ => {
let var_220 =
Some(
Result::<std::vec::Vec<crate::model::Tiering>, aws_smithy_xml::decode::XmlDecodeError>::Ok({
let mut list_221 = builder.tierings.take().unwrap_or_default();
list_221.push(
crate::xml_deser::deser_structure_crate_model_tiering(&mut tag)
?
);
list_221
})
?
)
;
builder = builder.set_tierings(var_220);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn filter(self, input: IntelligentTieringFilter) -> Self
pub fn filter(self, input: IntelligentTieringFilter) -> Self
Specifies a bucket filter. The configuration only includes objects that meet the filter's criteria.
sourcepub fn set_filter(self, input: Option<IntelligentTieringFilter>) -> Self
pub fn set_filter(self, input: Option<IntelligentTieringFilter>) -> Self
Specifies a bucket filter. The configuration only includes objects that meet the filter's criteria.
Examples found in repository?
3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016
pub fn deser_structure_crate_model_intelligent_tiering_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IntelligentTieringConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IntelligentTieringConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Id") /* Id com.amazonaws.s3#IntelligentTieringConfiguration$Id */ => {
let var_217 =
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_id(var_217);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3#IntelligentTieringConfiguration$Filter */ => {
let var_218 =
Some(
crate::xml_deser::deser_structure_crate_model_intelligent_tiering_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_218);
}
,
s if s.matches("Status") /* Status com.amazonaws.s3#IntelligentTieringConfiguration$Status */ => {
let var_219 =
Some(
Result::<crate::model::IntelligentTieringStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IntelligentTieringStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_219);
}
,
s if s.matches("Tiering") /* Tierings com.amazonaws.s3#IntelligentTieringConfiguration$Tierings */ => {
let var_220 =
Some(
Result::<std::vec::Vec<crate::model::Tiering>, aws_smithy_xml::decode::XmlDecodeError>::Ok({
let mut list_221 = builder.tierings.take().unwrap_or_default();
list_221.push(
crate::xml_deser::deser_structure_crate_model_tiering(&mut tag)
?
);
list_221
})
?
)
;
builder = builder.set_tierings(var_220);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn status(self, input: IntelligentTieringStatus) -> Self
pub fn status(self, input: IntelligentTieringStatus) -> Self
Specifies the status of the configuration.
sourcepub fn set_status(self, input: Option<IntelligentTieringStatus>) -> Self
pub fn set_status(self, input: Option<IntelligentTieringStatus>) -> Self
Specifies the status of the configuration.
Examples found in repository?
3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016
pub fn deser_structure_crate_model_intelligent_tiering_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IntelligentTieringConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IntelligentTieringConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Id") /* Id com.amazonaws.s3#IntelligentTieringConfiguration$Id */ => {
let var_217 =
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_id(var_217);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3#IntelligentTieringConfiguration$Filter */ => {
let var_218 =
Some(
crate::xml_deser::deser_structure_crate_model_intelligent_tiering_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_218);
}
,
s if s.matches("Status") /* Status com.amazonaws.s3#IntelligentTieringConfiguration$Status */ => {
let var_219 =
Some(
Result::<crate::model::IntelligentTieringStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IntelligentTieringStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_219);
}
,
s if s.matches("Tiering") /* Tierings com.amazonaws.s3#IntelligentTieringConfiguration$Tierings */ => {
let var_220 =
Some(
Result::<std::vec::Vec<crate::model::Tiering>, aws_smithy_xml::decode::XmlDecodeError>::Ok({
let mut list_221 = builder.tierings.take().unwrap_or_default();
list_221.push(
crate::xml_deser::deser_structure_crate_model_tiering(&mut tag)
?
);
list_221
})
?
)
;
builder = builder.set_tierings(var_220);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn tierings(self, input: Tiering) -> Self
pub fn tierings(self, input: Tiering) -> Self
Appends an item to tierings
.
To override the contents of this collection use set_tierings
.
Specifies the S3 Intelligent-Tiering storage class tier of the configuration.
sourcepub fn set_tierings(self, input: Option<Vec<Tiering>>) -> Self
pub fn set_tierings(self, input: Option<Vec<Tiering>>) -> Self
Specifies the S3 Intelligent-Tiering storage class tier of the configuration.
Examples found in repository?
3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016
pub fn deser_structure_crate_model_intelligent_tiering_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IntelligentTieringConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IntelligentTieringConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Id") /* Id com.amazonaws.s3#IntelligentTieringConfiguration$Id */ => {
let var_217 =
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_id(var_217);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3#IntelligentTieringConfiguration$Filter */ => {
let var_218 =
Some(
crate::xml_deser::deser_structure_crate_model_intelligent_tiering_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_218);
}
,
s if s.matches("Status") /* Status com.amazonaws.s3#IntelligentTieringConfiguration$Status */ => {
let var_219 =
Some(
Result::<crate::model::IntelligentTieringStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IntelligentTieringStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_219);
}
,
s if s.matches("Tiering") /* Tierings com.amazonaws.s3#IntelligentTieringConfiguration$Tierings */ => {
let var_220 =
Some(
Result::<std::vec::Vec<crate::model::Tiering>, aws_smithy_xml::decode::XmlDecodeError>::Ok({
let mut list_221 = builder.tierings.take().unwrap_or_default();
list_221.push(
crate::xml_deser::deser_structure_crate_model_tiering(&mut tag)
?
);
list_221
})
?
)
;
builder = builder.set_tierings(var_220);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> IntelligentTieringConfiguration
pub fn build(self) -> IntelligentTieringConfiguration
Consumes the builder and constructs a IntelligentTieringConfiguration
.
Examples found in repository?
3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016
pub fn deser_structure_crate_model_intelligent_tiering_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IntelligentTieringConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IntelligentTieringConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Id") /* Id com.amazonaws.s3#IntelligentTieringConfiguration$Id */ => {
let var_217 =
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_id(var_217);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3#IntelligentTieringConfiguration$Filter */ => {
let var_218 =
Some(
crate::xml_deser::deser_structure_crate_model_intelligent_tiering_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_218);
}
,
s if s.matches("Status") /* Status com.amazonaws.s3#IntelligentTieringConfiguration$Status */ => {
let var_219 =
Some(
Result::<crate::model::IntelligentTieringStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IntelligentTieringStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_219);
}
,
s if s.matches("Tiering") /* Tierings com.amazonaws.s3#IntelligentTieringConfiguration$Tierings */ => {
let var_220 =
Some(
Result::<std::vec::Vec<crate::model::Tiering>, aws_smithy_xml::decode::XmlDecodeError>::Ok({
let mut list_221 = builder.tierings.take().unwrap_or_default();
list_221.push(
crate::xml_deser::deser_structure_crate_model_tiering(&mut tag)
?
);
list_221
})
?
)
;
builder = builder.set_tierings(var_220);
}
,
_ => {}
}
}
Ok(builder.build())
}