Partager via


QueryUtterancesResult Class

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

Implements

public final class QueryUtterancesResult
implements JsonSerializable<QueryUtterancesResult>

Result for utterances query.

Constructor Summary

Constructor Description
QueryUtterancesResult()

Creates an instance of QueryUtterancesResult class.

Method Summary

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

Reads an instance of QueryUtterancesResult from the JsonReader.

SampleUtterance sampleUtterance()

Get the sampleUtterance property: A sample utterance.

Float score()

Get the score property: Score of a sample utterance.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

QueryUtterancesResult withSampleUtterance(SampleUtterance sampleUtterance)

Set the sampleUtterance property: A sample utterance.

QueryUtterancesResult withScore(Float score)

Set the score property: Score of a sample utterance.

Methods inherited from java.lang.Object

Constructor Details

QueryUtterancesResult

public QueryUtterancesResult()

Creates an instance of QueryUtterancesResult class.

Method Details

fromJson

public static QueryUtterancesResult fromJson(JsonReader jsonReader)

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.

sampleUtterance

public SampleUtterance sampleUtterance()

Get the sampleUtterance property: A sample utterance.

Returns:

the sampleUtterance value.

score

public Float score()

Get the score property: Score of a sample utterance.

Returns:

the score value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to