#[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 RollingOperationSeriesNode {
    #[builder(custom(type = super::NumericSeriesNode, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::NumericSeriesNode>,
    #[builder(custom(type = super::Window, convert = Box::new))]
    #[serde(rename = "window")]
    window: Box<super::Window>,
    #[builder(custom(type = super::ResolvedNumericAggregation, convert = Box::new))]
    #[serde(rename = "aggregation")]
    aggregation: Box<super::ResolvedNumericAggregation>,
}
impl RollingOperationSeriesNode {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        input: super::NumericSeriesNode,
        window: super::Window,
        aggregation: super::ResolvedNumericAggregation,
    ) -> Self {
        Self::builder().input(input).window(window).aggregation(aggregation).build()
    }
    #[inline]
    pub fn input(&self) -> &super::NumericSeriesNode {
        &*self.input
    }
    #[inline]
    pub fn window(&self) -> &super::Window {
        &*self.window
    }
    #[inline]
    pub fn aggregation(&self) -> &super::ResolvedNumericAggregation {
        &*self.aggregation
    }
}
