Class TextBlocklistItem
java.lang.Object
com.azure.ai.contentsafety.models.TextBlocklistItem
Item in a TextBlocklist.
-
Constructor Summary
ConstructorsConstructorDescriptionTextBlocklistItem(String text) Creates an instance of TextBlocklistItem class. -
Method Summary
Modifier and TypeMethodDescriptionGet the blocklistItemId property: The service will generate a BlocklistItemId, which will be a UUID.Get the description property: BlocklistItem description.getText()Get the text property: BlocklistItem content.setDescription(String description) Set the description property: BlocklistItem description.
-
Constructor Details
-
TextBlocklistItem
Creates an instance of TextBlocklistItem class.- Parameters:
text- the text value to set.
-
-
Method Details
-
getBlocklistItemId
Get the blocklistItemId property: The service will generate a BlocklistItemId, which will be a UUID.- Returns:
- the blocklistItemId value.
-
getDescription
Get the description property: BlocklistItem description.- Returns:
- the description value.
-
setDescription
Set the description property: BlocklistItem description.- Parameters:
description- the description value to set.- Returns:
- the TextBlocklistItem object itself.
-
getText
Get the text property: BlocklistItem content.- Returns:
- the text value.
-