#[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 MultivariateBucket {
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "timestamp")]
    timestamp: Box<super::super::super::super::api::Timestamp>,
    #[builder(default, list(item(type = super::Value)))]
    #[serde(rename = "values", skip_serializing_if = "Vec::is_empty", default)]
    values: Vec<super::Value>,
}
impl MultivariateBucket {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(timestamp: super::super::super::super::api::Timestamp) -> Self {
        Self::builder().timestamp(timestamp).build()
    }
    #[inline]
    pub fn timestamp(&self) -> &super::super::super::super::api::Timestamp {
        &*self.timestamp
    }
    /// Values for each input series in the bucket.
    #[inline]
    pub fn values(&self) -> &[super::Value] {
        &*self.values
    }
}
