/// Fills all empty resample intervals with a single constant value.
///
/// If a resampled time interval (bucket) contains no data points from the input, it will
/// be assigned the specified 'constant' as a default value. This applies to gaps at the start of the
/// series, between data points, and at the end.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct EnumConstantResampleInterpolationConfiguration {
    #[builder(custom(type = super::StringConstant, convert = Box::new))]
    #[serde(rename = "constant")]
    constant: Box<super::StringConstant>,
}
impl EnumConstantResampleInterpolationConfiguration {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(constant: super::StringConstant) -> Self {
        Self::builder().constant(constant).build()
    }
    #[inline]
    pub fn constant(&self) -> &super::StringConstant {
        &*self.constant
    }
}
