#[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 MarkFileIngestSuccessful {
    #[builder(custom(type = super::Bounds, convert = Box::new))]
    #[serde(rename = "bounds")]
    bounds: Box<super::Bounds>,
    #[builder(custom(type = super::super::super::api::Timestamp, convert = Box::new))]
    #[serde(rename = "ingestedAt")]
    ingested_at: Box<super::super::super::api::Timestamp>,
}
impl MarkFileIngestSuccessful {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        bounds: super::Bounds,
        ingested_at: super::super::super::api::Timestamp,
    ) -> Self {
        Self::builder().bounds(bounds).ingested_at(ingested_at).build()
    }
    #[inline]
    pub fn bounds(&self) -> &super::Bounds {
        &*self.bounds
    }
    /// The ingestion timestamp is produced by CSV splitter and stored directly in the clickhouse table.
    /// It's produced externally and passed here to handle retries and failures, and must be nanosecond precision.
    /// Two files cannot have the same ingested at timestamp.
    #[inline]
    pub fn ingested_at(&self) -> &super::super::super::api::Timestamp {
        &*self.ingested_at
    }
}
