aws-sdk-computeoptimizerautomation 1.9.0

AWS SDK for Compute Optimizer Automation
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_list_automation_events_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::list_automation_events::ListAutomationEventsInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.filters {
        encoder.str("filters");
        encoder.array((*var_1).len());
        for item_2 in var_1 {
            {
                crate::protocol_serde::shape_automation_event_filter::ser_automation_event_filter(encoder, item_2)?;
            }
        }
    }
    if let Some(var_3) = &input.start_time_inclusive {
        encoder.str("startTimeInclusive").timestamp(var_3);
    }
    if let Some(var_4) = &input.end_time_exclusive {
        encoder.str("endTimeExclusive").timestamp(var_4);
    }
    if let Some(var_5) = &input.max_results {
        encoder.str("maxResults").integer(*var_5);
    }
    if let Some(var_6) = &input.next_token {
        encoder.str("nextToken").str(var_6.as_str());
    }
    encoder.end();
    Ok(())
}