#[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 GeneratedAlertsState {
    #[builder(default, into)]
    #[serde(rename = "rids", skip_serializing_if = "Option::is_none", default)]
    rids: Option<
        std::collections::BTreeSet<super::super::super::rids::api::CheckAlertRid>,
    >,
    #[builder(default, set(item(type = conjure_object::ResourceIdentifier)))]
    #[serde(
        rename = "eventRids",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    event_rids: std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
}
impl GeneratedAlertsState {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[deprecated(
        note = "This field is deprecated and will be removed in a future version.\nUse eventRids instead.\n"
    )]
    #[inline]
    pub fn rids(
        &self,
    ) -> Option<
        &std::collections::BTreeSet<super::super::super::rids::api::CheckAlertRid>,
    > {
        self.rids.as_ref().map(|o| &*o)
    }
    #[inline]
    pub fn event_rids(
        &self,
    ) -> &std::collections::BTreeSet<conjure_object::ResourceIdentifier> {
        &self.event_rids
    }
}
