pub fn ser_modify_ipam_policy_allocation_rules_input_input_input(
input: &crate::operation::modify_ipam_policy_allocation_rules::ModifyIpamPolicyAllocationRulesInput,
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
let mut out = String::new();
#[allow(unused_mut)]
let mut writer = ::aws_smithy_query::QueryWriter::new(&mut out, "ModifyIpamPolicyAllocationRules", "2016-11-15");
#[allow(unused_mut)]
let mut scope_1 = writer.prefix("DryRun");
if let Some(var_2) = &input.dry_run {
scope_1.boolean(*var_2);
}
#[allow(unused_mut)]
let mut scope_3 = writer.prefix("IpamPolicyId");
if let Some(var_4) = &input.ipam_policy_id {
scope_3.string(var_4);
}
#[allow(unused_mut)]
let mut scope_5 = writer.prefix("Locale");
if let Some(var_6) = &input.locale {
scope_5.string(var_6);
}
#[allow(unused_mut)]
let mut scope_7 = writer.prefix("ResourceType");
if let Some(var_8) = &input.resource_type {
scope_7.string(var_8.as_str());
}
#[allow(unused_mut)]
let mut scope_9 = writer.prefix("AllocationRule");
if let Some(var_10) = &input.allocation_rules {
if !var_10.is_empty() {
let mut list_12 = scope_9.start_list(true, Some("item"));
for item_11 in var_10 {
#[allow(unused_mut)]
let mut entry_13 = list_12.entry();
crate::protocol_serde::shape_ipam_policy_allocation_rule_request::ser_ipam_policy_allocation_rule_request(entry_13, item_11)?;
}
list_12.finish();
}
}
writer.finish();
Ok(::aws_smithy_types::body::SdkBody::from(out))
}