pub fn ser_copy_distribution_input_input_input(
input: &crate::operation::copy_distribution::CopyDistributionInput,
writer: ::aws_smithy_xml::encode::ElWriter,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
#[allow(unused_mut)]
let mut scope = writer.finish();
if let Some(var_1) = &input.caller_reference {
let mut inner_writer = scope.start_el("CallerReference").finish();
inner_writer.data(var_1.as_str());
}
if let Some(var_2) = &input.enabled {
let mut inner_writer = scope.start_el("Enabled").finish();
inner_writer.data(::aws_smithy_types::primitive::Encoder::from(*var_2).encode());
}
scope.finish();
Ok(())
}