#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash,
    Copy
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct DecimateWithBuckets {
    #[serde(rename = "buckets")]
    buckets: i32,
}
impl DecimateWithBuckets {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(buckets: i32) -> Self {
        Self::builder().buckets(buckets).build()
    }
    /// Number of points to generate in the output series.
    #[inline]
    pub fn buckets(&self) -> i32 {
        self.buckets
    }
}
