Class RecognitionChoice
java.lang.Object
com.azure.communication.callautomation.models.RecognitionChoice
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RecognitionChoice>
public final class RecognitionChoice
extends Object
implements com.azure.json.JsonSerializable<RecognitionChoice>
The RecognitionChoice model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RecognitionChoicefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CallConnectionPropertiesInternal from the JsonReader.getLabel()Get the label property: Identifier for a given choice.Get the phrases property: List of phrases to recognize.getTone()Get the tone property: The tone property.Set the label property: Identifier for a given choice.setPhrases(List<String> phrases) Set the phrases property: The phrases property.Set the tone property: The tone property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RecognitionChoice
public RecognitionChoice()
-
-
Method Details
-
getLabel
Get the label property: Identifier for a given choice.- Returns:
- the label value.
-
setLabel
Set the label property: Identifier for a given choice.- Parameters:
label- the label value to set.- Returns:
- the RecognitionChoice object itself.
-
getPhrases
Get the phrases property: List of phrases to recognize.- Returns:
- the phrases value.
-
setPhrases
Set the phrases property: The phrases property.- Parameters:
phrases- the phrases value to set.- Returns:
- the RecognitionChoice object itself.
-
getTone
Get the tone property: The tone property.- Returns:
- the tone value.
-
setTone
Set the tone property: The tone property.- Parameters:
tone- the tone value to set.- Returns:
- the RecognitionChoice object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RecognitionChoice>- Throws:
IOException
-
fromJson
Reads an instance of CallConnectionPropertiesInternal from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CallConnectionPropertiesInternal 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 CallConnectionPropertiesInternal.
-