TaxonomyCategory Class
- java.
lang. Object - com.
azure. ai. projects. models. TaxonomyCategory
- com.
Implements
public final class TaxonomyCategory
implements JsonSerializable<TaxonomyCategory>
Taxonomy category definition.
Constructor Summary
| Constructor | Description |
|---|---|
| TaxonomyCategory(String id, String name, RiskCategory riskCategory, List<TaxonomySubCategory> subCategories) |
Creates an instance of Taxonomy |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Taxonomy |
fromJson(JsonReader jsonReader)
Reads an instance of Taxonomy |
| String |
getDescription()
Get the description property: Description of the taxonomy category. |
| String |
getId()
Get the id property: Unique identifier of the taxonomy category. |
| String |
getName()
Get the name property: Name of the taxonomy category. |
| Map<String,String> |
getProperties()
Get the properties property: Additional properties for the taxonomy category. |
|
Risk |
getRiskCategory()
Get the risk |
|
List<Taxonomy |
getSubCategories()
Get the sub |
|
Taxonomy |
setDescription(String description)
Set the description property: Description of the taxonomy category. |
|
Taxonomy |
setProperties(Map<String,String> properties)
Set the properties property: Additional properties for the taxonomy category. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
TaxonomyCategory
public TaxonomyCategory(String id, String name, RiskCategory riskCategory, List<TaxonomySubCategory> subCategories)
Creates an instance of TaxonomyCategory class.
Parameters:
Method Details
fromJson
public static TaxonomyCategory fromJson(JsonReader jsonReader)
Reads an instance of TaxonomyCategory from the JsonReader.
Parameters:
Returns:
Throws:
getDescription
public String getDescription()
Get the description property: Description of the taxonomy category.
Returns:
getId
public String getId()
Get the id property: Unique identifier of the taxonomy category.
Returns:
getName
public String getName()
Get the name property: Name of the taxonomy category.
Returns:
getProperties
public Map<String,String> getProperties()
Get the properties property: Additional properties for the taxonomy category.
Returns:
getRiskCategory
public RiskCategory getRiskCategory()
Get the riskCategory property: Risk category associated with this taxonomy category.
Returns:
getSubCategories
public List<TaxonomySubCategory> getSubCategories()
Get the subCategories property: List of taxonomy sub categories.
Returns:
setDescription
public TaxonomyCategory setDescription(String description)
Set the description property: Description of the taxonomy category.
Parameters:
Returns:
setProperties
public TaxonomyCategory setProperties(Map<String,String> properties)
Set the properties property: Additional properties for the taxonomy category.
Parameters:
Returns: