Class TaskUpdater


  • public class TaskUpdater
    extends Updater<Task>
    PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
    • Constructor Detail

      • TaskUpdater

        public TaskUpdater​(String pathAssistantSid,
                           String pathSid)
        Construct a new TaskUpdater.
        Parameters:
        pathAssistantSid - The unique ID of the Assistant.
        pathSid - A 34 character string that uniquely identifies this resource.
    • Method Detail

      • setFriendlyName

        public TaskUpdater setFriendlyName​(String friendlyName)
        A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long..
        Parameters:
        friendlyName - A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long.
        Returns:
        this
      • setUniqueName

        public TaskUpdater setUniqueName​(String uniqueName)
        A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long..
        Parameters:
        uniqueName - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
        Returns:
        this
      • setActions

        public TaskUpdater setActions​(Map<String,​Object> actions)
        A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique..
        Parameters:
        actions - A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique.
        Returns:
        this
      • setActionsUrl

        public TaskUpdater setActionsUrl​(URI actionsUrl)
        User-provided HTTP endpoint where from the assistant fetches actions.
        Parameters:
        actionsUrl - User-provided HTTP endpoint where from the assistant fetches actions
        Returns:
        this
      • setActionsUrl

        public TaskUpdater setActionsUrl​(String actionsUrl)
        User-provided HTTP endpoint where from the assistant fetches actions.
        Parameters:
        actionsUrl - User-provided HTTP endpoint where from the assistant fetches actions
        Returns:
        this
      • update

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