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