pub fn ser_update_task_protection_input_input(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::operation::update_task_protection::UpdateTaskProtectionInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.cluster {
object.key("cluster").string(var_1.as_str());
}
if let Some(var_2) = &input.tasks {
let mut array_3 = object.key("tasks").start_array();
for item_4 in var_2 {
{
array_3.value().string(item_4.as_str());
}
}
array_3.finish();
}
if let Some(var_5) = &input.protection_enabled {
object.key("protectionEnabled").boolean(*var_5);
}
if let Some(var_6) = &input.expires_in_minutes {
object.key("expiresInMinutes").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_6).into()),
);
}
Ok(())
}