aws_sdk_datasync/protocol_serde/
shape_create_location_fsx_lustre_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_create_location_fsx_lustre_input_input(
3    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4    input: &crate::operation::create_location_fsx_lustre::CreateLocationFsxLustreInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6    if let Some(var_1) = &input.fsx_filesystem_arn {
7        object.key("FsxFilesystemArn").string(var_1.as_str());
8    }
9    if let Some(var_2) = &input.security_group_arns {
10        let mut array_3 = object.key("SecurityGroupArns").start_array();
11        for item_4 in var_2 {
12            {
13                array_3.value().string(item_4.as_str());
14            }
15        }
16        array_3.finish();
17    }
18    if let Some(var_5) = &input.subdirectory {
19        object.key("Subdirectory").string(var_5.as_str());
20    }
21    if let Some(var_6) = &input.tags {
22        let mut array_7 = object.key("Tags").start_array();
23        for item_8 in var_6 {
24            {
25                #[allow(unused_mut)]
26                let mut object_9 = array_7.value().start_object();
27                crate::protocol_serde::shape_tag_list_entry::ser_tag_list_entry(&mut object_9, item_8)?;
28                object_9.finish();
29            }
30        }
31        array_7.finish();
32    }
33    Ok(())
34}