#[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 OriginTypesFilter {
    #[serde(rename = "operator")]
    operator: super::super::api::SetOperator,
    #[builder(default, list(item(type = super::SearchEventOriginType)))]
    #[serde(rename = "originTypes", skip_serializing_if = "Vec::is_empty", default)]
    origin_types: Vec<super::SearchEventOriginType>,
}
impl OriginTypesFilter {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(operator: super::super::api::SetOperator) -> Self {
        Self::builder().operator(operator).build()
    }
    #[inline]
    pub fn operator(&self) -> &super::super::api::SetOperator {
        &self.operator
    }
    #[inline]
    pub fn origin_types(&self) -> &[super::SearchEventOriginType] {
        &*self.origin_types
    }
}
