次の方法で共有


Classification Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.contentmoderator.models.Classification

public class Classification

The classification details of the text.

Method Summary

Modifier and Type Method and Description
ClassificationCategory1 category1()

Get the category1 value.

ClassificationCategory2 category2()

Get the category2 value.

ClassificationCategory3 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:

the category1 value

category2

public ClassificationCategory2 category2()

Get the category2 value.

Returns:

the category2 value

category3

public ClassificationCategory3 category3()

Get the category3 value.

Returns:

the category3 value

reviewRecommended

public Boolean reviewRecommended()

Get the reviewRecommended value.

Returns:

the reviewRecommended value

withCategory1

public Classification withCategory1(ClassificationCategory1 category1)

Set the category1 value.

Parameters:

category1 - the category1 value to set

Returns:

the Classification object itself.

withCategory2

public Classification withCategory2(ClassificationCategory2 category2)

Set the category2 value.

Parameters:

category2 - the category2 value to set

Returns:

the Classification object itself.

withCategory3

public Classification withCategory3(ClassificationCategory3 category3)

Set the category3 value.

Parameters:

category3 - the category3 value to set

Returns:

the Classification object itself.

withReviewRecommended

public Classification withReviewRecommended(Boolean reviewRecommended)

Set the reviewRecommended value.

Parameters:

reviewRecommended - the reviewRecommended value to set

Returns:

the Classification object itself.

Applies to