public class ApplicationUpdater extends Updater<Application>
Constructor and Description |
---|
ApplicationUpdater(String pathSid)
Construct a new ApplicationUpdater.
|
ApplicationUpdater(String pathAccountSid,
String pathSid)
Construct a new ApplicationUpdater.
|
Modifier and Type | Method and Description |
---|---|
ApplicationUpdater |
setApiVersion(String apiVersion)
The API version to use to start a new TwiML session.
|
ApplicationUpdater |
setFriendlyName(String friendlyName)
A descriptive string that you create to describe the resource.
|
ApplicationUpdater |
setMessageStatusCallback(String messageStatusCallback)
The URL we should call using a POST method to send message status information
to your application..
|
ApplicationUpdater |
setMessageStatusCallback(URI messageStatusCallback)
The URL we should call using a POST method to send message status information
to your application..
|
ApplicationUpdater |
setSmsFallbackMethod(HttpMethod smsFallbackMethod)
The HTTP method we should use to call `sms_fallback_url`.
|
ApplicationUpdater |
setSmsFallbackUrl(String smsFallbackUrl)
The URL that we should call when an error occurs while retrieving or
executing the TwiML from `sms_url`..
|
ApplicationUpdater |
setSmsFallbackUrl(URI smsFallbackUrl)
The URL that we should call when an error occurs while retrieving or
executing the TwiML from `sms_url`..
|
ApplicationUpdater |
setSmsMethod(HttpMethod smsMethod)
The HTTP method we should use to call `sms_url`.
|
ApplicationUpdater |
setSmsStatusCallback(String smsStatusCallback)
Same as message_status_callback: The URL we should call using a POST method
to send status information about SMS messages sent by the application.
|
ApplicationUpdater |
setSmsStatusCallback(URI smsStatusCallback)
Same as message_status_callback: The URL we should call using a POST method
to send status information about SMS messages sent by the application.
|
ApplicationUpdater |
setSmsUrl(String smsUrl)
The URL we should call when the phone number receives an incoming SMS
message..
|
ApplicationUpdater |
setSmsUrl(URI smsUrl)
The URL we should call when the phone number receives an incoming SMS
message..
|
ApplicationUpdater |
setStatusCallback(String statusCallback)
The URL we should call using the `status_callback_method` to send status
information to your application..
|
ApplicationUpdater |
setStatusCallback(URI statusCallback)
The URL we should call using the `status_callback_method` to send status
information to your application..
|
ApplicationUpdater |
setStatusCallbackMethod(HttpMethod statusCallbackMethod)
The HTTP method we should use to call `status_callback`.
|
ApplicationUpdater |
setVoiceCallerIdLookup(Boolean voiceCallerIdLookup)
Whether we should look up the caller's caller-ID name from the CNAM database
(additional charges apply).
|
ApplicationUpdater |
setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
The HTTP method we should use to call `voice_fallback_url`.
|
ApplicationUpdater |
setVoiceFallbackUrl(String voiceFallbackUrl)
The URL that we should call when an error occurs retrieving or executing the
TwiML requested by `url`..
|
ApplicationUpdater |
setVoiceFallbackUrl(URI voiceFallbackUrl)
The URL that we should call when an error occurs retrieving or executing the
TwiML requested by `url`..
|
ApplicationUpdater |
setVoiceMethod(HttpMethod voiceMethod)
The HTTP method we should use to call `voice_url`.
|
ApplicationUpdater |
setVoiceUrl(String voiceUrl)
The URL we should call when the phone number assigned to this application
receives a call..
|
ApplicationUpdater |
setVoiceUrl(URI voiceUrl)
The URL we should call when the phone number assigned to this application
receives a call..
|
Application |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public ApplicationUpdater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic ApplicationUpdater setFriendlyName(String friendlyName)
friendlyName
- A string to describe the resourcepublic ApplicationUpdater setApiVersion(String apiVersion)
apiVersion
- The API version to use to start a new TwiML sessionpublic ApplicationUpdater setVoiceUrl(URI voiceUrl)
voiceUrl
- The URL to call when the phone number receives a callpublic ApplicationUpdater setVoiceUrl(String voiceUrl)
voiceUrl
- The URL to call when the phone number receives a callpublic ApplicationUpdater setVoiceMethod(HttpMethod voiceMethod)
voiceMethod
- The HTTP method to use with the voice_urlpublic ApplicationUpdater setVoiceFallbackUrl(URI voiceFallbackUrl)
voiceFallbackUrl
- The URL to call when a TwiML error occurspublic ApplicationUpdater setVoiceFallbackUrl(String voiceFallbackUrl)
voiceFallbackUrl
- The URL to call when a TwiML error occurspublic ApplicationUpdater setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
voiceFallbackMethod
- The HTTP method to use with voice_fallback_urlpublic ApplicationUpdater setStatusCallback(URI statusCallback)
statusCallback
- The URL to send status information to your applicationpublic ApplicationUpdater setStatusCallback(String statusCallback)
statusCallback
- The URL to send status information to your applicationpublic ApplicationUpdater setStatusCallbackMethod(HttpMethod statusCallbackMethod)
statusCallbackMethod
- The HTTP method to use to call status_callbackpublic ApplicationUpdater setVoiceCallerIdLookup(Boolean voiceCallerIdLookup)
voiceCallerIdLookup
- Whether to lookup the caller's namepublic ApplicationUpdater setSmsUrl(URI smsUrl)
smsUrl
- The URL to call when the phone number receives an incoming SMS
messagepublic ApplicationUpdater setSmsUrl(String smsUrl)
smsUrl
- The URL to call when the phone number receives an incoming SMS
messagepublic ApplicationUpdater setSmsMethod(HttpMethod smsMethod)
smsMethod
- The HTTP method to use with sms_urlpublic ApplicationUpdater setSmsFallbackUrl(URI smsFallbackUrl)
smsFallbackUrl
- The URL to call when an error occurs while retrieving
or executing the TwiMLpublic ApplicationUpdater setSmsFallbackUrl(String smsFallbackUrl)
smsFallbackUrl
- The URL to call when an error occurs while retrieving
or executing the TwiMLpublic ApplicationUpdater setSmsFallbackMethod(HttpMethod smsFallbackMethod)
smsFallbackMethod
- The HTTP method to use with sms_fallback_urlpublic ApplicationUpdater setSmsStatusCallback(URI smsStatusCallback)
smsStatusCallback
- Same as message_status_callback. Deprecated,
included for backwards compatibility.public ApplicationUpdater setSmsStatusCallback(String smsStatusCallback)
smsStatusCallback
- Same as message_status_callback. Deprecated,
included for backwards compatibility.public ApplicationUpdater setMessageStatusCallback(URI messageStatusCallback)
messageStatusCallback
- The URL to send message status information to
your applicationpublic ApplicationUpdater setMessageStatusCallback(String messageStatusCallback)
messageStatusCallback
- The URL to send message status information to
your applicationpublic Application update(TwilioRestClient client)
update
in class Updater<Application>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.