aws-sdk-cloudwatchomni 1.2.0

AWS SDK for CloudWatch Omni
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_list_alerts_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::list_alerts::ListAlertsInput,
) -> ::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.filter_criteria {
        encoder.str("filterCriteria");
        crate::protocol_serde::shape_alert_filter_criteria::ser_alert_filter_criteria(encoder, var_2)?;
    }
    if let Some(var_3) = &input.sort_by {
        encoder.str("sortBy").str(var_3.as_str());
    }
    if let Some(var_4) = &input.sort_order {
        encoder.str("sortOrder").str(var_4.as_str());
    }
    if let Some(var_5) = &input.next_token {
        encoder.str("nextToken").str(var_5.as_str());
    }
    if let Some(var_6) = &input.max_results {
        encoder.str("maxResults").integer(*var_6);
    }
    encoder.end();
    Ok(())
}