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