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 Summary
Modifier and TypeFieldDescriptionstatic final ProfanityAction
Static value Deleted for ProfanityAction.static final ProfanityAction
Static value Marked for ProfanityAction.static final ProfanityAction
Static value NoAction for ProfanityAction. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProfanityAction
fromString
(String name) Creates or finds a ProfanityAction from its string representation.static Collection<ProfanityAction>
values()
Gets known ProfanityAction values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
NO_ACTION
Static value NoAction for ProfanityAction. -
MARKED
Static value Marked for ProfanityAction. -
DELETED
Static value Deleted for ProfanityAction.
-
-
Constructor Details
-
ProfanityAction
Deprecated.Use thefromString(String)
factory method.Creates a new instance of ProfanityAction value.
-
-
Method Details
-
fromString
Creates or finds a ProfanityAction from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding ProfanityAction.
-
values
Gets known ProfanityAction values.- Returns:
- known ProfanityAction values.
-
fromString(String)
factory method.