#[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 ChecklistEvaluation {
    #[builder(
        custom(
            type = super::super::super::checks::api::PinnedChecklistRef,
            convert = Box::new
        )
    )]
    #[serde(rename = "checklist")]
    checklist: Box<super::super::super::checks::api::PinnedChecklistRef>,
    #[serde(rename = "dataReviewRid")]
    data_review_rid: super::super::super::rids::api::DataReviewRid,
    #[builder(default, set(item(type = super::CheckEvaluation)))]
    #[serde(
        rename = "checks",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    checks: std::collections::BTreeSet<super::CheckEvaluation>,
}
impl ChecklistEvaluation {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        checklist: super::super::super::checks::api::PinnedChecklistRef,
        data_review_rid: super::super::super::rids::api::DataReviewRid,
    ) -> Self {
        Self::builder().checklist(checklist).data_review_rid(data_review_rid).build()
    }
    #[inline]
    pub fn checklist(&self) -> &super::super::super::checks::api::PinnedChecklistRef {
        &*self.checklist
    }
    #[inline]
    pub fn data_review_rid(&self) -> &super::super::super::rids::api::DataReviewRid {
        &self.data_review_rid
    }
    #[inline]
    pub fn checks(&self) -> &std::collections::BTreeSet<super::CheckEvaluation> {
        &self.checks
    }
}
