Partager via


QueryUtterancesResults Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.QueryUtterancesResults

Implements

public final class QueryUtterancesResults
implements JsonSerializable<QueryUtterancesResults>

Suggested utterances where the detector can be applicable.

Constructor Summary

Constructor Description
QueryUtterancesResults()

Creates an instance of QueryUtterancesResults class.

Method Summary

Modifier and Type Method and Description
static QueryUtterancesResults fromJson(JsonReader jsonReader)

Reads an instance of QueryUtterancesResults from the JsonReader.

String query()

Get the query property: Search Query.

List<QueryUtterancesResult> results()

Get the results property: Array of utterance results for search query.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

QueryUtterancesResults withQuery(String query)

Set the query property: Search Query.

QueryUtterancesResults withResults(List<QueryUtterancesResult> results)

Set the results property: Array of utterance results for search query.

Methods inherited from java.lang.Object

Constructor Details

QueryUtterancesResults

public QueryUtterancesResults()

Creates an instance of QueryUtterancesResults class.

Method Details

fromJson

public static QueryUtterancesResults fromJson(JsonReader jsonReader)

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.

query

public String query()

Get the query property: Search Query.

Returns:

the query value.

results

public List results()

Get the results property: Array of utterance results for search query.

Returns:

the results value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withQuery

public QueryUtterancesResults withQuery(String query)

Set the query property: Search Query.

Parameters:

query - the query value to set.

Returns:

the QueryUtterancesResults object itself.

withResults

public QueryUtterancesResults withResults(List results)

Set the results property: Array of utterance results for search query.

Parameters:

results - the results value to set.

Returns:

the QueryUtterancesResults object itself.

Applies to