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_update_workspaces_pool_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::update_workspaces_pool::UpdateWorkspacesPoolInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.pool_id {
        encoder.str("PoolId").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.application_settings {
        encoder.str("ApplicationSettings");
        crate::protocol_serde::shape_application_settings_request::ser_application_settings_request(encoder, var_6)?;
    }
    if let Some(var_7) = &input.timeout_settings {
        encoder.str("TimeoutSettings");
        crate::protocol_serde::shape_timeout_settings::ser_timeout_settings(encoder, var_7)?;
    }
    if let Some(var_8) = &input.running_mode {
        encoder.str("RunningMode").str(var_8.as_str());
    }
    encoder.end();
    Ok(())
}