Class ProfanityMarker

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

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

    • ASTERISK

      public static final ProfanityMarker ASTERISK
      Static value Asterisk for ProfanityMarker.
    • TAG

      public static final ProfanityMarker TAG
      Static value Tag for ProfanityMarker.
  • Constructor Details

    • ProfanityMarker

      @Deprecated public ProfanityMarker()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of ProfanityMarker value.
  • Method Details

    • fromString

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

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