Class InputTextItem

java.lang.Object
com.azure.ai.translation.text.models.InputTextItem
Direct Known Subclasses:
DictionaryExampleTextItem

public class InputTextItem extends Object
Element containing the text for translation.
  • Constructor Details

    • InputTextItem

      public InputTextItem(String text)
      Creates an instance of InputTextItem class.
      Parameters:
      text - the text value to set.
  • Method Details

    • getText

      public String getText()
      Get the text property: Text to translate.
      Returns:
      the text value.