aws-sdk-workspaces 1.151.0

AWS SDK for Amazon WorkSpaces
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_describe_applications_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::describe_applications::DescribeApplicationsInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.application_ids {
        encoder.str("ApplicationIds");
        encoder.array((*var_1).len());
        for item_2 in var_1 {
            {
                encoder.str(item_2.as_str());
            }
        }
    }
    if let Some(var_3) = &input.compute_type_names {
        encoder.str("ComputeTypeNames");
        encoder.array((*var_3).len());
        for item_4 in var_3 {
            {
                encoder.str(item_4.as_str());
            }
        }
    }
    if let Some(var_5) = &input.license_type {
        encoder.str("LicenseType").str(var_5.as_str());
    }
    if let Some(var_6) = &input.operating_system_names {
        encoder.str("OperatingSystemNames");
        encoder.array((*var_6).len());
        for item_7 in var_6 {
            {
                encoder.str(item_7.as_str());
            }
        }
    }
    if let Some(var_8) = &input.owner {
        encoder.str("Owner").str(var_8.as_str());
    }
    if let Some(var_9) = &input.max_results {
        encoder.str("MaxResults").integer(*var_9);
    }
    if let Some(var_10) = &input.next_token {
        encoder.str("NextToken").str(var_10.as_str());
    }
    encoder.end();
    Ok(())
}