Class QueryUpdater


  • public class QueryUpdater
    extends Updater<Query>
    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

      • QueryUpdater

        public QueryUpdater​(String pathAssistantSid,
                            String pathSid)
        Construct a new QueryUpdater.
        Parameters:
        pathAssistantSid - The SID of the Assistant that is the parent of the resource to update
        pathSid - The unique string that identifies the resource to update
    • Method Detail

      • setSampleSid

        public QueryUpdater setSampleSid​(String sampleSid)
        The SID of an optional reference to the [Sample](https://www.twilio.com/docs/autopilot/api/task-sample) created from the query..
        Parameters:
        sampleSid - The SID of an optional reference to the Sample created from the query
        Returns:
        this
      • setStatus

        public QueryUpdater setStatus​(String status)
        The new status of the resource. Can be: `pending_review`, `reviewed`, or `discarded`.
        Parameters:
        status - The new status of the resource
        Returns:
        this
      • update

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