Classification Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. contentmoderator. models. Classification
- com.
public class Classification
The classification details of the text.
Method Summary
Modifier and Type | Method and Description |
---|---|
Classification |
category1()
Get the category1 value. |
Classification |
category2()
Get the category2 value. |
Classification |
category3()
Get the category3 value. |
Boolean |
reviewRecommended()
Get the reviewRecommended value. |
Classification |
withCategory1(ClassificationCategory1 category1)
Set the category1 value. |
Classification |
withCategory2(ClassificationCategory2 category2)
Set the category2 value. |
Classification |
withCategory3(ClassificationCategory3 category3)
Set the category3 value. |
Classification |
withReviewRecommended(Boolean reviewRecommended)
Set the reviewRecommended value. |
Method Details
category1
public ClassificationCategory1 category1()
Get the category1 value.
Returns:
category2
public ClassificationCategory2 category2()
Get the category2 value.
Returns:
category3
public ClassificationCategory3 category3()
Get the category3 value.
Returns:
reviewRecommended
public Boolean reviewRecommended()
Get the reviewRecommended value.
Returns:
withCategory1
public Classification withCategory1(ClassificationCategory1 category1)
Set the category1 value.
Parameters:
Returns:
withCategory2
public Classification withCategory2(ClassificationCategory2 category2)
Set the category2 value.
Parameters:
Returns:
withCategory3
public Classification withCategory3(ClassificationCategory3 category3)
Set the category3 value.
Parameters:
Returns:
withReviewRecommended
public Classification withReviewRecommended(Boolean reviewRecommended)
Set the reviewRecommended value.
Parameters:
Returns:
Applies to
Azure SDK for Java