#[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 ResampleConfiguration {
    #[builder(
        custom(type = super::super::super::super::run::api::Duration, convert = Box::new)
    )]
    #[serde(rename = "interval")]
    interval: Box<super::super::super::super::run::api::Duration>,
    #[builder(
        custom(type = super::ResampleInterpolationConfiguration, convert = Box::new)
    )]
    #[serde(rename = "interpolation")]
    interpolation: Box<super::ResampleInterpolationConfiguration>,
}
impl ResampleConfiguration {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        interval: super::super::super::super::run::api::Duration,
        interpolation: super::ResampleInterpolationConfiguration,
    ) -> Self {
        Self::builder().interval(interval).interpolation(interpolation).build()
    }
    #[inline]
    pub fn interval(&self) -> &super::super::super::super::run::api::Duration {
        &*self.interval
    }
    #[inline]
    pub fn interpolation(&self) -> &super::ResampleInterpolationConfiguration {
        &*self.interpolation
    }
}
