Struct aws_sdk_ec2::model::account_attribute_value::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AccountAttributeValue
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn attribute_value(self, input: impl Into<String>) -> Self
pub fn attribute_value(self, input: impl Into<String>) -> Self
The value of the attribute.
sourcepub fn set_attribute_value(self, input: Option<String>) -> Self
pub fn set_attribute_value(self, input: Option<String>) -> Self
The value of the attribute.
Examples found in repository?
src/xml_deser.rs (line 64819)
64802 64803 64804 64805 64806 64807 64808 64809 64810 64811 64812 64813 64814 64815 64816 64817 64818 64819 64820 64821 64822 64823 64824 64825 64826
pub fn deser_structure_crate_model_account_attribute_value(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AccountAttributeValue, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AccountAttributeValue::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("attributeValue") /* AttributeValue com.amazonaws.ec2#AccountAttributeValue$AttributeValue */ => {
let var_3196 =
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_attribute_value(var_3196);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> AccountAttributeValue
pub fn build(self) -> AccountAttributeValue
Consumes the builder and constructs a AccountAttributeValue
.
Examples found in repository?
src/xml_deser.rs (line 64825)
64802 64803 64804 64805 64806 64807 64808 64809 64810 64811 64812 64813 64814 64815 64816 64817 64818 64819 64820 64821 64822 64823 64824 64825 64826
pub fn deser_structure_crate_model_account_attribute_value(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AccountAttributeValue, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AccountAttributeValue::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("attributeValue") /* AttributeValue com.amazonaws.ec2#AccountAttributeValue$AttributeValue */ => {
let var_3196 =
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_attribute_value(var_3196);
}
,
_ => {}
}
}
Ok(builder.build())
}