Class WebhookAuthentication.Builder
-
- All Implemented Interfaces:
public final class WebhookAuthentication.BuilderA builder for WebhookAuthentication.
-
-
Method Summary
-
-
Method Detail
-
mode
final WebhookAuthentication.Builder mode(WebhookAuthMode mode)
The authentication mode to use. Defaults to 'none' if not specified.
-
mode
final WebhookAuthentication.Builder mode(JsonField<WebhookAuthMode> mode)
Sets Builder.mode to an arbitrary JSON value.
You should usually call Builder.mode with a well-typed WebhookAuthMode value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
token
final WebhookAuthentication.Builder token(String token)
Token for bearer authentication.
-
token
final WebhookAuthentication.Builder token(Optional<String> token)
Alias for calling Builder.token with
token.orElse(null).
-
token
final WebhookAuthentication.Builder token(JsonField<String> token)
Sets Builder.token to an arbitrary JSON value.
You should usually call Builder.token with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
password
final WebhookAuthentication.Builder password(String password)
Password for basic authentication.
-
password
final WebhookAuthentication.Builder password(Optional<String> password)
Alias for calling Builder.password with
password.orElse(null).
-
password
final WebhookAuthentication.Builder password(JsonField<String> password)
Sets Builder.password to an arbitrary JSON value.
You should usually call Builder.password with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
username
final WebhookAuthentication.Builder username(String username)
Username for basic authentication.
-
username
final WebhookAuthentication.Builder username(Optional<String> username)
Alias for calling Builder.username with
username.orElse(null).
-
username
final WebhookAuthentication.Builder username(JsonField<String> username)
Sets Builder.username to an arbitrary JSON value.
You should usually call Builder.username with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final WebhookAuthentication.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final WebhookAuthentication.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final WebhookAuthentication.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final WebhookAuthentication.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final WebhookAuthentication.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final WebhookAuthentication build()
Returns an immutable instance of WebhookAuthentication.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.mode()
-
-
-
-