Class WebhookAuthentication
-
- All Implemented Interfaces:
public final class WebhookAuthentication
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWebhookAuthentication.BuilderA builder for WebhookAuthentication.
-
Method Summary
Modifier and Type Method Description final WebhookAuthModemode()The authentication mode to use. final Optional<String>token()Token for bearer authentication. final Optional<String>password()Password for basic authentication. final Optional<String>username()Username for basic authentication. final JsonField<WebhookAuthMode>_mode()Returns the raw JSON value of mode. final JsonField<String>_token()Returns the raw JSON value of token. final JsonField<String>_password()Returns the raw JSON value of password. final JsonField<String>_username()Returns the raw JSON value of username. final Map<String, JsonValue>_additionalProperties()final WebhookAuthentication.BuildertoBuilder()final WebhookAuthenticationvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static WebhookAuthentication.Builderbuilder()Returns a mutable builder for constructing an instance of WebhookAuthentication. -
-
Method Detail
-
mode
final WebhookAuthMode mode()
The authentication mode to use. Defaults to 'none' if not specified.
-
_mode
final JsonField<WebhookAuthMode> _mode()
Returns the raw JSON value of mode.
Unlike mode, this method doesn't throw if the JSON field has an unexpected type.
-
_token
final JsonField<String> _token()
Returns the raw JSON value of token.
Unlike token, this method doesn't throw if the JSON field has an unexpected type.
-
_password
final JsonField<String> _password()
Returns the raw JSON value of password.
Unlike password, this method doesn't throw if the JSON field has an unexpected type.
-
_username
final JsonField<String> _username()
Returns the raw JSON value of username.
Unlike username, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final WebhookAuthentication.Builder toBuilder()
-
validate
final WebhookAuthentication validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static WebhookAuthentication.Builder builder()
Returns a mutable builder for constructing an instance of WebhookAuthentication.
The following fields are required:
.mode()
-
-
-
-