Class ApplicationUpdater

    • Constructor Detail

      • ApplicationUpdater

        public ApplicationUpdater​(String pathSid)
        Construct a new ApplicationUpdater.
        Parameters:
        pathSid - The unique string that identifies the resource
      • ApplicationUpdater

        public ApplicationUpdater​(String pathAccountSid,
                                  String pathSid)
        Construct a new ApplicationUpdater.
        Parameters:
        pathAccountSid - The SID of the Account that will create the resource
        pathSid - The unique string that identifies the resource
    • Method Detail

      • setFriendlyName

        public ApplicationUpdater setFriendlyName​(String friendlyName)
        A descriptive string that you create to describe the resource. It can be up to 64 characters long..
        Parameters:
        friendlyName - A string to describe the resource
        Returns:
        this
      • setApiVersion

        public ApplicationUpdater setApiVersion​(String apiVersion)
        The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. The default value is your account's default API version..
        Parameters:
        apiVersion - The API version to use to start a new TwiML session
        Returns:
        this
      • setVoiceUrl

        public ApplicationUpdater setVoiceUrl​(URI voiceUrl)
        The URL we should call when the phone number assigned to this application receives a call..
        Parameters:
        voiceUrl - The URL to call when the phone number receives a call
        Returns:
        this
      • setVoiceUrl

        public ApplicationUpdater setVoiceUrl​(String voiceUrl)
        The URL we should call when the phone number assigned to this application receives a call..
        Parameters:
        voiceUrl - The URL to call when the phone number receives a call
        Returns:
        this
      • setVoiceMethod

        public ApplicationUpdater setVoiceMethod​(HttpMethod voiceMethod)
        The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`..
        Parameters:
        voiceMethod - The HTTP method to use with the voice_url
        Returns:
        this
      • setVoiceFallbackUrl

        public ApplicationUpdater setVoiceFallbackUrl​(URI voiceFallbackUrl)
        The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`..
        Parameters:
        voiceFallbackUrl - The URL to call when a TwiML error occurs
        Returns:
        this
      • setVoiceFallbackUrl

        public ApplicationUpdater setVoiceFallbackUrl​(String voiceFallbackUrl)
        The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`..
        Parameters:
        voiceFallbackUrl - The URL to call when a TwiML error occurs
        Returns:
        this
      • setVoiceFallbackMethod

        public ApplicationUpdater setVoiceFallbackMethod​(HttpMethod voiceFallbackMethod)
        The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`..
        Parameters:
        voiceFallbackMethod - The HTTP method to use with voice_fallback_url
        Returns:
        this
      • setStatusCallback

        public ApplicationUpdater setStatusCallback​(URI statusCallback)
        The URL we should call using the `status_callback_method` to send status information to your application..
        Parameters:
        statusCallback - The URL to send status information to your application
        Returns:
        this
      • setStatusCallback

        public ApplicationUpdater setStatusCallback​(String statusCallback)
        The URL we should call using the `status_callback_method` to send status information to your application..
        Parameters:
        statusCallback - The URL to send status information to your application
        Returns:
        this
      • setStatusCallbackMethod

        public ApplicationUpdater setStatusCallbackMethod​(HttpMethod statusCallbackMethod)
        The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`..
        Parameters:
        statusCallbackMethod - The HTTP method to use to call status_callback
        Returns:
        this
      • setVoiceCallerIdLookup

        public ApplicationUpdater setVoiceCallerIdLookup​(Boolean voiceCallerIdLookup)
        Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`..
        Parameters:
        voiceCallerIdLookup - Whether to lookup the caller's name
        Returns:
        this
      • setSmsUrl

        public ApplicationUpdater setSmsUrl​(URI smsUrl)
        The URL we should call when the phone number receives an incoming SMS message..
        Parameters:
        smsUrl - The URL to call when the phone number receives an incoming SMS message
        Returns:
        this
      • setSmsUrl

        public ApplicationUpdater setSmsUrl​(String smsUrl)
        The URL we should call when the phone number receives an incoming SMS message..
        Parameters:
        smsUrl - The URL to call when the phone number receives an incoming SMS message
        Returns:
        this
      • setSmsMethod

        public ApplicationUpdater setSmsMethod​(HttpMethod smsMethod)
        The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`..
        Parameters:
        smsMethod - The HTTP method to use with sms_url
        Returns:
        this
      • setSmsFallbackUrl

        public ApplicationUpdater setSmsFallbackUrl​(URI smsFallbackUrl)
        The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`..
        Parameters:
        smsFallbackUrl - The URL to call when an error occurs while retrieving or executing the TwiML
        Returns:
        this
      • setSmsFallbackUrl

        public ApplicationUpdater setSmsFallbackUrl​(String smsFallbackUrl)
        The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`..
        Parameters:
        smsFallbackUrl - The URL to call when an error occurs while retrieving or executing the TwiML
        Returns:
        this
      • setSmsFallbackMethod

        public ApplicationUpdater setSmsFallbackMethod​(HttpMethod smsFallbackMethod)
        The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`..
        Parameters:
        smsFallbackMethod - The HTTP method to use with sms_fallback_url
        Returns:
        this
      • setSmsStatusCallback

        public ApplicationUpdater setSmsStatusCallback​(URI smsStatusCallback)
        The URL we should call using a POST method to send status information about SMS messages sent by the application..
        Parameters:
        smsStatusCallback - The URL to send status information to your application
        Returns:
        this
      • setSmsStatusCallback

        public ApplicationUpdater setSmsStatusCallback​(String smsStatusCallback)
        The URL we should call using a POST method to send status information about SMS messages sent by the application..
        Parameters:
        smsStatusCallback - The URL to send status information to your application
        Returns:
        this
      • setMessageStatusCallback

        public ApplicationUpdater setMessageStatusCallback​(URI messageStatusCallback)
        The URL we should call using a POST method to send message status information to your application..
        Parameters:
        messageStatusCallback - The URL to send message status information to your application
        Returns:
        this
      • setMessageStatusCallback

        public ApplicationUpdater setMessageStatusCallback​(String messageStatusCallback)
        The URL we should call using a POST method to send message status information to your application..
        Parameters:
        messageStatusCallback - The URL to send message status information to your application
        Returns:
        this
      • update

        public Application update​(TwilioRestClient client)
        Make the request to the Twilio API to perform the update.
        Specified by:
        update in class Updater<Application>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Updated Application