aws-sdk-mailmanager 1.89.0

AWS SDK for MailManager
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_update_relay_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::update_relay::UpdateRelayInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.relay_id {
        encoder.str("RelayId").str(var_1.as_str());
    }
    if let Some(var_2) = &input.relay_name {
        encoder.str("RelayName").str(var_2.as_str());
    }
    if let Some(var_3) = &input.server_name {
        encoder.str("ServerName").str(var_3.as_str());
    }
    if let Some(var_4) = &input.server_port {
        encoder.str("ServerPort").integer(*var_4);
    }
    if let Some(var_5) = &input.authentication {
        encoder.str("Authentication");
        crate::protocol_serde::shape_relay_authentication::ser_relay_authentication(encoder, var_5)?;
    }
    encoder.end();
    Ok(())
}