// 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 PutExternalEvaluationInput {
    /// <p>The name of the Config rule.</p>
    pub config_rule_name: ::std::option::Option<::std::string::String>,
    /// <p>An <code>ExternalEvaluation</code> object that provides details about compliance.</p>
    pub external_evaluation: ::std::option::Option<crate::types::ExternalEvaluation>,
}
impl PutExternalEvaluationInput {
    /// <p>The name of the Config rule.</p>
    pub fn config_rule_name(&self) -> ::std::option::Option<&str> {
        self.config_rule_name.as_deref()
    }
    /// <p>An <code>ExternalEvaluation</code> object that provides details about compliance.</p>
    pub fn external_evaluation(&self) -> ::std::option::Option<&crate::types::ExternalEvaluation> {
        self.external_evaluation.as_ref()
    }
}
impl PutExternalEvaluationInput {
    /// Creates a new builder-style object to manufacture [`PutExternalEvaluationInput`](crate::operation::put_external_evaluation::PutExternalEvaluationInput).
    pub fn builder() -> crate::operation::put_external_evaluation::builders::PutExternalEvaluationInputBuilder {
        crate::operation::put_external_evaluation::builders::PutExternalEvaluationInputBuilder::default()
    }
}

/// A builder for [`PutExternalEvaluationInput`](crate::operation::put_external_evaluation::PutExternalEvaluationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct PutExternalEvaluationInputBuilder {
    pub(crate) config_rule_name: ::std::option::Option<::std::string::String>,
    pub(crate) external_evaluation: ::std::option::Option<crate::types::ExternalEvaluation>,
}
impl PutExternalEvaluationInputBuilder {
    /// <p>The name of the Config rule.</p>
    /// This field is required.
    pub fn config_rule_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.config_rule_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the Config rule.</p>
    pub fn set_config_rule_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.config_rule_name = input;
        self
    }
    /// <p>The name of the Config rule.</p>
    pub fn get_config_rule_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.config_rule_name
    }
    /// <p>An <code>ExternalEvaluation</code> object that provides details about compliance.</p>
    /// This field is required.
    pub fn external_evaluation(mut self, input: crate::types::ExternalEvaluation) -> Self {
        self.external_evaluation = ::std::option::Option::Some(input);
        self
    }
    /// <p>An <code>ExternalEvaluation</code> object that provides details about compliance.</p>
    pub fn set_external_evaluation(mut self, input: ::std::option::Option<crate::types::ExternalEvaluation>) -> Self {
        self.external_evaluation = input;
        self
    }
    /// <p>An <code>ExternalEvaluation</code> object that provides details about compliance.</p>
    pub fn get_external_evaluation(&self) -> &::std::option::Option<crate::types::ExternalEvaluation> {
        &self.external_evaluation
    }
    /// Consumes the builder and constructs a [`PutExternalEvaluationInput`](crate::operation::put_external_evaluation::PutExternalEvaluationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::put_external_evaluation::PutExternalEvaluationInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::put_external_evaluation::PutExternalEvaluationInput {
            config_rule_name: self.config_rule_name,
            external_evaluation: self.external_evaluation,
        })
    }
}
