/// Aggregates the values of a numeric series at each range specified by the input 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 RangesNumericAggregation {
    #[builder(custom(type = super::RangeSeries, convert = Box::new))]
    #[serde(rename = "ranges")]
    ranges: Box<super::RangeSeries>,
    #[builder(custom(type = super::NumericSeries, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::NumericSeries>,
    #[builder(custom(type = super::RangeAggregationOperation, convert = Box::new))]
    #[serde(rename = "operation")]
    operation: Box<super::RangeAggregationOperation>,
}
impl RangesNumericAggregation {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        ranges: super::RangeSeries,
        input: super::NumericSeries,
        operation: super::RangeAggregationOperation,
    ) -> Self {
        Self::builder().ranges(ranges).input(input).operation(operation).build()
    }
    #[inline]
    pub fn ranges(&self) -> &super::RangeSeries {
        &*self.ranges
    }
    #[inline]
    pub fn input(&self) -> &super::NumericSeries {
        &*self.input
    }
    #[inline]
    pub fn operation(&self) -> &super::RangeAggregationOperation {
        &*self.operation
    }
}
