Class TriggerUpdater

    • Constructor Detail

      • TriggerUpdater

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

        public TriggerUpdater​(String pathAccountSid,
                              String pathSid)
        Construct a new TriggerUpdater.
        Parameters:
        pathAccountSid - The SID of the Account that created the resources to update
        pathSid - The unique string that identifies the resource
    • Method Detail

      • setCallbackMethod

        public TriggerUpdater setCallbackMethod​(HttpMethod callbackMethod)
        The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`..
        Parameters:
        callbackMethod - The HTTP method to use to call callback_url
        Returns:
        this
      • setCallbackUrl

        public TriggerUpdater setCallbackUrl​(URI callbackUrl)
        The URL we should call using `callback_method` when the trigger fires..
        Parameters:
        callbackUrl - The URL we call when the trigger fires
        Returns:
        this
      • setCallbackUrl

        public TriggerUpdater setCallbackUrl​(String callbackUrl)
        The URL we should call using `callback_method` when the trigger fires..
        Parameters:
        callbackUrl - The URL we call when the trigger fires
        Returns:
        this
      • setFriendlyName

        public TriggerUpdater 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
      • update

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