Package com.stripe.model.v2
Class EventDestination
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.EventDestination
- All Implemented Interfaces:
HasId
,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about AmazonEventbridge, please refer to the API Reference.static class
For more details about StatusDetails, please refer to the API Reference.static class
For more details about WebhookEndpoint, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Amazon 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 valuetrue
if the object exists in live mode or the valuefalse
if 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.int
hashCode()
void
setAmazonEventbridge
(EventDestination.AmazonEventbridge amazonEventbridge) Amazon EventBridge configuration.void
setCreated
(Instant created) Time at which the object was created.void
setDescription
(String description) An optional description of what the event destination is used for.void
setEnabledEvents
(List<String> enabledEvents) The list of events to enable for this endpoint.void
setEventPayload
(String eventPayload) Payload type of events being subscribed to.void
setEventsFrom
(List<String> eventsFrom) Where events should be routed from.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMetadata
(Map<String, String> metadata) Metadata.void
Event destination name.void
String representing the object's type.void
setSnapshotApiVersion
(String snapshotApiVersion) If using the snapshot event payload, the API version events are rendered as.void
Status.void
setStatusDetails
(EventDestination.StatusDetails statusDetails) Additional information about event destination status.void
Event destination type.void
setUpdated
(Instant updated) Time at which the object was last updated.void
setWebhookEndpoint
(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 valuetrue
if the object exists in live mode or the valuefalse
if 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 valuetrue
if the object exists in live mode or the valuefalse
if 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.
-