/// Replaces values in a series with the absolute timestamps.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct AbsoluteTimestampSeries {
    #[builder(custom(type = super::Series, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::Series>,
    #[serde(rename = "timeUnit")]
    time_unit: super::super::super::super::api::TimeUnit,
}
impl AbsoluteTimestampSeries {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        input: super::Series,
        time_unit: super::super::super::super::api::TimeUnit,
    ) -> Self {
        Self::builder().input(input).time_unit(time_unit).build()
    }
    #[inline]
    pub fn input(&self) -> &super::Series {
        &*self.input
    }
    /// The time unit used to define the output values. Throws an error if nanosecond or finer.
    #[inline]
    pub fn time_unit(&self) -> &super::super::super::super::api::TimeUnit {
        &self.time_unit
    }
}
