/// Response when rotating a webhook integration's signing key.
/// This is the only way to retrieve the signing key after initial creation.
#[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 RotateWebhookSigningKeyResponse {
    #[builder(into)]
    #[serde(rename = "signingKey")]
    signing_key: String,
}
impl RotateWebhookSigningKeyResponse {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(signing_key: impl Into<String>) -> Self {
        Self::builder().signing_key(signing_key).build()
    }
    /// New HMAC-SHA256 signing key (256-bit, base64-encoded). The old key is immediately invalidated.
    /// Store this securely - update your application configuration with the new key before the next webhook delivery.
    #[inline]
    pub fn signing_key(&self) -> &str {
        &*self.signing_key
    }
}
