#[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 BatchFilterEventsRequest {
    #[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>,
    #[builder(custom(type = super::SearchQuery, convert = Box::new))]
    #[serde(rename = "filterQuery")]
    filter_query: Box<super::SearchQuery>,
}
impl BatchFilterEventsRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(filter_query: super::SearchQuery) -> Self {
        Self::builder().filter_query(filter_query).build()
    }
    #[inline]
    pub fn event_rids(
        &self,
    ) -> &std::collections::BTreeSet<conjure_object::ResourceIdentifier> {
        &self.event_rids
    }
    #[inline]
    pub fn filter_query(&self) -> &super::SearchQuery {
        &*self.filter_query
    }
}
