public class Notification extends Resource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static NotificationFetcher |
fetcher(String pathCallSid,
String pathSid)
Create a NotificationFetcher to execute fetch.
|
static NotificationFetcher |
fetcher(String pathAccountSid,
String pathCallSid,
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 SID of the Account that created the resource.
|
String |
getApiVersion()
Returns The API version used to create the Call Notification resource.
|
String |
getCallSid()
Returns The SID of the Call the resource is associated with.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT that the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT that the resource was last updated.
|
String |
getErrorCode()
Returns A unique error code corresponding to the notification.
|
String |
getLog()
Returns An integer log level.
|
ZonedDateTime |
getMessageDate()
Returns The date the notification was generated.
|
String |
getMessageText()
Returns The text of the notification.
|
URI |
getMoreInfo()
Returns A URL for more information about the error code.
|
HttpMethod |
getRequestMethod()
Returns HTTP method used with the request url.
|
URI |
getRequestUrl()
Returns URL of the resource that generated the notification.
|
String |
getRequestVariables()
Returns Twilio-generated HTTP variables sent to the server.
|
String |
getResponseBody()
Returns The HTTP body returned by your server.
|
String |
getResponseHeaders()
Returns The HTTP headers returned by your server.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
String |
getUri()
Returns The URI of the resource, relative to `https://api.twilio.com`.
|
int |
hashCode() |
static NotificationReader |
reader(String pathCallSid)
Create a NotificationReader to execute read.
|
static NotificationReader |
reader(String pathAccountSid,
String pathCallSid)
Create a NotificationReader to execute read.
|
public static NotificationFetcher fetcher(String pathAccountSid, String pathCallSid, String pathSid)
pathAccountSid
- The SID of the Account that created the resource to
fetchpathCallSid
- The Call SID of the resource to fetchpathSid
- The unique string that identifies the resourcepublic static NotificationFetcher fetcher(String pathCallSid, String pathSid)
pathCallSid
- The Call SID of the resource to fetchpathSid
- The unique string that identifies the resourcepublic static NotificationReader reader(String pathAccountSid, String pathCallSid)
pathAccountSid
- The SID of the Account that created the resources to
readpathCallSid
- The Call SID of the resources to readpublic static NotificationReader reader(String pathCallSid)
pathCallSid
- The Call SID of the resources to readpublic 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 ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getErrorCode()
public final String getLog()
public final ZonedDateTime 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 © 2019 Twilio, Inc. All Rights Reserved.