public class Event extends Resource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static EventFetcher |
fetcher(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 actor that caused the event, if available.
|
String |
getActorType()
Returns The type of actor that caused the event.
|
String |
getDescription()
Returns A description of the event.
|
Map<String,Object> |
getEventData()
Returns A JSON string that represents an object with additional data about
the event.
|
org.joda.time.DateTime |
getEventDate()
Returns The ISO 8601 date and time in GMT when the event was recorded.
|
String |
getEventType()
Returns The event's type.
|
Map<String,String> |
getLinks()
Returns The absolute URLs of related resources.
|
String |
getResourceSid()
Returns The SID of the resource that was affected.
|
String |
getResourceType()
Returns The type of resource that was affected.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
String |
getSource()
Returns The originating system or interface that caused the event.
|
String |
getSourceIpAddress()
Returns The IP address of the source.
|
URI |
getUrl()
Returns The absolute URL of the resource that was affected.
|
int |
hashCode() |
static EventReader |
reader()
Create a EventReader to execute read.
|
String |
toString() |
public static EventFetcher fetcher(String pathSid)
pathSid
- The SID that identifies the resource to fetchpublic static EventReader reader()
public 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 String getDescription()
public final Map<String,Object> getEventData()
public final org.joda.time.DateTime getEventDate()
public final String getEventType()
public final String getResourceSid()
public final String getResourceType()
public final String getSid()
public final String getSource()
public final String getSourceIpAddress()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.