Class QueryUtterancesResult
java.lang.Object
com.azure.resourcemanager.appservice.models.QueryUtterancesResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<QueryUtterancesResult>
public final class QueryUtterancesResult
extends Object
implements com.azure.json.JsonSerializable<QueryUtterancesResult>
Result for utterances query.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryUtterancesResultfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of QueryUtterancesResult from the JsonReader.Get the sampleUtterance property: A sample utterance.score()Get the score property: Score of a sample utterance.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withSampleUtterance(SampleUtterance sampleUtterance) Set the sampleUtterance property: A sample utterance.Set the score property: Score of a sample utterance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
QueryUtterancesResult
public QueryUtterancesResult()Creates an instance of QueryUtterancesResult class.
-
-
Method Details
-
sampleUtterance
Get the sampleUtterance property: A sample utterance.- Returns:
- the sampleUtterance value.
-
withSampleUtterance
Set the sampleUtterance property: A sample utterance.- Parameters:
sampleUtterance- the sampleUtterance value to set.- Returns:
- the QueryUtterancesResult object itself.
-
score
Get the score property: Score of a sample utterance.- Returns:
- the score value.
-
withScore
Set the score property: Score of a sample utterance.- Parameters:
score- the score value to set.- Returns:
- the QueryUtterancesResult object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<QueryUtterancesResult>- Throws:
IOException
-
fromJson
public static QueryUtterancesResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of QueryUtterancesResult from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of QueryUtterancesResult 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 QueryUtterancesResult.
-