#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct AutomaticCheckEvaluation {
    #[serde(rename = "rid")]
    rid: conjure_object::ResourceIdentifier,
    #[serde(rename = "checkRid")]
    check_rid: super::super::super::rids::api::CheckRid,
    #[builder(default, into)]
    #[serde(
        rename = "checkImplementationIndex",
        skip_serializing_if = "Option::is_none",
        default
    )]
    check_implementation_index: Option<i32>,
    #[serde(rename = "dataReviewRid")]
    data_review_rid: super::super::super::rids::api::DataReviewRid,
    #[builder(custom(type = super::AutomaticCheckEvaluationState, convert = Box::new))]
    #[serde(rename = "state")]
    state: Box<super::AutomaticCheckEvaluationState>,
}
impl AutomaticCheckEvaluation {
    #[inline]
    pub fn rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.rid
    }
    #[inline]
    pub fn check_rid(&self) -> &super::super::super::rids::api::CheckRid {
        &self.check_rid
    }
    /// Checks can define a single range computation which can evaluate over multiple implementations of a context.
    /// The check implementation index will correspond to the implementation index of the check condition.
    #[inline]
    pub fn check_implementation_index(&self) -> Option<i32> {
        self.check_implementation_index.as_ref().map(|o| *o)
    }
    #[inline]
    pub fn data_review_rid(&self) -> &super::super::super::rids::api::DataReviewRid {
        &self.data_review_rid
    }
    #[inline]
    pub fn state(&self) -> &super::AutomaticCheckEvaluationState {
        &*self.state
    }
}
