#[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 Bounds {
    #[builder(custom(type = super::super::super::api::Timestamp, convert = Box::new))]
    #[serde(rename = "start")]
    start: Box<super::super::super::api::Timestamp>,
    #[builder(custom(type = super::super::super::api::Timestamp, convert = Box::new))]
    #[serde(rename = "end")]
    end: Box<super::super::super::api::Timestamp>,
    #[serde(rename = "type")]
    type_: super::super::super::datasource::TimestampType,
}
impl Bounds {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        start: super::super::super::api::Timestamp,
        end: super::super::super::api::Timestamp,
        type_: super::super::super::datasource::TimestampType,
    ) -> Self {
        Self::builder().start(start).end(end).type_(type_).build()
    }
    #[inline]
    pub fn start(&self) -> &super::super::super::api::Timestamp {
        &*self.start
    }
    #[inline]
    pub fn end(&self) -> &super::super::super::api::Timestamp {
        &*self.end
    }
    #[inline]
    pub fn type_(&self) -> &super::super::super::datasource::TimestampType {
        &self.type_
    }
}
