| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- /*
- * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- #include <alibabacloud/cams/model/SendMessageRequest.h>
- using AlibabaCloud::Cams::Model::SendMessageRequest;
- SendMessageRequest::SendMessageRequest() :
- RpcServiceRequest("cams", "2020-06-06", "SendMessage")
- {
- setMethod(HttpRequest::Method::Post);
- }
- SendMessageRequest::~SendMessageRequest()
- {}
- long SendMessageRequest::getResourceOwnerId()const
- {
- return resourceOwnerId_;
- }
- void SendMessageRequest::setResourceOwnerId(long resourceOwnerId)
- {
- resourceOwnerId_ = resourceOwnerId;
- setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
- }
- std::string SendMessageRequest::getMessageType()const
- {
- return messageType_;
- }
- void SendMessageRequest::setMessageType(const std::string& messageType)
- {
- messageType_ = messageType;
- setBodyParameter("MessageType", messageType);
- }
- std::string SendMessageRequest::getTemplateBodyParams()const
- {
- return templateBodyParams_;
- }
- void SendMessageRequest::setTemplateBodyParams(const std::string& templateBodyParams)
- {
- templateBodyParams_ = templateBodyParams;
- setBodyParameter("TemplateBodyParams", templateBodyParams);
- }
- std::string SendMessageRequest::getLink()const
- {
- return link_;
- }
- void SendMessageRequest::setLink(const std::string& link)
- {
- link_ = link;
- setBodyParameter("Link", link);
- }
- std::string SendMessageRequest::getCaption()const
- {
- return caption_;
- }
- void SendMessageRequest::setCaption(const std::string& caption)
- {
- caption_ = caption;
- setBodyParameter("Caption", caption);
- }
- std::string SendMessageRequest::getType()const
- {
- return type_;
- }
- void SendMessageRequest::setType(const std::string& type)
- {
- type_ = type;
- setBodyParameter("Type", type);
- }
- std::string SendMessageRequest::getAccessKeyId()const
- {
- return accessKeyId_;
- }
- void SendMessageRequest::setAccessKeyId(const std::string& accessKeyId)
- {
- accessKeyId_ = accessKeyId;
- setParameter("AccessKeyId", accessKeyId);
- }
- std::string SendMessageRequest::getChannelType()const
- {
- return channelType_;
- }
- void SendMessageRequest::setChannelType(const std::string& channelType)
- {
- channelType_ = channelType;
- setBodyParameter("ChannelType", channelType);
- }
- std::string SendMessageRequest::getFrom()const
- {
- return from_;
- }
- void SendMessageRequest::setFrom(const std::string& from)
- {
- from_ = from;
- setBodyParameter("From", from);
- }
- std::string SendMessageRequest::getText()const
- {
- return text_;
- }
- void SendMessageRequest::setText(const std::string& text)
- {
- text_ = text;
- setBodyParameter("Text", text);
- }
- std::string SendMessageRequest::getResourceOwnerAccount()const
- {
- return resourceOwnerAccount_;
- }
- void SendMessageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
- {
- resourceOwnerAccount_ = resourceOwnerAccount;
- setParameter("ResourceOwnerAccount", resourceOwnerAccount);
- }
- long SendMessageRequest::getOwnerId()const
- {
- return ownerId_;
- }
- void SendMessageRequest::setOwnerId(long ownerId)
- {
- ownerId_ = ownerId;
- setParameter("OwnerId", std::to_string(ownerId));
- }
- std::string SendMessageRequest::getTo()const
- {
- return to_;
- }
- void SendMessageRequest::setTo(const std::string& to)
- {
- to_ = to;
- setBodyParameter("To", to);
- }
- std::string SendMessageRequest::getTemplateCode()const
- {
- return templateCode_;
- }
- void SendMessageRequest::setTemplateCode(const std::string& templateCode)
- {
- templateCode_ = templateCode;
- setBodyParameter("TemplateCode", templateCode);
- }
|