Package model

Class WebhookAuthentication


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class WebhookAuthentication
    extends Object
    The authentication settings that are used to send webhook events.
    • Constructor Detail

      • WebhookAuthentication

        public WebhookAuthentication()
    • Method Detail

      • getType

        @Nullable
        public WebhookAuthentication.TypeEnum getType()
        The type of authentication the webhook will use: - NONE: No authentication will be used. - BASIC: Basic authentication. - BEARER: Oauth2's Bearer Token.
        Returns:
        type
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to WebhookAuthentication
      • fromJson

        public static WebhookAuthentication fromJson​(String jsonString)
                                              throws IOException
        Create an instance of WebhookAuthentication given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of WebhookAuthentication
        Throws:
        IOException - if the JSON string is invalid with respect to WebhookAuthentication
      • toJson

        public String toJson()
        Convert an instance of WebhookAuthentication to an JSON string
        Returns:
        JSON string