public class PhoneNumber extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
PhoneNumber.AddressRequirement |
Modifier and Type | Method and Description |
---|---|
static PhoneNumberCreator |
creator(String pathTrunkSid,
String phoneNumberSid)
Create a PhoneNumberCreator to execute create.
|
static PhoneNumberDeleter |
deleter(String pathTrunkSid,
String pathSid)
Create a PhoneNumberDeleter to execute delete.
|
boolean |
equals(Object o) |
static PhoneNumberFetcher |
fetcher(String pathTrunkSid,
String pathSid)
Create a PhoneNumberFetcher to execute fetch.
|
static PhoneNumber |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a PhoneNumber object using the provided
ObjectMapper.
|
static PhoneNumber |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a PhoneNumber object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
PhoneNumber.AddressRequirement |
getAddressRequirements()
Returns Whether the phone number requires an Address registered with Twilio.
|
String |
getApiVersion()
Returns The API version used to start a new TwiML session.
|
Boolean |
getBeta()
Returns Whether the phone number is new to the Twilio platform.
|
Map<String,String> |
getCapabilities()
Returns Indicate if a phone can receive calls or messages.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT when the resource was last updated.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the resource.
|
Map<String,String> |
getLinks()
Returns The URLs of related resources.
|
PhoneNumber |
getPhoneNumber()
Returns The phone number in E.164 format.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
String |
getSmsApplicationSid()
Returns The SID of the application that handles SMS messages sent to the
phone number.
|
HttpMethod |
getSmsFallbackMethod()
Returns The HTTP method used with sms_fallback_url.
|
URI |
getSmsFallbackUrl()
Returns The URL that we call when an error occurs while retrieving or
executing the TwiML.
|
HttpMethod |
getSmsMethod()
Returns The HTTP method to use with sms_url.
|
URI |
getSmsUrl()
Returns The URL we call when the phone number receives an incoming SMS
message.
|
URI |
getStatusCallback()
Returns The URL to send status information to your application.
|
HttpMethod |
getStatusCallbackMethod()
Returns The HTTP method we use to call status_callback.
|
String |
getTrunkSid()
Returns The SID of the Trunk that handles calls to the phone number.
|
URI |
getUrl()
Returns The absolute URL of the resource.
|
String |
getVoiceApplicationSid()
Returns The SID of the application that handles calls to the phone number.
|
Boolean |
getVoiceCallerIdLookup()
Returns Whether to lookup the caller's name.
|
HttpMethod |
getVoiceFallbackMethod()
Returns The HTTP method that we use to call voice_fallback_url.
|
URI |
getVoiceFallbackUrl()
Returns The URL we call when an error occurs in TwiML.
|
HttpMethod |
getVoiceMethod()
Returns The HTTP method used with the voice_url.
|
URI |
getVoiceUrl()
Returns The URL we call when the phone number receives a call.
|
int |
hashCode() |
static PhoneNumberReader |
reader(String pathTrunkSid)
Create a PhoneNumberReader to execute read.
|
public static PhoneNumberFetcher fetcher(String pathTrunkSid, String pathSid)
pathTrunkSid
- The SID of the Trunk from which to fetch the PhoneNumber
resourcepathSid
- The unique string that identifies the resourcepublic static PhoneNumberDeleter deleter(String pathTrunkSid, String pathSid)
pathTrunkSid
- The SID of the Trunk from which to delete the
PhoneNumber resourcepathSid
- The unique string that identifies the resourcepublic static PhoneNumberCreator creator(String pathTrunkSid, String phoneNumberSid)
pathTrunkSid
- The SID of the Trunk to associate the phone number withphoneNumberSid
- The SID of the Incoming Phone Number that you want to
associate with the trunkpublic static PhoneNumberReader reader(String pathTrunkSid)
pathTrunkSid
- The SID of the Trunk from which to read the PhoneNumber
resourcespublic static PhoneNumber fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static PhoneNumber fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final PhoneNumber.AddressRequirement getAddressRequirements()
public final String getApiVersion()
public final Boolean getBeta()
public final Map<String,String> getCapabilities()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getFriendlyName()
public final Map<String,String> getLinks()
public final PhoneNumber getPhoneNumber()
public final String getSid()
public final String getSmsApplicationSid()
public final HttpMethod getSmsFallbackMethod()
public final URI getSmsFallbackUrl()
public final HttpMethod getSmsMethod()
public final URI getSmsUrl()
public final URI getStatusCallback()
public final HttpMethod getStatusCallbackMethod()
public final String getTrunkSid()
public final URI getUrl()
public final String getVoiceApplicationSid()
public final Boolean getVoiceCallerIdLookup()
public final HttpMethod getVoiceFallbackMethod()
public final URI getVoiceFallbackUrl()
public final HttpMethod getVoiceMethod()
public final URI getVoiceUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.