/// Rolling point-count aggregation: for each point in the input, aggregate the current point and the preceding
/// N - 1 points within the same tag grouping.
#[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 RollingPointsAggregationBuilder {
    #[builder(custom(type = super::Series, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::Series>,
    #[builder(custom(type = super::IntegerConstant, convert = Box::new))]
    #[serde(rename = "points")]
    points: Box<super::IntegerConstant>,
}
impl RollingPointsAggregationBuilder {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(input: super::Series, points: super::IntegerConstant) -> Self {
        Self::builder().input(input).points(points).build()
    }
    #[inline]
    pub fn input(&self) -> &super::Series {
        &*self.input
    }
    #[inline]
    pub fn points(&self) -> &super::IntegerConstant {
        &*self.points
    }
}
