Class ProfanityAction

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

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

    • NO_ACTION

      public static final ProfanityAction NO_ACTION
      Static value NoAction for ProfanityAction.
    • MARKED

      public static final ProfanityAction MARKED
      Static value Marked for ProfanityAction.
    • DELETED

      public static final ProfanityAction DELETED
      Static value Deleted for ProfanityAction.
  • Constructor Details

    • ProfanityAction

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

    • fromString

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

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