com.aliyun.dingtalkreport_1_0.models.CreateTemplatesRequest 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.dingtalkreport_1_0.models;
import com.aliyun.tea.*;
public class CreateTemplatesRequest extends TeaModel {
@NameInMap("allowAddReceivers")
public Boolean allowAddReceivers;
@NameInMap("allowEdit")
public Boolean allowEdit;
@NameInMap("allowGetLocation")
public Boolean allowGetLocation;
@NameInMap("authDeptIds")
public java.util.List authDeptIds;
@NameInMap("authUserIds")
public java.util.List authUserIds;
/**
* This parameter is required.
*
* example:
* 182942
*/
@NameInMap("creator")
public String creator;
@NameInMap("defaultReceivedCids")
public java.util.List defaultReceivedCids;
@NameInMap("defaultReceivedMasterLevels")
public java.util.List defaultReceivedMasterLevels;
@NameInMap("defaultReceivers")
public java.util.List defaultReceivers;
/**
* This parameter is required.
*/
@NameInMap("fields")
public java.util.List fields;
/**
* example:
*
*/
@NameInMap("logo")
public String logo;
/**
* example:
* 1000
*
* if can be null:
* true
*/
@NameInMap("maxWordCount")
public Integer maxWordCount;
/**
* example:
* 1
*
* if can be null:
* true
*/
@NameInMap("minWordCount")
public Integer minWordCount;
/**
* This parameter is required.
*
* example:
* 工作日报
*/
@NameInMap("name")
public String name;
@NameInMap("templateManagers")
public java.util.List templateManagers;
public static CreateTemplatesRequest build(java.util.Map map) throws Exception {
CreateTemplatesRequest self = new CreateTemplatesRequest();
return TeaModel.build(map, self);
}
public CreateTemplatesRequest setAllowAddReceivers(Boolean allowAddReceivers) {
this.allowAddReceivers = allowAddReceivers;
return this;
}
public Boolean getAllowAddReceivers() {
return this.allowAddReceivers;
}
public CreateTemplatesRequest setAllowEdit(Boolean allowEdit) {
this.allowEdit = allowEdit;
return this;
}
public Boolean getAllowEdit() {
return this.allowEdit;
}
public CreateTemplatesRequest setAllowGetLocation(Boolean allowGetLocation) {
this.allowGetLocation = allowGetLocation;
return this;
}
public Boolean getAllowGetLocation() {
return this.allowGetLocation;
}
public CreateTemplatesRequest setAuthDeptIds(java.util.List authDeptIds) {
this.authDeptIds = authDeptIds;
return this;
}
public java.util.List getAuthDeptIds() {
return this.authDeptIds;
}
public CreateTemplatesRequest setAuthUserIds(java.util.List authUserIds) {
this.authUserIds = authUserIds;
return this;
}
public java.util.List getAuthUserIds() {
return this.authUserIds;
}
public CreateTemplatesRequest setCreator(String creator) {
this.creator = creator;
return this;
}
public String getCreator() {
return this.creator;
}
public CreateTemplatesRequest setDefaultReceivedCids(java.util.List defaultReceivedCids) {
this.defaultReceivedCids = defaultReceivedCids;
return this;
}
public java.util.List getDefaultReceivedCids() {
return this.defaultReceivedCids;
}
public CreateTemplatesRequest setDefaultReceivedMasterLevels(java.util.List defaultReceivedMasterLevels) {
this.defaultReceivedMasterLevels = defaultReceivedMasterLevels;
return this;
}
public java.util.List getDefaultReceivedMasterLevels() {
return this.defaultReceivedMasterLevels;
}
public CreateTemplatesRequest setDefaultReceivers(java.util.List defaultReceivers) {
this.defaultReceivers = defaultReceivers;
return this;
}
public java.util.List getDefaultReceivers() {
return this.defaultReceivers;
}
public CreateTemplatesRequest setFields(java.util.List fields) {
this.fields = fields;
return this;
}
public java.util.List getFields() {
return this.fields;
}
public CreateTemplatesRequest setLogo(String logo) {
this.logo = logo;
return this;
}
public String getLogo() {
return this.logo;
}
public CreateTemplatesRequest setMaxWordCount(Integer maxWordCount) {
this.maxWordCount = maxWordCount;
return this;
}
public Integer getMaxWordCount() {
return this.maxWordCount;
}
public CreateTemplatesRequest setMinWordCount(Integer minWordCount) {
this.minWordCount = minWordCount;
return this;
}
public Integer getMinWordCount() {
return this.minWordCount;
}
public CreateTemplatesRequest setName(String name) {
this.name = name;
return this;
}
public String getName() {
return this.name;
}
public CreateTemplatesRequest setTemplateManagers(java.util.List templateManagers) {
this.templateManagers = templateManagers;
return this;
}
public java.util.List getTemplateManagers() {
return this.templateManagers;
}
public static class CreateTemplatesRequestFieldsDataValueOpenInfo extends TeaModel {
@NameInMap("attribute")
public java.util.Map attribute;
/**
* example:
* abc
*/
@NameInMap("openId")
public String openId;
public static CreateTemplatesRequestFieldsDataValueOpenInfo build(java.util.Map map) throws Exception {
CreateTemplatesRequestFieldsDataValueOpenInfo self = new CreateTemplatesRequestFieldsDataValueOpenInfo();
return TeaModel.build(map, self);
}
public CreateTemplatesRequestFieldsDataValueOpenInfo setAttribute(java.util.Map attribute) {
this.attribute = attribute;
return this;
}
public java.util.Map getAttribute() {
return this.attribute;
}
public CreateTemplatesRequestFieldsDataValueOpenInfo setOpenId(String openId) {
this.openId = openId;
return this;
}
public String getOpenId() {
return this.openId;
}
}
public static class CreateTemplatesRequestFieldsDataValue extends TeaModel {
@NameInMap("openInfo")
public CreateTemplatesRequestFieldsDataValueOpenInfo openInfo;
@NameInMap("options")
public java.util.List options;
@NameInMap("placeholder")
public String placeholder;
public static CreateTemplatesRequestFieldsDataValue build(java.util.Map map) throws Exception {
CreateTemplatesRequestFieldsDataValue self = new CreateTemplatesRequestFieldsDataValue();
return TeaModel.build(map, self);
}
public CreateTemplatesRequestFieldsDataValue setOpenInfo(CreateTemplatesRequestFieldsDataValueOpenInfo openInfo) {
this.openInfo = openInfo;
return this;
}
public CreateTemplatesRequestFieldsDataValueOpenInfo getOpenInfo() {
return this.openInfo;
}
public CreateTemplatesRequestFieldsDataValue setOptions(java.util.List options) {
this.options = options;
return this;
}
public java.util.List getOptions() {
return this.options;
}
public CreateTemplatesRequestFieldsDataValue setPlaceholder(String placeholder) {
this.placeholder = placeholder;
return this;
}
public String getPlaceholder() {
return this.placeholder;
}
}
public static class CreateTemplatesRequestFields extends TeaModel {
/**
* This parameter is required.
*
* example:
* 1
*/
@NameInMap("dataType")
public Integer dataType;
@NameInMap("dataValue")
public CreateTemplatesRequestFieldsDataValue dataValue;
/**
* This parameter is required.
*/
@NameInMap("fieldName")
public String fieldName;
/**
* This parameter is required.
*/
@NameInMap("need")
public Boolean need;
/**
* This parameter is required.
*
* example:
* 1
*/
@NameInMap("order")
public Integer order;
/**
* This parameter is required.
*
* example:
* 1
*/
@NameInMap("sort")
public Integer sort;
public static CreateTemplatesRequestFields build(java.util.Map map) throws Exception {
CreateTemplatesRequestFields self = new CreateTemplatesRequestFields();
return TeaModel.build(map, self);
}
public CreateTemplatesRequestFields setDataType(Integer dataType) {
this.dataType = dataType;
return this;
}
public Integer getDataType() {
return this.dataType;
}
public CreateTemplatesRequestFields setDataValue(CreateTemplatesRequestFieldsDataValue dataValue) {
this.dataValue = dataValue;
return this;
}
public CreateTemplatesRequestFieldsDataValue getDataValue() {
return this.dataValue;
}
public CreateTemplatesRequestFields setFieldName(String fieldName) {
this.fieldName = fieldName;
return this;
}
public String getFieldName() {
return this.fieldName;
}
public CreateTemplatesRequestFields setNeed(Boolean need) {
this.need = need;
return this;
}
public Boolean getNeed() {
return this.need;
}
public CreateTemplatesRequestFields setOrder(Integer order) {
this.order = order;
return this;
}
public Integer getOrder() {
return this.order;
}
public CreateTemplatesRequestFields setSort(Integer sort) {
this.sort = sort;
return this;
}
public Integer getSort() {
return this.sort;
}
}
}