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 SID of the Account that created the resource.
|
PhoneNumberCapabilities |
getCapabilities()
Returns The capabilities of the short code.
|
ZonedDateTime |
getDateCreated()
Returns The ISO 8601 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The ISO 8601 date and time in GMT when the resource was last updated.
|
String |
getIsoCountry()
Returns The ISO Country Code.
|
Boolean |
getIsReserved()
Returns Whether the short code should be reserved for manual assignment to
participants only.
|
String |
getServiceSid()
Returns The SID of the resource's parent Service.
|
String |
getShortCode()
Returns The short code's number.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
URI |
getUrl()
Returns The absolute URL of the ShortCode resource.
|
int |
hashCode() |
static ShortCodeReader |
reader(String pathServiceSid)
Create a ShortCodeReader to execute read.
|
static ShortCodeUpdater |
updater(String pathServiceSid,
String pathSid)
Create a ShortCodeUpdater to execute update.
|
public static ShortCodeCreator creator(String pathServiceSid, String sid)
pathServiceSid
- The SID of the parent Service resourcesid
- The SID of a Twilio ShortCode resourcepublic static ShortCodeDeleter deleter(String pathServiceSid, String pathSid)
pathServiceSid
- The SID of the parent Service to delete the ShortCode
resource frompathSid
- The unique string that identifies the resourcepublic static ShortCodeReader reader(String pathServiceSid)
pathServiceSid
- The SID of the parent Service to read the resource frompublic static ShortCodeFetcher fetcher(String pathServiceSid, String pathSid)
pathServiceSid
- The SID of the parent Service to fetch the resource
frompathSid
- The unique string that identifies the resourcepublic static ShortCodeUpdater updater(String pathServiceSid, String pathSid)
pathServiceSid
- The SID of the Service to update the resource frompathSid
- The unique string that identifies the resourcepublic 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 ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getShortCode()
public final String getIsoCountry()
public final PhoneNumberCapabilities getCapabilities()
public final URI getUrl()
public final Boolean getIsReserved()
Copyright © 2019 Twilio, Inc. All Rights Reserved.