Class ContentSafetyImageData

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

public final class ContentSafetyImageData extends Object
The image can be either base64 encoded bytes or a blob URL. You can choose only one of these options. If both are provided, the request will be refused. The maximum image size is 2048 x 2048 pixels and should not exceed 4 MB, while the minimum image size is 50 x 50 pixels.
  • Constructor Details

    • ContentSafetyImageData

      public ContentSafetyImageData()
      Creates an instance of ContentSafetyImageData class.
  • Method Details

    • getContent

      public com.azure.core.util.BinaryData getContent()
      Get the content property: The Base64 encoding of the image.
      Returns:
      the content value.
    • setContent

      public ContentSafetyImageData setContent(com.azure.core.util.BinaryData content)
      Set the content property: The Base64 encoding of the image.
      Parameters:
      content - the content value to set.
      Returns:
      the ContentSafetyImageData object itself.
    • getBlobUrl

      public String getBlobUrl()
      Get the blobUrl property: The blob url of the image.
      Returns:
      the blobUrl value.
    • setBlobUrl

      public ContentSafetyImageData setBlobUrl(String blobUrl)
      Set the blobUrl property: The blob url of the image.
      Parameters:
      blobUrl - the blobUrl value to set.
      Returns:
      the ContentSafetyImageData object itself.