
com.aliyun.ice20201109.models.AddCategoryResponseBody Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ice20201109.models;
import com.aliyun.tea.*;
public class AddCategoryResponseBody extends TeaModel {
/**
* The information about the category.
*/
@NameInMap("Category")
public AddCategoryResponseBodyCategory category;
/**
* The request ID.
*
* example:
* 63E8B7C7-4812-46AD-0FA56029AC86
*/
@NameInMap("RequestId")
public String requestId;
public static AddCategoryResponseBody build(java.util.Map map) throws Exception {
AddCategoryResponseBody self = new AddCategoryResponseBody();
return TeaModel.build(map, self);
}
public AddCategoryResponseBody setCategory(AddCategoryResponseBodyCategory category) {
this.category = category;
return this;
}
public AddCategoryResponseBodyCategory getCategory() {
return this.category;
}
public AddCategoryResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public static class AddCategoryResponseBodyCategory extends TeaModel {
/**
* The ID of the created category.
*
* example:
* 45
*/
@NameInMap("CateId")
public Long cateId;
/**
* The category name.
*/
@NameInMap("CateName")
public String cateName;
/**
* The level of the category. A value of 0 indicates a level-1 category, a value of 1 indicates a level-2 category, and a value of 2 indicates a level-3 category.
*
* example:
* 0
*/
@NameInMap("Level")
public Long level;
/**
* The ID of the parent category. By default, if ParentId is left empty or less than 1, -1 is returned, which indicates that the created category is the root directory.
*
* example:
* -1
*/
@NameInMap("ParentId")
public Long parentId;
/**
* The type of the category. Valid values:
*
* - default: audio, video, and image files. This is the default value.
* - material: short video materials.
*
*
* example:
* default
*/
@NameInMap("Type")
public String type;
public static AddCategoryResponseBodyCategory build(java.util.Map map) throws Exception {
AddCategoryResponseBodyCategory self = new AddCategoryResponseBodyCategory();
return TeaModel.build(map, self);
}
public AddCategoryResponseBodyCategory setCateId(Long cateId) {
this.cateId = cateId;
return this;
}
public Long getCateId() {
return this.cateId;
}
public AddCategoryResponseBodyCategory setCateName(String cateName) {
this.cateName = cateName;
return this;
}
public String getCateName() {
return this.cateName;
}
public AddCategoryResponseBodyCategory setLevel(Long level) {
this.level = level;
return this;
}
public Long getLevel() {
return this.level;
}
public AddCategoryResponseBodyCategory setParentId(Long parentId) {
this.parentId = parentId;
return this;
}
public Long getParentId() {
return this.parentId;
}
public AddCategoryResponseBodyCategory setType(String type) {
this.type = type;
return this;
}
public String getType() {
return this.type;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy