Class EventDestination

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.EventDestination
All Implemented Interfaces:
HasId, StripeObjectInterface

public class EventDestination extends StripeObject implements HasId
  • Constructor Details

    • EventDestination

      public EventDestination()
  • Method Details

    • getAmazonEventbridge

      public EventDestination.AmazonEventbridge getAmazonEventbridge()
      Amazon EventBridge configuration.
    • getCreated

      public Instant getCreated()
      Time at which the object was created.
    • getDescription

      public String getDescription()
      An optional description of what the event destination is used for.
    • getEnabledEvents

      public List<String> getEnabledEvents()
      The list of events to enable for this endpoint.
    • getEventPayload

      public String getEventPayload()
      Payload type of events being subscribed to.

      One of snapshot, or thin.

    • getEventsFrom

      public List<String> getEventsFrom()
      Where events should be routed from.
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getMetadata

      public Map<String,String> getMetadata()
      Metadata.
    • getName

      public String getName()
      Event destination name.
    • getObject

      public String 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

      public String getSnapshotApiVersion()
      If using the snapshot event payload, the API version events are rendered as.
    • getStatus

      public String getStatus()
      Status. It can be set to either enabled or disabled.

      One of disabled, or enabled.

    • getStatusDetails

      public EventDestination.StatusDetails getStatusDetails()
      Additional information about event destination status.
    • getType

      public String getType()
      Event destination type.

      One of amazon_eventbridge, or webhook_endpoint.

    • getUpdated

      public Instant getUpdated()
      Time at which the object was last updated.
    • getWebhookEndpoint

      public EventDestination.WebhookEndpoint getWebhookEndpoint()
      Webhook endpoint configuration.
    • setAmazonEventbridge

      public void setAmazonEventbridge(EventDestination.AmazonEventbridge amazonEventbridge)
      Amazon EventBridge configuration.
    • setCreated

      public void setCreated(Instant created)
      Time at which the object was created.
    • setDescription

      public void setDescription(String description)
      An optional description of what the event destination is used for.
    • setEnabledEvents

      public void setEnabledEvents(List<String> enabledEvents)
      The list of events to enable for this endpoint.
    • setEventPayload

      public void setEventPayload(String eventPayload)
      Payload type of events being subscribed to.

      One of snapshot, or thin.

    • setEventsFrom

      public void setEventsFrom(List<String> eventsFrom)
      Where events should be routed from.
    • setId

      public void setId(String id)
      Unique identifier for the object.
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setMetadata

      public void setMetadata(Map<String,String> metadata)
      Metadata.
    • setName

      public void setName(String name)
      Event destination name.
    • setObject

      public void setObject(String object)
      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

      public void setSnapshotApiVersion(String snapshotApiVersion)
      If using the snapshot event payload, the API version events are rendered as.
    • setStatus

      public void setStatus(String status)
      Status. It can be set to either enabled or disabled.

      One of disabled, or enabled.

    • setStatusDetails

      public void setStatusDetails(EventDestination.StatusDetails statusDetails)
      Additional information about event destination status.
    • setType

      public void setType(String type)
      Event destination type.

      One of amazon_eventbridge, or webhook_endpoint.

    • setUpdated

      public void setUpdated(Instant updated)
      Time at which the object was last updated.
    • setWebhookEndpoint

      public void setWebhookEndpoint(EventDestination.WebhookEndpoint webhookEndpoint)
      Webhook endpoint configuration.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getId

      public String getId()
      Unique identifier for the object.
      Specified by:
      getId in interface HasId