Class Notification
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.api.v2010.account.call.Notification
-
- All Implemented Interfaces:
Serializable
public class Notification extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NotificationDeleter
deleter(String pathCallSid, String pathSid)
Create a NotificationDeleter to execute delete.static NotificationDeleter
deleter(String pathAccountSid, String pathCallSid, String pathSid)
Create a NotificationDeleter to execute delete.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 The SID of the Account that created the resource.String
getApiVersion()
Returns The The API version used to create the Call Notification resource.String
getCallSid()
Returns The The SID of the Call the resource is associated with.org.joda.time.DateTime
getDateCreated()
Returns The The RFC 2822 date and time in GMT that the resource was created.org.joda.time.DateTime
getDateUpdated()
Returns The The RFC 2822 date and time in GMT that the 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 The unique string that identifies the resource.String
getUri()
Returns The 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.String
toString()
-
-
-
Method Detail
-
fetcher
public static NotificationFetcher fetcher(String pathAccountSid, String pathCallSid, String pathSid)
Create a NotificationFetcher to execute fetch.- Parameters:
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 resource- Returns:
- NotificationFetcher capable of executing the fetch
-
fetcher
public static NotificationFetcher fetcher(String pathCallSid, String pathSid)
Create a NotificationFetcher to execute fetch.- Parameters:
pathCallSid
- The Call SID of the resource to fetchpathSid
- The unique string that identifies the resource- Returns:
- NotificationFetcher capable of executing the fetch
-
deleter
public static NotificationDeleter deleter(String pathAccountSid, String pathCallSid, String pathSid)
Create a NotificationDeleter to execute delete.- Parameters:
pathAccountSid
- The SID of the Account that created the resources to deletepathCallSid
- The Call SID of the resources to deletepathSid
- The unique string that identifies the resource- Returns:
- NotificationDeleter capable of executing the delete
-
deleter
public static NotificationDeleter deleter(String pathCallSid, String pathSid)
Create a NotificationDeleter to execute delete.- Parameters:
pathCallSid
- The Call SID of the resources to deletepathSid
- The unique string that identifies the resource- Returns:
- NotificationDeleter capable of executing the delete
-
reader
public static NotificationReader reader(String pathAccountSid, String pathCallSid)
Create a NotificationReader to execute read.- Parameters:
pathAccountSid
- The SID of the Account that created the resources to readpathCallSid
- The Call SID of the resources to read- Returns:
- NotificationReader capable of executing the read
-
reader
public static NotificationReader reader(String pathCallSid)
Create a NotificationReader to execute read.- Parameters:
pathCallSid
- The Call SID of the resources to read- Returns:
- NotificationReader capable of executing the read
-
fromJson
public static Notification fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Notification object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Notification object represented by the provided JSON
-
fromJson
public static Notification fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Notification object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Notification object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
Returns The The SID of the Account that created the resource.- Returns:
- The SID of the Account that created the resource
-
getApiVersion
public final String getApiVersion()
Returns The The API version used to create the Call Notification resource.- Returns:
- The API version used to create the Call Notification resource
-
getCallSid
public final String getCallSid()
Returns The The SID of the Call the resource is associated with.- Returns:
- The SID of the Call the resource is associated with
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The RFC 2822 date and time in GMT that the resource was created.- Returns:
- The RFC 2822 date and time in GMT that the resource was created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The RFC 2822 date and time in GMT that the resource was last updated.- Returns:
- The RFC 2822 date and time in GMT that the resource was last updated
-
getErrorCode
public final String getErrorCode()
Returns The A unique error code corresponding to the notification.- Returns:
- A unique error code corresponding to the notification
-
getLog
public final String getLog()
Returns The An integer log level.- Returns:
- An integer log level
-
getMessageDate
public final org.joda.time.DateTime getMessageDate()
Returns The The date the notification was generated.- Returns:
- The date the notification was generated
-
getMessageText
public final String getMessageText()
Returns The The text of the notification.- Returns:
- The text of the notification
-
getMoreInfo
public final URI getMoreInfo()
Returns The A URL for more information about the error code.- Returns:
- A URL for more information about the error code
-
getRequestMethod
public final HttpMethod getRequestMethod()
Returns The HTTP method used with the request url.- Returns:
- HTTP method used with the request url
-
getRequestUrl
public final URI getRequestUrl()
Returns The URL of the resource that generated the notification.- Returns:
- URL of the resource that generated the notification
-
getRequestVariables
public final String getRequestVariables()
Returns The Twilio-generated HTTP variables sent to the server.- Returns:
- Twilio-generated HTTP variables sent to the server
-
getResponseBody
public final String getResponseBody()
Returns The The HTTP body returned by your server.- Returns:
- The HTTP body returned by your server
-
getResponseHeaders
public final String getResponseHeaders()
Returns The The HTTP headers returned by your server.- Returns:
- The HTTP headers returned by your server
-
getSid
public final String getSid()
Returns The The unique string that identifies the resource.- Returns:
- The unique string that identifies the resource
-
getUri
public final String getUri()
Returns The The URI of the resource, relative to `https://api.twilio.com`.- Returns:
- The URI of the resource, relative to `https://api.twilio.com`
-
-