Class WebhookProfile.Builder
-
- All Implemented Interfaces:
public final class WebhookProfile.BuilderA builder for WebhookProfile.
-
-
Method Summary
-
-
Method Detail
-
url
final WebhookProfile.Builder url(String url)
The URL to send the webhook request to.
-
url
final WebhookProfile.Builder url(JsonField<String> url)
Sets Builder.url to an arbitrary JSON value.
You should usually call Builder.url with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
authentication
final WebhookProfile.Builder authentication(WebhookAuthentication authentication)
Authentication configuration for the webhook request.
-
authentication
final WebhookProfile.Builder authentication(Optional<WebhookAuthentication> authentication)
Alias for calling Builder.authentication with
authentication.orElse(null).
-
authentication
final WebhookProfile.Builder authentication(JsonField<WebhookAuthentication> authentication)
Sets Builder.authentication to an arbitrary JSON value.
You should usually call Builder.authentication with a well-typed WebhookAuthentication value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
headers
final WebhookProfile.Builder headers(WebhookProfile.Headers headers)
Custom headers to include in the webhook request.
-
headers
final WebhookProfile.Builder headers(Optional<WebhookProfile.Headers> headers)
Alias for calling Builder.headers with
headers.orElse(null).
-
headers
final WebhookProfile.Builder headers(JsonField<WebhookProfile.Headers> headers)
Sets Builder.headers to an arbitrary JSON value.
You should usually call Builder.headers with a well-typed Headers value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
method
final WebhookProfile.Builder method(WebhookMethod method)
The HTTP method to use for the webhook request. Defaults to POST if not specified.
-
method
final WebhookProfile.Builder method(Optional<WebhookMethod> method)
Alias for calling Builder.method with
method.orElse(null).
-
method
final WebhookProfile.Builder method(JsonField<WebhookMethod> method)
Sets Builder.method to an arbitrary JSON value.
You should usually call Builder.method with a well-typed WebhookMethod value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
profile
final WebhookProfile.Builder profile(WebhookProfileType profile)
Specifies what profile information is included in the request payload. Defaults to 'limited' if not specified.
-
profile
final WebhookProfile.Builder profile(Optional<WebhookProfileType> profile)
Alias for calling Builder.profile with
profile.orElse(null).
-
profile
final WebhookProfile.Builder profile(JsonField<WebhookProfileType> profile)
Sets Builder.profile to an arbitrary JSON value.
You should usually call Builder.profile with a well-typed WebhookProfileType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final WebhookProfile.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final WebhookProfile.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final WebhookProfile.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final WebhookProfile.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final WebhookProfile.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final WebhookProfile build()
Returns an immutable instance of WebhookProfile.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.url()
-
-
-
-