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

/// <p></p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetComplianceSummaryByConfigRuleOutput {
    /// <p>The number of Config rules that are compliant and the number that are noncompliant, up to a maximum of 25 for each.</p>
    pub compliance_summary: ::std::option::Option<crate::types::ComplianceSummary>,
    _request_id: Option<String>,
}
impl GetComplianceSummaryByConfigRuleOutput {
    /// <p>The number of Config rules that are compliant and the number that are noncompliant, up to a maximum of 25 for each.</p>
    pub fn compliance_summary(&self) -> ::std::option::Option<&crate::types::ComplianceSummary> {
        self.compliance_summary.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetComplianceSummaryByConfigRuleOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetComplianceSummaryByConfigRuleOutput {
    /// Creates a new builder-style object to manufacture [`GetComplianceSummaryByConfigRuleOutput`](crate::operation::get_compliance_summary_by_config_rule::GetComplianceSummaryByConfigRuleOutput).
    pub fn builder() -> crate::operation::get_compliance_summary_by_config_rule::builders::GetComplianceSummaryByConfigRuleOutputBuilder {
        crate::operation::get_compliance_summary_by_config_rule::builders::GetComplianceSummaryByConfigRuleOutputBuilder::default()
    }
}

/// A builder for [`GetComplianceSummaryByConfigRuleOutput`](crate::operation::get_compliance_summary_by_config_rule::GetComplianceSummaryByConfigRuleOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetComplianceSummaryByConfigRuleOutputBuilder {
    pub(crate) compliance_summary: ::std::option::Option<crate::types::ComplianceSummary>,
    _request_id: Option<String>,
}
impl GetComplianceSummaryByConfigRuleOutputBuilder {
    /// <p>The number of Config rules that are compliant and the number that are noncompliant, up to a maximum of 25 for each.</p>
    pub fn compliance_summary(mut self, input: crate::types::ComplianceSummary) -> Self {
        self.compliance_summary = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of Config rules that are compliant and the number that are noncompliant, up to a maximum of 25 for each.</p>
    pub fn set_compliance_summary(mut self, input: ::std::option::Option<crate::types::ComplianceSummary>) -> Self {
        self.compliance_summary = input;
        self
    }
    /// <p>The number of Config rules that are compliant and the number that are noncompliant, up to a maximum of 25 for each.</p>
    pub fn get_compliance_summary(&self) -> &::std::option::Option<crate::types::ComplianceSummary> {
        &self.compliance_summary
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`GetComplianceSummaryByConfigRuleOutput`](crate::operation::get_compliance_summary_by_config_rule::GetComplianceSummaryByConfigRuleOutput).
    pub fn build(self) -> crate::operation::get_compliance_summary_by_config_rule::GetComplianceSummaryByConfigRuleOutput {
        crate::operation::get_compliance_summary_by_config_rule::GetComplianceSummaryByConfigRuleOutput {
            compliance_summary: self.compliance_summary,
            _request_id: self._request_id,
        }
    }
}
