/// Summary of a set of ranges
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct RangeSummary {
    #[builder(custom(type = super::Range, convert = Box::new))]
    #[serde(rename = "range")]
    range: Box<super::Range>,
    #[serde(rename = "subRangeCount")]
    sub_range_count: i32,
}
impl RangeSummary {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(range: super::Range, sub_range_count: i32) -> Self {
        Self::builder().range(range).sub_range_count(sub_range_count).build()
    }
    /// The range representing the minimum start and maximum end times of the ranges.
    #[inline]
    pub fn range(&self) -> &super::Range {
        &*self.range
    }
    /// The number of ranges found within this time range.
    #[inline]
    pub fn sub_range_count(&self) -> i32 {
        self.sub_range_count
    }
}
