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>

public final class ImageCategory extends com.azure.core.util.ExpandableStringEnum<ImageCategory>
Image analyze category.
  • Field Details

    • HATE

      public static final ImageCategory HATE
      Static value Hate for ImageCategory.
    • SELF_HARM

      public static final ImageCategory SELF_HARM
      Static value SelfHarm for ImageCategory.
    • SEXUAL

      public static final ImageCategory SEXUAL
      Static value Sexual for ImageCategory.
    • VIOLENCE

      public static final ImageCategory VIOLENCE
      Static value Violence for ImageCategory.
  • Constructor Details

    • ImageCategory

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

    • fromString

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

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