pub fn ser_update_fleet_input_input(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::operation::update_fleet::UpdateFleetInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.configuration {
#[allow(unused_mut)]
let mut object_2 = object.key("configuration").start_object();
crate::protocol_serde::shape_fleet_configuration::ser_fleet_configuration(&mut object_2, var_1)?;
object_2.finish();
}
if let Some(var_3) = &input.description {
object.key("description").string(var_3.as_str());
}
if let Some(var_4) = &input.display_name {
object.key("displayName").string(var_4.as_str());
}
if let Some(var_5) = &input.host_configuration {
#[allow(unused_mut)]
let mut object_6 = object.key("hostConfiguration").start_object();
crate::protocol_serde::shape_host_configuration::ser_host_configuration(&mut object_6, var_5)?;
object_6.finish();
}
if let Some(var_7) = &input.max_worker_count {
object.key("maxWorkerCount").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_7).into()),
);
}
if let Some(var_8) = &input.min_worker_count {
object.key("minWorkerCount").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_8).into()),
);
}
if let Some(var_9) = &input.role_arn {
object.key("roleArn").string(var_9.as_str());
}
Ok(())
}