com.aliyun.dingtalkim_1_0.models.SendRobotInteractiveCardRequest 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.dingtalkim_1_0.models;
import com.aliyun.tea.*;
public class SendRobotInteractiveCardRequest extends TeaModel {
// 可交互卡片回调的url【可空:不填写无需回调】
@NameInMap("callbackUrl")
public String callbackUrl;
// 唯一标识一张卡片的外部ID(卡片幂等ID,可用于更新或重复发送同一卡片到多个群会话)【备注:同一个outTrackId重复创建,卡片数据不覆盖更新】
@NameInMap("cardBizId")
public String cardBizId;
// 卡片模板-文本内容参数(卡片json结构体)
@NameInMap("cardData")
public String cardData;
// 卡片搭建平台模板ID
@NameInMap("cardTemplateId")
public String cardTemplateId;
// 【openConversationId & singleChatReceiver 二选一必填】接收卡片的加密群ID,特指多人群会话(非单聊)
@NameInMap("openConversationId")
public String openConversationId;
// 机器人代码,群模板机器人网页有机器人ID;企业内部机器人为机器人appKey,企业三方机器人有robotCode
@NameInMap("robotCode")
public String robotCode;
// 互动卡片发送选项
@NameInMap("sendOptions")
public SendRobotInteractiveCardRequestSendOptions sendOptions;
// 【openConversationId & singleChatReceiver 二选一必填】单聊会话接受者json串
@NameInMap("singleChatReceiver")
public String singleChatReceiver;
// 卡片模板-userId差异用户参数(json结构体)
@NameInMap("unionIdPrivateDataMap")
public String unionIdPrivateDataMap;
// 卡片模板-userId差异用户参数(json结构体)
@NameInMap("userIdPrivateDataMap")
public String userIdPrivateDataMap;
public static SendRobotInteractiveCardRequest build(java.util.Map map) throws Exception {
SendRobotInteractiveCardRequest self = new SendRobotInteractiveCardRequest();
return TeaModel.build(map, self);
}
public SendRobotInteractiveCardRequest setCallbackUrl(String callbackUrl) {
this.callbackUrl = callbackUrl;
return this;
}
public String getCallbackUrl() {
return this.callbackUrl;
}
public SendRobotInteractiveCardRequest setCardBizId(String cardBizId) {
this.cardBizId = cardBizId;
return this;
}
public String getCardBizId() {
return this.cardBizId;
}
public SendRobotInteractiveCardRequest setCardData(String cardData) {
this.cardData = cardData;
return this;
}
public String getCardData() {
return this.cardData;
}
public SendRobotInteractiveCardRequest setCardTemplateId(String cardTemplateId) {
this.cardTemplateId = cardTemplateId;
return this;
}
public String getCardTemplateId() {
return this.cardTemplateId;
}
public SendRobotInteractiveCardRequest setOpenConversationId(String openConversationId) {
this.openConversationId = openConversationId;
return this;
}
public String getOpenConversationId() {
return this.openConversationId;
}
public SendRobotInteractiveCardRequest setRobotCode(String robotCode) {
this.robotCode = robotCode;
return this;
}
public String getRobotCode() {
return this.robotCode;
}
public SendRobotInteractiveCardRequest setSendOptions(SendRobotInteractiveCardRequestSendOptions sendOptions) {
this.sendOptions = sendOptions;
return this;
}
public SendRobotInteractiveCardRequestSendOptions getSendOptions() {
return this.sendOptions;
}
public SendRobotInteractiveCardRequest setSingleChatReceiver(String singleChatReceiver) {
this.singleChatReceiver = singleChatReceiver;
return this;
}
public String getSingleChatReceiver() {
return this.singleChatReceiver;
}
public SendRobotInteractiveCardRequest setUnionIdPrivateDataMap(String unionIdPrivateDataMap) {
this.unionIdPrivateDataMap = unionIdPrivateDataMap;
return this;
}
public String getUnionIdPrivateDataMap() {
return this.unionIdPrivateDataMap;
}
public SendRobotInteractiveCardRequest setUserIdPrivateDataMap(String userIdPrivateDataMap) {
this.userIdPrivateDataMap = userIdPrivateDataMap;
return this;
}
public String getUserIdPrivateDataMap() {
return this.userIdPrivateDataMap;
}
public static class SendRobotInteractiveCardRequestSendOptions extends TeaModel {
// 是否@所有人
@NameInMap("atAll")
public Boolean atAll;
// 消息@人,JSON格式:[{"nickName":"张三","userId":"userId0001"},{"nickName":"李四","unionId":"unionId001"}]
@NameInMap("atUserListJson")
public String atUserListJson;
// 卡片特殊属性json串
@NameInMap("cardPropertyJson")
public String cardPropertyJson;
// 消息仅部分人可见的接收人列表【可空:为空则群所有人可见】,JSON格式:[{"userId":"userId0001"},{"unionId":"unionId001"}]
@NameInMap("receiverListJson")
public String receiverListJson;
public static SendRobotInteractiveCardRequestSendOptions build(java.util.Map map) throws Exception {
SendRobotInteractiveCardRequestSendOptions self = new SendRobotInteractiveCardRequestSendOptions();
return TeaModel.build(map, self);
}
public SendRobotInteractiveCardRequestSendOptions setAtAll(Boolean atAll) {
this.atAll = atAll;
return this;
}
public Boolean getAtAll() {
return this.atAll;
}
public SendRobotInteractiveCardRequestSendOptions setAtUserListJson(String atUserListJson) {
this.atUserListJson = atUserListJson;
return this;
}
public String getAtUserListJson() {
return this.atUserListJson;
}
public SendRobotInteractiveCardRequestSendOptions setCardPropertyJson(String cardPropertyJson) {
this.cardPropertyJson = cardPropertyJson;
return this;
}
public String getCardPropertyJson() {
return this.cardPropertyJson;
}
public SendRobotInteractiveCardRequestSendOptions setReceiverListJson(String receiverListJson) {
this.receiverListJson = receiverListJson;
return this;
}
public String getReceiverListJson() {
return this.receiverListJson;
}
}
}