#[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 Offset {
    #[serde(rename = "value")]
    value: conjure_object::SafeLong,
    #[serde(rename = "unit")]
    unit: super::super::super::super::api::TimeUnit,
}
impl Offset {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        value: conjure_object::SafeLong,
        unit: super::super::super::super::api::TimeUnit,
    ) -> Self {
        Self::builder().value(value).unit(unit).build()
    }
    #[inline]
    pub fn value(&self) -> conjure_object::SafeLong {
        self.value
    }
    #[inline]
    pub fn unit(&self) -> &super::super::super::super::api::TimeUnit {
        &self.unit
    }
}
