/// Constructs a duration from a number of hours.
#[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 DurationHours {
    #[builder(custom(type = super::IntegerConstant, convert = Box::new))]
    #[serde(rename = "hours")]
    hours: Box<super::IntegerConstant>,
}
impl DurationHours {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(hours: super::IntegerConstant) -> Self {
        Self::builder().hours(hours).build()
    }
    /// The number of hours.
    #[inline]
    pub fn hours(&self) -> &super::IntegerConstant {
        &*self.hours
    }
}
