TaxonomySubCategory Class

  • java.lang.Object
    • com.azure.ai.projects.models.TaxonomySubCategory

Implements

public final class TaxonomySubCategory
implements JsonSerializable<TaxonomySubCategory>

Taxonomy sub-category definition.

Constructor Summary

Constructor Description
TaxonomySubCategory(String id, String name, boolean enabled)

Creates an instance of TaxonomySubCategory class.

Method Summary

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

Reads an instance of TaxonomySubCategory from the JsonReader.

String getDescription()

Get the description property: Description of the taxonomy sub-category.

String getId()

Get the id property: Unique identifier of the taxonomy sub-category.

String getName()

Get the name property: Name of the taxonomy sub-category.

Map<String,String> getProperties()

Get the properties property: Additional properties for the taxonomy sub-category.

boolean isEnabled()

Get the enabled property: List of taxonomy items under this sub-category.

TaxonomySubCategory setDescription(String description)

Set the description property: Description of the taxonomy sub-category.

TaxonomySubCategory setProperties(Map<String,String> properties)

Set the properties property: Additional properties for the taxonomy sub-category.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

TaxonomySubCategory

public TaxonomySubCategory(String id, String name, boolean enabled)

Creates an instance of TaxonomySubCategory class.

Parameters:

id - the id value to set.
name - the name value to set.
enabled - the enabled value to set.

Method Details

fromJson

public static TaxonomySubCategory fromJson(JsonReader jsonReader)

Reads an instance of TaxonomySubCategory from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getDescription

public String getDescription()

Get the description property: Description of the taxonomy sub-category.

Returns:

the description value.

getId

public String getId()

Get the id property: Unique identifier of the taxonomy sub-category.

Returns:

the id value.

getName

public String getName()

Get the name property: Name of the taxonomy sub-category.

Returns:

the name value.

getProperties

public Map<String,String> getProperties()

Get the properties property: Additional properties for the taxonomy sub-category.

Returns:

the properties value.

isEnabled

public boolean isEnabled()

Get the enabled property: List of taxonomy items under this sub-category.

Returns:

the enabled value.

setDescription

public TaxonomySubCategory setDescription(String description)

Set the description property: Description of the taxonomy sub-category.

Parameters:

description - the description value to set.

Returns:

the TaxonomySubCategory object itself.

setProperties

public TaxonomySubCategory setProperties(Map<String,String> properties)

Set the properties property: Additional properties for the taxonomy sub-category.

Parameters:

properties - the properties value to set.

Returns:

the TaxonomySubCategory object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to