All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.dingtalkim_1_0.models.SendTemplateInteractiveCardRequest Maven / Gradle / Ivy

There is a newer version: 2.1.50
Show newest version
// 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 {
    // 可控制卡片回调的url【可空:不填写无需回调】
    @NameInMap("callbackUrl")
    public String callbackUrl;

    // 卡片模板-文本内容参数(卡片json结构体)
    @NameInMap("cardData")
    public String cardData;

    // 卡片内容模板ID,响应模板目前有:TuWenCard01、TuWenCard02、TuWenCard03、TuWenCard04 4种
    @NameInMap("cardTemplateId")
    public String cardTemplateId;

    // 【openConversationId & singleChatReceiver 二选一必填】接收卡片的加密群ID,特指多人群会话(非单聊)
    @NameInMap("openConversationId")
    public String openConversationId;

    // 唯一标识一张卡片的外部ID(卡片幂等ID,可用于更新或重复发送同一卡片到多个群会话)【备注:同一个outTrackId重复创建,卡片数据不覆盖更新】
    @NameInMap("outTrackId")
    public String outTrackId;

    // 机器人代码,群模板机器人网页有机器人ID;企业内部机器人为机器人appKey,企业三方机器人有robotCode
    @NameInMap("robotCode")
    public String robotCode;

    // 互动卡片发送选项
    @NameInMap("sendOptions")
    public SendTemplateInteractiveCardRequestSendOptions sendOptions;

    // 【openConversationId & singleChatReceiver 二选一必填】单聊会话接受者json串
    @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 {
        // 是否@所有人
        @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 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 - 2024 Weber Informatics LLC | Privacy Policy