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 Details

    • RecognitionChoice

      public RecognitionChoice()
  • Method Details

    • getLabel

      public String getLabel()
      Get the label property: Identifier for a given choice.
      Returns:
      the label value.
    • setLabel

      public RecognitionChoice setLabel(String label)
      Set the label property: Identifier for a given choice.
      Parameters:
      label - the label value to set.
      Returns:
      the RecognitionChoice object itself.
    • getPhrases

      public List<String> getPhrases()
      Get the phrases property: List of phrases to recognize.
      Returns:
      the phrases value.
    • setPhrases

      public RecognitionChoice setPhrases(List<String> phrases)
      Set the phrases property: The phrases property.
      Parameters:
      phrases - the phrases value to set.
      Returns:
      the RecognitionChoice object itself.
    • getTone

      public DtmfTone getTone()
      Get the tone property: The tone property.
      Returns:
      the tone value.
    • setTone

      public RecognitionChoice setTone(DtmfTone tone)
      Set the tone property: The tone property.
      Parameters:
      tone - the tone value to set.
      Returns:
      the RecognitionChoice object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<RecognitionChoice>
      Throws:
      IOException
    • fromJson

      public static RecognitionChoice fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.