aws_sdk_datasync/protocol_serde/
shape_update_location_azure_blob_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_update_location_azure_blob_input_input(
3    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4    input: &crate::operation::update_location_azure_blob::UpdateLocationAzureBlobInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6    if let Some(var_1) = &input.location_arn {
7        object.key("LocationArn").string(var_1.as_str());
8    }
9    if let Some(var_2) = &input.subdirectory {
10        object.key("Subdirectory").string(var_2.as_str());
11    }
12    if let Some(var_3) = &input.authentication_type {
13        object.key("AuthenticationType").string(var_3.as_str());
14    }
15    if let Some(var_4) = &input.sas_configuration {
16        #[allow(unused_mut)]
17        let mut object_5 = object.key("SasConfiguration").start_object();
18        crate::protocol_serde::shape_azure_blob_sas_configuration::ser_azure_blob_sas_configuration(&mut object_5, var_4)?;
19        object_5.finish();
20    }
21    if let Some(var_6) = &input.blob_type {
22        object.key("BlobType").string(var_6.as_str());
23    }
24    if let Some(var_7) = &input.access_tier {
25        object.key("AccessTier").string(var_7.as_str());
26    }
27    if let Some(var_8) = &input.agent_arns {
28        let mut array_9 = object.key("AgentArns").start_array();
29        for item_10 in var_8 {
30            {
31                array_9.value().string(item_10.as_str());
32            }
33        }
34        array_9.finish();
35    }
36    if let Some(var_11) = &input.cmk_secret_config {
37        #[allow(unused_mut)]
38        let mut object_12 = object.key("CmkSecretConfig").start_object();
39        crate::protocol_serde::shape_cmk_secret_config::ser_cmk_secret_config(&mut object_12, var_11)?;
40        object_12.finish();
41    }
42    if let Some(var_13) = &input.custom_secret_config {
43        #[allow(unused_mut)]
44        let mut object_14 = object.key("CustomSecretConfig").start_object();
45        crate::protocol_serde::shape_custom_secret_config::ser_custom_secret_config(&mut object_14, var_13)?;
46        object_14.finish();
47    }
48    Ok(())
49}