pub fn ser_modify_snapshot_copy_retention_period_input_input_input(
input: &crate::operation::modify_snapshot_copy_retention_period::ModifySnapshotCopyRetentionPeriodInput,
) -> ::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, "ModifySnapshotCopyRetentionPeriod", "2012-12-01");
#[allow(unused_mut)]
let mut scope_1 = writer.prefix("ClusterIdentifier");
if let Some(var_2) = &input.cluster_identifier {
scope_1.string(var_2);
}
#[allow(unused_mut)]
let mut scope_3 = writer.prefix("RetentionPeriod");
if let Some(var_4) = &input.retention_period {
scope_3.number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_4).into()),
);
}
#[allow(unused_mut)]
let mut scope_5 = writer.prefix("Manual");
if let Some(var_6) = &input.manual {
scope_5.boolean(*var_6);
}
writer.finish();
Ok(::aws_smithy_types::body::SdkBody::from(out))
}