public class AddCategoryRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
cateName
The name of the category.
|
Long |
parentId
The ID of the parent category.
|
String |
type
The type of the category.
|
| 构造器和说明 |
|---|
AddCategoryRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static AddCategoryRequest |
build(Map<String,?> map) |
String |
getCateName() |
Long |
getParentId() |
String |
getType() |
AddCategoryRequest |
setCateName(String cateName) |
AddCategoryRequest |
setParentId(Long parentId) |
AddCategoryRequest |
setType(String type) |
@NameInMap(value="CateName") public String cateName
The name of the category.
- The value can be up to 64 bytes in length.
- The string must be encoded in the UTF-8 format.
@NameInMap(value="ParentId") public Long parentId
The ID of the parent category. If you do not set this parameter, a level 1 category is generated by default. The parent category ID of a level 1 category is **-1**.
> Level 1 material categories are built in the system and cannot be changed. If you set the Type parameter to material, you must set the ParentId parameter.
@NameInMap(value="Type") public String type
The type of the category. Valid values:
- **default** (default): default category
- **material**: material category
public static AddCategoryRequest build(Map<String,?> map) throws Exception
Exceptionpublic AddCategoryRequest setCateName(String cateName)
public String getCateName()
public AddCategoryRequest setParentId(Long parentId)
public Long getParentId()
public AddCategoryRequest setType(String type)
public String getType()
Copyright © 2024. All rights reserved.