aws-sdk-redshiftserverless 1.106.0

AWS SDK for Redshift Serverless
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_create_snapshot_copy_configuration_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::create_snapshot_copy_configuration::CreateSnapshotCopyConfigurationInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.namespace_name {
        object.key("namespaceName").string(var_1.as_str());
    }
    if let Some(var_2) = &input.destination_region {
        object.key("destinationRegion").string(var_2.as_str());
    }
    if let Some(var_3) = &input.snapshot_retention_period {
        object.key("snapshotRetentionPeriod").number(
            #[allow(clippy::useless_conversion)]
            ::aws_smithy_types::Number::NegInt((*var_3).into()),
        );
    }
    if let Some(var_4) = &input.destination_kms_key_id {
        object.key("destinationKmsKeyId").string(var_4.as_str());
    }
    Ok(())
}