public class ShortCode extends Resource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static ShortCodeFetcher |
fetcher(String pathSid)
Create a ShortCodeFetcher to execute fetch.
|
static ShortCodeFetcher |
fetcher(String pathAccountSid,
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 this resource.
|
String |
getApiVersion()
Returns The API version used to start a new TwiML session.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT that this resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT that this resource was last
updated.
|
String |
getFriendlyName()
Returns A string that you assigned to describe this resource.
|
String |
getShortCode()
Returns The short code.
|
String |
getSid()
Returns The unique string that identifies this resource.
|
HttpMethod |
getSmsFallbackMethod()
Returns HTTP method we use to call the sms_fallback_url.
|
URI |
getSmsFallbackUrl()
Returns URL Twilio will request if an error occurs in executing TwiML.
|
HttpMethod |
getSmsMethod()
Returns HTTP method to use when requesting the sms url.
|
URI |
getSmsUrl()
Returns URL we call when receiving an incoming SMS message to this short
code.
|
String |
getUri()
Returns The URI of this resource, relative to `https://api.twilio.com`.
|
int |
hashCode() |
static ShortCodeReader |
reader()
Create a ShortCodeReader to execute read.
|
static ShortCodeReader |
reader(String pathAccountSid)
Create a ShortCodeReader to execute read.
|
static ShortCodeUpdater |
updater(String pathSid)
Create a ShortCodeUpdater to execute update.
|
static ShortCodeUpdater |
updater(String pathAccountSid,
String pathSid)
Create a ShortCodeUpdater to execute update.
|
public static ShortCodeFetcher fetcher(String pathAccountSid, String pathSid)
pathAccountSid
- The SID of the Account that created the resource(s) to
fetchpathSid
- The unique string that identifies this resourcepublic static ShortCodeFetcher fetcher(String pathSid)
pathSid
- The unique string that identifies this resourcepublic static ShortCodeUpdater updater(String pathAccountSid, String pathSid)
pathAccountSid
- The SID of the Account that created the resource(s) to
updatepathSid
- The unique string that identifies this resourcepublic static ShortCodeUpdater updater(String pathSid)
pathSid
- The unique string that identifies this resourcepublic static ShortCodeReader reader(String pathAccountSid)
pathAccountSid
- The SID of the Account that created the resource(s) to
readpublic static ShortCodeReader reader()
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 getAccountSid()
public final String getApiVersion()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getFriendlyName()
public final String getShortCode()
public final String getSid()
public final HttpMethod getSmsFallbackMethod()
public final URI getSmsFallbackUrl()
public final HttpMethod getSmsMethod()
public final URI getSmsUrl()
public final String getUri()
Copyright © 2019 Twilio, Inc. All Rights Reserved.