public class IncomingPhoneNumberUpdater extends Updater<IncomingPhoneNumber>
Constructor and Description |
---|
IncomingPhoneNumberUpdater(String sid)
Construct a new IncomingPhoneNumberUpdater.
|
IncomingPhoneNumberUpdater(String ownerAccountSid,
String sid)
Construct a new IncomingPhoneNumberUpdater.
|
Modifier and Type | Method and Description |
---|---|
IncomingPhoneNumber |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
IncomingPhoneNumberUpdater |
setAccountSid(String accountSid)
The unique id of the Account to which you wish to transfer this phnoe number.
|
IncomingPhoneNumberUpdater |
setApiVersion(String apiVersion)
Calls to this phone number will start a new TwiML session with this API
version..
|
IncomingPhoneNumberUpdater |
setFriendlyName(String friendlyName)
A human readable descriptive text for this resource, up to 64 characters
long.
|
IncomingPhoneNumberUpdater |
setSmsApplicationSid(String smsApplicationSid)
The 34 character sid of the application Twilio should use to handle SMSs sent
to this number.
|
IncomingPhoneNumberUpdater |
setSmsFallbackMethod(HttpMethod smsFallbackMethod)
The HTTP method Twilio will use when requesting the above URL.
|
IncomingPhoneNumberUpdater |
setSmsFallbackUrl(String smsFallbackUrl)
The URL that Twilio will request if an error occurs retrieving or executing
the TwiML from `SmsUrl`..
|
IncomingPhoneNumberUpdater |
setSmsFallbackUrl(URI smsFallbackUrl)
The URL that Twilio will request if an error occurs retrieving or executing
the TwiML from `SmsUrl`..
|
IncomingPhoneNumberUpdater |
setSmsMethod(HttpMethod smsMethod)
The HTTP method Twilio will use when making requests to the `SmsUrl`.
|
IncomingPhoneNumberUpdater |
setSmsUrl(String smsUrl)
The URL Twilio will request when receiving an incoming SMS message to this
number..
|
IncomingPhoneNumberUpdater |
setSmsUrl(URI smsUrl)
The URL Twilio will request when receiving an incoming SMS message to this
number..
|
IncomingPhoneNumberUpdater |
setStatusCallback(String statusCallback)
The URL that Twilio will request to pass status parameters (such as call
ended) to your application..
|
IncomingPhoneNumberUpdater |
setStatusCallback(URI statusCallback)
The URL that Twilio will request to pass status parameters (such as call
ended) to your application..
|
IncomingPhoneNumberUpdater |
setStatusCallbackMethod(HttpMethod statusCallbackMethod)
The HTTP method Twilio will use to make requests to the `StatusCallback` URL.
|
IncomingPhoneNumberUpdater |
setVoiceApplicationSid(String voiceApplicationSid)
The 34 character sid of the application Twilio should use to handle phone
calls to this number.
|
IncomingPhoneNumberUpdater |
setVoiceCallerIdLookup(Boolean voiceCallerIdLookup)
Look up the caller's caller-ID name from the CNAM database ($0.01 per look
up).
|
IncomingPhoneNumberUpdater |
setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
The HTTP method Twilio will use when requesting the `VoiceFallbackUrl`.
|
IncomingPhoneNumberUpdater |
setVoiceFallbackUrl(String voiceFallbackUrl)
The URL that Twilio will request if an error occurs retrieving or executing
the TwiML requested by `Url`..
|
IncomingPhoneNumberUpdater |
setVoiceFallbackUrl(URI voiceFallbackUrl)
The URL that Twilio will request if an error occurs retrieving or executing
the TwiML requested by `Url`..
|
IncomingPhoneNumberUpdater |
setVoiceMethod(HttpMethod voiceMethod)
The HTTP method Twilio will use when requesting the above `Url`.
|
IncomingPhoneNumberUpdater |
setVoiceUrl(String voiceUrl)
The URL Twilio will request when this phone number receives a call.
|
IncomingPhoneNumberUpdater |
setVoiceUrl(URI voiceUrl)
The URL Twilio will request when this phone number receives a call.
|
public IncomingPhoneNumberUpdater(String sid)
sid
- The sidpublic IncomingPhoneNumberUpdater setAccountSid(String accountSid)
accountSid
- The new owner of the phone numberpublic IncomingPhoneNumberUpdater setApiVersion(String apiVersion)
apiVersion
- The Twilio REST API version to usepublic IncomingPhoneNumberUpdater setFriendlyName(String friendlyName)
friendlyName
- A human readable description of this resourcepublic IncomingPhoneNumberUpdater setSmsApplicationSid(String smsApplicationSid)
smsApplicationSid
- Unique string that identifies the applicationpublic IncomingPhoneNumberUpdater setSmsFallbackMethod(HttpMethod smsFallbackMethod)
smsFallbackMethod
- HTTP method used with sms fallback urlpublic IncomingPhoneNumberUpdater setSmsFallbackUrl(URI smsFallbackUrl)
smsFallbackUrl
- URL Twilio will request if an error occurs in
executing TwiMLpublic IncomingPhoneNumberUpdater setSmsFallbackUrl(String smsFallbackUrl)
smsFallbackUrl
- URL Twilio will request if an error occurs in
executing TwiMLpublic IncomingPhoneNumberUpdater setSmsMethod(HttpMethod smsMethod)
smsMethod
- HTTP method to use with sms urlpublic IncomingPhoneNumberUpdater setSmsUrl(URI smsUrl)
smsUrl
- URL Twilio will request when receiving an SMSpublic IncomingPhoneNumberUpdater setSmsUrl(String smsUrl)
smsUrl
- URL Twilio will request when receiving an SMSpublic IncomingPhoneNumberUpdater setStatusCallback(URI statusCallback)
statusCallback
- URL Twilio will use to pass status parameterspublic IncomingPhoneNumberUpdater setStatusCallback(String statusCallback)
statusCallback
- URL Twilio will use to pass status parameterspublic IncomingPhoneNumberUpdater setStatusCallbackMethod(HttpMethod statusCallbackMethod)
statusCallbackMethod
- HTTP method twilio will use with status callbackpublic IncomingPhoneNumberUpdater setVoiceApplicationSid(String voiceApplicationSid)
voiceApplicationSid
- The unique sid of the application to handle this
numberpublic IncomingPhoneNumberUpdater setVoiceCallerIdLookup(Boolean voiceCallerIdLookup)
voiceCallerIdLookup
- Look up the caller's caller-IDpublic IncomingPhoneNumberUpdater setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
voiceFallbackMethod
- HTTP method used with fallback_urlpublic IncomingPhoneNumberUpdater setVoiceFallbackUrl(URI voiceFallbackUrl)
voiceFallbackUrl
- URL Twilio will request when an error occurs in TwiMLpublic IncomingPhoneNumberUpdater setVoiceFallbackUrl(String voiceFallbackUrl)
voiceFallbackUrl
- URL Twilio will request when an error occurs in TwiMLpublic IncomingPhoneNumberUpdater setVoiceMethod(HttpMethod voiceMethod)
voiceMethod
- HTTP method used with the voice urlpublic IncomingPhoneNumberUpdater setVoiceUrl(URI voiceUrl)
voiceUrl
- URL Twilio will request when receiving a callpublic IncomingPhoneNumberUpdater setVoiceUrl(String voiceUrl)
voiceUrl
- URL Twilio will request when receiving a callpublic IncomingPhoneNumber execute(TwilioRestClient client)
execute
in class Updater<IncomingPhoneNumber>
client
- TwilioRestClient with which to make the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.