Sdílet prostřednictvím


SampleUtterance Class

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

Implements

public final class SampleUtterance
implements JsonSerializable<SampleUtterance>

Sample utterance.

Constructor Summary

Constructor Description
SampleUtterance()

Creates an instance of SampleUtterance class.

Method Summary

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

Reads an instance of SampleUtterance from the JsonReader.

List<String> links()

Get the links property: Links attribute of sample utterance.

String qid()

Get the qid property: Question id of sample utterance (for stackoverflow questions titles).

String text()

Get the text property: Text attribute of sample utterance.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SampleUtterance withLinks(List<String> links)

Set the links property: Links attribute of sample utterance.

SampleUtterance withQid(String qid)

Set the qid property: Question id of sample utterance (for stackoverflow questions titles).

SampleUtterance withText(String text)

Set the text property: Text attribute of sample utterance.

Methods inherited from java.lang.Object

Constructor Details

SampleUtterance

public SampleUtterance()

Creates an instance of SampleUtterance class.

Method Details

fromJson

public static SampleUtterance fromJson(JsonReader jsonReader)

Reads an instance of SampleUtterance from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SampleUtterance 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 SampleUtterance.

links

public List links()

Get the links property: Links attribute of sample utterance.

Returns:

the links value.

qid

public String qid()

Get the qid property: Question id of sample utterance (for stackoverflow questions titles).

Returns:

the qid value.

text

public String text()

Get the text property: Text attribute of sample utterance.

Returns:

the text value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLinks

public SampleUtterance withLinks(List links)

Set the links property: Links attribute of sample utterance.

Parameters:

links - the links value to set.

Returns:

the SampleUtterance object itself.

withQid

public SampleUtterance withQid(String qid)

Set the qid property: Question id of sample utterance (for stackoverflow questions titles).

Parameters:

qid - the qid value to set.

Returns:

the SampleUtterance object itself.

withText

public SampleUtterance withText(String text)

Set the text property: Text attribute of sample utterance.

Parameters:

text - the text value to set.

Returns:

the SampleUtterance object itself.

Applies to