/// The compute node was given a starting timestamp after the end of the view range window.
#[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 InvalidRangeNodeStartAfterViewRange {
    #[builder(
        custom(
            type = super::super::super::super::super::objects::api::Timestamp,
            convert = Box::new
        )
    )]
    #[serde(rename = "nodeStart")]
    node_start: Box<super::super::super::super::super::objects::api::Timestamp>,
    #[builder(
        custom(
            type = super::super::super::super::super::objects::api::Timestamp,
            convert = Box::new
        )
    )]
    #[serde(rename = "rangeEnd")]
    range_end: Box<super::super::super::super::super::objects::api::Timestamp>,
}
impl InvalidRangeNodeStartAfterViewRange {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        node_start: super::super::super::super::super::objects::api::Timestamp,
        range_end: super::super::super::super::super::objects::api::Timestamp,
    ) -> Self {
        Self::builder().node_start(node_start).range_end(range_end).build()
    }
    #[inline]
    pub fn node_start(
        &self,
    ) -> &super::super::super::super::super::objects::api::Timestamp {
        &*self.node_start
    }
    #[inline]
    pub fn range_end(
        &self,
    ) -> &super::super::super::super::super::objects::api::Timestamp {
        &*self.range_end
    }
}
impl conjure_error::ErrorType for InvalidRangeNodeStartAfterViewRange {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "Compute:InvalidRangeNodeStartAfterViewRange"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["nodeStart", "rangeEnd"]
    }
}
