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