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 unique ID of the parent Assistant.
        pathSid - A 34 character string that uniquely identifies this resource.
    • Method Detail

      • setSampleSid

        public QueryUpdater setSampleSid​(String sampleSid)
        An optional reference to the Sample created from this query..
        Parameters:
        sampleSid - An optional reference to the Sample created from this query.
        Returns:
        this
      • setStatus

        public QueryUpdater setStatus​(String status)
        A string that described the query status. The values can be: pending_review, reviewed, discarded.
        Parameters:
        status - A string that described the query status. The values can be: pending_review, reviewed, discarded
        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