Class AnalyzeImageOptions

java.lang.Object
com.azure.ai.contentsafety.models.AnalyzeImageOptions

public final class AnalyzeImageOptions extends Object
The image analysis request.
  • Constructor Details

    • AnalyzeImageOptions

      public AnalyzeImageOptions(ContentSafetyImageData image)
      Creates an instance of AnalyzeImageOptions class.
      Parameters:
      image - the image value to set.
  • Method Details

    • getImage

      public ContentSafetyImageData getImage()
      Get the image property: The image needs to be analyzed.
      Returns:
      the image value.
    • getCategories

      public List<ImageCategory> getCategories()
      Get the categories property: The categories will be analyzed. If they are not assigned, a default set of analysis results for the categories will be returned.
      Returns:
      the categories value.
    • setCategories

      public AnalyzeImageOptions setCategories(List<ImageCategory> categories)
      Set the categories property: The categories will be analyzed. If they are not assigned, a default set of analysis results for the categories will be returned.
      Parameters:
      categories - the categories value to set.
      Returns:
      the AnalyzeImageOptions object itself.
    • getOutputType

      public AnalyzeImageOutputType getOutputType()
      Get the outputType property: This refers to the type of image analysis output. If no value is assigned, the default value will be "FourSeverityLevels".
      Returns:
      the outputType value.
    • setOutputType

      public AnalyzeImageOptions setOutputType(AnalyzeImageOutputType outputType)
      Set the outputType property: This refers to the type of image analysis output. If no value is assigned, the default value will be "FourSeverityLevels".
      Parameters:
      outputType - the outputType value to set.
      Returns:
      the AnalyzeImageOptions object itself.