Class ImageCategory
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ImageCategory>
com.azure.ai.contentsafety.models.ImageCategory
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
Image analyze category.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ImageCategoryStatic value Hate for ImageCategory.static final ImageCategoryStatic value SelfHarm for ImageCategory.static final ImageCategoryStatic value Sexual for ImageCategory.static final ImageCategoryStatic value Violence for ImageCategory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageCategoryfromString(String name) Creates or finds a ImageCategory from its string representation.static Collection<ImageCategory> values()Gets known ImageCategory values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
HATE
Static value Hate for ImageCategory. -
SELF_HARM
Static value SelfHarm for ImageCategory. -
SEXUAL
Static value Sexual for ImageCategory. -
VIOLENCE
Static value Violence for ImageCategory.
-
-
Constructor Details
-
ImageCategory
Deprecated.Use thefromString(String)factory method.Creates a new instance of ImageCategory value.
-
-
Method Details
-
fromString
Creates or finds a ImageCategory from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding ImageCategory.
-
values
Gets known ImageCategory values.- Returns:
- known ImageCategory values.
-
fromString(String)factory method.