Struct aws_sdk_ec2::model::attribute_value::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AttributeValue
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
The attribute value. The value is case-sensitive.
sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
The attribute value. The value is case-sensitive.
Examples found in repository?
src/xml_deser.rs (line 33600)
33583 33584 33585 33586 33587 33588 33589 33590 33591 33592 33593 33594 33595 33596 33597 33598 33599 33600 33601 33602 33603 33604 33605 33606 33607
pub fn deser_structure_crate_model_attribute_value(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AttributeValue, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AttributeValue::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("value") /* Value com.amazonaws.ec2#AttributeValue$Value */ => {
let var_1476 =
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_value(var_1476);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> AttributeValue
pub fn build(self) -> AttributeValue
Consumes the builder and constructs a AttributeValue
.
Examples found in repository?
src/xml_deser.rs (line 33606)
33583 33584 33585 33586 33587 33588 33589 33590 33591 33592 33593 33594 33595 33596 33597 33598 33599 33600 33601 33602 33603 33604 33605 33606 33607
pub fn deser_structure_crate_model_attribute_value(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AttributeValue, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AttributeValue::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("value") /* Value com.amazonaws.ec2#AttributeValue$Value */ => {
let var_1476 =
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_value(var_1476);
}
,
_ => {}
}
}
Ok(builder.build())
}