public class ShortCode extends Resource
| Modifier and Type | Method and Description |
|---|---|
static ShortCodeCreator |
creator(String pathServiceSid,
String sid)
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 Account Sid..
|
List<Map<String,Object>> |
getCapabilities()
Returns The Indicate if a shortcode can receive messages.
|
String |
getCountryCode()
Returns The The ISO 3166-1 alpha-2 country code.
|
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 |
getServiceSid()
Returns The Service Sid..
|
String |
getShortCode()
Returns The The short code.
|
String |
getSid()
Returns The A string that uniquely identifies this resource.
|
URI |
getUrl()
Returns The The URL of this resource..
|
int |
hashCode() |
static ShortCodeReader |
reader(String pathServiceSid)
Create a ShortCodeReader to execute read.
|
String |
toString() |
public static ShortCodeCreator creator(String pathServiceSid, String sid)
pathServiceSid - The service_sidsid - Delete by unique shortcode Sidpublic static ShortCodeDeleter deleter(String pathServiceSid, String pathSid)
pathServiceSid - The service_sidpathSid - Delete by unique shortcode Sidpublic static ShortCodeReader reader(String pathServiceSid)
pathServiceSid - The service_sidpublic static ShortCodeFetcher fetcher(String pathServiceSid, String pathSid)
pathServiceSid - The service_sidpathSid - Fetch by unique shortcode 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.