pub fn ser_update_fleet_attributes_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::update_fleet_attributes::UpdateFleetAttributesInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
if let Some(var_1) = &input.fleet_id {
encoder.str("FleetId").str(var_1.as_str());
}
if let Some(var_2) = &input.name {
encoder.str("Name").str(var_2.as_str());
}
if let Some(var_3) = &input.description {
encoder.str("Description").str(var_3.as_str());
}
if let Some(var_4) = &input.new_game_session_protection_policy {
encoder.str("NewGameSessionProtectionPolicy").str(var_4.as_str());
}
if let Some(var_5) = &input.resource_creation_limit_policy {
encoder.str("ResourceCreationLimitPolicy");
crate::protocol_serde::shape_resource_creation_limit_policy::ser_resource_creation_limit_policy(encoder, var_5)?;
}
if let Some(var_6) = &input.metric_groups {
encoder.str("MetricGroups");
encoder.array((*var_6).len());
for item_7 in var_6 {
{
encoder.str(item_7.as_str());
}
}
}
if let Some(var_8) = &input.anywhere_configuration {
encoder.str("AnywhereConfiguration");
crate::protocol_serde::shape_anywhere_configuration::ser_anywhere_configuration(encoder, var_8)?;
}
encoder.end();
Ok(())
}