Class TextType

java.lang.Object
com.azure.core.util.ExpandableStringEnum<TextType>
com.azure.ai.translation.text.models.TextType

public final class TextType extends com.azure.core.util.ExpandableStringEnum<TextType>
Defines values for TextType.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TextType
    Static value html for TextType.
    static final TextType
    Static value plain for TextType.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    static TextType
    Creates or finds a TextType from its string representation.
    Gets known TextType values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • PLAIN

      public static final TextType PLAIN
      Static value plain for TextType.
    • HTML

      public static final TextType HTML
      Static value html for TextType.
  • Constructor Details

  • Method Details

    • fromString

      public static TextType fromString(String name)
      Creates or finds a TextType from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding TextType.
    • values

      public static Collection<TextType> values()
      Gets known TextType values.
      Returns:
      known TextType values.