public class IncomingPhoneNumberUpdater extends Updater<IncomingPhoneNumber>
| Constructor and Description |
|---|
IncomingPhoneNumberUpdater(String pathSid)
Construct a new IncomingPhoneNumberUpdater.
|
IncomingPhoneNumberUpdater(String pathAccountSid,
String pathSid)
Construct a new IncomingPhoneNumberUpdater.
|
| Modifier and Type | Method and Description |
|---|---|
IncomingPhoneNumberUpdater |
setAccountSid(String accountSid)
The unique id of the Account to which you wish to transfer this phone number.
|
IncomingPhoneNumberUpdater |
setAddressSid(String addressSid)
The 34 character sid of the address Twilio should use to associate with the
number.
|
IncomingPhoneNumberUpdater |
setApiVersion(String apiVersion)
Calls to this phone number will start a new TwiML session with this API
version..
|
IncomingPhoneNumberUpdater |
setEmergencyAddressSid(String emergencyAddressSid)
The emergency_address_sid.
|
IncomingPhoneNumberUpdater |
setEmergencyStatus(IncomingPhoneNumber.EmergencyStatus emergencyStatus)
The emergency_status.
|
IncomingPhoneNumberUpdater |
setFriendlyName(String friendlyName)
A human readable descriptive text for this resource, up to 64 characters
long.
|
IncomingPhoneNumberUpdater |
setIdentitySid(String identitySid)
The 34 character sid of the identity Twilio should use to associate with the
number.
|
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 |
setTrunkSid(String trunkSid)
The 34 character sid of the Trunk Twilio should use to handle phone calls to
this number.
|
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 |
setVoiceReceiveMode(IncomingPhoneNumber.VoiceReceiveMode voiceReceiveMode)
The voice_receive_mode.
|
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.
|
IncomingPhoneNumber |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsyncpublic IncomingPhoneNumberUpdater(String pathSid)
pathSid - 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 IncomingPhoneNumberUpdater setEmergencyStatus(IncomingPhoneNumber.EmergencyStatus emergencyStatus)
emergencyStatus - The emergency_statuspublic IncomingPhoneNumberUpdater setEmergencyAddressSid(String emergencyAddressSid)
emergencyAddressSid - The emergency_address_sidpublic IncomingPhoneNumberUpdater setTrunkSid(String trunkSid)
trunkSid - Unique string to identify the trunkpublic IncomingPhoneNumberUpdater setVoiceReceiveMode(IncomingPhoneNumber.VoiceReceiveMode voiceReceiveMode)
voiceReceiveMode - The voice_receive_modepublic IncomingPhoneNumberUpdater setIdentitySid(String identitySid)
identitySid - Unique string that identifies the identity associated
with numberpublic IncomingPhoneNumberUpdater setAddressSid(String addressSid)
addressSid - Unique string that identifies the address associated with
numberpublic IncomingPhoneNumber update(TwilioRestClient client)
update in class Updater<IncomingPhoneNumber>client - TwilioRestClient with which to make the requestCopyright © 2016 Twilio, Inc. All Rights Reserved.