com.aliyun.dingtalkservice_group_1_0.models.SendServiceGroupMessageRequest 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.dingtalkservice_group_1_0.models;
import com.aliyun.tea.*;
public class SendServiceGroupMessageRequest extends TeaModel {
// at dingtalkId
@NameInMap("atDingtalkIds")
public java.util.List atDingtalkIds;
// at 手机号
@NameInMap("atMobiles")
public java.util.List atMobiles;
// at unionIds
@NameInMap("atUnionIds")
public java.util.List atUnionIds;
// 排列方式:0-按钮竖直排列,1-按钮横向排列
@NameInMap("btnOrientation")
public String btnOrientation;
// actionCard按钮
@NameInMap("btns")
public java.util.List btns;
// 内容
@NameInMap("content")
public String content;
// 如果正文内容包含链接,并且按钮链接和文本链接分开跳转,则传递true; 否则传递false
@NameInMap("hasContentLinks")
public Boolean hasContentLinks;
// 是否 at所有人
@NameInMap("isAtAll")
public Boolean isAtAll;
// 消息类型:MARKDOWN,ACTIONCARD
@NameInMap("messageType")
public String messageType;
// dingtalkId接收者
@NameInMap("receiverDingtalkIds")
public java.util.List receiverDingtalkIds;
// 手机号接收者
@NameInMap("receiverMobiles")
public java.util.List receiverMobiles;
// unionId接收者
@NameInMap("receiverUnionIds")
public java.util.List receiverUnionIds;
// 开放群ID
@NameInMap("targetOpenConversationId")
public String targetOpenConversationId;
// 标题
@NameInMap("title")
public String title;
public static SendServiceGroupMessageRequest build(java.util.Map map) throws Exception {
SendServiceGroupMessageRequest self = new SendServiceGroupMessageRequest();
return TeaModel.build(map, self);
}
public SendServiceGroupMessageRequest setAtDingtalkIds(java.util.List atDingtalkIds) {
this.atDingtalkIds = atDingtalkIds;
return this;
}
public java.util.List getAtDingtalkIds() {
return this.atDingtalkIds;
}
public SendServiceGroupMessageRequest setAtMobiles(java.util.List atMobiles) {
this.atMobiles = atMobiles;
return this;
}
public java.util.List getAtMobiles() {
return this.atMobiles;
}
public SendServiceGroupMessageRequest setAtUnionIds(java.util.List atUnionIds) {
this.atUnionIds = atUnionIds;
return this;
}
public java.util.List getAtUnionIds() {
return this.atUnionIds;
}
public SendServiceGroupMessageRequest setBtnOrientation(String btnOrientation) {
this.btnOrientation = btnOrientation;
return this;
}
public String getBtnOrientation() {
return this.btnOrientation;
}
public SendServiceGroupMessageRequest setBtns(java.util.List btns) {
this.btns = btns;
return this;
}
public java.util.List getBtns() {
return this.btns;
}
public SendServiceGroupMessageRequest setContent(String content) {
this.content = content;
return this;
}
public String getContent() {
return this.content;
}
public SendServiceGroupMessageRequest setHasContentLinks(Boolean hasContentLinks) {
this.hasContentLinks = hasContentLinks;
return this;
}
public Boolean getHasContentLinks() {
return this.hasContentLinks;
}
public SendServiceGroupMessageRequest setIsAtAll(Boolean isAtAll) {
this.isAtAll = isAtAll;
return this;
}
public Boolean getIsAtAll() {
return this.isAtAll;
}
public SendServiceGroupMessageRequest setMessageType(String messageType) {
this.messageType = messageType;
return this;
}
public String getMessageType() {
return this.messageType;
}
public SendServiceGroupMessageRequest setReceiverDingtalkIds(java.util.List receiverDingtalkIds) {
this.receiverDingtalkIds = receiverDingtalkIds;
return this;
}
public java.util.List getReceiverDingtalkIds() {
return this.receiverDingtalkIds;
}
public SendServiceGroupMessageRequest setReceiverMobiles(java.util.List receiverMobiles) {
this.receiverMobiles = receiverMobiles;
return this;
}
public java.util.List getReceiverMobiles() {
return this.receiverMobiles;
}
public SendServiceGroupMessageRequest setReceiverUnionIds(java.util.List receiverUnionIds) {
this.receiverUnionIds = receiverUnionIds;
return this;
}
public java.util.List getReceiverUnionIds() {
return this.receiverUnionIds;
}
public SendServiceGroupMessageRequest setTargetOpenConversationId(String targetOpenConversationId) {
this.targetOpenConversationId = targetOpenConversationId;
return this;
}
public String getTargetOpenConversationId() {
return this.targetOpenConversationId;
}
public SendServiceGroupMessageRequest setTitle(String title) {
this.title = title;
return this;
}
public String getTitle() {
return this.title;
}
public static class SendServiceGroupMessageRequestBtns extends TeaModel {
// 跳转地址
@NameInMap("actionURL")
public String actionURL;
// 按钮名称
@NameInMap("title")
public String title;
public static SendServiceGroupMessageRequestBtns build(java.util.Map map) throws Exception {
SendServiceGroupMessageRequestBtns self = new SendServiceGroupMessageRequestBtns();
return TeaModel.build(map, self);
}
public SendServiceGroupMessageRequestBtns setActionURL(String actionURL) {
this.actionURL = actionURL;
return this;
}
public String getActionURL() {
return this.actionURL;
}
public SendServiceGroupMessageRequestBtns setTitle(String title) {
this.title = title;
return this;
}
public String getTitle() {
return this.title;
}
}
}