Package com.ngrok.definitions
Class EventDestination
java.lang.Object
com.ngrok.definitions.EventDestination
A class encapsulating the
EventDestination
resource.-
Constructor Summary
ConstructorDescriptionEventDestination
(String id, String metadata, OffsetDateTime createdAt, String description, String format, EventTarget target, URI uri) Creates a new instance ofEventDestination
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Timestamp when the Event Destination was created, RFC 3339 format.Human-readable description of the Event Destination.The output format you would like to serialize events into when sending to their target.getId()
Unique identifier for this Event Destination.Arbitrary user-defined machine-readable data of this Event Destination.An object that encapsulates where and how to send your events.getUri()
URI of the Event Destination API resource.int
hashCode()
toString()
-
Constructor Details
-
EventDestination
public EventDestination(String id, String metadata, OffsetDateTime createdAt, String description, String format, EventTarget target, URI uri) Creates a new instance ofEventDestination
.- Parameters:
id
- Unique identifier for this Event Destination.metadata
- Arbitrary user-defined machine-readable data of this Event Destination. Optional, max 4096 bytes.createdAt
- Timestamp when the Event Destination was created, RFC 3339 format.description
- Human-readable description of the Event Destination. Optional, max 255 bytes.format
- The output format you would like to serialize events into when sending to their target. Currently the only accepted value isJSON
.target
- An object that encapsulates where and how to send your events. An event destination must contain exactly one of the following objects, leaving the rest null:kinesis
,firehose
,cloudwatch_logs
, ors3
.uri
- URI of the Event Destination API resource.
-
-
Method Details
-
getId
Unique identifier for this Event Destination.- Returns:
- the value of the property as a
String
-
getMetadata
Arbitrary user-defined machine-readable data of this Event Destination. Optional, max 4096 bytes.- Returns:
- the value of the property as a
String
-
getCreatedAt
Timestamp when the Event Destination was created, RFC 3339 format.- Returns:
- the value of the property as a
OffsetDateTime
-
getDescription
Human-readable description of the Event Destination. Optional, max 255 bytes.- Returns:
- the value of the property as a
String
-
getFormat
The output format you would like to serialize events into when sending to their target. Currently the only accepted value isJSON
.- Returns:
- the value of the property as a
String
-
getTarget
An object that encapsulates where and how to send your events. An event destination must contain exactly one of the following objects, leaving the rest null:kinesis
,firehose
,cloudwatch_logs
, ors3
.- Returns:
- the value of the property as a
EventTarget
-
getUri
URI of the Event Destination API resource.- Returns:
- the value of the property as a
URI
-
equals
-
hashCode
public int hashCode() -
toString
-