pub fn ser_create_file_cache_lustre_configuration(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::CreateFileCacheLustreConfiguration,
) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.per_unit_storage_throughput {
object.key("PerUnitStorageThroughput").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_1).into()),
);
}
if let Some(var_2) = &input.deployment_type {
object.key("DeploymentType").string(var_2.as_str());
}
if let Some(var_3) = &input.weekly_maintenance_start_time {
object.key("WeeklyMaintenanceStartTime").string(var_3.as_str());
}
if let Some(var_4) = &input.metadata_configuration {
#[allow(unused_mut)]
let mut object_5 = object.key("MetadataConfiguration").start_object();
crate::protocol_serde::shape_file_cache_lustre_metadata_configuration::ser_file_cache_lustre_metadata_configuration(&mut object_5, var_4)?;
object_5.finish();
}
Ok(())
}