pub fn ser_export_preferences(
object_11: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::ExportPreferences,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
match input {
crate::types::ExportPreferences::Ec2RecommendationsPreferences(inner) => {
#[allow(unused_mut)]
let mut object_1 = object_11.key("ec2RecommendationsPreferences").start_object();
crate::protocol_serde::shape_ec2_recommendations_export_preferences::ser_ec2_recommendations_export_preferences(&mut object_1, inner)?;
object_1.finish();
}
crate::types::ExportPreferences::Unknown => {
return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
"ExportPreferences",
))
}
}
Ok(())
}