pub fn ser_register_namespace_input_input_input(
input: &crate::operation::register_namespace::RegisterNamespaceInput,
) -> ::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, "RegisterNamespace", "2012-12-01");
#[allow(unused_mut)]
let mut scope_1 = writer.prefix("NamespaceIdentifier");
if let Some(var_2) = &input.namespace_identifier {
#[allow(unused_mut)]
let mut scope_3 = scope_1.prefix("NamespaceIdentifier");
crate::protocol_serde::shape_namespace_identifier_union::ser_namespace_identifier_union(scope_3, var_2)?;
}
#[allow(unused_mut)]
let mut scope_4 = writer.prefix("ConsumerIdentifiers");
if let Some(var_5) = &input.consumer_identifiers {
let mut list_7 = scope_4.start_list(false, None);
for item_6 in var_5 {
#[allow(unused_mut)]
let mut entry_8 = list_7.entry();
entry_8.string(item_6);
}
list_7.finish();
}
writer.finish();
Ok(::aws_smithy_types::body::SdkBody::from(out))
}