Class EndpointWebhookValidation

java.lang.Object
com.ngrok.definitions.EndpointWebhookValidation

public class EndpointWebhookValidation extends Object
A class encapsulating the EndpointWebhookValidation resource.
  • Method Details

    • newBuilder

      public static EndpointWebhookValidation.Builder newBuilder()
      Creates a new builder for the EndpointWebhookValidation type.
      Returns:
      a new EndpointWebhookValidation.Builder
    • getEnabled

      public Optional<Boolean> getEnabled()
      true if the module will be applied to traffic, false to disable. default true if unspecified
      Returns:
      the value of the property as a boolean wrapped in an Optional
    • getProvider

      public String getProvider()
      a string indicating which webhook provider will be sending webhooks to this endpoint. Value must be one of the supported providers: SLACK, SNS, STRIPE, GITHUB, TWILIO, SHOPIFY, GITLAB, INTERCOM, SENDGRID, XERO, PAGERDUTY.
      Returns:
      the value of the property as a String
    • getSecret

      public String getSecret()
      a string secret used to validate requests from the given provider. All providers except AWS SNS require a secret
      Returns:
      the value of the property as a String
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object