com.aliyun.dingtalkflashmsg_1_0.models.AddPluginRuleRequest 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
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkflashmsg_1_0.models;
import com.aliyun.tea.*;
public class AddPluginRuleRequest extends TeaModel {
/**
* This parameter is required.
*
* example:
* group_chat
*/
@NameInMap("chatType")
public String chatType;
/**
* This parameter is required.
*
* example:
* -10050
*/
@NameInMap("code")
public String code;
/**
* This parameter is required.
*
* example:
* group
*/
@NameInMap("itemType")
public String itemType;
/**
* This parameter is required.
*/
@NameInMap("rules")
public java.util.List rules;
/**
* This parameter is required.
*
* example:
* 0847493113802787
*/
@NameInMap("userId")
public String userId;
public static AddPluginRuleRequest build(java.util.Map map) throws Exception {
AddPluginRuleRequest self = new AddPluginRuleRequest();
return TeaModel.build(map, self);
}
public AddPluginRuleRequest setChatType(String chatType) {
this.chatType = chatType;
return this;
}
public String getChatType() {
return this.chatType;
}
public AddPluginRuleRequest setCode(String code) {
this.code = code;
return this;
}
public String getCode() {
return this.code;
}
public AddPluginRuleRequest setItemType(String itemType) {
this.itemType = itemType;
return this;
}
public String getItemType() {
return this.itemType;
}
public AddPluginRuleRequest setRules(java.util.List rules) {
this.rules = rules;
return this;
}
public java.util.List getRules() {
return this.rules;
}
public AddPluginRuleRequest setUserId(String userId) {
this.userId = userId;
return this;
}
public String getUserId() {
return this.userId;
}
public static class AddPluginRuleRequestRules extends TeaModel {
/**
* This parameter is required.
*
* example:
* 100
*/
@NameInMap("itemId")
public String itemId;
/**
* This parameter is required.
*
* example:
* 管理员角色
*/
@NameInMap("itemName")
public String itemName;
public static AddPluginRuleRequestRules build(java.util.Map map) throws Exception {
AddPluginRuleRequestRules self = new AddPluginRuleRequestRules();
return TeaModel.build(map, self);
}
public AddPluginRuleRequestRules setItemId(String itemId) {
this.itemId = itemId;
return this;
}
public String getItemId() {
return this.itemId;
}
public AddPluginRuleRequestRules setItemName(String itemName) {
this.itemName = itemName;
return this;
}
public String getItemName() {
return this.itemName;
}
}
}