RecognitionChoice Class
- java.
lang. Object - com.
azure. communication. callautomation. models. RecognitionChoice
- com.
Implements
public final class RecognitionChoice
implements JsonSerializable<RecognitionChoice>
The RecognitionChoice model.
Constructor Summary
| Constructor | Description |
|---|---|
| RecognitionChoice() |
Creates an instance of RecognitionChoice. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Recognition |
fromJson(JsonReader jsonReader)
Reads an instance of Call |
| String |
getLabel()
Get the label property: Identifier for a given choice. |
| List<String> |
getPhrases()
Get the phrases property: List of phrases to recognize. |
|
Dtmf |
getTone()
Get the tone property: The tone property. |
|
Recognition |
setLabel(String label)
Set the label property: Identifier for a given choice. |
|
Recognition |
setPhrases(List<String> phrases)
Set the phrases property: The phrases property. |
|
Recognition |
setTone(DtmfTone tone)
Set the tone property: The tone property. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
RecognitionChoice
public RecognitionChoice()
Creates an instance of RecognitionChoice.
Method Details
fromJson
public static RecognitionChoice fromJson(JsonReader jsonReader)
Reads an instance of CallConnectionPropertiesInternal from the JsonReader.
Parameters:
Returns:
Throws:
getLabel
public String getLabel()
Get the label property: Identifier for a given choice.
Returns:
getPhrases
public List<String> getPhrases()
Get the phrases property: List of phrases to recognize.
Returns:
getTone
public DtmfTone getTone()
Get the tone property: The tone property.
Returns:
setLabel
public RecognitionChoice setLabel(String label)
Set the label property: Identifier for a given choice.
Parameters:
Returns:
setPhrases
public RecognitionChoice setPhrases(List<String> phrases)
Set the phrases property: The phrases property.
Parameters:
Returns:
setTone
public RecognitionChoice setTone(DtmfTone tone)
Set the tone property: The tone property.
Parameters:
Returns: