aws-sdk-workspacesinstances 1.35.0

AWS SDK for Amazon Workspaces Instances
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_placement(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::types::Placement,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.affinity {
        encoder.str("Affinity").str(var_1.as_str());
    }
    if let Some(var_2) = &input.availability_zone {
        encoder.str("AvailabilityZone").str(var_2.as_str());
    }
    if let Some(var_3) = &input.group_id {
        encoder.str("GroupId").str(var_3.as_str());
    }
    if let Some(var_4) = &input.group_name {
        encoder.str("GroupName").str(var_4.as_str());
    }
    if let Some(var_5) = &input.host_id {
        encoder.str("HostId").str(var_5.as_str());
    }
    if let Some(var_6) = &input.host_resource_group_arn {
        encoder.str("HostResourceGroupArn").str(var_6.as_str());
    }
    if let Some(var_7) = &input.partition_number {
        encoder.str("PartitionNumber").integer(*var_7);
    }
    if let Some(var_8) = &input.tenancy {
        encoder.str("Tenancy").str(var_8.as_str());
    }
    encoder.end();
    Ok(())
}