Package com.ngrok.definitions
Class EventSubscription
java.lang.Object
com.ngrok.definitions.EventSubscription
A class encapsulating the
EventSubscription
resource.-
Constructor Summary
ConstructorDescriptionEventSubscription
(String id, URI uri, OffsetDateTime createdAt, String metadata, String description, List<EventSource> sources, List<Ref> destinations) Creates a new instance ofEventSubscription
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
When the Event Subscription was created (RFC 3339 format).Arbitrary customer supplied information intended to be human readable.Destinations to which these events will be sentgetId()
Unique identifier for this Event Subscription.Arbitrary customer supplied information intended to be machine readable.Sources containing the types for which this event subscription will triggergetUri()
URI of the Event Subscription API resource.int
hashCode()
toString()
-
Constructor Details
-
EventSubscription
public EventSubscription(String id, URI uri, OffsetDateTime createdAt, String metadata, String description, List<EventSource> sources, List<Ref> destinations) Creates a new instance ofEventSubscription
.- Parameters:
id
- Unique identifier for this Event Subscription.uri
- URI of the Event Subscription API resource.createdAt
- When the Event Subscription was created (RFC 3339 format).metadata
- Arbitrary customer supplied information intended to be machine readable. Optional, max 4096 chars.description
- Arbitrary customer supplied information intended to be human readable. Optional, max 255 chars.sources
- Sources containing the types for which this event subscription will triggerdestinations
- Destinations to which these events will be sent
-
-
Method Details
-
getId
Unique identifier for this Event Subscription.- Returns:
- the value of the property as a
String
-
getUri
URI of the Event Subscription API resource.- Returns:
- the value of the property as a
URI
-
getCreatedAt
When the Event Subscription was created (RFC 3339 format).- Returns:
- the value of the property as a
OffsetDateTime
-
getMetadata
Arbitrary customer supplied information intended to be machine readable. Optional, max 4096 chars.- Returns:
- the value of the property as a
String
-
getDescription
Arbitrary customer supplied information intended to be human readable. Optional, max 255 chars.- Returns:
- the value of the property as a
String
-
getSources
Sources containing the types for which this event subscription will trigger- Returns:
- the value of the property as a
List
ofEventSource
-
getDestinations
Destinations to which these events will be sent -
equals
-
hashCode
public int hashCode() -
toString
-