public class Query extends Resource
Modifier and Type | Method and Description |
---|---|
static QueryCreator |
creator(String pathAssistantSid,
String language,
String query)
Create a QueryCreator to execute create.
|
static QueryDeleter |
deleter(String pathAssistantSid,
String pathSid)
Create a QueryDeleter to execute delete.
|
boolean |
equals(Object o) |
static QueryFetcher |
fetcher(String pathAssistantSid,
String pathSid)
Create a QueryFetcher to execute fetch.
|
static Query |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Query object using the provided
ObjectMapper.
|
static Query |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Query object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The unique ID of the Account that created this Query..
|
String |
getAssistantSid()
Returns The unique ID of the parent Assistant..
|
ZonedDateTime |
getDateCreated()
Returns The date that this resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The date that this resource was last updated.
|
String |
getLanguage()
Returns An ISO language-country string of the sample..
|
String |
getModelBuildSid()
Returns The unique ID of the Model Build queried..
|
String |
getQuery()
Returns The end-user's natural language input..
|
Map<String,Object> |
getResults()
Returns The natural language analysis results which include the Task
recognized, the confidence score and a list of identified Fields..
|
String |
getSampleSid()
Returns An optional reference to the Sample created from this query..
|
String |
getSid()
Returns A 34 character string that uniquely identifies this resource..
|
String |
getSourceChannel()
Returns The communication channel where this end-user input came from.
|
String |
getStatus()
Returns A string that described the query status.
|
URI |
getUrl()
Returns The url.
|
int |
hashCode() |
static QueryReader |
reader(String pathAssistantSid)
Create a QueryReader to execute read.
|
static QueryUpdater |
updater(String pathAssistantSid,
String pathSid)
Create a QueryUpdater to execute update.
|
public static QueryFetcher fetcher(String pathAssistantSid, String pathSid)
pathAssistantSid
- The unique ID of the Assistant.pathSid
- A 34 character string that uniquely identifies this resource.public static QueryReader reader(String pathAssistantSid)
pathAssistantSid
- The unique ID of the parent Assistant.public static QueryCreator creator(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 static QueryUpdater updater(String pathAssistantSid, String pathSid)
pathAssistantSid
- The unique ID of the parent Assistant.pathSid
- A 34 character string that uniquely identifies this resource.public static QueryDeleter deleter(String pathAssistantSid, String pathSid)
pathAssistantSid
- The unique ID of the Assistant.pathSid
- A 34 character string that uniquely identifies this resource.public static Query fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Query fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final Map<String,Object> getResults()
public final String getLanguage()
public final String getModelBuildSid()
public final String getQuery()
public final String getSampleSid()
public final String getAssistantSid()
public final String getSid()
public final String getStatus()
public final URI getUrl()
public final String getSourceChannel()
Copyright © 2019 Twilio, Inc. All Rights Reserved.