pub fn ser_spot_market_options(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::SpotMarketOptions,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.block_duration_minutes {
object.key("BlockDurationMinutes").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_1).into()),
);
}
if let Some(var_2) = &input.instance_interruption_behavior {
object.key("InstanceInterruptionBehavior").string(var_2.as_str());
}
if let Some(var_3) = &input.max_price {
object.key("MaxPrice").string(var_3.as_str());
}
if let Some(var_4) = &input.spot_instance_type {
object.key("SpotInstanceType").string(var_4.as_str());
}
if let Some(var_5) = &input.valid_until_utc {
object
.key("ValidUntilUtc")
.date_time(var_5, ::aws_smithy_types::date_time::Format::EpochSeconds)?;
}
Ok(())
}