Class ContentSafetyImageData
java.lang.Object
com.azure.ai.contentsafety.models.ContentSafetyImageData
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 Summary
ConstructorsConstructorDescriptionCreates an instance of ContentSafetyImageData class. -
Method Summary
Modifier and TypeMethodDescriptionGet the blobUrl property: The blob url of the image.com.azure.core.util.BinaryDataGet the content property: The Base64 encoding of the image.setBlobUrl(String blobUrl) Set the blobUrl property: The blob url of the image.setContent(com.azure.core.util.BinaryData content) Set the content property: The Base64 encoding of the image.
-
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
Set the content property: The Base64 encoding of the image.- Parameters:
content- the content value to set.- Returns:
- the ContentSafetyImageData object itself.
-
getBlobUrl
Get the blobUrl property: The blob url of the image.- Returns:
- the blobUrl value.
-
setBlobUrl
Set the blobUrl property: The blob url of the image.- Parameters:
blobUrl- the blobUrl value to set.- Returns:
- the ContentSafetyImageData object itself.
-