Package model
Class CreateWebhookRequestAuthentication
- java.lang.Object
-
- model.CreateWebhookRequestAuthentication
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateWebhookRequestAuthentication extends Object
The authentication settings that are used to send webhook events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateWebhookRequestAuthentication.CustomTypeAdapterFactorystatic classCreateWebhookRequestAuthentication.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_BASICstatic StringSERIALIZED_NAME_BEARERstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description CreateWebhookRequestAuthentication()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_BASIC
public static final String SERIALIZED_NAME_BASIC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BEARER
public static final String SERIALIZED_NAME_BEARER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
basic
public CreateWebhookRequestAuthentication basic(CreateWebhookRequestAuthenticationBasic basic)
-
getBasic
@Nullable public CreateWebhookRequestAuthenticationBasic getBasic()
Get basic- Returns:
- basic
-
setBasic
public void setBasic(CreateWebhookRequestAuthenticationBasic basic)
-
bearer
public CreateWebhookRequestAuthentication bearer(CreateWebhookRequestAuthenticationBearer bearer)
-
getBearer
@Nullable public CreateWebhookRequestAuthenticationBearer getBearer()
Get bearer- Returns:
- bearer
-
setBearer
public void setBearer(CreateWebhookRequestAuthenticationBearer bearer)
-
type
public CreateWebhookRequestAuthentication type(CreateWebhookRequestAuthentication.TypeEnum type)
-
getType
@Nullable public CreateWebhookRequestAuthentication.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(CreateWebhookRequestAuthentication.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 CreateWebhookRequestAuthentication
-
fromJson
public static CreateWebhookRequestAuthentication fromJson(String jsonString) throws IOException
Create an instance of CreateWebhookRequestAuthentication given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateWebhookRequestAuthentication
- Throws:
IOException- if the JSON string is invalid with respect to CreateWebhookRequestAuthentication
-
toJson
public String toJson()
Convert an instance of CreateWebhookRequestAuthentication to an JSON string- Returns:
- JSON string
-
-