pub fn ser_create_alert_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::create_alert::CreateAlertInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
if let Some(var_1) = &input.space_id {
encoder.str("spaceId").str(var_1.as_str());
}
if let Some(var_2) = &input.profile_id {
encoder.str("profileId").str(var_2.as_str());
}
if let Some(var_3) = &input.name {
encoder.str("name").str(var_3.as_str());
}
if let Some(var_4) = &input.description {
encoder.str("description").str(var_4.as_str());
}
if let Some(var_5) = &input.rule {
encoder.str("rule");
crate::protocol_serde::shape_rule::ser_rule(encoder, var_5)?;
}
if let Some(var_6) = &input.notifications_enabled {
encoder.str("notificationsEnabled").boolean(*var_6);
}
if let Some(var_7) = &input.tags {
encoder.str("tags");
encoder.map((*var_7).len());
for (key_8, value_9) in var_7 {
{
encoder.str(key_8.as_str()).str(value_9.as_str());
}
}
}
if let Some(var_10) = &input.notification_rules {
encoder.str("notificationRules");
encoder.array((*var_10).len());
for item_11 in var_10 {
{
crate::protocol_serde::shape_notification_rule::ser_notification_rule(encoder, item_11)?;
}
}
}
if let Some(var_12) = &input.client_token {
encoder.str("clientToken").str(var_12.as_str());
}
encoder.end();
Ok(())
}