pub fn ser_update_storage_input_input(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::operation::update_storage::UpdateStorageInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.current_version {
object.key("currentVersion").string(var_1.as_str());
}
if let Some(var_2) = &input.provisioned_throughput {
#[allow(unused_mut)]
let mut object_3 = object.key("provisionedThroughput").start_object();
crate::protocol_serde::shape_provisioned_throughput::ser_provisioned_throughput(&mut object_3, var_2)?;
object_3.finish();
}
if let Some(var_4) = &input.storage_mode {
object.key("storageMode").string(var_4.as_str());
}
if let Some(var_5) = &input.volume_size_gb {
object.key("volumeSizeGB").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_5).into()),
);
}
Ok(())
}