pub fn ser_update_alert_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::update_alert::UpdateAlertInput,
) -> ::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.alert_id {
encoder.str("alertId").str(var_2.as_str());
}
if let Some(var_3) = &input.profile_id {
encoder.str("profileId").str(var_3.as_str());
}
if let Some(var_4) = &input.name {
encoder.str("name").str(var_4.as_str());
}
if let Some(var_5) = &input.description {
encoder.str("description").str(var_5.as_str());
}
if let Some(var_6) = &input.rule {
encoder.str("rule");
crate::protocol_serde::shape_rule::ser_rule(encoder, var_6)?;
}
if let Some(var_7) = &input.notifications_enabled {
encoder.str("notificationsEnabled").boolean(*var_7);
}
if let Some(var_8) = &input.notification_rules {
encoder.str("notificationRules");
encoder.array((*var_8).len());
for item_9 in var_8 {
{
crate::protocol_serde::shape_notification_rule::ser_notification_rule(encoder, item_9)?;
}
}
}
encoder.end();
Ok(())
}