pub fn ser_checkpoint_configuration_update(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::CheckpointConfigurationUpdate,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.configuration_type_update {
object.key("ConfigurationTypeUpdate").string(var_1.as_str());
}
if let Some(var_2) = &input.checkpointing_enabled_update {
object.key("CheckpointingEnabledUpdate").boolean(*var_2);
}
if let Some(var_3) = &input.checkpoint_interval_update {
object.key("CheckpointIntervalUpdate").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_3).into()),
);
}
if let Some(var_4) = &input.min_pause_between_checkpoints_update {
object.key("MinPauseBetweenCheckpointsUpdate").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_4).into()),
);
}
Ok(())
}