/// The sum of two durations.
#[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 DurationAdd {
    #[builder(custom(type = super::Duration, convert = Box::new))]
    #[serde(rename = "left")]
    left: Box<super::Duration>,
    #[builder(custom(type = super::Duration, convert = Box::new))]
    #[serde(rename = "right")]
    right: Box<super::Duration>,
}
impl DurationAdd {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(left: super::Duration, right: super::Duration) -> Self {
        Self::builder().left(left).right(right).build()
    }
    /// First duration.
    #[inline]
    pub fn left(&self) -> &super::Duration {
        &*self.left
    }
    /// Second duration.
    #[inline]
    pub fn right(&self) -> &super::Duration {
        &*self.right
    }
}
