Package model
Class WebhookAuthentication
- java.lang.Object
-
- model.WebhookAuthentication
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class WebhookAuthentication extends Object
The authentication settings that are used to send webhook events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhookAuthentication.CustomTypeAdapterFactorystatic classWebhookAuthentication.TypeEnumThe type of authentication the webhook will use: - NONE: No authentication will be used.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description WebhookAuthentication()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static WebhookAuthenticationfromJson(String jsonString)Create an instance of WebhookAuthentication given an JSON stringWebhookAuthentication.TypeEnumgetType()The type of authentication the webhook will use: - NONE: No authentication will be used.inthashCode()voidsetType(WebhookAuthentication.TypeEnum type)StringtoJson()Convert an instance of WebhookAuthentication to an JSON stringStringtoString()WebhookAuthenticationtype(WebhookAuthentication.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
type
public WebhookAuthentication type(WebhookAuthentication.TypeEnum type)
-
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
-
setType
public void setType(WebhookAuthentication.TypeEnum type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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
-
-