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 Details

    • QueryUtterancesResult

      public QueryUtterancesResult()
      Creates an instance of QueryUtterancesResult class.
  • Method Details

    • sampleUtterance

      public SampleUtterance sampleUtterance()
      Get the sampleUtterance property: A sample utterance.
      Returns:
      the sampleUtterance value.
    • withSampleUtterance

      public QueryUtterancesResult withSampleUtterance(SampleUtterance sampleUtterance)
      Set the sampleUtterance property: A sample utterance.
      Parameters:
      sampleUtterance - the sampleUtterance value to set.
      Returns:
      the QueryUtterancesResult object itself.
    • score

      public Float score()
      Get the score property: Score of a sample utterance.
      Returns:
      the score value.
    • withScore

      public QueryUtterancesResult withScore(Float score)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.