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

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

The 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 SendMessageRequest extends TeaModel {
    /**
     * 

This parameter is required.

* * example: *

{"msg_type":"text","text":"hello world"}

*/ @NameInMap("message") public String message; /** *

This parameter is required.

* * example: *

text

*/ @NameInMap("messageType") public String messageType; @NameInMap("openConversationId") public String openConversationId; /** * example: *

1745****8777

*/ @NameInMap("receiverId") public String receiverId; /** *

This parameter is required.

* * example: *

1107****2120

*/ @NameInMap("senderId") public String senderId; /** * example: *

{ "9d801647a6459c9da0207":"[{"action_url":"http://www.baidu.com\",\"title\":\"一个按钮\"},{\"action_url\":\"http://www.baidu.com\",\"title\":\"两个按钮\"}]", "9d801647a659c9da020342":"[{"action_url":"http://www.baidu.com\",\"title\":\"一个按钮\"},{\"action_url\":\"http://www.baidu.com\",\"title\":\"两个按钮\"}]" }

*/ @NameInMap("sourceInfos") public java.util.Map sourceInfos; public static SendMessageRequest build(java.util.Map map) throws Exception { SendMessageRequest self = new SendMessageRequest(); return TeaModel.build(map, self); } public SendMessageRequest setMessage(String message) { this.message = message; return this; } public String getMessage() { return this.message; } public SendMessageRequest setMessageType(String messageType) { this.messageType = messageType; return this; } public String getMessageType() { return this.messageType; } public SendMessageRequest setOpenConversationId(String openConversationId) { this.openConversationId = openConversationId; return this; } public String getOpenConversationId() { return this.openConversationId; } public SendMessageRequest setReceiverId(String receiverId) { this.receiverId = receiverId; return this; } public String getReceiverId() { return this.receiverId; } public SendMessageRequest setSenderId(String senderId) { this.senderId = senderId; return this; } public String getSenderId() { return this.senderId; } public SendMessageRequest setSourceInfos(java.util.Map sourceInfos) { this.sourceInfos = sourceInfos; return this; } public java.util.Map getSourceInfos() { return this.sourceInfos; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy