Class WebhookCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class WebhookCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
enabledEvents
final WebhookCreateParams.Body.Builder enabledEvents(List<WebhookCreateParams.EnabledEvent> enabledEvents)
The event types to deliver to the endpoint. Must list at least one.
-
enabledEvents
final WebhookCreateParams.Body.Builder enabledEvents(JsonField<List<WebhookCreateParams.EnabledEvent>> enabledEvents)
Sets Builder.enabledEvents to an arbitrary JSON value.
You should usually call Builder.enabledEvents with a well-typed
List<EnabledEvent>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
url
final WebhookCreateParams.Body.Builder url(String url)
The HTTPS URL that deliveries are sent to.
-
url
final WebhookCreateParams.Body.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.
-
description
final WebhookCreateParams.Body.Builder description(String description)
Notes about the endpoint.
-
description
final WebhookCreateParams.Body.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final WebhookCreateParams.Body.Builder name(String name)
A short label for the endpoint.
-
name
final WebhookCreateParams.Body.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name 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 WebhookCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addEnabledEvent
final WebhookCreateParams.Body.Builder addEnabledEvent(WebhookCreateParams.EnabledEvent enabledEvent)
Adds a single EnabledEvent to enabledEvents.
-
putAdditionalProperty
final WebhookCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final WebhookCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final WebhookCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final WebhookCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final WebhookCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.enabledEvents() .url()
-
-
-
-