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