public class ShortCode extends SidResource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static ShortCodeFetcher |
fetch(String accountSid,
String sid)
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 |
read(String accountSid)
Create a ShortCodeReader to execute read.
|
String |
toString() |
static ShortCodeUpdater |
update(String accountSid,
String sid)
Create a ShortCodeUpdater to execute update.
|
public static ShortCodeFetcher fetch(String accountSid, String sid)
accountSid
- The account_sidsid
- Fetch by unique short-code Sidpublic static ShortCodeUpdater update(String accountSid, String sid)
accountSid
- The account_sidsid
- The sidpublic static ShortCodeReader read(String accountSid)
accountSid
- The account_sidpublic 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()
getSid
in class SidResource
public final HttpMethod getSmsFallbackMethod()
public final URI getSmsFallbackUrl()
public final HttpMethod getSmsMethod()
public final URI getSmsUrl()
public final String getUri()
Copyright © 2011 Twilio, Inc. All Rights Reserved.