pub fn ser_update_cluster_software_input_input(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::operation::update_cluster_software::UpdateClusterSoftwareInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.cluster_name {
object.key("ClusterName").string(var_1.as_str());
}
if let Some(var_2) = &input.instance_groups {
let mut array_3 = object.key("InstanceGroups").start_array();
for item_4 in var_2 {
{
#[allow(unused_mut)]
let mut object_5 = array_3.value().start_object();
crate::protocol_serde::shape_update_cluster_software_instance_group_specification::ser_update_cluster_software_instance_group_specification(&mut object_5, item_4)?;
object_5.finish();
}
}
array_3.finish();
}
if let Some(var_6) = &input.deployment_config {
#[allow(unused_mut)]
let mut object_7 = object.key("DeploymentConfig").start_object();
crate::protocol_serde::shape_deployment_configuration::ser_deployment_configuration(&mut object_7, var_6)?;
object_7.finish();
}
if let Some(var_8) = &input.image_id {
object.key("ImageId").string(var_8.as_str());
}
Ok(())
}