Struct aws_sdk_ec2::model::ike_versions_list_value::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for IkeVersionsListValue
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
The IKE version.
Examples found in repository?
src/xml_deser.rs (line 70680)
70663 70664 70665 70666 70667 70668 70669 70670 70671 70672 70673 70674 70675 70676 70677 70678 70679 70680 70681 70682 70683 70684 70685 70686 70687
pub fn deser_structure_crate_model_ike_versions_list_value(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IkeVersionsListValue, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IkeVersionsListValue::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("value") /* Value com.amazonaws.ec2#IKEVersionsListValue$Value */ => {
let var_3492 =
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_3492);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> IkeVersionsListValue
pub fn build(self) -> IkeVersionsListValue
Consumes the builder and constructs a IkeVersionsListValue
.
Examples found in repository?
src/xml_deser.rs (line 70686)
70663 70664 70665 70666 70667 70668 70669 70670 70671 70672 70673 70674 70675 70676 70677 70678 70679 70680 70681 70682 70683 70684 70685 70686 70687
pub fn deser_structure_crate_model_ike_versions_list_value(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IkeVersionsListValue, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IkeVersionsListValue::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("value") /* Value com.amazonaws.ec2#IKEVersionsListValue$Value */ => {
let var_3492 =
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_3492);
}
,
_ => {}
}
}
Ok(builder.build())
}