/// Resamples the input series to a new resolution using interpolation.
/// Outputs data for timestamps corresponding to the defined frequency. Based on interpolation strategy,
/// determines range of timestamps to output data for and interpolates values where necessary.
#[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 EnumResampleSeries {
    #[builder(custom(type = super::EnumSeries, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::EnumSeries>,
    #[builder(custom(type = super::EnumResampleConfiguration, convert = Box::new))]
    #[serde(rename = "resampleConfiguration")]
    resample_configuration: Box<super::EnumResampleConfiguration>,
}
impl EnumResampleSeries {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        input: super::EnumSeries,
        resample_configuration: super::EnumResampleConfiguration,
    ) -> Self {
        Self::builder()
            .input(input)
            .resample_configuration(resample_configuration)
            .build()
    }
    #[inline]
    pub fn input(&self) -> &super::EnumSeries {
        &*self.input
    }
    /// The interval at which to resample the series and interpolation strategy
    #[inline]
    pub fn resample_configuration(&self) -> &super::EnumResampleConfiguration {
        &*self.resample_configuration
    }
}
