/// Describes the review status for an event.
/// This is used to track the disposition status of an event.
#[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 EventDisposition {
    #[serde(rename = "priority")]
    priority: super::super::scout::api::Priority,
    #[builder(
        custom(type = super::super::scout::api::DispositionState, convert = Box::new)
    )]
    #[serde(rename = "state")]
    state: Box<super::super::scout::api::DispositionState>,
    #[builder(default, set(item(type = super::super::scout::rids::api::UserRid)))]
    #[serde(
        rename = "assignees",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    assignees: std::collections::BTreeSet<super::super::scout::rids::api::UserRid>,
}
impl EventDisposition {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        priority: super::super::scout::api::Priority,
        state: super::super::scout::api::DispositionState,
    ) -> Self {
        Self::builder().priority(priority).state(state).build()
    }
    #[inline]
    pub fn priority(&self) -> &super::super::scout::api::Priority {
        &self.priority
    }
    #[inline]
    pub fn state(&self) -> &super::super::scout::api::DispositionState {
        &*self.state
    }
    #[inline]
    pub fn assignees(
        &self,
    ) -> &std::collections::BTreeSet<super::super::scout::rids::api::UserRid> {
        &self.assignees
    }
}
