Class WebhookUpdateParams.Body
-
- All Implemented Interfaces:
public final class WebhookUpdateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWebhookUpdateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Optional<Boolean>enabled()Whether the webhook is enabled. final Optional<String>endpoint()The URL where ImageKit sends webhook events as POSTrequests.final Optional<List<WebhookEventType>>events()The event types this webhook is subscribed to. final JsonField<Boolean>_enabled()Returns the raw JSON value of 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 Map<String, JsonValue>_additionalProperties()final WebhookUpdateParams.Body.BuildertoBuilder()final WebhookUpdateParams.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 WebhookUpdateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
enabled
final Optional<Boolean> enabled()
Whether the webhook is enabled. Omit to leave the current value unchanged.
-
endpoint
final Optional<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 Optional<List<WebhookEventType>> events()
The event types this webhook is subscribed to. Replaces the existing list. Omit to leave the current value unchanged.
-
_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.
-
_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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final WebhookUpdateParams.Body.Builder toBuilder()
-
validate
final WebhookUpdateParams.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 WebhookUpdateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
-
-
-
-