// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct PutRetentionConfigurationInput {
    /// <p>Number of days Config stores your historical information.</p><note>
    /// <p>Currently, only applicable to the configuration item history.</p>
    /// </note>
    pub retention_period_in_days: ::std::option::Option<i32>,
}
impl PutRetentionConfigurationInput {
    /// <p>Number of days Config stores your historical information.</p><note>
    /// <p>Currently, only applicable to the configuration item history.</p>
    /// </note>
    pub fn retention_period_in_days(&self) -> ::std::option::Option<i32> {
        self.retention_period_in_days
    }
}
impl PutRetentionConfigurationInput {
    /// Creates a new builder-style object to manufacture [`PutRetentionConfigurationInput`](crate::operation::put_retention_configuration::PutRetentionConfigurationInput).
    pub fn builder() -> crate::operation::put_retention_configuration::builders::PutRetentionConfigurationInputBuilder {
        crate::operation::put_retention_configuration::builders::PutRetentionConfigurationInputBuilder::default()
    }
}

/// A builder for [`PutRetentionConfigurationInput`](crate::operation::put_retention_configuration::PutRetentionConfigurationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct PutRetentionConfigurationInputBuilder {
    pub(crate) retention_period_in_days: ::std::option::Option<i32>,
}
impl PutRetentionConfigurationInputBuilder {
    /// <p>Number of days Config stores your historical information.</p><note>
    /// <p>Currently, only applicable to the configuration item history.</p>
    /// </note>
    /// This field is required.
    pub fn retention_period_in_days(mut self, input: i32) -> Self {
        self.retention_period_in_days = ::std::option::Option::Some(input);
        self
    }
    /// <p>Number of days Config stores your historical information.</p><note>
    /// <p>Currently, only applicable to the configuration item history.</p>
    /// </note>
    pub fn set_retention_period_in_days(mut self, input: ::std::option::Option<i32>) -> Self {
        self.retention_period_in_days = input;
        self
    }
    /// <p>Number of days Config stores your historical information.</p><note>
    /// <p>Currently, only applicable to the configuration item history.</p>
    /// </note>
    pub fn get_retention_period_in_days(&self) -> &::std::option::Option<i32> {
        &self.retention_period_in_days
    }
    /// Consumes the builder and constructs a [`PutRetentionConfigurationInput`](crate::operation::put_retention_configuration::PutRetentionConfigurationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::put_retention_configuration::PutRetentionConfigurationInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::put_retention_configuration::PutRetentionConfigurationInput {
            retention_period_in_days: self.retention_period_in_days,
        })
    }
}
