/// Matches against a single log arg.
#[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 LogArgFilterOperator {
    #[builder(custom(type = super::StringConstant, convert = Box::new))]
    #[serde(rename = "key")]
    key: Box<super::StringConstant>,
    #[builder(custom(type = super::LogRegexFilterOperator, convert = Box::new))]
    #[serde(rename = "operator")]
    operator: Box<super::LogRegexFilterOperator>,
}
impl LogArgFilterOperator {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        key: super::StringConstant,
        operator: super::LogRegexFilterOperator,
    ) -> Self {
        Self::builder().key(key).operator(operator).build()
    }
    #[inline]
    pub fn key(&self) -> &super::StringConstant {
        &*self.key
    }
    #[inline]
    pub fn operator(&self) -> &super::LogRegexFilterOperator {
        &*self.operator
    }
}
