Files
aliyun-openapi-cpp-sdk/dysmsapi/src/model/ModifySmsSignRequest.cc
2020-03-26 17:47:49 +08:00

123 lines
3.2 KiB
C++

/*
* 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/dysmsapi/model/ModifySmsSignRequest.h>
using AlibabaCloud::Dysmsapi::Model::ModifySmsSignRequest;
ModifySmsSignRequest::ModifySmsSignRequest() :
RpcServiceRequest("dysmsapi", "2017-05-25", "ModifySmsSign")
{
setMethod(HttpRequest::Method::Post);
}
ModifySmsSignRequest::~ModifySmsSignRequest()
{}
long ModifySmsSignRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ModifySmsSignRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ModifySmsSignRequest::getRemark()const
{
return remark_;
}
void ModifySmsSignRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setParameter("Remark", remark);
}
std::string ModifySmsSignRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ModifySmsSignRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ModifySmsSignRequest::getSignName()const
{
return signName_;
}
void ModifySmsSignRequest::setSignName(const std::string& signName)
{
signName_ = signName;
setParameter("SignName", signName);
}
std::vector<ModifySmsSignRequest::SignFileList> ModifySmsSignRequest::getSignFileList()const
{
return signFileList_;
}
void ModifySmsSignRequest::setSignFileList(const std::vector<SignFileList>& signFileList)
{
signFileList_ = signFileList;
for(int dep1 = 0; dep1!= signFileList.size(); dep1++) {
auto signFileListObj = signFileList.at(dep1);
std::string signFileListObjStr = "SignFileList." + std::to_string(dep1 + 1);
setParameter(signFileListObjStr + ".FileContents", signFileListObj.fileContents);
setParameter(signFileListObjStr + ".FileSuffix", signFileListObj.fileSuffix);
}
}
std::string ModifySmsSignRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ModifySmsSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long ModifySmsSignRequest::getOwnerId()const
{
return ownerId_;
}
void ModifySmsSignRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int ModifySmsSignRequest::getSignSource()const
{
return signSource_;
}
void ModifySmsSignRequest::setSignSource(int signSource)
{
signSource_ = signSource;
setParameter("SignSource", std::to_string(signSource));
}