/// Per-output timestamp metadata for a containerized extractor output.
///
/// Only numeric epoch timestamps are expressible here. Outputs that need richer timestamp
/// types (ISO 8601, custom string formats, relative offsets) should omit this and rely on the
/// job-level timestamp metadata, which supports the full TimestampType range.
#[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 ManifestTimestampMetadata {
    #[builder(into)]
    #[serde(rename = "seriesName")]
    series_name: String,
    #[serde(rename = "epochTimeUnit")]
    epoch_time_unit: super::ManifestEpochTimeUnit,
}
impl ManifestTimestampMetadata {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        series_name: impl Into<String>,
        epoch_time_unit: super::ManifestEpochTimeUnit,
    ) -> Self {
        Self::builder().series_name(series_name).epoch_time_unit(epoch_time_unit).build()
    }
    /// Name of the column (TABULAR) or top-level JSON field (JSON_L) that holds the timestamp
    /// for this output.
    #[inline]
    pub fn series_name(&self) -> &str {
        &*self.series_name
    }
    /// Time unit of the numeric epoch timestamp stored in seriesName.
    #[inline]
    pub fn epoch_time_unit(&self) -> &super::ManifestEpochTimeUnit {
        &self.epoch_time_unit
    }
}
