public class ShortCode extends Resource
Modifier and Type | Method and Description |
---|---|
static ShortCodeCreator |
creator(String pathServiceSid,
String shortCodeSid)
Create a ShortCodeCreator to execute create.
|
static ShortCodeDeleter |
deleter(String pathServiceSid,
String pathSid)
Create a ShortCodeDeleter to execute delete.
|
boolean |
equals(Object o) |
static ShortCodeFetcher |
fetcher(String pathServiceSid,
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 account_sid.
|
List<Map<String,Object>> |
getCapabilities()
Returns The The capabilities.
|
String |
getCountryCode()
Returns The The country_code.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getServiceSid()
Returns The The service_sid.
|
String |
getShortCode()
Returns The The short_code.
|
String |
getSid()
Returns The The sid.
|
URI |
getUrl()
Returns The The url.
|
int |
hashCode() |
static ShortCodeReader |
reader(String pathServiceSid)
Create a ShortCodeReader to execute read.
|
String |
toString() |
public static ShortCodeCreator creator(String pathServiceSid, String shortCodeSid)
pathServiceSid
- The service_sidshortCodeSid
- The short_code_sidpublic static ShortCodeDeleter deleter(String pathServiceSid, String pathSid)
pathServiceSid
- The service_sidpathSid
- The sidpublic static ShortCodeReader reader(String pathServiceSid)
pathServiceSid
- The service_sidpublic static ShortCodeFetcher fetcher(String pathServiceSid, String pathSid)
pathServiceSid
- The service_sidpathSid
- The 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 getSid()
public final String getAccountSid()
public final String getServiceSid()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getShortCode()
public final String getCountryCode()
public final List<Map<String,Object>> getCapabilities()
public final URI getUrl()
Copyright © 2016 Twilio, Inc. All Rights Reserved.