Class WebhookCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class WebhookCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
endpoint
final WebhookCreateParams.Body.Builder endpoint(String endpoint)
The URL where ImageKit sends webhook events as
POSTrequests. Must use thehttporhttpsprotocol, and must be unique across all webhooks for your account.
-
endpoint
final WebhookCreateParams.Body.Builder endpoint(JsonField<String> endpoint)
Sets Builder.endpoint to an arbitrary JSON value.
You should usually call Builder.endpoint with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
events
final WebhookCreateParams.Body.Builder events(List<WebhookEventType> events)
The event types this webhook is subscribed to. ImageKit sends a request to the
endpointonly for these events.
-
events
final WebhookCreateParams.Body.Builder events(JsonField<List<WebhookEventType>> events)
Sets Builder.events to an arbitrary JSON value.
You should usually call Builder.events with a well-typed
List<WebhookEventType>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addEvent
final WebhookCreateParams.Body.Builder addEvent(WebhookEventType event)
Adds a single WebhookEventType to events.
-
enabled
final WebhookCreateParams.Body.Builder enabled(Boolean enabled)
Whether the webhook is enabled. When
false, ImageKit doesn't send any events to theendpoint.
-
enabled
final WebhookCreateParams.Body.Builder enabled(JsonField<Boolean> enabled)
Sets Builder.enabled to an arbitrary JSON value.
You should usually call Builder.enabled with a well-typed Boolean 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)
-
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:
.endpoint() .events()
-
-
-
-