Package com.stripe.model.v2.core
Class EventDestination
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.core.EventDestination
- All Implemented Interfaces:
HasId,StripeObjectInterface
Set up an event destination to receive events from Stripe across multiple destination types,
including webhook endpoints, Amazon EventBridge, and Azure Event Grid. Event
destinations support receiving thin events
and snapshot events.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConfiguration for delivering events through an Amazon EventBridge partner event source.static classConfiguration for delivering events through an Azure Event Grid partner topic.static classAdditional lifecycle context for the destination status, when available.static classConfiguration for delivering events to a webhook endpoint. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanConfiguration for delivering events through an Amazon EventBridge partner event source.Configuration for delivering events through an Azure Event Grid partner topic.The time when the destination was created.An optional user-defined description of the destination's purpose.The list of event types enabled for delivery to this destination.Whether to deliver as snapshot or thin events.Specifies which accounts' events route to this destination.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.User-defined key/value data for the destination; it has no effect on event matching or delivery.getName()A user-defined label for identifying the destination in Stripe.String representing the object's type.For snapshot events only, the Stripe API version used to render event objects.Whether Stripe currently attempts delivery.Additional lifecycle context for the destination status, when available.getType()The delivery transport.The time when the destination object was last updated.Configuration for delivering events to a webhook endpoint.inthashCode()voidsetAmazonEventbridge(EventDestination.AmazonEventbridge amazonEventbridge) Configuration for delivering events through an Amazon EventBridge partner event source.voidsetAzureEventGrid(EventDestination.AzureEventGrid azureEventGrid) Configuration for delivering events through an Azure Event Grid partner topic.voidsetCreated(Instant created) The time when the destination was created.voidsetDescription(String description) An optional user-defined description of the destination's purpose.voidsetEnabledEvents(List<String> enabledEvents) The list of event types enabled for delivery to this destination.voidsetEventPayload(String eventPayload) Whether to deliver as snapshot or thin events.voidsetEventsFrom(List<String> eventsFrom) Specifies which accounts' events route to this destination.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) User-defined key/value data for the destination; it has no effect on event matching or delivery.voidA user-defined label for identifying the destination in Stripe.voidString representing the object's type.voidsetSnapshotApiVersion(String snapshotApiVersion) For snapshot events only, the Stripe API version used to render event objects.voidWhether Stripe currently attempts delivery.voidsetStatusDetails(EventDestination.StatusDetails statusDetails) Additional lifecycle context for the destination status, when available.voidThe delivery transport.voidsetUpdated(Instant updated) The time when the destination object was last updated.voidsetWebhookEndpoint(EventDestination.WebhookEndpoint webhookEndpoint) Configuration for delivering events to a webhook endpoint.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
EventDestination
public EventDestination()
-
-
Method Details
-
getAmazonEventbridge
Configuration for delivering events through an Amazon EventBridge partner event source. -
getAzureEventGrid
Configuration for delivering events through an Azure Event Grid partner topic. -
getCreated
The time when the destination was created. -
getDescription
An optional user-defined description of the destination's purpose. -
getEnabledEvents
The list of event types enabled for delivery to this destination. -
getEventPayload
Whether to deliver as snapshot or thin events.One of
snapshot, orthin. -
getEventsFrom
Specifies which accounts' events route to this destination.@self: Receive events from the account that owns the event destination.@accounts: Receive events emitted from other accounts you manage which includes your v1 and v2 accounts.@organization_members: Receive events from accounts directly linked to the organization.@organization_members/@accounts: Receive events from all accounts connected to any platform accounts in the organization. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getMetadata
User-defined key/value data for the destination; it has no effect on event matching or delivery. -
getName
A user-defined label for identifying the destination in Stripe. -
getObject
String representing the object's type. Objects of the same type share the same value of the object field.Equal to
v2.core.event_destination. -
getSnapshotApiVersion
For snapshot events only, the Stripe API version used to render event objects. Thin events are not pinned to an API version. -
getStatus
Whether Stripe currently attempts delivery. Stripe attempts delivery to enabled destinations when their provider configuration is active; disabled destinations do not receive delivery attempts.One of
disabled, orenabled. -
getStatusDetails
Additional lifecycle context for the destination status, when available. -
getType
The delivery transport. Chosen when the destination is created and cannot be changed by update.One of
amazon_eventbridge,azure_event_grid, orwebhook_endpoint. -
getUpdated
The time when the destination object was last updated. -
getWebhookEndpoint
Configuration for delivering events to a webhook endpoint. Live mode requires HTTPS; sandbox mode also supports HTTP. -
setAmazonEventbridge
Configuration for delivering events through an Amazon EventBridge partner event source. -
setAzureEventGrid
Configuration for delivering events through an Azure Event Grid partner topic. -
setCreated
The time when the destination was created. -
setDescription
An optional user-defined description of the destination's purpose. -
setEnabledEvents
The list of event types enabled for delivery to this destination. -
setEventPayload
Whether to deliver as snapshot or thin events.One of
snapshot, orthin. -
setEventsFrom
Specifies which accounts' events route to this destination.@self: Receive events from the account that owns the event destination.@accounts: Receive events emitted from other accounts you manage which includes your v1 and v2 accounts.@organization_members: Receive events from accounts directly linked to the organization.@organization_members/@accounts: Receive events from all accounts connected to any platform accounts in the organization. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setMetadata
User-defined key/value data for the destination; it has no effect on event matching or delivery. -
setName
A user-defined label for identifying the destination in Stripe. -
setObject
String representing the object's type. Objects of the same type share the same value of the object field.Equal to
v2.core.event_destination. -
setSnapshotApiVersion
For snapshot events only, the Stripe API version used to render event objects. Thin events are not pinned to an API version. -
setStatus
Whether Stripe currently attempts delivery. Stripe attempts delivery to enabled destinations when their provider configuration is active; disabled destinations do not receive delivery attempts.One of
disabled, orenabled. -
setStatusDetails
Additional lifecycle context for the destination status, when available. -
setType
The delivery transport. Chosen when the destination is created and cannot be changed by update.One of
amazon_eventbridge,azure_event_grid, orwebhook_endpoint. -
setUpdated
The time when the destination object was last updated. -
setWebhookEndpoint
Configuration for delivering events to a webhook endpoint. Live mode requires HTTPS; sandbox mode also supports HTTP. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-