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

/// <p>Returns details of a resource evaluation based on the selected filter.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ResourceEvaluationFilters {
    /// <p>Filters all resource evaluations results based on an evaluation mode.</p><important>
    /// <p>Currently, <code>DECTECTIVE</code> is not supported as a valid value. Ignore other documentation stating otherwise.</p>
    /// </important>
    pub evaluation_mode: ::std::option::Option<crate::types::EvaluationMode>,
    /// <p>Returns a <code>TimeWindow</code> object.</p>
    pub time_window: ::std::option::Option<crate::types::TimeWindow>,
    /// <p>Filters evaluations for a given infrastructure deployment. For example: CFN Stack.</p>
    pub evaluation_context_identifier: ::std::option::Option<::std::string::String>,
}
impl ResourceEvaluationFilters {
    /// <p>Filters all resource evaluations results based on an evaluation mode.</p><important>
    /// <p>Currently, <code>DECTECTIVE</code> is not supported as a valid value. Ignore other documentation stating otherwise.</p>
    /// </important>
    pub fn evaluation_mode(&self) -> ::std::option::Option<&crate::types::EvaluationMode> {
        self.evaluation_mode.as_ref()
    }
    /// <p>Returns a <code>TimeWindow</code> object.</p>
    pub fn time_window(&self) -> ::std::option::Option<&crate::types::TimeWindow> {
        self.time_window.as_ref()
    }
    /// <p>Filters evaluations for a given infrastructure deployment. For example: CFN Stack.</p>
    pub fn evaluation_context_identifier(&self) -> ::std::option::Option<&str> {
        self.evaluation_context_identifier.as_deref()
    }
}
impl ResourceEvaluationFilters {
    /// Creates a new builder-style object to manufacture [`ResourceEvaluationFilters`](crate::types::ResourceEvaluationFilters).
    pub fn builder() -> crate::types::builders::ResourceEvaluationFiltersBuilder {
        crate::types::builders::ResourceEvaluationFiltersBuilder::default()
    }
}

/// A builder for [`ResourceEvaluationFilters`](crate::types::ResourceEvaluationFilters).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ResourceEvaluationFiltersBuilder {
    pub(crate) evaluation_mode: ::std::option::Option<crate::types::EvaluationMode>,
    pub(crate) time_window: ::std::option::Option<crate::types::TimeWindow>,
    pub(crate) evaluation_context_identifier: ::std::option::Option<::std::string::String>,
}
impl ResourceEvaluationFiltersBuilder {
    /// <p>Filters all resource evaluations results based on an evaluation mode.</p><important>
    /// <p>Currently, <code>DECTECTIVE</code> is not supported as a valid value. Ignore other documentation stating otherwise.</p>
    /// </important>
    pub fn evaluation_mode(mut self, input: crate::types::EvaluationMode) -> Self {
        self.evaluation_mode = ::std::option::Option::Some(input);
        self
    }
    /// <p>Filters all resource evaluations results based on an evaluation mode.</p><important>
    /// <p>Currently, <code>DECTECTIVE</code> is not supported as a valid value. Ignore other documentation stating otherwise.</p>
    /// </important>
    pub fn set_evaluation_mode(mut self, input: ::std::option::Option<crate::types::EvaluationMode>) -> Self {
        self.evaluation_mode = input;
        self
    }
    /// <p>Filters all resource evaluations results based on an evaluation mode.</p><important>
    /// <p>Currently, <code>DECTECTIVE</code> is not supported as a valid value. Ignore other documentation stating otherwise.</p>
    /// </important>
    pub fn get_evaluation_mode(&self) -> &::std::option::Option<crate::types::EvaluationMode> {
        &self.evaluation_mode
    }
    /// <p>Returns a <code>TimeWindow</code> object.</p>
    pub fn time_window(mut self, input: crate::types::TimeWindow) -> Self {
        self.time_window = ::std::option::Option::Some(input);
        self
    }
    /// <p>Returns a <code>TimeWindow</code> object.</p>
    pub fn set_time_window(mut self, input: ::std::option::Option<crate::types::TimeWindow>) -> Self {
        self.time_window = input;
        self
    }
    /// <p>Returns a <code>TimeWindow</code> object.</p>
    pub fn get_time_window(&self) -> &::std::option::Option<crate::types::TimeWindow> {
        &self.time_window
    }
    /// <p>Filters evaluations for a given infrastructure deployment. For example: CFN Stack.</p>
    pub fn evaluation_context_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.evaluation_context_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Filters evaluations for a given infrastructure deployment. For example: CFN Stack.</p>
    pub fn set_evaluation_context_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.evaluation_context_identifier = input;
        self
    }
    /// <p>Filters evaluations for a given infrastructure deployment. For example: CFN Stack.</p>
    pub fn get_evaluation_context_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.evaluation_context_identifier
    }
    /// Consumes the builder and constructs a [`ResourceEvaluationFilters`](crate::types::ResourceEvaluationFilters).
    pub fn build(self) -> crate::types::ResourceEvaluationFilters {
        crate::types::ResourceEvaluationFilters {
            evaluation_mode: self.evaluation_mode,
            time_window: self.time_window,
            evaluation_context_identifier: self.evaluation_context_identifier,
        }
    }
}
