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 and Amazon EventBridge. Event
destinations support receiving thin events
and snapshot events.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAmazon EventBridge configuration.static classAdditional information about event destination status.static classWebhook endpoint configuration. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAmazon EventBridge configuration.Time at which the object was created.An optional description of what the event destination is used for.The list of events to enable for this endpoint.Payload type of events being subscribed to.Where events should be routed from.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.Metadata.getName()Event destination name.String representing the object's type.If using the snapshot event payload, the API version events are rendered as.Status.Additional information about event destination status.getType()Event destination type.Time at which the object was last updated.Webhook endpoint configuration.inthashCode()voidsetAmazonEventbridge(EventDestination.AmazonEventbridge amazonEventbridge) Amazon EventBridge configuration.voidsetCreated(Instant created) Time at which the object was created.voidsetDescription(String description) An optional description of what the event destination is used for.voidsetEnabledEvents(List<String> enabledEvents) The list of events to enable for this endpoint.voidsetEventPayload(String eventPayload) Payload type of events being subscribed to.voidsetEventsFrom(List<String> eventsFrom) Where events should be routed from.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) Metadata.voidEvent destination name.voidString representing the object's type.voidsetSnapshotApiVersion(String snapshotApiVersion) If using the snapshot event payload, the API version events are rendered as.voidStatus.voidsetStatusDetails(EventDestination.StatusDetails statusDetails) Additional information about event destination status.voidEvent destination type.voidsetUpdated(Instant updated) Time at which the object was last updated.voidsetWebhookEndpoint(EventDestination.WebhookEndpoint webhookEndpoint) Webhook endpoint configuration.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
EventDestination
public EventDestination()
-
-
Method Details
-
getAmazonEventbridge
Amazon EventBridge configuration. -
getCreated
Time at which the object was created. -
getDescription
An optional description of what the event destination is used for. -
getEnabledEvents
The list of events to enable for this endpoint. -
getEventPayload
Payload type of events being subscribed to.One of
snapshot, orthin. -
getEventsFrom
Where events should be routed from. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getMetadata
Metadata. -
getName
Event destination name. -
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
If using the snapshot event payload, the API version events are rendered as. -
getStatus
Status. It can be set to either enabled or disabled.One of
disabled, orenabled. -
getStatusDetails
Additional information about event destination status. -
getType
Event destination type.One of
amazon_eventbridge, orwebhook_endpoint. -
getUpdated
Time at which the object was last updated. -
getWebhookEndpoint
Webhook endpoint configuration. -
setAmazonEventbridge
Amazon EventBridge configuration. -
setCreated
Time at which the object was created. -
setDescription
An optional description of what the event destination is used for. -
setEnabledEvents
The list of events to enable for this endpoint. -
setEventPayload
Payload type of events being subscribed to.One of
snapshot, orthin. -
setEventsFrom
Where events should be routed from. -
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
Metadata. -
setName
Event destination name. -
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
If using the snapshot event payload, the API version events are rendered as. -
setStatus
Status. It can be set to either enabled or disabled.One of
disabled, orenabled. -
setStatusDetails
Additional information about event destination status. -
setType
Event destination type.One of
amazon_eventbridge, orwebhook_endpoint. -
setUpdated
Time at which the object was last updated. -
setWebhookEndpoint
Webhook endpoint configuration. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-