public class Notification extends Resource
| Modifier and Type | Method and Description |
|---|---|
static NotificationDeleter |
deleter(String pathSid)
Create a NotificationDeleter to execute delete.
|
static NotificationDeleter |
deleter(String pathAccountSid,
String pathSid)
Create a NotificationDeleter to execute delete.
|
boolean |
equals(Object o) |
static NotificationFetcher |
fetcher(String pathSid)
Create a NotificationFetcher to execute fetch.
|
static NotificationFetcher |
fetcher(String pathAccountSid,
String pathSid)
Create a NotificationFetcher to execute fetch.
|
static Notification |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Notification object using the provided
ObjectMapper.
|
static Notification |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Notification object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The The unique sid that identifies this account.
|
String |
getApiVersion()
Returns The The version of the Twilio API in use.
|
String |
getCallSid()
Returns The The string that uniquely identifies the call.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date this resource was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date this resource was last updated.
|
String |
getErrorCode()
Returns The A unique error code corresponding to the notification.
|
String |
getLog()
Returns The An integer log level.
|
org.joda.time.DateTime |
getMessageDate()
Returns The The date the notification was generated.
|
String |
getMessageText()
Returns The The text of the notification..
|
URI |
getMoreInfo()
Returns The A URL for more information about the error code.
|
HttpMethod |
getRequestMethod()
Returns The HTTP method used with the request url.
|
URI |
getRequestUrl()
Returns The URL of the resource that generated the notification.
|
String |
getRequestVariables()
Returns The Twilio-generated HTTP variables sent to the server.
|
String |
getResponseBody()
Returns The The HTTP body returned by your server..
|
String |
getResponseHeaders()
Returns The The HTTP headers returned by your server..
|
String |
getSid()
Returns The A string that uniquely identifies this notification.
|
String |
getUri()
Returns The The URI for this resource.
|
int |
hashCode() |
static NotificationReader |
reader()
Create a NotificationReader to execute read.
|
static NotificationReader |
reader(String pathAccountSid)
Create a NotificationReader to execute read.
|
String |
toString() |
public static NotificationFetcher fetcher(String pathAccountSid, String pathSid)
pathAccountSid - The account_sidpathSid - Fetch by unique notification Sidpublic static NotificationFetcher fetcher(String pathSid)
pathSid - Fetch by unique notification Sidpublic static NotificationDeleter deleter(String pathAccountSid, String pathSid)
pathAccountSid - The account_sidpathSid - Delete by unique notification Sidpublic static NotificationDeleter deleter(String pathSid)
pathSid - Delete by unique notification Sidpublic static NotificationReader reader(String pathAccountSid)
pathAccountSid - The account_sidpublic static NotificationReader reader()
public static Notification fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON StringobjectMapper - Jackson ObjectMapperpublic static Notification fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON InputStreamobjectMapper - Jackson ObjectMapperpublic final String getAccountSid()
public final String getApiVersion()
public final String getCallSid()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getErrorCode()
public final String getLog()
public final org.joda.time.DateTime getMessageDate()
public final String getMessageText()
public final URI getMoreInfo()
public final HttpMethod getRequestMethod()
public final URI getRequestUrl()
public final String getRequestVariables()
public final String getResponseBody()
public final String getResponseHeaders()
public final String getSid()
public final String getUri()
Copyright © 2016 Twilio, Inc. All Rights Reserved.