#[allow(clippy::needless_question_mark)]
pub fn de_transit_gateway_peering_attachment_options(
decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
) -> ::std::result::Result<crate::types::TransitGatewayPeeringAttachmentOptions, ::aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::types::TransitGatewayPeeringAttachmentOptions::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("dynamicRouting") => {
let var_1 =
Some(
Result::<crate::types::DynamicRoutingValue, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::types::DynamicRoutingValue::from(
::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_dynamic_routing(var_1);
}
,
_ => {}
}
}
Ok(builder.build())
}