com.aliyun.dingtalktodo_1_0.models.CreateTodoTypeConfigRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dingtalk Show documentation
Show all versions of dingtalk Show documentation
Alibaba Cloud dingtalk SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalktodo_1_0.models;
import com.aliyun.tea.*;
public class CreateTodoTypeConfigRequest extends TeaModel {
// 待办卡片操作区按钮配置
@NameInMap("actionList")
public java.util.List actionList;
// 卡片类型(取值为:1-标准卡片,2-自定义卡片)
@NameInMap("cardType")
public Integer cardType;
// 待办卡片内容区表单自定义字段配置
@NameInMap("contentFieldList")
public java.util.List contentFieldList;
// 待办卡片类型描述
@NameInMap("description")
public String description;
// 卡片类型icon,用于在待办列表展示
@NameInMap("icon")
public String icon;
// 详情页链接在PC端的打开方式,取值为:「PC_SLIDE」-PC端侧边栏打开,「PC_BROWSER」-浏览器打开
@NameInMap("pcDetailUrlOpenMode")
public String pcDetailUrlOpenMode;
// 当前操作者id,需传用户的unionId
@NameInMap("operatorId")
public String operatorId;
public static CreateTodoTypeConfigRequest build(java.util.Map map) throws Exception {
CreateTodoTypeConfigRequest self = new CreateTodoTypeConfigRequest();
return TeaModel.build(map, self);
}
public CreateTodoTypeConfigRequest setActionList(java.util.List actionList) {
this.actionList = actionList;
return this;
}
public java.util.List getActionList() {
return this.actionList;
}
public CreateTodoTypeConfigRequest setCardType(Integer cardType) {
this.cardType = cardType;
return this;
}
public Integer getCardType() {
return this.cardType;
}
public CreateTodoTypeConfigRequest setContentFieldList(java.util.List contentFieldList) {
this.contentFieldList = contentFieldList;
return this;
}
public java.util.List getContentFieldList() {
return this.contentFieldList;
}
public CreateTodoTypeConfigRequest setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return this.description;
}
public CreateTodoTypeConfigRequest setIcon(String icon) {
this.icon = icon;
return this;
}
public String getIcon() {
return this.icon;
}
public CreateTodoTypeConfigRequest setPcDetailUrlOpenMode(String pcDetailUrlOpenMode) {
this.pcDetailUrlOpenMode = pcDetailUrlOpenMode;
return this;
}
public String getPcDetailUrlOpenMode() {
return this.pcDetailUrlOpenMode;
}
public CreateTodoTypeConfigRequest setOperatorId(String operatorId) {
this.operatorId = operatorId;
return this;
}
public String getOperatorId() {
return this.operatorId;
}
public static class CreateTodoTypeConfigRequestActionList extends TeaModel {
// 操作按钮的唯一标识
@NameInMap("actionKey")
public String actionKey;
// 按钮类型(1:有操作的,2:直接跳转)
@NameInMap("actionType")
public Integer actionType;
// 按钮样式类型(101:蓝色线型主按钮样式,例如「同意」,102:黑色线型副按钮样式,例如「拒绝」)
@NameInMap("buttonStyleType")
public Integer buttonStyleType;
// 按钮操作的显示名称(需支持国际化)
@NameInMap("nameI18n")
public java.util.Map nameI18n;
// 按钮类型为直接跳转时,对应的跳转url
@NameInMap("url")
public String url;
public static CreateTodoTypeConfigRequestActionList build(java.util.Map map) throws Exception {
CreateTodoTypeConfigRequestActionList self = new CreateTodoTypeConfigRequestActionList();
return TeaModel.build(map, self);
}
public CreateTodoTypeConfigRequestActionList setActionKey(String actionKey) {
this.actionKey = actionKey;
return this;
}
public String getActionKey() {
return this.actionKey;
}
public CreateTodoTypeConfigRequestActionList setActionType(Integer actionType) {
this.actionType = actionType;
return this;
}
public Integer getActionType() {
return this.actionType;
}
public CreateTodoTypeConfigRequestActionList setButtonStyleType(Integer buttonStyleType) {
this.buttonStyleType = buttonStyleType;
return this;
}
public Integer getButtonStyleType() {
return this.buttonStyleType;
}
public CreateTodoTypeConfigRequestActionList setNameI18n(java.util.Map nameI18n) {
this.nameI18n = nameI18n;
return this;
}
public java.util.Map getNameI18n() {
return this.nameI18n;
}
public CreateTodoTypeConfigRequestActionList setUrl(String url) {
this.url = url;
return this;
}
public String getUrl() {
return this.url;
}
}
public static class CreateTodoTypeConfigRequestContentFieldList extends TeaModel {
// 字段唯一标识
@NameInMap("fieldKey")
public String fieldKey;
// 字段类型(取值为:text-文本,url-链接)
@NameInMap("fieldType")
public String fieldType;
// 字段显示名称(需支持国际化)
@NameInMap("nameI18n")
public java.util.Map nameI18n;
public static CreateTodoTypeConfigRequestContentFieldList build(java.util.Map map) throws Exception {
CreateTodoTypeConfigRequestContentFieldList self = new CreateTodoTypeConfigRequestContentFieldList();
return TeaModel.build(map, self);
}
public CreateTodoTypeConfigRequestContentFieldList setFieldKey(String fieldKey) {
this.fieldKey = fieldKey;
return this;
}
public String getFieldKey() {
return this.fieldKey;
}
public CreateTodoTypeConfigRequestContentFieldList setFieldType(String fieldType) {
this.fieldType = fieldType;
return this;
}
public String getFieldType() {
return this.fieldType;
}
public CreateTodoTypeConfigRequestContentFieldList setNameI18n(java.util.Map nameI18n) {
this.nameI18n = nameI18n;
return this;
}
public java.util.Map getNameI18n() {
return this.nameI18n;
}
}
}