#[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 SummarizeRanges {
    #[builder(custom(type = super::RangeSeries, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::RangeSeries>,
    #[builder(default, into)]
    #[serde(rename = "maxRanges", skip_serializing_if = "Option::is_none", default)]
    max_ranges: Option<i32>,
}
impl SummarizeRanges {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(input: super::RangeSeries) -> Self {
        Self::builder().input(input).build()
    }
    #[inline]
    pub fn input(&self) -> &super::RangeSeries {
        &*self.input
    }
    /// The maximum number of ranges to return in the response. If more ranges are found, a RangesSummary
    /// will be returned. Defaults to 2000 if not specified.
    #[inline]
    pub fn max_ranges(&self) -> Option<i32> {
        self.max_ranges.as_ref().map(|o| *o)
    }
}
