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