Share via


ContentCategoryDefinition Class

  • java.lang.Object
    • com.azure.ai.contentunderstanding.models.ContentCategoryDefinition

Implements

public final class ContentCategoryDefinition
implements JsonSerializable<ContentCategoryDefinition>

Content category definition.

Constructor Summary

Constructor Description
ContentCategoryDefinition()

Creates an instance of ContentCategoryDefinition class.

Method Summary

Modifier and Type Method and Description
static ContentCategoryDefinition fromJson(JsonReader jsonReader)

Reads an instance of ContentCategoryDefinition from the JsonReader.

ContentAnalyzer getAnalyzer()

Get the analyzer property: Optional inline definition of analyzer used to process the content.

String getAnalyzerId()

Get the analyzerId property: Optional analyzer used to process the content.

String getDescription()

Get the description property: The description of the category.

ContentCategoryDefinition setAnalyzer(ContentAnalyzer analyzer)

Set the analyzer property: Optional inline definition of analyzer used to process the content.

ContentCategoryDefinition setAnalyzerId(String analyzerId)

Set the analyzerId property: Optional analyzer used to process the content.

ContentCategoryDefinition setDescription(String description)

Set the description property: The description of the category.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ContentCategoryDefinition

public ContentCategoryDefinition()

Creates an instance of ContentCategoryDefinition class.

Method Details

fromJson

public static ContentCategoryDefinition fromJson(JsonReader jsonReader)

Reads an instance of ContentCategoryDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContentCategoryDefinition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ContentCategoryDefinition.

getAnalyzer

public ContentAnalyzer getAnalyzer()

Get the analyzer property: Optional inline definition of analyzer used to process the content.

Returns:

the analyzer value.

getAnalyzerId

public String getAnalyzerId()

Get the analyzerId property: Optional analyzer used to process the content.

Returns:

the analyzerId value.

getDescription

public String getDescription()

Get the description property: The description of the category.

Returns:

the description value.

setAnalyzer

public ContentCategoryDefinition setAnalyzer(ContentAnalyzer analyzer)

Set the analyzer property: Optional inline definition of analyzer used to process the content.

Parameters:

analyzer - the analyzer value to set.

Returns:

the ContentCategoryDefinition object itself.

setAnalyzerId

public ContentCategoryDefinition setAnalyzerId(String analyzerId)

Set the analyzerId property: Optional analyzer used to process the content.

Parameters:

analyzerId - the analyzerId value to set.

Returns:

the ContentCategoryDefinition object itself.

setDescription

public ContentCategoryDefinition setDescription(String description)

Set the description property: The description of the category.

Parameters:

description - the description value to set.

Returns:

the ContentCategoryDefinition object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to