/// Aggregates values with duplicate timestamps in the input series values into a single value using the specified aggregation function.
#[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 AggregateEnumSeries {
    #[builder(custom(type = super::EnumSeries, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::EnumSeries>,
    #[serde(rename = "function")]
    function: super::EnumAggregationFunction,
}
impl AggregateEnumSeries {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        input: super::EnumSeries,
        function: super::EnumAggregationFunction,
    ) -> Self {
        Self::builder().input(input).function(function).build()
    }
    #[inline]
    pub fn input(&self) -> &super::EnumSeries {
        &*self.input
    }
    #[inline]
    pub fn function(&self) -> &super::EnumAggregationFunction {
        &self.function
    }
}
