#[allow(clippy::needless_question_mark)]
pub fn de_health_check_path_response_object(
decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
depth: u32,
) -> ::std::result::Result<crate::types::HealthCheckPathResponseObject, ::aws_smithy_xml::decode::XmlDecodeError> {
if depth >= 128u32 {
return Err(::aws_smithy_xml::decode::XmlDecodeError::custom("maximum nesting depth exceeded"));
}
#[allow(unused_mut)]
let mut builder = crate::types::HealthCheckPathResponseObject::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("source") => {
let var_1 =
Some(
crate::protocol_serde::shape_health_check_path_source_response_object::de_health_check_path_source_response_object(&mut tag, depth + 1)
?
)
;
builder = builder.set_source(var_1);
}
,
s if s.matches("destinationSet") => {
let var_2 =
Some(
crate::protocol_serde::shape_health_check_path_destination_response_list::de_health_check_path_destination_response_list(&mut tag, depth + 1)
?
)
;
builder = builder.set_destinations(var_2);
}
,
_ => {}
}
}
Ok(builder.build())
}