Class QueryUtterancesResults
java.lang.Object
com.azure.resourcemanager.appservice.models.QueryUtterancesResults
- All Implemented Interfaces:
com.azure.json.JsonSerializable<QueryUtterancesResults>
public final class QueryUtterancesResults
extends Object
implements com.azure.json.JsonSerializable<QueryUtterancesResults>
Suggested utterances where the detector can be applicable.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of QueryUtterancesResults class. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryUtterancesResults
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of QueryUtterancesResults from the JsonReader.query()
Get the query property: Search Query.results()
Get the results property: Array of utterance results for search query.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the query property: Search Query.withResults
(List<QueryUtterancesResult> results) Set the results property: Array of utterance results for search query.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
QueryUtterancesResults
public QueryUtterancesResults()Creates an instance of QueryUtterancesResults class.
-
-
Method Details
-
query
Get the query property: Search Query.- Returns:
- the query value.
-
withQuery
Set the query property: Search Query.- Parameters:
query
- the query value to set.- Returns:
- the QueryUtterancesResults object itself.
-
results
Get the results property: Array of utterance results for search query.- Returns:
- the results value.
-
withResults
Set the results property: Array of utterance results for search query.- Parameters:
results
- the results value to set.- Returns:
- the QueryUtterancesResults object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<QueryUtterancesResults>
- Throws:
IOException
-
fromJson
public static QueryUtterancesResults fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of QueryUtterancesResults from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of QueryUtterancesResults if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the QueryUtterancesResults.
-