Class Webhook.Builder
-
- All Implemented Interfaces:
public final class Webhook.BuilderA builder for Webhook.
-
-
Method Summary
Modifier and Type Method Description final Webhook.Builderid(String id)Unique identifier for a webhook. final Webhook.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final Webhook.BuildercreatedAt(OffsetDateTime createdAt)ISO 8601 timestamp of when the webhook was created. final Webhook.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final Webhook.Builderenabled(Boolean enabled)Whether the webhook is enabled. final Webhook.Builderenabled(JsonField<Boolean> enabled)Sets Builder.enabled to an arbitrary JSON value. final Webhook.Builderendpoint(String endpoint)The URL where ImageKit sends webhook events as POSTrequests.final Webhook.Builderendpoint(JsonField<String> endpoint)Sets Builder.endpoint to an arbitrary JSON value. final Webhook.Builderevents(List<WebhookEventType> events)The event types this webhook is subscribed to. final Webhook.Builderevents(JsonField<List<WebhookEventType>> events)Sets Builder.events to an arbitrary JSON value. final Webhook.BuilderaddEvent(WebhookEventType event)Adds a single WebhookEventType to events. final Webhook.Buildersecret(String secret)Signing secret generated by ImageKit, used to verify that webhook requests come from ImageKit. final Webhook.Buildersecret(JsonField<String> secret)Sets Builder.secret to an arbitrary JSON value. final Webhook.BuilderupdatedAt(OffsetDateTime updatedAt)ISO 8601 timestamp of when the webhook was last updated. final Webhook.BuilderupdatedAt(JsonField<OffsetDateTime> updatedAt)Sets Builder.updatedAt to an arbitrary JSON value. final Webhook.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final Webhook.BuilderputAdditionalProperty(String key, JsonValue value)final Webhook.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final Webhook.BuilderremoveAdditionalProperty(String key)final Webhook.BuilderremoveAllAdditionalProperties(Set<String> keys)final Webhookbuild()Returns an immutable instance of Webhook. -
-
Method Detail
-
id
final Webhook.Builder id(String id)
Unique identifier for a webhook.
-
id
final Webhook.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final Webhook.Builder createdAt(OffsetDateTime createdAt)
ISO 8601 timestamp of when the webhook was created.
-
createdAt
final Webhook.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
enabled
final Webhook.Builder enabled(Boolean enabled)
Whether the webhook is enabled. When
false, ImageKit doesn't send any events to theendpoint.
-
enabled
final Webhook.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.
-
endpoint
final Webhook.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 Webhook.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 Webhook.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 Webhook.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 Webhook.Builder addEvent(WebhookEventType event)
Adds a single WebhookEventType to events.
-
secret
final Webhook.Builder secret(String secret)
Signing secret generated by ImageKit, used to verify that webhook requests come from ImageKit. Starts with
whsec_. This value can't be set or changed through the API. Learn more about verifying webhook signatures.
-
secret
final Webhook.Builder secret(JsonField<String> secret)
Sets Builder.secret to an arbitrary JSON value.
You should usually call Builder.secret with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final Webhook.Builder updatedAt(OffsetDateTime updatedAt)
ISO 8601 timestamp of when the webhook was last updated.
-
updatedAt
final Webhook.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Webhook.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Webhook.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Webhook.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Webhook.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Webhook.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-