#[allow(clippy::needless_question_mark)]
pub fn de_instance_event_window_association_target(
decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
depth: u32,
) -> ::std::result::Result<crate::types::InstanceEventWindowAssociationTarget, ::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::InstanceEventWindowAssociationTarget::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("instanceIdSet") => {
let var_1 =
Some(
crate::protocol_serde::shape_instance_id_list::de_instance_id_list(&mut tag, depth + 1)
?
)
;
builder = builder.set_instance_ids(var_1);
}
,
s if s.matches("tagSet") => {
let var_2 =
Some(
crate::protocol_serde::shape_tag_list::de_tag_list(&mut tag, depth + 1)
?
)
;
builder = builder.set_tags(var_2);
}
,
s if s.matches("dedicatedHostIdSet") => {
let var_3 =
Some(
crate::protocol_serde::shape_dedicated_host_id_list::de_dedicated_host_id_list(&mut tag, depth + 1)
?
)
;
builder = builder.set_dedicated_host_ids(var_3);
}
,
_ => {}
}
}
Ok(builder.build())
}