public class ShortCode extends Resource
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static ShortCodeFetcher |
fetcher(String pathSid)
Create a ShortCodeFetcher to execute fetch.
|
static ShortCodeFetcher |
fetcher(String pathAccountSid,
String pathSid)
Create a ShortCodeFetcher to execute fetch.
|
static ShortCode |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a ShortCode object using the provided
ObjectMapper.
|
static ShortCode |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a ShortCode object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The The unique sid that identifies this account.
|
String |
getApiVersion()
Returns The The API version to use.
|
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 |
getFriendlyName()
Returns The A human readable description of this resource.
|
String |
getShortCode()
Returns The The short code.
|
String |
getSid()
Returns The A string that uniquely identifies this short-codes.
|
HttpMethod |
getSmsFallbackMethod()
Returns The HTTP method Twilio will use with sms fallback url.
|
URI |
getSmsFallbackUrl()
Returns The URL Twilio will request if an error occurs in executing TwiML.
|
HttpMethod |
getSmsMethod()
Returns The HTTP method to use when requesting the sms url.
|
URI |
getSmsUrl()
Returns The URL Twilio will request when receiving an SMS.
|
String |
getUri()
Returns The The URI for this resource.
|
int |
hashCode() |
static ShortCodeReader |
reader()
Create a ShortCodeReader to execute read.
|
static ShortCodeReader |
reader(String pathAccountSid)
Create a ShortCodeReader to execute read.
|
String |
toString() |
static ShortCodeUpdater |
updater(String pathSid)
Create a ShortCodeUpdater to execute update.
|
static ShortCodeUpdater |
updater(String pathAccountSid,
String pathSid)
Create a ShortCodeUpdater to execute update.
|
public static ShortCodeFetcher fetcher(String pathAccountSid, String pathSid)
pathAccountSid - The account_sidpathSid - Fetch by unique short-code Sidpublic static ShortCodeFetcher fetcher(String pathSid)
pathSid - Fetch by unique short-code Sidpublic static ShortCodeUpdater updater(String pathAccountSid, String pathSid)
pathAccountSid - The account_sidpathSid - The sidpublic static ShortCodeUpdater updater(String pathSid)
pathSid - The sidpublic static ShortCodeReader reader(String pathAccountSid)
pathAccountSid - The account_sidpublic static ShortCodeReader reader()
public static ShortCode fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON StringobjectMapper - Jackson ObjectMapperpublic static ShortCode fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON InputStreamobjectMapper - Jackson ObjectMapperpublic final String getAccountSid()
public final String getApiVersion()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getFriendlyName()
public final String getShortCode()
public final String getSid()
public final HttpMethod getSmsFallbackMethod()
public final URI getSmsFallbackUrl()
public final HttpMethod getSmsMethod()
public final URI getSmsUrl()
public final String getUri()
Copyright © 2016 Twilio, Inc. All Rights Reserved.