Class WebhookCreateParams.Body
-
- All Implemented Interfaces:
public final class WebhookCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWebhookCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Stringendpoint()The URL where ImageKit sends webhook events as POSTrequests.final List<WebhookEventType>events()The event types this webhook is subscribed to. final Optional<Boolean>enabled()Whether the webhook is enabled. final JsonField<String>_endpoint()Returns the raw JSON value of endpoint. final JsonField<List<WebhookEventType>>_events()Returns the raw JSON value of events. final JsonField<Boolean>_enabled()Returns the raw JSON value of enabled. final Map<String, JsonValue>_additionalProperties()final WebhookCreateParams.Body.BuildertoBuilder()final WebhookCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static WebhookCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
endpoint
final String endpoint()
The URL where ImageKit sends webhook events as
POSTrequests. Must use thehttporhttpsprotocol, and must be unique across all webhooks for your account.
-
events
final List<WebhookEventType> events()
The event types this webhook is subscribed to. ImageKit sends a request to the
endpointonly for these events.
-
enabled
final Optional<Boolean> enabled()
Whether the webhook is enabled. When
false, ImageKit doesn't send any events to theendpoint.
-
_endpoint
final JsonField<String> _endpoint()
Returns the raw JSON value of endpoint.
Unlike endpoint, this method doesn't throw if the JSON field has an unexpected type.
-
_events
final JsonField<List<WebhookEventType>> _events()
Returns the raw JSON value of events.
Unlike events, this method doesn't throw if the JSON field has an unexpected type.
-
_enabled
final JsonField<Boolean> _enabled()
Returns the raw JSON value of enabled.
Unlike enabled, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final WebhookCreateParams.Body.Builder toBuilder()
-
validate
final WebhookCreateParams.Body 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 WebhookCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.endpoint() .events()
-
-
-
-