pub fn ser_estimate_template_cost_input_input_input(
input: &crate::operation::estimate_template_cost::EstimateTemplateCostInput,
) -> ::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, "EstimateTemplateCost", "2010-05-15");
#[allow(unused_mut)]
let mut scope_1 = writer.prefix("TemplateBody");
if let Some(var_2) = &input.template_body {
scope_1.string(var_2);
}
#[allow(unused_mut)]
let mut scope_3 = writer.prefix("TemplateURL");
if let Some(var_4) = &input.template_url {
scope_3.string(var_4);
}
#[allow(unused_mut)]
let mut scope_5 = writer.prefix("Parameters");
if let Some(var_6) = &input.parameters {
let mut list_8 = scope_5.start_list(false, None);
for item_7 in var_6 {
#[allow(unused_mut)]
let mut entry_9 = list_8.entry();
crate::protocol_serde::shape_parameter::ser_parameter(entry_9, item_7)?;
}
list_8.finish();
}
writer.finish();
Ok(::aws_smithy_types::body::SdkBody::from(out))
}