pub fn ser_update_fleet_capacity_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::update_fleet_capacity::UpdateFleetCapacityInput,
) -> ::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.desired_instances {
encoder.str("DesiredInstances").integer(*var_2);
}
if let Some(var_3) = &input.min_size {
encoder.str("MinSize").integer(*var_3);
}
if let Some(var_4) = &input.max_size {
encoder.str("MaxSize").integer(*var_4);
}
if let Some(var_5) = &input.location {
encoder.str("Location").str(var_5.as_str());
}
if let Some(var_6) = &input.managed_capacity_configuration {
encoder.str("ManagedCapacityConfiguration");
crate::protocol_serde::shape_managed_capacity_configuration::ser_managed_capacity_configuration(encoder, var_6)?;
}
encoder.end();
Ok(())
}