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 SID of the Account that created
the IncomingPhoneNumber resource to update.
|
IncomingPhoneNumberUpdater |
setAddressSid(String addressSid)
The SID of the Address resource we should associate with the phone number.
|
IncomingPhoneNumberUpdater |
setApiVersion(String apiVersion)
The API version to use for incoming calls made to the phone number.
|
IncomingPhoneNumberUpdater |
setBundleSid(String bundleSid)
The SID of the Bundle resource that you associate with the phone number.
|
IncomingPhoneNumberUpdater |
setEmergencyAddressSid(String emergencyAddressSid)
The SID of the emergency address configuration to use for emergency calling
from this phone number..
|
IncomingPhoneNumberUpdater |
setEmergencyStatus(IncomingPhoneNumber.EmergencyStatus emergencyStatus)
The parameter displays if emergency calling is enabled for this number.
|
IncomingPhoneNumberUpdater |
setFriendlyName(String friendlyName)
A descriptive string that you created to describe this phone number.
|
IncomingPhoneNumberUpdater |
setIdentitySid(String identitySid)
The SID of the Identity resource that we should associate with the phone
number.
|
IncomingPhoneNumberUpdater |
setSmsApplicationSid(String smsApplicationSid)
The SID of the application that should handle SMS messages sent to the
number.
|
IncomingPhoneNumberUpdater |
setSmsFallbackMethod(HttpMethod smsFallbackMethod)
The HTTP method that we should use to call `sms_fallback_url`.
|
IncomingPhoneNumberUpdater |
setSmsFallbackUrl(String smsFallbackUrl)
The URL that we should call when an error occurs while requesting or
executing the TwiML defined by `sms_url`..
|
IncomingPhoneNumberUpdater |
setSmsFallbackUrl(URI smsFallbackUrl)
The URL that we should call when an error occurs while requesting or
executing the TwiML defined by `sms_url`..
|
IncomingPhoneNumberUpdater |
setSmsMethod(HttpMethod smsMethod)
The HTTP method that we should use to call `sms_url`.
|
IncomingPhoneNumberUpdater |
setSmsUrl(String smsUrl)
The URL we should call when the phone number receives an incoming SMS
message..
|
IncomingPhoneNumberUpdater |
setSmsUrl(URI smsUrl)
The URL we should call when the phone number receives an incoming SMS
message..
|
IncomingPhoneNumberUpdater |
setStatusCallback(String statusCallback)
The URL we should call using the `status_callback_method` to send status
information to your application..
|
IncomingPhoneNumberUpdater |
setStatusCallback(URI statusCallback)
The URL we should call using the `status_callback_method` to send status
information to your application..
|
IncomingPhoneNumberUpdater |
setStatusCallbackMethod(HttpMethod statusCallbackMethod)
The HTTP method we should use to call `status_callback`.
|
IncomingPhoneNumberUpdater |
setTrunkSid(String trunkSid)
The SID of the Trunk we should use to handle phone calls to the phone number.
|
IncomingPhoneNumberUpdater |
setVoiceApplicationSid(String voiceApplicationSid)
The SID of the application we should use to handle phone calls to the phone
number.
|
IncomingPhoneNumberUpdater |
setVoiceCallerIdLookup(Boolean voiceCallerIdLookup)
Whether to lookup the caller's name from the CNAM database and post it to
your app.
|
IncomingPhoneNumberUpdater |
setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
The HTTP method that we should use to call `voice_fallback_url`.
|
IncomingPhoneNumberUpdater |
setVoiceFallbackUrl(String voiceFallbackUrl)
The URL that we should call when an error occurs retrieving or executing the
TwiML requested by `url`..
|
IncomingPhoneNumberUpdater |
setVoiceFallbackUrl(URI voiceFallbackUrl)
The URL that we should call when an error occurs retrieving or executing the
TwiML requested by `url`..
|
IncomingPhoneNumberUpdater |
setVoiceMethod(HttpMethod voiceMethod)
The HTTP method that we should use to call `voice_url`.
|
IncomingPhoneNumberUpdater |
setVoiceReceiveMode(IncomingPhoneNumber.VoiceReceiveMode voiceReceiveMode)
The configuration parameter for the phone number to receive incoming voice
calls or faxes.
|
IncomingPhoneNumberUpdater |
setVoiceUrl(String voiceUrl)
The URL that we should call to answer a call to the phone number.
|
IncomingPhoneNumberUpdater |
setVoiceUrl(URI voiceUrl)
The URL that we should call to answer a call to the phone number.
|
IncomingPhoneNumber |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public IncomingPhoneNumberUpdater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic IncomingPhoneNumberUpdater setAccountSid(String accountSid)
accountSid
- The SID of the Account that created the resource to updatepublic IncomingPhoneNumberUpdater setApiVersion(String apiVersion)
apiVersion
- The API version to use for incoming calls made to the
phone numberpublic IncomingPhoneNumberUpdater setFriendlyName(String friendlyName)
friendlyName
- A string to describe the 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
- The URL we call when an error occurs while executing
TwiMLpublic IncomingPhoneNumberUpdater setSmsFallbackUrl(String smsFallbackUrl)
smsFallbackUrl
- The URL we call when an error occurs while executing
TwiMLpublic IncomingPhoneNumberUpdater setSmsMethod(HttpMethod smsMethod)
smsMethod
- The HTTP method to use with sms_urlpublic IncomingPhoneNumberUpdater setSmsUrl(URI smsUrl)
smsUrl
- The URL we should call when the phone number receives an
incoming SMS messagepublic IncomingPhoneNumberUpdater setSmsUrl(String smsUrl)
smsUrl
- The URL we should call when the phone number receives an
incoming SMS messagepublic IncomingPhoneNumberUpdater setStatusCallback(URI statusCallback)
statusCallback
- The URL we should call to send status information to
your applicationpublic IncomingPhoneNumberUpdater setStatusCallback(String statusCallback)
statusCallback
- The URL we should call to send status information to
your applicationpublic IncomingPhoneNumberUpdater setStatusCallbackMethod(HttpMethod statusCallbackMethod)
statusCallbackMethod
- The HTTP method we should use to call
status_callbackpublic IncomingPhoneNumberUpdater setVoiceApplicationSid(String voiceApplicationSid)
voiceApplicationSid
- The SID of the application to handle the phone
numberpublic IncomingPhoneNumberUpdater setVoiceCallerIdLookup(Boolean voiceCallerIdLookup)
voiceCallerIdLookup
- Whether to lookup the caller's namepublic IncomingPhoneNumberUpdater setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
voiceFallbackMethod
- The HTTP method used with fallback_urlpublic IncomingPhoneNumberUpdater setVoiceFallbackUrl(URI voiceFallbackUrl)
voiceFallbackUrl
- The URL we will call when an error occurs in TwiMLpublic IncomingPhoneNumberUpdater setVoiceFallbackUrl(String voiceFallbackUrl)
voiceFallbackUrl
- The URL we will call when an error occurs in TwiMLpublic IncomingPhoneNumberUpdater setVoiceMethod(HttpMethod voiceMethod)
voiceMethod
- The HTTP method used with the voice_urlpublic IncomingPhoneNumberUpdater setVoiceUrl(URI voiceUrl)
voiceUrl
- The URL we should call when the phone number receives a callpublic IncomingPhoneNumberUpdater setVoiceUrl(String voiceUrl)
voiceUrl
- The URL we should call when the phone number receives a callpublic IncomingPhoneNumberUpdater setEmergencyStatus(IncomingPhoneNumber.EmergencyStatus emergencyStatus)
emergencyStatus
- Displays if emergency calling is enabled for this
number.public IncomingPhoneNumberUpdater setEmergencyAddressSid(String emergencyAddressSid)
emergencyAddressSid
- The emergency address configuration to use for
emergency callingpublic IncomingPhoneNumberUpdater setTrunkSid(String trunkSid)
trunkSid
- SID of the trunk to handle phone calls to the phone numberpublic IncomingPhoneNumberUpdater setVoiceReceiveMode(IncomingPhoneNumber.VoiceReceiveMode voiceReceiveMode)
voiceReceiveMode
- Incoming call type: fax or voicepublic IncomingPhoneNumberUpdater setIdentitySid(String identitySid)
identitySid
- Unique string that identifies the identity associated
with numberpublic IncomingPhoneNumberUpdater setAddressSid(String addressSid)
addressSid
- The SID of the Address resource associated with the phone
numberpublic IncomingPhoneNumberUpdater setBundleSid(String bundleSid)
bundleSid
- The SID of the Bundle resource associated with numberpublic IncomingPhoneNumber update(TwilioRestClient client)
update
in class Updater<IncomingPhoneNumber>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.