Class SampleUtterance
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.SampleUtterance
-
public final class SampleUtterance extends Object
Sample utterance.
-
-
Constructor Summary
Constructors Constructor Description SampleUtterance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>links()Get the links property: Links attribute of sample utterance.Stringqid()Get the qid property: Question id of sample utterance (for stackoverflow questions titles).Stringtext()Get the text property: Text attribute of sample utterance.voidvalidate()Validates the instance.SampleUtterancewithLinks(List<String> links)Set the links property: Links attribute of sample utterance.SampleUtterancewithQid(String qid)Set the qid property: Question id of sample utterance (for stackoverflow questions titles).SampleUtterancewithText(String text)Set the text property: Text attribute of sample utterance.
-
-
-
Method Detail
-
text
public String text()
Get the text property: Text attribute of sample utterance.- Returns:
- the text value.
-
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.
-
links
public List<String> links()
Get the links property: Links attribute of sample utterance.- Returns:
- the links value.
-
withLinks
public SampleUtterance withLinks(List<String> links)
Set the links property: Links attribute of sample utterance.- Parameters:
links- the links value to set.- Returns:
- the SampleUtterance object itself.
-
qid
public String qid()
Get the qid property: Question id of sample utterance (for stackoverflow questions titles).- Returns:
- the qid value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-