pub fn ser_aws_job_abort_criteria(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::AwsJobAbortCriteria,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
{
object.key("failureType").string(input.failure_type.as_str());
}
{
object.key("action").string(input.action.as_str());
}
{
object.key("thresholdPercentage").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::Float((input.threshold_percentage).into()),
);
}
{
object.key("minNumberOfExecutedThings").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((input.min_number_of_executed_things).into()),
);
}
Ok(())
}