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

/// <p>The configuration object for Config rule evaluation mode. The supported valid values are Detective or Proactive.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct EvaluationModeConfiguration {
    /// <p>The mode of an evaluation. The valid values are Detective or Proactive.</p>
    pub mode: ::std::option::Option<crate::types::EvaluationMode>,
}
impl EvaluationModeConfiguration {
    /// <p>The mode of an evaluation. The valid values are Detective or Proactive.</p>
    pub fn mode(&self) -> ::std::option::Option<&crate::types::EvaluationMode> {
        self.mode.as_ref()
    }
}
impl EvaluationModeConfiguration {
    /// Creates a new builder-style object to manufacture [`EvaluationModeConfiguration`](crate::types::EvaluationModeConfiguration).
    pub fn builder() -> crate::types::builders::EvaluationModeConfigurationBuilder {
        crate::types::builders::EvaluationModeConfigurationBuilder::default()
    }
}

/// A builder for [`EvaluationModeConfiguration`](crate::types::EvaluationModeConfiguration).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct EvaluationModeConfigurationBuilder {
    pub(crate) mode: ::std::option::Option<crate::types::EvaluationMode>,
}
impl EvaluationModeConfigurationBuilder {
    /// <p>The mode of an evaluation. The valid values are Detective or Proactive.</p>
    pub fn mode(mut self, input: crate::types::EvaluationMode) -> Self {
        self.mode = ::std::option::Option::Some(input);
        self
    }
    /// <p>The mode of an evaluation. The valid values are Detective or Proactive.</p>
    pub fn set_mode(mut self, input: ::std::option::Option<crate::types::EvaluationMode>) -> Self {
        self.mode = input;
        self
    }
    /// <p>The mode of an evaluation. The valid values are Detective or Proactive.</p>
    pub fn get_mode(&self) -> &::std::option::Option<crate::types::EvaluationMode> {
        &self.mode
    }
    /// Consumes the builder and constructs a [`EvaluationModeConfiguration`](crate::types::EvaluationModeConfiguration).
    pub fn build(self) -> crate::types::EvaluationModeConfiguration {
        crate::types::EvaluationModeConfiguration { mode: self.mode }
    }
}
