/// Groups points by a tag selection and a timestamp policy and applies the operator.
#[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 GroupByAggregationBuilder {
    #[builder(custom(type = super::Series, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::Series>,
    #[builder(custom(type = super::GroupByTags, convert = Box::new))]
    #[serde(rename = "tags")]
    tags: Box<super::GroupByTags>,
    #[builder(custom(type = super::GroupByTimestamp, convert = Box::new))]
    #[serde(rename = "timestamp")]
    timestamp: Box<super::GroupByTimestamp>,
}
impl GroupByAggregationBuilder {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        input: super::Series,
        tags: super::GroupByTags,
        timestamp: super::GroupByTimestamp,
    ) -> Self {
        Self::builder().input(input).tags(tags).timestamp(timestamp).build()
    }
    #[inline]
    pub fn input(&self) -> &super::Series {
        &*self.input
    }
    #[inline]
    pub fn tags(&self) -> &super::GroupByTags {
        &*self.tags
    }
    #[inline]
    pub fn timestamp(&self) -> &super::GroupByTimestamp {
        &*self.timestamp
    }
}
