![JAR search and dependency download from the Maven repository](/logo.png)
com.aliyun.dingtalkim_1_0.models.SendTemplateInteractiveCardRequest 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 SendTemplateInteractiveCardRequest extends TeaModel {
/**
* example:
*
*/
@NameInMap("callbackUrl")
public String callbackUrl;
/**
* This parameter is required.
*
* example:
* 根据具体的cardTemplateId参考文档格式
*/
@NameInMap("cardData")
public String cardData;
/**
* This parameter is required.
*
* example:
* TuWenCard01
*/
@NameInMap("cardTemplateId")
public String cardTemplateId;
/**
* example:
* cidXXXX
*/
@NameInMap("openConversationId")
public String openConversationId;
/**
* This parameter is required.
*
* example:
* cardXXXX01
*/
@NameInMap("outTrackId")
public String outTrackId;
/**
* This parameter is required.
*
* example:
* xxxxxx
*/
@NameInMap("robotCode")
public String robotCode;
@NameInMap("sendOptions")
public SendTemplateInteractiveCardRequestSendOptions sendOptions;
/**
* example:
* 以userId为例:{"userId":"userId0001"};以unionId为例{"unionId":"unionId001"}
*/
@NameInMap("singleChatReceiver")
public String singleChatReceiver;
public static SendTemplateInteractiveCardRequest build(java.util.Map map) throws Exception {
SendTemplateInteractiveCardRequest self = new SendTemplateInteractiveCardRequest();
return TeaModel.build(map, self);
}
public SendTemplateInteractiveCardRequest setCallbackUrl(String callbackUrl) {
this.callbackUrl = callbackUrl;
return this;
}
public String getCallbackUrl() {
return this.callbackUrl;
}
public SendTemplateInteractiveCardRequest setCardData(String cardData) {
this.cardData = cardData;
return this;
}
public String getCardData() {
return this.cardData;
}
public SendTemplateInteractiveCardRequest setCardTemplateId(String cardTemplateId) {
this.cardTemplateId = cardTemplateId;
return this;
}
public String getCardTemplateId() {
return this.cardTemplateId;
}
public SendTemplateInteractiveCardRequest setOpenConversationId(String openConversationId) {
this.openConversationId = openConversationId;
return this;
}
public String getOpenConversationId() {
return this.openConversationId;
}
public SendTemplateInteractiveCardRequest setOutTrackId(String outTrackId) {
this.outTrackId = outTrackId;
return this;
}
public String getOutTrackId() {
return this.outTrackId;
}
public SendTemplateInteractiveCardRequest setRobotCode(String robotCode) {
this.robotCode = robotCode;
return this;
}
public String getRobotCode() {
return this.robotCode;
}
public SendTemplateInteractiveCardRequest setSendOptions(SendTemplateInteractiveCardRequestSendOptions sendOptions) {
this.sendOptions = sendOptions;
return this;
}
public SendTemplateInteractiveCardRequestSendOptions getSendOptions() {
return this.sendOptions;
}
public SendTemplateInteractiveCardRequest setSingleChatReceiver(String singleChatReceiver) {
this.singleChatReceiver = singleChatReceiver;
return this;
}
public String getSingleChatReceiver() {
return this.singleChatReceiver;
}
public static class SendTemplateInteractiveCardRequestSendOptions extends TeaModel {
/**
* example:
* true
*/
@NameInMap("atAll")
public Boolean atAll;
/**
* example:
* [{"nickName":"张三","userId":"userId0001"},{"nickName":"李四","unionId":"unionId001"}]
*/
@NameInMap("atUserListJson")
public String atUserListJson;
/**
* example:
* {}
*/
@NameInMap("cardPropertyJson")
public String cardPropertyJson;
/**
* example:
* [{"userId":"userId0001"},{"unionId":"unionId001"}]
*/
@NameInMap("receiverListJson")
public String receiverListJson;
public static SendTemplateInteractiveCardRequestSendOptions build(java.util.Map map) throws Exception {
SendTemplateInteractiveCardRequestSendOptions self = new SendTemplateInteractiveCardRequestSendOptions();
return TeaModel.build(map, self);
}
public SendTemplateInteractiveCardRequestSendOptions setAtAll(Boolean atAll) {
this.atAll = atAll;
return this;
}
public Boolean getAtAll() {
return this.atAll;
}
public SendTemplateInteractiveCardRequestSendOptions setAtUserListJson(String atUserListJson) {
this.atUserListJson = atUserListJson;
return this;
}
public String getAtUserListJson() {
return this.atUserListJson;
}
public SendTemplateInteractiveCardRequestSendOptions setCardPropertyJson(String cardPropertyJson) {
this.cardPropertyJson = cardPropertyJson;
return this;
}
public String getCardPropertyJson() {
return this.cardPropertyJson;
}
public SendTemplateInteractiveCardRequestSendOptions setReceiverListJson(String receiverListJson) {
this.receiverListJson = receiverListJson;
return this;
}
public String getReceiverListJson() {
return this.receiverListJson;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy