com.aliyun.dingtalknotable_2_0.models.CreateFieldRequest 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.dingtalknotable_2_0.models;
import com.aliyun.tea.*;
public class CreateFieldRequest extends TeaModel {
/**
* This parameter is required.
*/
@NameInMap("name")
public String name;
/**
* example:
* key: id或者name
* value: 对应字段值,不同类型的字段传入的value值不同
* - text: "TextString" // 文本字符串
* - number: 123 // 整数/浮点数均可
* - singleSelect: "optionIdxxx1" | "optionName1" // 单选选项Id/单选选项名
* - date: 1688601600000 | "2023-12-20 03:00"
* // 支持传时间戳或ISO 8601字符串
* - user: [{
* uid: "1234567" // 用户uid
* }, {
* uid: "2345678"
* }]
*/
@NameInMap("property")
public java.util.Map property;
/**
* This parameter is required.
*/
@NameInMap("type")
public String type;
public static CreateFieldRequest build(java.util.Map map) throws Exception {
CreateFieldRequest self = new CreateFieldRequest();
return TeaModel.build(map, self);
}
public CreateFieldRequest setName(String name) {
this.name = name;
return this;
}
public String getName() {
return this.name;
}
public CreateFieldRequest setProperty(java.util.Map property) {
this.property = property;
return this;
}
public java.util.Map getProperty() {
return this.property;
}
public CreateFieldRequest setType(String type) {
this.type = type;
return this;
}
public String getType() {
return this.type;
}
}