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