// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Specifies data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes for an Amazon S3 bucket.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StorageClassAnalysis {
    /// <p>Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.</p>
    pub data_export: ::std::option::Option<crate::types::StorageClassAnalysisDataExport>,
}
impl StorageClassAnalysis {
    /// <p>Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.</p>
    pub fn data_export(&self) -> ::std::option::Option<&crate::types::StorageClassAnalysisDataExport> {
        self.data_export.as_ref()
    }
}
impl StorageClassAnalysis {
    /// Creates a new builder-style object to manufacture [`StorageClassAnalysis`](crate::types::StorageClassAnalysis).
    pub fn builder() -> crate::types::builders::StorageClassAnalysisBuilder {
        crate::types::builders::StorageClassAnalysisBuilder::default()
    }
}

/// A builder for [`StorageClassAnalysis`](crate::types::StorageClassAnalysis).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StorageClassAnalysisBuilder {
    pub(crate) data_export: ::std::option::Option<crate::types::StorageClassAnalysisDataExport>,
}
impl StorageClassAnalysisBuilder {
    /// <p>Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.</p>
    pub fn data_export(mut self, input: crate::types::StorageClassAnalysisDataExport) -> Self {
        self.data_export = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.</p>
    pub fn set_data_export(mut self, input: ::std::option::Option<crate::types::StorageClassAnalysisDataExport>) -> Self {
        self.data_export = input;
        self
    }
    /// <p>Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.</p>
    pub fn get_data_export(&self) -> &::std::option::Option<crate::types::StorageClassAnalysisDataExport> {
        &self.data_export
    }
    /// Consumes the builder and constructs a [`StorageClassAnalysis`](crate::types::StorageClassAnalysis).
    pub fn build(self) -> crate::types::StorageClassAnalysis {
        crate::types::StorageClassAnalysis {
            data_export: self.data_export,
        }
    }
}
