#[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 StreamingChecklistRunning {
    #[serde(rename = "commitId")]
    commit_id: super::super::super::versioning::api::CommitId,
    #[builder(default, set(item(type = super::CheckLiveStatusResponse)))]
    #[serde(
        rename = "checkResults",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    check_results: std::collections::BTreeSet<super::CheckLiveStatusResponse>,
}
impl StreamingChecklistRunning {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(commit_id: super::super::super::versioning::api::CommitId) -> Self {
        Self::builder().commit_id(commit_id).build()
    }
    /// The commitId of the checklist that is currently executing.
    #[inline]
    pub fn commit_id(&self) -> &super::super::super::versioning::api::CommitId {
        &self.commit_id
    }
    #[inline]
    pub fn check_results(
        &self,
    ) -> &std::collections::BTreeSet<super::CheckLiveStatusResponse> {
        &self.check_results
    }
}
