/// Response returned when creating a webhook integration.
/// Contains the full integration object and the server-generated HMAC signing key.
/// The signing key is only returned at creation time — store it securely.
#[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 CreateSecureWebhookIntegrationResponse {
    #[builder(custom(type = super::Integration, convert = Box::new))]
    #[serde(rename = "integration")]
    integration: Box<super::Integration>,
    #[builder(into)]
    #[serde(rename = "signingKey")]
    signing_key: String,
}
impl CreateSecureWebhookIntegrationResponse {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(integration: super::Integration, signing_key: impl Into<String>) -> Self {
        Self::builder().integration(integration).signing_key(signing_key).build()
    }
    #[inline]
    pub fn integration(&self) -> &super::Integration {
        &*self.integration
    }
    /// Server-generated HMAC-SHA256 signing key (256-bit, base64-encoded).
    /// Store this securely in your secrets manager (e.g., AWS Secrets Manager, HashiCorp Vault).
    /// This key cannot be retrieved again - if you lose it, use rotateSecureWebhookIntegrationSigningKey to generate a new one.
    #[inline]
    pub fn signing_key(&self) -> &str {
        &*self.signing_key
    }
}
