aws-sdk-interconnect 1.1.0

AWS SDK for Interconnect
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_list_connections_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::list_connections::ListConnectionsInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.max_results {
        encoder.str("maxResults").integer(*var_1);
    }
    if let Some(var_2) = &input.next_token {
        encoder.str("nextToken").str(var_2.as_str());
    }
    if let Some(var_3) = &input.state {
        encoder.str("state").str(var_3.as_str());
    }
    if let Some(var_4) = &input.environment_id {
        encoder.str("environmentId").str(var_4.as_str());
    }
    if let Some(var_5) = &input.provider {
        encoder.str("provider");
        crate::protocol_serde::shape_provider::ser_provider(encoder, var_5)?;
    }
    if let Some(var_6) = &input.attach_point {
        encoder.str("attachPoint");
        crate::protocol_serde::shape_attach_point::ser_attach_point(encoder, var_6)?;
    }
    encoder.end();
    Ok(())
}