public class PhoneNumber extends NextGenInstanceResource<TwilioTrunkingClient>
| Modifier and Type | Class and Description |
|---|---|
class |
PhoneNumber.Capabilities
This is a set of boolean properties that indicate whether a phone number
can receive calls or messages.
|
| Constructor and Description |
|---|
PhoneNumber(TwilioTrunkingClient client,
Map<String,Object> properties)
Initialize phone number with data
|
PhoneNumber(TwilioTrunkingClient client,
String trunkSid,
String phoneNumberSid)
Initialize phone number
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Remove the associated phone number
|
String |
getAccountSid()
The unique ID of the Account that owns this Phone Number
|
String |
getAddressRequirements()
Indicates whether this number requires an Address to be on file with Twilio.
|
String |
getApiVersion()
Gets the api version.
|
PhoneNumber.Capabilities |
getCapabilities()
Return capabilities associated to this phone number
|
Calendar |
getDateCreated()
The date this Origination Url was created.
|
Calendar |
getDateUpdated()
The date this Origination Url was updated.
|
String |
getFriendlyName()
A human readable descriptive text, up to 64 characters long.
|
String |
getPhoneNumber()
The incoming phone number.
|
String |
getSid()
A 34 character string that uniquely identifies the Phone Number in this Twilio Trunk.
|
String |
getSipUrl()
The SIP address you want Twilio to route your Origination calls to.
|
String |
getSmsFallbackMethod()
Gets the sms fallback method.
|
String |
getSmsFallbackUrl()
Gets the sms fallback url.
|
String |
getSmsMethod()
Gets the sms method.
|
String |
getSmsStatusCallback()
Gets the sms status callback.
|
String |
getSmsUrl()
Gets the sms url.
|
String |
getStatusCallback()
The URL that Twilio will request to pass status parameters
(such as call ended) to your application.
|
String |
getStatusCallbackMethod()
The HTTP method Twilio will use to make requests to the StatusCallback URL.
|
String |
getTrunkSid()
The unique ID of the Trunk that is associated to this phone number.
|
String |
getUrl()
The absolute URL for this resource
|
String |
getVoiceApplicationSid()
The 34 character sid of the application Twilio should use to handle phone calls
to this number.
|
String |
getVoiceFallbackMethod()
The HTTP method Twilio will use when requesting the VoiceFallbackUrl.
|
String |
getVoiceFallbackUrl()
The URL that Twilio will request if an error occurs
retrieving or executing the TwiML requested by Url.
|
String |
getVoiceMethod()
The HTTP method Twilio will use when requesting the above Url.
|
String |
getVoiceUrl()
The URL Twilio will request when this phone number receives a call.
|
Boolean |
isBeta()
Whether this number is new to the Twilio platform.
|
Boolean |
isVoiceCallerIdLookup()
Look up the caller's caller-ID name from the CNAM database ($0.01 per look up).
|
getCastedObject, getObject, getProperty, toJSON, update, updatesetRequestAccountSidpublic PhoneNumber(TwilioTrunkingClient client, String trunkSid, String phoneNumberSid)
client - A TwilioTrunkingClienttrunkSid - The trunk sidphoneNumberSid - The phone number sidpublic PhoneNumber(TwilioTrunkingClient client, Map<String,Object> properties)
client - A TwilioTrunkingClientproperties - The data for this phone number instancepublic String getApiVersion()
public String getSid()
public String getAccountSid()
public String getTrunkSid()
public String getFriendlyName()
public String getSipUrl()
public Calendar getDateCreated()
public Calendar getDateUpdated()
public String getUrl()
public String getPhoneNumber()
public Boolean isVoiceCallerIdLookup()
public String getVoiceUrl()
public String getVoiceMethod()
public String getVoiceFallbackUrl()
public String getVoiceFallbackMethod()
public String getStatusCallback()
public String getStatusCallbackMethod()
public String getVoiceApplicationSid()
public String getSmsUrl()
public String getSmsMethod()
public String getSmsFallbackUrl()
public String getSmsFallbackMethod()
public String getSmsStatusCallback()
public String getAddressRequirements()
public Boolean isBeta()
public PhoneNumber.Capabilities getCapabilities()
public boolean delete()
throws TwilioRestException
TwilioRestExceptionCopyright © 2011 Twilio, Inc. All Rights Reserved.