/// If commit not is provided, the latest commit on main will be used.
/// Asset RID is required only for multi-asset runs.
#[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 CreateDataReviewRequest {
    #[serde(rename = "runRid")]
    run_rid: super::super::super::run::api::RunRid,
    #[builder(default, into)]
    #[serde(rename = "assetRid", skip_serializing_if = "Option::is_none", default)]
    asset_rid: Option<super::super::super::rids::api::AssetRid>,
    #[serde(rename = "checklistRid")]
    checklist_rid: super::super::super::rids::api::ChecklistRid,
    #[builder(default, into)]
    #[serde(rename = "commit", skip_serializing_if = "Option::is_none", default)]
    commit: Option<super::super::super::versioning::api::CommitId>,
}
impl CreateDataReviewRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        run_rid: super::super::super::run::api::RunRid,
        checklist_rid: super::super::super::rids::api::ChecklistRid,
    ) -> Self {
        Self::builder().run_rid(run_rid).checklist_rid(checklist_rid).build()
    }
    #[inline]
    pub fn run_rid(&self) -> &super::super::super::run::api::RunRid {
        &self.run_rid
    }
    /// Selects asset to execute data review on. Required for multi-asset runs.
    #[inline]
    pub fn asset_rid(&self) -> Option<&super::super::super::rids::api::AssetRid> {
        self.asset_rid.as_ref().map(|o| &*o)
    }
    #[inline]
    pub fn checklist_rid(&self) -> &super::super::super::rids::api::ChecklistRid {
        &self.checklist_rid
    }
    #[inline]
    pub fn commit(&self) -> Option<&super::super::super::versioning::api::CommitId> {
        self.commit.as_ref().map(|o| &*o)
    }
}
