Files
aliyun-openapi-cpp-sdk/alidns/src/model/OperateBatchDomainRequest.cc

88 lines
2.6 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/alidns/model/OperateBatchDomainRequest.h>
using AlibabaCloud::Alidns::Model::OperateBatchDomainRequest;
OperateBatchDomainRequest::OperateBatchDomainRequest() :
RpcServiceRequest("alidns", "2015-01-09", "OperateBatchDomain")
{
setMethod(HttpRequest::Method::Post);
}
OperateBatchDomainRequest::~OperateBatchDomainRequest()
{}
std::vector<OperateBatchDomainRequest::DomainRecordInfo> OperateBatchDomainRequest::getDomainRecordInfo()const
{
return domainRecordInfo_;
}
void OperateBatchDomainRequest::setDomainRecordInfo(const std::vector<DomainRecordInfo>& domainRecordInfo)
{
domainRecordInfo_ = domainRecordInfo;
int i = 0;
for(int i = 0; i!= domainRecordInfo.size(); i++) {
auto obj = domainRecordInfo.at(i);
std::string str ="DomainRecordInfo."+ std::to_string(i);
setCoreParameter(str + ".Rr", obj.rr);
setCoreParameter(str + ".NewType", obj.newType);
setCoreParameter(str + ".NewValue", obj.newValue);
setCoreParameter(str + ".Line", obj.line);
setCoreParameter(str + ".Domain", obj.domain);
setCoreParameter(str + ".Type", obj.type);
setCoreParameter(str + ".Priority", std::to_string(obj.priority));
setCoreParameter(str + ".Value", obj.value);
setCoreParameter(str + ".Ttl", std::to_string(obj.ttl));
setCoreParameter(str + ".NewRr", obj.newRr);
}
}
std::string OperateBatchDomainRequest::getType()const
{
return type_;
}
void OperateBatchDomainRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
}
std::string OperateBatchDomainRequest::getUserClientIp()const
{
return userClientIp_;
}
void OperateBatchDomainRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setCoreParameter("UserClientIp", userClientIp);
}
std::string OperateBatchDomainRequest::getLang()const
{
return lang_;
}
void OperateBatchDomainRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}