public class QueryCreator extends Creator<Query>
Constructor and Description |
---|
QueryCreator(String pathAssistantSid,
String language,
String query)
Construct a new QueryCreator.
|
Modifier and Type | Method and Description |
---|---|
Query |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
QueryCreator |
setField(String field)
Constraints the query to a given Field with an task.
|
QueryCreator |
setModelBuild(String modelBuild)
The Model Build Sid or unique name of the Model Build to be queried..
|
QueryCreator |
setTasks(String tasks)
Constraints the query to a set of tasks.
|
create, createAsync, createAsync
public QueryCreator(String pathAssistantSid, String language, String query)
pathAssistantSid
- The unique ID of the parent Assistant.language
- An ISO language-country string of the sample.query
- A user-provided string that uniquely identifies this resource
as an alternative to the sid. It can be up to 2048 characters
long.public QueryCreator setTasks(String tasks)
tasks
- Constraints the query to a set of tasks. Useful when you need
to constrain the paths the user can take. Tasks should be comma
separated task-unique-name-1, task-unique-name-2public QueryCreator setModelBuild(String modelBuild)
modelBuild
- The Model Build Sid or unique name of the Model Build to
be queried.public QueryCreator setField(String field)
field
- Constraints the query to a given Field with an task. Useful
when you know the Field you are expecting. It accepts one field
in the format task-unique-name-1:field-unique-namepublic Query create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.