#[allow(clippy::needless_question_mark)]
pub fn de_valid_db_instance_modifications_message(
decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
depth: u32,
) -> ::std::result::Result<crate::types::ValidDbInstanceModificationsMessage, ::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::ValidDbInstanceModificationsMessage::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Storage") => {
let var_1 =
Some(
crate::protocol_serde::shape_valid_storage_options_list::de_valid_storage_options_list(&mut tag, depth + 1)
?
)
;
builder = builder.set_storage(var_1);
}
,
s if s.matches("ValidProcessorFeatures") => {
let var_2 =
Some(
crate::protocol_serde::shape_available_processor_feature_list::de_available_processor_feature_list(&mut tag, depth + 1)
?
)
;
builder = builder.set_valid_processor_features(var_2);
}
,
s if s.matches("SupportsDedicatedLogVolume") => {
let var_3 =
Some(
{
<bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.rds#Boolean`)"))
}
?
)
;
builder = builder.set_supports_dedicated_log_volume(var_3);
}
,
s if s.matches("AdditionalStorage") => {
let var_4 =
Some(
crate::protocol_serde::shape_valid_additional_storage_options::de_valid_additional_storage_options(&mut tag, depth + 1)
?
)
;
builder = builder.set_additional_storage(var_4);
}
,
_ => {}
}
}
Ok(builder.build())
}