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_create_workspaces_pool_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::create_workspaces_pool::CreateWorkspacesPoolInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.pool_name {
        encoder.str("PoolName").str(var_1.as_str());
    }
    if let Some(var_2) = &input.description {
        encoder.str("Description").str(var_2.as_str());
    }
    if let Some(var_3) = &input.bundle_id {
        encoder.str("BundleId").str(var_3.as_str());
    }
    if let Some(var_4) = &input.directory_id {
        encoder.str("DirectoryId").str(var_4.as_str());
    }
    if let Some(var_5) = &input.capacity {
        encoder.str("Capacity");
        crate::protocol_serde::shape_capacity::ser_capacity(encoder, var_5)?;
    }
    if let Some(var_6) = &input.tags {
        encoder.str("Tags");
        encoder.array((*var_6).len());
        for item_7 in var_6 {
            {
                crate::protocol_serde::shape_tag::ser_tag(encoder, item_7)?;
            }
        }
    }
    if let Some(var_8) = &input.application_settings {
        encoder.str("ApplicationSettings");
        crate::protocol_serde::shape_application_settings_request::ser_application_settings_request(encoder, var_8)?;
    }
    if let Some(var_9) = &input.timeout_settings {
        encoder.str("TimeoutSettings");
        crate::protocol_serde::shape_timeout_settings::ser_timeout_settings(encoder, var_9)?;
    }
    if let Some(var_10) = &input.running_mode {
        encoder.str("RunningMode").str(var_10.as_str());
    }
    encoder.end();
    Ok(())
}