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