#[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 RunBoundsInverted {
    #[builder(
        custom(
            type = super::super::super::super::super::objects::scout::run::api::UtcTimestamp,
            convert = Box::new
        )
    )]
    #[serde(rename = "startTime")]
    start_time: Box<
        super::super::super::super::super::objects::scout::run::api::UtcTimestamp,
    >,
    #[builder(
        custom(
            type = super::super::super::super::super::objects::scout::run::api::UtcTimestamp,
            convert = Box::new
        )
    )]
    #[serde(rename = "endTime")]
    end_time: Box<
        super::super::super::super::super::objects::scout::run::api::UtcTimestamp,
    >,
}
impl RunBoundsInverted {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        start_time: super::super::super::super::super::objects::scout::run::api::UtcTimestamp,
        end_time: super::super::super::super::super::objects::scout::run::api::UtcTimestamp,
    ) -> Self {
        Self::builder().start_time(start_time).end_time(end_time).build()
    }
    #[inline]
    pub fn start_time(
        &self,
    ) -> &super::super::super::super::super::objects::scout::run::api::UtcTimestamp {
        &*self.start_time
    }
    #[inline]
    pub fn end_time(
        &self,
    ) -> &super::super::super::super::super::objects::scout::run::api::UtcTimestamp {
        &*self.end_time
    }
}
impl conjure_error::ErrorType for RunBoundsInverted {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "Scout:RunBoundsInverted"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["endTime", "startTime"]
    }
}
