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..
|
PhoneNumberCapabilities |
getCapabilities()
Returns The Nested resource URLs..
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date this Short Code was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date this Short Code was updated.
|
String |
getIsoCountry()
Returns The ISO Country Code,.
|
String |
getServiceSid()
Returns The Service Sid..
|
String |
getShortCode()
Returns The Shortcode..
|
String |
getSid()
Returns The A string that uniquely identifies this Short Code..
|
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
- Service Sid.sid
- A string that uniquely identifies this Short Code.public static ShortCodeDeleter deleter(String pathServiceSid, String pathSid)
pathServiceSid
- Service Sid.pathSid
- A string that uniquely identifies this Short Code.public static ShortCodeReader reader(String pathServiceSid)
pathServiceSid
- Service Sid.public static ShortCodeFetcher fetcher(String pathServiceSid, String pathSid)
pathServiceSid
- Service Sid.pathSid
- A string that uniquely identifies this Short Code.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 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 getIsoCountry()
public final PhoneNumberCapabilities getCapabilities()
public final URI getUrl()
Copyright © 2016 Twilio, Inc. All Rights Reserved.