Class WebhookUpdateParams
-
- All Implemented Interfaces:
-
io.imagekit.core.Params
public final class WebhookUpdateParams implements Params
Updates the webhook identified by
idand returns the updated object. Only the fields included in the request body are changed.When
eventsis provided, it replaces the existing list of subscribed events. The signingsecretcan't be changed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWebhookUpdateParams.BuilderA builder for WebhookUpdateParams.
public final classWebhookUpdateParams.Body
-
Method Summary
Modifier and Type Method Description final Optional<String>id()Unique identifier for a webhook. 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>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final WebhookUpdateParams.BuildertoBuilder()final WebhookUpdateParams.Body_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static WebhookUpdateParamsnone()final static WebhookUpdateParams.Builderbuilder()Returns a mutable builder for constructing an instance of WebhookUpdateParams. -
-
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.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final WebhookUpdateParams.Builder toBuilder()
-
_body
final WebhookUpdateParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
none
final static WebhookUpdateParams none()
-
builder
final static WebhookUpdateParams.Builder builder()
Returns a mutable builder for constructing an instance of WebhookUpdateParams.
-
-
-
-