pub fn ser_connector_authentication_configuration(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::ConnectorAuthenticationConfiguration,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
{
let mut array_1 = object.key("AuthenticationTypes").start_array();
for item_2 in &input.authentication_types {
{
array_1.value().string(item_2.as_str());
}
}
array_1.finish();
}
if let Some(var_3) = &input.o_auth2_properties {
#[allow(unused_mut)]
let mut object_4 = object.key("OAuth2Properties").start_object();
crate::protocol_serde::shape_connector_o_auth2_properties::ser_connector_o_auth2_properties(&mut object_4, var_3)?;
object_4.finish();
}
if let Some(var_5) = &input.basic_authentication_properties {
#[allow(unused_mut)]
let mut object_6 = object.key("BasicAuthenticationProperties").start_object();
crate::protocol_serde::shape_basic_authentication_properties::ser_basic_authentication_properties(&mut object_6, var_5)?;
object_6.finish();
}
if let Some(var_7) = &input.custom_authentication_properties {
#[allow(unused_mut)]
let mut object_8 = object.key("CustomAuthenticationProperties").start_object();
crate::protocol_serde::shape_custom_authentication_properties::ser_custom_authentication_properties(&mut object_8, var_7)?;
object_8.finish();
}
Ok(())
}