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 SID of the Account that created the resource.
|
String |
getAssistantSid()
Returns The SID of the Assistant that is the parent of the resource.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT when the resource was last updated.
|
String |
getDialogueSid()
Returns The SID of the Dialogue..
|
String |
getLanguage()
Returns The ISO language-country string that specifies the language used by
the Query.
|
String |
getModelBuildSid()
Returns The SID 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 that include the Task
recognized and a list of identified Fields.
|
String |
getSampleSid()
Returns The SID of an optional reference to the Sample created from the
query.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
String |
getSourceChannel()
Returns The communication channel from where the end-user input came.
|
String |
getStatus()
Returns The status of the Query.
|
URI |
getUrl()
Returns The absolute URL of the Query resource.
|
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 SID of the Assistant that is the parent of the
resource to fetchpathSid
- The unique string that identifies the resourcepublic static QueryReader reader(String pathAssistantSid)
pathAssistantSid
- The SID of the Assistant that is the parent of the
resources to readpublic static QueryCreator creator(String pathAssistantSid, String language, String query)
pathAssistantSid
- The SID of the Assistant that is the parent of the
new resourcelanguage
- The ISO language-country string that specifies the language
used for the new queryquery
- The end-user's natural language inputpublic static QueryUpdater updater(String pathAssistantSid, String pathSid)
pathAssistantSid
- The SID of the Assistant that is the parent of the
resource to updatepathSid
- The unique string that identifies the resource to updatepublic static QueryDeleter deleter(String pathAssistantSid, String pathSid)
pathAssistantSid
- The SID of the Assistant that is the parent of the
resources to deletepathSid
- The unique string that identifies the resourcepublic 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()
public final String getDialogueSid()
Copyright © 2019 Twilio, Inc. All Rights Reserved.