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_archive_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::update_archive::UpdateArchiveInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.archive_id {
        encoder.str("ArchiveId").str(var_1.as_str());
    }
    if let Some(var_2) = &input.archive_name {
        encoder.str("ArchiveName").str(var_2.as_str());
    }
    if let Some(var_3) = &input.retention {
        encoder.str("Retention");
        crate::protocol_serde::shape_archive_retention::ser_archive_retention(encoder, var_3)?;
    }
    encoder.end();
    Ok(())
}