public class Alert extends Resource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static AlertFetcher |
fetcher(String pathSid)
Create a AlertFetcher to execute fetch.
|
static Alert |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Alert object using the provided
ObjectMapper.
|
static Alert |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Alert object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
String |
getAlertText()
Returns The text of the alert.
|
String |
getApiVersion()
Returns The API version used when the alert was generated.
|
ZonedDateTime |
getDateCreated()
Returns The ISO 8601 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateGenerated()
Returns The date and time when the alert was generated specified in ISO 8601
format.
|
ZonedDateTime |
getDateUpdated()
Returns The ISO 8601 date and time in GMT when the resource was last updated.
|
String |
getErrorCode()
Returns The error code for the condition that generated the alert.
|
String |
getLogLevel()
Returns The log level.
|
String |
getMoreInfo()
Returns The URL of the page in our Error Dictionary with more information
about the error condition.
|
String |
getRequestHeaders()
Returns The request headers of the request that generated the alert.
|
HttpMethod |
getRequestMethod()
Returns The method used by the request that generated the alert.
|
String |
getRequestUrl()
Returns The URL of the request that generated the alert.
|
String |
getRequestVariables()
Returns The variables passed in the request that generated the alert.
|
String |
getResourceSid()
Returns The SID of the resource for which the alert was generated.
|
String |
getResponseBody()
Returns The response body of the request that generated the alert.
|
String |
getResponseHeaders()
Returns The response headers of the request that generated the alert.
|
String |
getServiceSid()
Returns The SID of the service or resource that generated the alert.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
URI |
getUrl()
Returns The absolute URL of the Alert resource.
|
int |
hashCode() |
static AlertReader |
reader()
Create a AlertReader to execute read.
|
public static AlertFetcher fetcher(String pathSid)
pathSid
- The SID that identifies the resource to fetchpublic static AlertReader reader()
public static Alert fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Alert fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getAlertText()
public final String getApiVersion()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateGenerated()
public final ZonedDateTime getDateUpdated()
public final String getErrorCode()
public final String getLogLevel()
public final String getMoreInfo()
public final HttpMethod getRequestMethod()
public final String getRequestUrl()
public final String getRequestVariables()
public final String getResourceSid()
public final String getResponseBody()
public final String getResponseHeaders()
public final String getSid()
public final URI getUrl()
public final String getRequestHeaders()
public final String getServiceSid()
Copyright © 2019 Twilio, Inc. All Rights Reserved.