#[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 LongField {
    #[builder(into)]
    #[serde(rename = "name")]
    name: String,
    #[serde(rename = "threshold")]
    threshold: conjure_object::SafeLong,
    #[serde(rename = "operator")]
    operator: super::Operator,
}
impl LongField {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        name: impl Into<String>,
        threshold: conjure_object::SafeLong,
        operator: super::Operator,
    ) -> Self {
        Self::builder().name(name).threshold(threshold).operator(operator).build()
    }
    #[inline]
    pub fn name(&self) -> &str {
        &*self.name
    }
    #[inline]
    pub fn threshold(&self) -> conjure_object::SafeLong {
        self.threshold
    }
    #[inline]
    pub fn operator(&self) -> &super::Operator {
        &self.operator
    }
}
