#[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 BucketedEnumPlot {
    #[builder(default, list(item(type = super::super::super::super::api::Timestamp)))]
    #[serde(rename = "timestamps", skip_serializing_if = "Vec::is_empty", default)]
    timestamps: Vec<super::super::super::super::api::Timestamp>,
    #[builder(default, list(item(type = super::EnumBucket)))]
    #[serde(rename = "buckets", skip_serializing_if = "Vec::is_empty", default)]
    buckets: Vec<super::EnumBucket>,
    #[builder(default, list(item(type = String, into)))]
    #[serde(rename = "categories", skip_serializing_if = "Vec::is_empty", default)]
    categories: Vec<String>,
}
impl BucketedEnumPlot {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// The end of the bucket, exclusive.
    #[inline]
    pub fn timestamps(&self) -> &[super::super::super::super::api::Timestamp] {
        &*self.timestamps
    }
    #[inline]
    pub fn buckets(&self) -> &[super::EnumBucket] {
        &*self.buckets
    }
    #[inline]
    pub fn categories(&self) -> &[String] {
        &*self.categories
    }
}
