public class IncomingPhoneNumber extends InstanceResource<TwilioRestClient>
| Constructor and Description |
|---|
IncomingPhoneNumber(TwilioRestClient client)
Instantiates a new incoming phone number.
|
IncomingPhoneNumber(TwilioRestClient client,
Map<String,Object> properties)
Instantiates a new incoming phone number.
|
IncomingPhoneNumber(TwilioRestClient client,
String sid)
Instantiates a new incoming phone number.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Deprovision this IncomingPhoneNumber.
|
String |
getAccountSid()
Gets the account sid.
|
String |
getAddressRequirements()
Indicates whether this number requires an Address to be on file with Twilio.
|
String |
getApiVersion()
Gets the api version.
|
boolean |
getBeta()
Whether this number is new to the Twilio platform.
|
Date |
getDateCreated()
Gets the date created.
|
Date |
getDateUpdated()
Gets the date updated.
|
String |
getFriendlyName()
Gets the friendly name.
|
String |
getPhoneNumber()
Gets the phone number.
|
String |
getSid()
Gets the sid.
|
String |
getSmsApplicationSid()
Gets the sms application sid.
|
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()
Gets the status callback.
|
String |
getStatusCallbackMethod()
Gets the status callback method.
|
String |
getVoiceApplicationSid()
Gets the voice application sid.
|
Boolean |
getVoiceCallerIdLookup()
Whether this number has caller-ID lookup enabled for incoming voice calls.
|
String |
getVoiceFallbackMethod()
Gets the voice fallback method.
|
String |
getVoiceFallbackUrl()
Gets the voice fallback url.
|
String |
getVoiceMethod()
Gets the voice method.
|
String |
getVoiceUrl()
Gets the voice url.
|
getCastedObject, getObject, getProperty, toJSON, update, updatesetRequestAccountSidpublic IncomingPhoneNumber(TwilioRestClient client)
client - the clientpublic IncomingPhoneNumber(TwilioRestClient client, String sid)
client - the clientsid - the sidpublic IncomingPhoneNumber(TwilioRestClient client, Map<String,Object> properties)
client - the clientproperties - the propertiespublic boolean delete()
throws TwilioRestException
TwilioRestException - if there is an error in the requestpublic String getSid()
public Date getDateCreated()
public Date getDateUpdated()
public String getFriendlyName()
public String getAccountSid()
public String getPhoneNumber()
public String getVoiceApplicationSid()
public String getSmsApplicationSid()
public String getApiVersion()
public String getVoiceUrl()
public String getVoiceMethod()
public String getVoiceFallbackUrl()
public String getVoiceFallbackMethod()
public String getStatusCallback()
public String getStatusCallbackMethod()
public Boolean getVoiceCallerIdLookup()
public String getSmsUrl()
public String getSmsMethod()
public String getSmsFallbackUrl()
public String getSmsFallbackMethod()
public String getSmsStatusCallback()
public String getAddressRequirements()
public boolean getBeta()
Copyright © 2011 Twilio, Inc. All Rights Reserved.