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 Details

    • QueryUtterancesResults

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

    • query

      public String query()
      Get the query property: Search Query.
      Returns:
      the query value.
    • withQuery

      public QueryUtterancesResults withQuery(String query)
      Set the query property: Search Query.
      Parameters:
      query - the query value to set.
      Returns:
      the QueryUtterancesResults object itself.
    • results

      public List<QueryUtterancesResult> results()
      Get the results property: Array of utterance results for search query.
      Returns:
      the results value.
    • withResults

      public QueryUtterancesResults withResults(List<QueryUtterancesResult> results)
      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

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