Class Webhook


  • public final class Webhook
    extends Object
    Detail about the webhook object.
    • Constructor Detail

      • Webhook

        public Webhook()
    • Method Detail

      • webhookId

        public String webhookId()
        Get the webhookId property: Unique identifier for the webhook.
        Returns:
        the webhookId value.
      • withWebhookId

        public Webhook withWebhookId​(String webhookId)
        Set the webhookId property: Unique identifier for the webhook.
        Parameters:
        webhookId - the webhookId value to set.
        Returns:
        the Webhook object itself.
      • webhookUrl

        public String webhookUrl()
        Get the webhookUrl property: URL that gets invoked by the webhook.
        Returns:
        the webhookUrl value.
      • withWebhookUrl

        public Webhook withWebhookUrl​(String webhookUrl)
        Set the webhookUrl property: URL that gets invoked by the webhook.
        Parameters:
        webhookUrl - the webhookUrl value to set.
        Returns:
        the Webhook object itself.
      • webhookSecretUpdateTime

        public String webhookSecretUpdateTime()
        Get the webhookSecretUpdateTime property: Time when the webhook secret was updated.
        Returns:
        the webhookSecretUpdateTime value.
      • withWebhookSecretUpdateTime

        public Webhook withWebhookSecretUpdateTime​(String webhookSecretUpdateTime)
        Set the webhookSecretUpdateTime property: Time when the webhook secret was updated.
        Parameters:
        webhookSecretUpdateTime - the webhookSecretUpdateTime value to set.
        Returns:
        the Webhook object itself.
      • rotateWebhookSecret

        public Boolean rotateWebhookSecret()
        Get the rotateWebhookSecret property: A flag to instruct the backend service to rotate webhook secret.
        Returns:
        the rotateWebhookSecret value.
      • withRotateWebhookSecret

        public Webhook withRotateWebhookSecret​(Boolean rotateWebhookSecret)
        Set the rotateWebhookSecret property: A flag to instruct the backend service to rotate webhook secret.
        Parameters:
        rotateWebhookSecret - the rotateWebhookSecret value to set.
        Returns:
        the Webhook object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.