/// Provides the resolution status for the required channels for a check and the set of invalid streaming compute nodes present within the check's compute graph.
/// Uniqueness between checkRid and checkParameterIndex pairs is guaranteed.
#[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 ResolvedCheckStatus {
    #[serde(rename = "checkRid")]
    check_rid: super::super::super::rids::api::CheckRid,
    #[builder(default, into)]
    #[serde(
        rename = "checkParameterIndex",
        skip_serializing_if = "Option::is_none",
        default
    )]
    check_parameter_index: Option<i32>,
    #[builder(default, set(item(type = super::InvalidStreamingComputeNode)))]
    #[serde(
        rename = "invalidStreamingComputeNodes",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    invalid_streaming_compute_nodes: std::collections::BTreeSet<
        super::InvalidStreamingComputeNode,
    >,
    #[builder(default, set(item(type = super::ChannelLocatorWithStatus)))]
    #[serde(
        rename = "channels",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    channels: std::collections::BTreeSet<super::ChannelLocatorWithStatus>,
}
impl ResolvedCheckStatus {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(check_rid: super::super::super::rids::api::CheckRid) -> Self {
        Self::builder().check_rid(check_rid).build()
    }
    #[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_parameter_index(&self) -> Option<i32> {
        self.check_parameter_index.as_ref().map(|o| *o)
    }
    #[inline]
    pub fn invalid_streaming_compute_nodes(
        &self,
    ) -> &std::collections::BTreeSet<super::InvalidStreamingComputeNode> {
        &self.invalid_streaming_compute_nodes
    }
    #[inline]
    pub fn channels(
        &self,
    ) -> &std::collections::BTreeSet<super::ChannelLocatorWithStatus> {
        &self.channels
    }
}
