public class Event extends Resource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static EventFetcher |
fetcher(String pathWorkspaceSid,
String pathSid)
Create a EventFetcher to execute fetch.
|
static Event |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Event object using the provided
ObjectMapper.
|
static Event |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Event object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
String |
getActorSid()
Returns The SID of the resource that triggered the event.
|
String |
getActorType()
Returns The type of resource that triggered the event.
|
URI |
getActorUrl()
Returns The absolute URL of the resource that triggered the event.
|
String |
getDescription()
Returns A description of the event.
|
Map<String,Object> |
getEventData()
Returns Data about the event.
|
ZonedDateTime |
getEventDate()
Returns The time the event was sent.
|
Long |
getEventDateMs()
Returns The time the event was sent in milliseconds.
|
String |
getEventType()
Returns The identifier for the event.
|
String |
getResourceSid()
Returns The SID of the object the event is most relevant to.
|
String |
getResourceType()
Returns The type of object the event is most relevant to.
|
URI |
getResourceUrl()
Returns The URL of the resource the event is most relevant to.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
String |
getSource()
Returns Where the Event originated.
|
String |
getSourceIpAddress()
Returns The IP from which the Event originated.
|
URI |
getUrl()
Returns The absolute URL of the Event resource.
|
String |
getWorkspaceSid()
Returns The SID of the Workspace that contains the Event.
|
int |
hashCode() |
static EventReader |
reader(String pathWorkspaceSid)
Create a EventReader to execute read.
|
public static EventFetcher fetcher(String pathWorkspaceSid, String pathSid)
pathWorkspaceSid
- The SID of the Workspace with the Event to fetchpathSid
- The SID of the resource to fetchpublic static EventReader reader(String pathWorkspaceSid)
pathWorkspaceSid
- The SID of the Workspace with the Events to readpublic static Event fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Event fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getActorSid()
public final String getActorType()
public final URI getActorUrl()
public final String getDescription()
public final Map<String,Object> getEventData()
public final ZonedDateTime getEventDate()
public final Long getEventDateMs()
public final String getEventType()
public final String getResourceSid()
public final String getResourceType()
public final URI getResourceUrl()
public final String getSid()
public final String getSource()
public final String getSourceIpAddress()
public final URI getUrl()
public final String getWorkspaceSid()
Copyright © 2019 Twilio, Inc. All Rights Reserved.