ALIDNS SDK Auto Released By shenshi,Version:1.34.52

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-03-20 11:17:20 +08:00
parent 9b1ab3027a
commit 7c93bd13dc
239 changed files with 20011 additions and 2 deletions

2141
alidns/src/AlidnsClient.cc Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,71 @@
/*
* 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/AddDomainGroupRequest.h>
using AlibabaCloud::Alidns::Model::AddDomainGroupRequest;
AddDomainGroupRequest::AddDomainGroupRequest() :
RpcServiceRequest("alidns", "2015-01-09", "AddDomainGroup")
{}
AddDomainGroupRequest::~AddDomainGroupRequest()
{}
std::string AddDomainGroupRequest::getUserClientIp()const
{
return userClientIp_;
}
void AddDomainGroupRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string AddDomainGroupRequest::getLang()const
{
return lang_;
}
void AddDomainGroupRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string AddDomainGroupRequest::getGroupName()const
{
return groupName_;
}
void AddDomainGroupRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setParameter("GroupName", groupName);
}
std::string AddDomainGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddDomainGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/AddDomainGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
AddDomainGroupResult::AddDomainGroupResult() :
ServiceResult()
{}
AddDomainGroupResult::AddDomainGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddDomainGroupResult::~AddDomainGroupResult()
{}
void AddDomainGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
}
std::string AddDomainGroupResult::getGroupName()const
{
return groupName_;
}
std::string AddDomainGroupResult::getGroupId()const
{
return groupId_;
}

View File

@@ -0,0 +1,137 @@
/*
* 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/AddDomainRecordRequest.h>
using AlibabaCloud::Alidns::Model::AddDomainRecordRequest;
AddDomainRecordRequest::AddDomainRecordRequest() :
RpcServiceRequest("alidns", "2015-01-09", "AddDomainRecord")
{}
AddDomainRecordRequest::~AddDomainRecordRequest()
{}
std::string AddDomainRecordRequest::getRR()const
{
return rR_;
}
void AddDomainRecordRequest::setRR(const std::string& rR)
{
rR_ = rR;
setParameter("RR", rR);
}
std::string AddDomainRecordRequest::getLine()const
{
return line_;
}
void AddDomainRecordRequest::setLine(const std::string& line)
{
line_ = line;
setParameter("Line", line);
}
std::string AddDomainRecordRequest::getUserClientIp()const
{
return userClientIp_;
}
void AddDomainRecordRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string AddDomainRecordRequest::getDomainName()const
{
return domainName_;
}
void AddDomainRecordRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string AddDomainRecordRequest::getLang()const
{
return lang_;
}
void AddDomainRecordRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string AddDomainRecordRequest::getType()const
{
return type_;
}
void AddDomainRecordRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
long AddDomainRecordRequest::getPriority()const
{
return priority_;
}
void AddDomainRecordRequest::setPriority(long priority)
{
priority_ = priority;
setParameter("Priority", std::to_string(priority));
}
std::string AddDomainRecordRequest::getValue()const
{
return value_;
}
void AddDomainRecordRequest::setValue(const std::string& value)
{
value_ = value;
setParameter("Value", value);
}
long AddDomainRecordRequest::getTTL()const
{
return tTL_;
}
void AddDomainRecordRequest::setTTL(long tTL)
{
tTL_ = tTL;
setParameter("TTL", std::to_string(tTL));
}
std::string AddDomainRecordRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddDomainRecordRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/AddDomainRecordResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
AddDomainRecordResult::AddDomainRecordResult() :
ServiceResult()
{}
AddDomainRecordResult::AddDomainRecordResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddDomainRecordResult::~AddDomainRecordResult()
{}
void AddDomainRecordResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RecordId"].isNull())
recordId_ = value["RecordId"].asString();
}
std::string AddDomainRecordResult::getRecordId()const
{
return recordId_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/AddDomainRequest.h>
using AlibabaCloud::Alidns::Model::AddDomainRequest;
AddDomainRequest::AddDomainRequest() :
RpcServiceRequest("alidns", "2015-01-09", "AddDomain")
{}
AddDomainRequest::~AddDomainRequest()
{}
std::string AddDomainRequest::getGroupId()const
{
return groupId_;
}
void AddDomainRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string AddDomainRequest::getDomainName()const
{
return domainName_;
}
void AddDomainRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string AddDomainRequest::getLang()const
{
return lang_;
}
void AddDomainRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string AddDomainRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddDomainRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,88 @@
/*
* 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/AddDomainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
AddDomainResult::AddDomainResult() :
ServiceResult()
{}
AddDomainResult::AddDomainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddDomainResult::~AddDomainResult()
{}
void AddDomainResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDnsServers = value["DnsServers"]["DnsServer"];
for (const auto &item : allDnsServers)
dnsServers_.push_back(item.asString());
if(!value["DomainId"].isNull())
domainId_ = value["DomainId"].asString();
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["PunyCode"].isNull())
punyCode_ = value["PunyCode"].asString();
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
}
std::string AddDomainResult::getGroupName()const
{
return groupName_;
}
std::string AddDomainResult::getDomainId()const
{
return domainId_;
}
std::string AddDomainResult::getDomainName()const
{
return domainName_;
}
std::string AddDomainResult::getPunyCode()const
{
return punyCode_;
}
std::vector<std::string> AddDomainResult::getDnsServers()const
{
return dnsServers_;
}
std::string AddDomainResult::getGroupId()const
{
return groupId_;
}

View File

@@ -0,0 +1,104 @@
/*
* 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/AddGtmAccessStrategyRequest.h>
using AlibabaCloud::Alidns::Model::AddGtmAccessStrategyRequest;
AddGtmAccessStrategyRequest::AddGtmAccessStrategyRequest() :
RpcServiceRequest("alidns", "2015-01-09", "AddGtmAccessStrategy")
{}
AddGtmAccessStrategyRequest::~AddGtmAccessStrategyRequest()
{}
std::string AddGtmAccessStrategyRequest::getStrategyName()const
{
return strategyName_;
}
void AddGtmAccessStrategyRequest::setStrategyName(const std::string& strategyName)
{
strategyName_ = strategyName;
setParameter("StrategyName", strategyName);
}
std::string AddGtmAccessStrategyRequest::getDefaultAddrPoolId()const
{
return defaultAddrPoolId_;
}
void AddGtmAccessStrategyRequest::setDefaultAddrPoolId(const std::string& defaultAddrPoolId)
{
defaultAddrPoolId_ = defaultAddrPoolId;
setParameter("DefaultAddrPoolId", defaultAddrPoolId);
}
std::string AddGtmAccessStrategyRequest::getAccessLines()const
{
return accessLines_;
}
void AddGtmAccessStrategyRequest::setAccessLines(const std::string& accessLines)
{
accessLines_ = accessLines;
setParameter("AccessLines", accessLines);
}
std::string AddGtmAccessStrategyRequest::getInstanceId()const
{
return instanceId_;
}
void AddGtmAccessStrategyRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AddGtmAccessStrategyRequest::getFailoverAddrPoolId()const
{
return failoverAddrPoolId_;
}
void AddGtmAccessStrategyRequest::setFailoverAddrPoolId(const std::string& failoverAddrPoolId)
{
failoverAddrPoolId_ = failoverAddrPoolId;
setParameter("FailoverAddrPoolId", failoverAddrPoolId);
}
std::string AddGtmAccessStrategyRequest::getUserClientIp()const
{
return userClientIp_;
}
void AddGtmAccessStrategyRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string AddGtmAccessStrategyRequest::getLang()const
{
return lang_;
}
void AddGtmAccessStrategyRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/AddGtmAccessStrategyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
AddGtmAccessStrategyResult::AddGtmAccessStrategyResult() :
ServiceResult()
{}
AddGtmAccessStrategyResult::AddGtmAccessStrategyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddGtmAccessStrategyResult::~AddGtmAccessStrategyResult()
{}
void AddGtmAccessStrategyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["StrategyId"].isNull())
strategyId_ = value["StrategyId"].asString();
}
std::string AddGtmAccessStrategyResult::getStrategyId()const
{
return strategyId_;
}

View File

@@ -0,0 +1,111 @@
/*
* 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/AddGtmAddressPoolRequest.h>
using AlibabaCloud::Alidns::Model::AddGtmAddressPoolRequest;
AddGtmAddressPoolRequest::AddGtmAddressPoolRequest() :
RpcServiceRequest("alidns", "2015-01-09", "AddGtmAddressPool")
{}
AddGtmAddressPoolRequest::~AddGtmAddressPoolRequest()
{}
std::string AddGtmAddressPoolRequest::getInstanceId()const
{
return instanceId_;
}
void AddGtmAddressPoolRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AddGtmAddressPoolRequest::getUserClientIp()const
{
return userClientIp_;
}
void AddGtmAddressPoolRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string AddGtmAddressPoolRequest::getName()const
{
return name_;
}
void AddGtmAddressPoolRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string AddGtmAddressPoolRequest::getLang()const
{
return lang_;
}
void AddGtmAddressPoolRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string AddGtmAddressPoolRequest::getType()const
{
return type_;
}
void AddGtmAddressPoolRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::vector<AddGtmAddressPoolRequest::Addr> AddGtmAddressPoolRequest::getAddr()const
{
return addr_;
}
void AddGtmAddressPoolRequest::setAddr(const std::vector<Addr>& addr)
{
addr_ = addr;
int i = 0;
for(int i = 0; i!= addr.size(); i++) {
auto obj = addr.at(i);
std::string str ="Addr."+ std::to_string(i);
setParameter(str + ".Mode", obj.mode);
setParameter(str + ".LbaWeight", std::to_string(obj.lbaWeight));
setParameter(str + ".Value", obj.value);
}
}
int AddGtmAddressPoolRequest::getMinAvailableAddrNum()const
{
return minAvailableAddrNum_;
}
void AddGtmAddressPoolRequest::setMinAvailableAddrNum(int minAvailableAddrNum)
{
minAvailableAddrNum_ = minAvailableAddrNum;
setParameter("MinAvailableAddrNum", std::to_string(minAvailableAddrNum));
}

View File

@@ -0,0 +1,52 @@
/*
* 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/AddGtmAddressPoolResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
AddGtmAddressPoolResult::AddGtmAddressPoolResult() :
ServiceResult()
{}
AddGtmAddressPoolResult::AddGtmAddressPoolResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddGtmAddressPoolResult::~AddGtmAddressPoolResult()
{}
void AddGtmAddressPoolResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AddrPoolId"].isNull())
addrPoolId_ = value["AddrPoolId"].asString();
}
std::string AddGtmAddressPoolResult::getAddrPoolId()const
{
return addrPoolId_;
}

View File

@@ -0,0 +1,143 @@
/*
* 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/AddGtmMonitorRequest.h>
using AlibabaCloud::Alidns::Model::AddGtmMonitorRequest;
AddGtmMonitorRequest::AddGtmMonitorRequest() :
RpcServiceRequest("alidns", "2015-01-09", "AddGtmMonitor")
{}
AddGtmMonitorRequest::~AddGtmMonitorRequest()
{}
std::string AddGtmMonitorRequest::getMonitorExtendInfo()const
{
return monitorExtendInfo_;
}
void AddGtmMonitorRequest::setMonitorExtendInfo(const std::string& monitorExtendInfo)
{
monitorExtendInfo_ = monitorExtendInfo;
setParameter("MonitorExtendInfo", monitorExtendInfo);
}
std::string AddGtmMonitorRequest::getAddrPoolId()const
{
return addrPoolId_;
}
void AddGtmMonitorRequest::setAddrPoolId(const std::string& addrPoolId)
{
addrPoolId_ = addrPoolId;
setParameter("AddrPoolId", addrPoolId);
}
std::string AddGtmMonitorRequest::getUserClientIp()const
{
return userClientIp_;
}
void AddGtmMonitorRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string AddGtmMonitorRequest::getName()const
{
return name_;
}
void AddGtmMonitorRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
int AddGtmMonitorRequest::getEvaluationCount()const
{
return evaluationCount_;
}
void AddGtmMonitorRequest::setEvaluationCount(int evaluationCount)
{
evaluationCount_ = evaluationCount;
setParameter("EvaluationCount", std::to_string(evaluationCount));
}
std::string AddGtmMonitorRequest::getProtocolType()const
{
return protocolType_;
}
void AddGtmMonitorRequest::setProtocolType(const std::string& protocolType)
{
protocolType_ = protocolType;
setParameter("ProtocolType", protocolType);
}
int AddGtmMonitorRequest::getInterval()const
{
return interval_;
}
void AddGtmMonitorRequest::setInterval(int interval)
{
interval_ = interval;
setParameter("Interval", std::to_string(interval));
}
std::string AddGtmMonitorRequest::getLang()const
{
return lang_;
}
void AddGtmMonitorRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
int AddGtmMonitorRequest::getTimeout()const
{
return timeout_;
}
void AddGtmMonitorRequest::setTimeout(int timeout)
{
timeout_ = timeout;
setParameter("Timeout", std::to_string(timeout));
}
std::vector<AddGtmMonitorRequest::IspCityNode> AddGtmMonitorRequest::getIspCityNode()const
{
return ispCityNode_;
}
void AddGtmMonitorRequest::setIspCityNode(const std::vector<IspCityNode>& ispCityNode)
{
ispCityNode_ = ispCityNode;
int i = 0;
for(int i = 0; i!= ispCityNode.size(); i++) {
auto obj = ispCityNode.at(i);
std::string str ="IspCityNode."+ std::to_string(i);
setParameter(str + ".CityCode", obj.cityCode);
setParameter(str + ".IspCode", obj.ispCode);
}
}

View File

@@ -0,0 +1,52 @@
/*
* 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/AddGtmMonitorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
AddGtmMonitorResult::AddGtmMonitorResult() :
ServiceResult()
{}
AddGtmMonitorResult::AddGtmMonitorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddGtmMonitorResult::~AddGtmMonitorResult()
{}
void AddGtmMonitorResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["MonitorConfigId"].isNull())
monitorConfigId_ = value["MonitorConfigId"].asString();
}
std::string AddGtmMonitorResult::getMonitorConfigId()const
{
return monitorConfigId_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/ChangeDomainGroupRequest.h>
using AlibabaCloud::Alidns::Model::ChangeDomainGroupRequest;
ChangeDomainGroupRequest::ChangeDomainGroupRequest() :
RpcServiceRequest("alidns", "2015-01-09", "ChangeDomainGroup")
{}
ChangeDomainGroupRequest::~ChangeDomainGroupRequest()
{}
std::string ChangeDomainGroupRequest::getGroupId()const
{
return groupId_;
}
void ChangeDomainGroupRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string ChangeDomainGroupRequest::getUserClientIp()const
{
return userClientIp_;
}
void ChangeDomainGroupRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string ChangeDomainGroupRequest::getDomainName()const
{
return domainName_;
}
void ChangeDomainGroupRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string ChangeDomainGroupRequest::getLang()const
{
return lang_;
}
void ChangeDomainGroupRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string ChangeDomainGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ChangeDomainGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/ChangeDomainGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
ChangeDomainGroupResult::ChangeDomainGroupResult() :
ServiceResult()
{}
ChangeDomainGroupResult::ChangeDomainGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ChangeDomainGroupResult::~ChangeDomainGroupResult()
{}
void ChangeDomainGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
}
std::string ChangeDomainGroupResult::getGroupName()const
{
return groupName_;
}
std::string ChangeDomainGroupResult::getGroupId()const
{
return groupId_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/ChangeDomainOfDnsProductRequest.h>
using AlibabaCloud::Alidns::Model::ChangeDomainOfDnsProductRequest;
ChangeDomainOfDnsProductRequest::ChangeDomainOfDnsProductRequest() :
RpcServiceRequest("alidns", "2015-01-09", "ChangeDomainOfDnsProduct")
{}
ChangeDomainOfDnsProductRequest::~ChangeDomainOfDnsProductRequest()
{}
std::string ChangeDomainOfDnsProductRequest::getInstanceId()const
{
return instanceId_;
}
void ChangeDomainOfDnsProductRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ChangeDomainOfDnsProductRequest::getNewDomain()const
{
return newDomain_;
}
void ChangeDomainOfDnsProductRequest::setNewDomain(const std::string& newDomain)
{
newDomain_ = newDomain;
setParameter("NewDomain", newDomain);
}
std::string ChangeDomainOfDnsProductRequest::getUserClientIp()const
{
return userClientIp_;
}
void ChangeDomainOfDnsProductRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
bool ChangeDomainOfDnsProductRequest::getForce()const
{
return force_;
}
void ChangeDomainOfDnsProductRequest::setForce(bool force)
{
force_ = force;
setParameter("Force", force ? "true" : "false");
}
std::string ChangeDomainOfDnsProductRequest::getLang()const
{
return lang_;
}
void ChangeDomainOfDnsProductRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string ChangeDomainOfDnsProductRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ChangeDomainOfDnsProductRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/ChangeDomainOfDnsProductResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
ChangeDomainOfDnsProductResult::ChangeDomainOfDnsProductResult() :
ServiceResult()
{}
ChangeDomainOfDnsProductResult::ChangeDomainOfDnsProductResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ChangeDomainOfDnsProductResult::~ChangeDomainOfDnsProductResult()
{}
void ChangeDomainOfDnsProductResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["OriginalDomain"].isNull())
originalDomain_ = value["OriginalDomain"].asString();
}
std::string ChangeDomainOfDnsProductResult::getOriginalDomain()const
{
return originalDomain_;
}

View File

@@ -0,0 +1,104 @@
/*
* 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/CheckDomainRecordRequest.h>
using AlibabaCloud::Alidns::Model::CheckDomainRecordRequest;
CheckDomainRecordRequest::CheckDomainRecordRequest() :
RpcServiceRequest("alidns", "2015-01-09", "CheckDomainRecord")
{}
CheckDomainRecordRequest::~CheckDomainRecordRequest()
{}
std::string CheckDomainRecordRequest::getRR()const
{
return rR_;
}
void CheckDomainRecordRequest::setRR(const std::string& rR)
{
rR_ = rR;
setParameter("RR", rR);
}
std::string CheckDomainRecordRequest::getUserClientIp()const
{
return userClientIp_;
}
void CheckDomainRecordRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string CheckDomainRecordRequest::getDomainName()const
{
return domainName_;
}
void CheckDomainRecordRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string CheckDomainRecordRequest::getLang()const
{
return lang_;
}
void CheckDomainRecordRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string CheckDomainRecordRequest::getType()const
{
return type_;
}
void CheckDomainRecordRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string CheckDomainRecordRequest::getValue()const
{
return value_;
}
void CheckDomainRecordRequest::setValue(const std::string& value)
{
value_ = value;
setParameter("Value", value);
}
std::string CheckDomainRecordRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CheckDomainRecordRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/CheckDomainRecordResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
CheckDomainRecordResult::CheckDomainRecordResult() :
ServiceResult()
{}
CheckDomainRecordResult::CheckDomainRecordResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckDomainRecordResult::~CheckDomainRecordResult()
{}
void CheckDomainRecordResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["IsExist"].isNull())
isExist_ = value["IsExist"].asString() == "true";
}
bool CheckDomainRecordResult::getIsExist()const
{
return isExist_;
}

View File

@@ -0,0 +1,115 @@
/*
* 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/CreateInstanceRequest.h>
using AlibabaCloud::Alidns::Model::CreateInstanceRequest;
CreateInstanceRequest::CreateInstanceRequest() :
RpcServiceRequest("alidns", "2015-01-09", "CreateInstance")
{}
CreateInstanceRequest::~CreateInstanceRequest()
{}
int CreateInstanceRequest::getMonth()const
{
return month_;
}
void CreateInstanceRequest::setMonth(int month)
{
month_ = month;
setParameter("Month", std::to_string(month));
}
std::string CreateInstanceRequest::getUserClientIp()const
{
return userClientIp_;
}
void CreateInstanceRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string CreateInstanceRequest::getDomainName()const
{
return domainName_;
}
void CreateInstanceRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string CreateInstanceRequest::getLang()const
{
return lang_;
}
void CreateInstanceRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string CreateInstanceRequest::getInstanceVersion()const
{
return instanceVersion_;
}
void CreateInstanceRequest::setInstanceVersion(const std::string& instanceVersion)
{
instanceVersion_ = instanceVersion;
setParameter("InstanceVersion", instanceVersion);
}
long CreateInstanceRequest::getOwnerId()const
{
return ownerId_;
}
void CreateInstanceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateInstanceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateInstanceRequest::getToken()const
{
return token_;
}
void CreateInstanceRequest::setToken(const std::string& token)
{
token_ = token;
setParameter("Token", token);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/CreateInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
CreateInstanceResult::CreateInstanceResult() :
ServiceResult()
{}
CreateInstanceResult::CreateInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateInstanceResult::~CreateInstanceResult()
{}
void CreateInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
}
std::string CreateInstanceResult::getInstanceId()const
{
return instanceId_;
}
std::string CreateInstanceResult::getOrderId()const
{
return orderId_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/DeleteDomainGroupRequest.h>
using AlibabaCloud::Alidns::Model::DeleteDomainGroupRequest;
DeleteDomainGroupRequest::DeleteDomainGroupRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DeleteDomainGroup")
{}
DeleteDomainGroupRequest::~DeleteDomainGroupRequest()
{}
std::string DeleteDomainGroupRequest::getGroupId()const
{
return groupId_;
}
void DeleteDomainGroupRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string DeleteDomainGroupRequest::getUserClientIp()const
{
return userClientIp_;
}
void DeleteDomainGroupRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DeleteDomainGroupRequest::getLang()const
{
return lang_;
}
void DeleteDomainGroupRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DeleteDomainGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteDomainGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/DeleteDomainGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DeleteDomainGroupResult::DeleteDomainGroupResult() :
ServiceResult()
{}
DeleteDomainGroupResult::DeleteDomainGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDomainGroupResult::~DeleteDomainGroupResult()
{}
void DeleteDomainGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
}
std::string DeleteDomainGroupResult::getGroupName()const
{
return groupName_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/DeleteDomainRecordRequest.h>
using AlibabaCloud::Alidns::Model::DeleteDomainRecordRequest;
DeleteDomainRecordRequest::DeleteDomainRecordRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DeleteDomainRecord")
{}
DeleteDomainRecordRequest::~DeleteDomainRecordRequest()
{}
std::string DeleteDomainRecordRequest::getRecordId()const
{
return recordId_;
}
void DeleteDomainRecordRequest::setRecordId(const std::string& recordId)
{
recordId_ = recordId;
setParameter("RecordId", recordId);
}
std::string DeleteDomainRecordRequest::getUserClientIp()const
{
return userClientIp_;
}
void DeleteDomainRecordRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DeleteDomainRecordRequest::getLang()const
{
return lang_;
}
void DeleteDomainRecordRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DeleteDomainRecordRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteDomainRecordRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/DeleteDomainRecordResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DeleteDomainRecordResult::DeleteDomainRecordResult() :
ServiceResult()
{}
DeleteDomainRecordResult::DeleteDomainRecordResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDomainRecordResult::~DeleteDomainRecordResult()
{}
void DeleteDomainRecordResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RecordId"].isNull())
recordId_ = value["RecordId"].asString();
}
std::string DeleteDomainRecordResult::getRecordId()const
{
return recordId_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/DeleteDomainRequest.h>
using AlibabaCloud::Alidns::Model::DeleteDomainRequest;
DeleteDomainRequest::DeleteDomainRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DeleteDomain")
{}
DeleteDomainRequest::~DeleteDomainRequest()
{}
std::string DeleteDomainRequest::getUserClientIp()const
{
return userClientIp_;
}
void DeleteDomainRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DeleteDomainRequest::getDomainName()const
{
return domainName_;
}
void DeleteDomainRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DeleteDomainRequest::getLang()const
{
return lang_;
}
void DeleteDomainRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DeleteDomainRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteDomainRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/DeleteDomainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DeleteDomainResult::DeleteDomainResult() :
ServiceResult()
{}
DeleteDomainResult::DeleteDomainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDomainResult::~DeleteDomainResult()
{}
void DeleteDomainResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
}
std::string DeleteDomainResult::getDomainName()const
{
return domainName_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/DeleteGtmAccessStrategyRequest.h>
using AlibabaCloud::Alidns::Model::DeleteGtmAccessStrategyRequest;
DeleteGtmAccessStrategyRequest::DeleteGtmAccessStrategyRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DeleteGtmAccessStrategy")
{}
DeleteGtmAccessStrategyRequest::~DeleteGtmAccessStrategyRequest()
{}
std::string DeleteGtmAccessStrategyRequest::getUserClientIp()const
{
return userClientIp_;
}
void DeleteGtmAccessStrategyRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DeleteGtmAccessStrategyRequest::getStrategyId()const
{
return strategyId_;
}
void DeleteGtmAccessStrategyRequest::setStrategyId(const std::string& strategyId)
{
strategyId_ = strategyId;
setParameter("StrategyId", strategyId);
}
std::string DeleteGtmAccessStrategyRequest::getLang()const
{
return lang_;
}
void DeleteGtmAccessStrategyRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/DeleteGtmAccessStrategyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DeleteGtmAccessStrategyResult::DeleteGtmAccessStrategyResult() :
ServiceResult()
{}
DeleteGtmAccessStrategyResult::DeleteGtmAccessStrategyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteGtmAccessStrategyResult::~DeleteGtmAccessStrategyResult()
{}
void DeleteGtmAccessStrategyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,60 @@
/*
* 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/DeleteGtmAddressPoolRequest.h>
using AlibabaCloud::Alidns::Model::DeleteGtmAddressPoolRequest;
DeleteGtmAddressPoolRequest::DeleteGtmAddressPoolRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DeleteGtmAddressPool")
{}
DeleteGtmAddressPoolRequest::~DeleteGtmAddressPoolRequest()
{}
std::string DeleteGtmAddressPoolRequest::getAddrPoolId()const
{
return addrPoolId_;
}
void DeleteGtmAddressPoolRequest::setAddrPoolId(const std::string& addrPoolId)
{
addrPoolId_ = addrPoolId;
setParameter("AddrPoolId", addrPoolId);
}
std::string DeleteGtmAddressPoolRequest::getUserClientIp()const
{
return userClientIp_;
}
void DeleteGtmAddressPoolRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DeleteGtmAddressPoolRequest::getLang()const
{
return lang_;
}
void DeleteGtmAddressPoolRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/DeleteGtmAddressPoolResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DeleteGtmAddressPoolResult::DeleteGtmAddressPoolResult() :
ServiceResult()
{}
DeleteGtmAddressPoolResult::DeleteGtmAddressPoolResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteGtmAddressPoolResult::~DeleteGtmAddressPoolResult()
{}
void DeleteGtmAddressPoolResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,93 @@
/*
* 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/DeleteSubDomainRecordsRequest.h>
using AlibabaCloud::Alidns::Model::DeleteSubDomainRecordsRequest;
DeleteSubDomainRecordsRequest::DeleteSubDomainRecordsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DeleteSubDomainRecords")
{}
DeleteSubDomainRecordsRequest::~DeleteSubDomainRecordsRequest()
{}
std::string DeleteSubDomainRecordsRequest::getRR()const
{
return rR_;
}
void DeleteSubDomainRecordsRequest::setRR(const std::string& rR)
{
rR_ = rR;
setParameter("RR", rR);
}
std::string DeleteSubDomainRecordsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DeleteSubDomainRecordsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DeleteSubDomainRecordsRequest::getDomainName()const
{
return domainName_;
}
void DeleteSubDomainRecordsRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DeleteSubDomainRecordsRequest::getLang()const
{
return lang_;
}
void DeleteSubDomainRecordsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DeleteSubDomainRecordsRequest::getType()const
{
return type_;
}
void DeleteSubDomainRecordsRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string DeleteSubDomainRecordsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteSubDomainRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/DeleteSubDomainRecordsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DeleteSubDomainRecordsResult::DeleteSubDomainRecordsResult() :
ServiceResult()
{}
DeleteSubDomainRecordsResult::DeleteSubDomainRecordsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteSubDomainRecordsResult::~DeleteSubDomainRecordsResult()
{}
void DeleteSubDomainRecordsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RR"].isNull())
rR_ = value["RR"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = value["TotalCount"].asString();
}
std::string DeleteSubDomainRecordsResult::getRR()const
{
return rR_;
}
std::string DeleteSubDomainRecordsResult::getTotalCount()const
{
return totalCount_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/DescribeBatchResultCountRequest.h>
using AlibabaCloud::Alidns::Model::DescribeBatchResultCountRequest;
DescribeBatchResultCountRequest::DescribeBatchResultCountRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeBatchResultCount")
{}
DescribeBatchResultCountRequest::~DescribeBatchResultCountRequest()
{}
std::string DescribeBatchResultCountRequest::getBatchType()const
{
return batchType_;
}
void DescribeBatchResultCountRequest::setBatchType(const std::string& batchType)
{
batchType_ = batchType;
setParameter("BatchType", batchType);
}
std::string DescribeBatchResultCountRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeBatchResultCountRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeBatchResultCountRequest::getLang()const
{
return lang_;
}
void DescribeBatchResultCountRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
long DescribeBatchResultCountRequest::getTaskId()const
{
return taskId_;
}
void DescribeBatchResultCountRequest::setTaskId(long taskId)
{
taskId_ = taskId;
setParameter("TaskId", std::to_string(taskId));
}

View File

@@ -0,0 +1,94 @@
/*
* 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/DescribeBatchResultCountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeBatchResultCountResult::DescribeBatchResultCountResult() :
ServiceResult()
{}
DescribeBatchResultCountResult::DescribeBatchResultCountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBatchResultCountResult::~DescribeBatchResultCountResult()
{}
void DescribeBatchResultCountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Status"].isNull())
status_ = std::stoi(value["Status"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["SuccessCount"].isNull())
successCount_ = std::stoi(value["SuccessCount"].asString());
if(!value["FailedCount"].isNull())
failedCount_ = std::stoi(value["FailedCount"].asString());
if(!value["Reason"].isNull())
reason_ = value["Reason"].asString();
if(!value["BatchType"].isNull())
batchType_ = value["BatchType"].asString();
if(!value["TaskId"].isNull())
taskId_ = std::stol(value["TaskId"].asString());
}
int DescribeBatchResultCountResult::getStatus()const
{
return status_;
}
int DescribeBatchResultCountResult::getTotalCount()const
{
return totalCount_;
}
long DescribeBatchResultCountResult::getTaskId()const
{
return taskId_;
}
int DescribeBatchResultCountResult::getFailedCount()const
{
return failedCount_;
}
int DescribeBatchResultCountResult::getSuccessCount()const
{
return successCount_;
}
std::string DescribeBatchResultCountResult::getReason()const
{
return reason_;
}
std::string DescribeBatchResultCountResult::getBatchType()const
{
return batchType_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/DescribeBatchResultDetailRequest.h>
using AlibabaCloud::Alidns::Model::DescribeBatchResultDetailRequest;
DescribeBatchResultDetailRequest::DescribeBatchResultDetailRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeBatchResultDetail")
{}
DescribeBatchResultDetailRequest::~DescribeBatchResultDetailRequest()
{}
std::string DescribeBatchResultDetailRequest::getBatchType()const
{
return batchType_;
}
void DescribeBatchResultDetailRequest::setBatchType(const std::string& batchType)
{
batchType_ = batchType;
setParameter("BatchType", batchType);
}
std::string DescribeBatchResultDetailRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeBatchResultDetailRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
int DescribeBatchResultDetailRequest::getPageSize()const
{
return pageSize_;
}
void DescribeBatchResultDetailRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeBatchResultDetailRequest::getLang()const
{
return lang_;
}
void DescribeBatchResultDetailRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
int DescribeBatchResultDetailRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeBatchResultDetailRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
long DescribeBatchResultDetailRequest::getTaskId()const
{
return taskId_;
}
void DescribeBatchResultDetailRequest::setTaskId(long taskId)
{
taskId_ = taskId;
setParameter("TaskId", std::to_string(taskId));
}

View File

@@ -0,0 +1,109 @@
/*
* 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/DescribeBatchResultDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeBatchResultDetailResult::DescribeBatchResultDetailResult() :
ServiceResult()
{}
DescribeBatchResultDetailResult::DescribeBatchResultDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBatchResultDetailResult::~DescribeBatchResultDetailResult()
{}
void DescribeBatchResultDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBatchResultDetails = value["BatchResultDetails"]["BatchResultDetail"];
for (auto value : allBatchResultDetails)
{
BatchResultDetail batchResultDetailsObject;
if(!value["Domain"].isNull())
batchResultDetailsObject.domain = value["Domain"].asString();
if(!value["Type"].isNull())
batchResultDetailsObject.type = value["Type"].asString();
if(!value["Rr"].isNull())
batchResultDetailsObject.rr = value["Rr"].asString();
if(!value["Value"].isNull())
batchResultDetailsObject.value = value["Value"].asString();
if(!value["Status"].isNull())
batchResultDetailsObject.status = value["Status"].asString() == "true";
if(!value["Reason"].isNull())
batchResultDetailsObject.reason = value["Reason"].asString();
if(!value["NewRr"].isNull())
batchResultDetailsObject.newRr = value["NewRr"].asString();
if(!value["NewValue"].isNull())
batchResultDetailsObject.newValue = value["NewValue"].asString();
if(!value["BatchType"].isNull())
batchResultDetailsObject.batchType = value["BatchType"].asString();
if(!value["OperateDateStr"].isNull())
batchResultDetailsObject.operateDateStr = value["OperateDateStr"].asString();
if(!value["Line"].isNull())
batchResultDetailsObject.line = value["Line"].asString();
if(!value["Priority"].isNull())
batchResultDetailsObject.priority = std::stoi(value["Priority"].asString());
if(!value["Ttl"].isNull())
batchResultDetailsObject.ttl = std::stoi(value["Ttl"].asString());
if(!value["RecordId"].isNull())
batchResultDetailsObject.recordId = value["RecordId"].asString();
if(!value["Remark"].isNull())
batchResultDetailsObject.remark = value["Remark"].asString();
if(!value["RrStatus"].isNull())
batchResultDetailsObject.rrStatus = value["RrStatus"].asString();
batchResultDetails_.push_back(batchResultDetailsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
std::vector<DescribeBatchResultDetailResult::BatchResultDetail> DescribeBatchResultDetailResult::getBatchResultDetails()const
{
return batchResultDetails_;
}
long DescribeBatchResultDetailResult::getTotalCount()const
{
return totalCount_;
}
long DescribeBatchResultDetailResult::getPageSize()const
{
return pageSize_;
}
long DescribeBatchResultDetailResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/DescribeDNSSLBSubDomainsRequest.h>
using AlibabaCloud::Alidns::Model::DescribeDNSSLBSubDomainsRequest;
DescribeDNSSLBSubDomainsRequest::DescribeDNSSLBSubDomainsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeDNSSLBSubDomains")
{}
DescribeDNSSLBSubDomainsRequest::~DescribeDNSSLBSubDomainsRequest()
{}
std::string DescribeDNSSLBSubDomainsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeDNSSLBSubDomainsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeDNSSLBSubDomainsRequest::getDomainName()const
{
return domainName_;
}
void DescribeDNSSLBSubDomainsRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeDNSSLBSubDomainsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDNSSLBSubDomainsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDNSSLBSubDomainsRequest::getLang()const
{
return lang_;
}
void DescribeDNSSLBSubDomainsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
long DescribeDNSSLBSubDomainsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDNSSLBSubDomainsRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDNSSLBSubDomainsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDNSSLBSubDomainsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,85 @@
/*
* 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/DescribeDNSSLBSubDomainsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeDNSSLBSubDomainsResult::DescribeDNSSLBSubDomainsResult() :
ServiceResult()
{}
DescribeDNSSLBSubDomainsResult::DescribeDNSSLBSubDomainsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDNSSLBSubDomainsResult::~DescribeDNSSLBSubDomainsResult()
{}
void DescribeDNSSLBSubDomainsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSlbSubDomains = value["SlbSubDomains"]["SlbSubDomain"];
for (auto value : allSlbSubDomains)
{
SlbSubDomain slbSubDomainsObject;
if(!value["SubDomain"].isNull())
slbSubDomainsObject.subDomain = value["SubDomain"].asString();
if(!value["RecordCount"].isNull())
slbSubDomainsObject.recordCount = std::stol(value["RecordCount"].asString());
if(!value["Open"].isNull())
slbSubDomainsObject.open = value["Open"].asString() == "true";
if(!value["Type"].isNull())
slbSubDomainsObject.type = value["Type"].asString();
slbSubDomains_.push_back(slbSubDomainsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
long DescribeDNSSLBSubDomainsResult::getTotalCount()const
{
return totalCount_;
}
long DescribeDNSSLBSubDomainsResult::getPageSize()const
{
return pageSize_;
}
long DescribeDNSSLBSubDomainsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeDNSSLBSubDomainsResult::SlbSubDomain> DescribeDNSSLBSubDomainsResult::getSlbSubDomains()const
{
return slbSubDomains_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/DescribeDnsProductInstanceRequest.h>
using AlibabaCloud::Alidns::Model::DescribeDnsProductInstanceRequest;
DescribeDnsProductInstanceRequest::DescribeDnsProductInstanceRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsProductInstance")
{}
DescribeDnsProductInstanceRequest::~DescribeDnsProductInstanceRequest()
{}
std::string DescribeDnsProductInstanceRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeDnsProductInstanceRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeDnsProductInstanceRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeDnsProductInstanceRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeDnsProductInstanceRequest::getLang()const
{
return lang_;
}
void DescribeDnsProductInstanceRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeDnsProductInstanceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDnsProductInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,270 @@
/*
* 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/DescribeDnsProductInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeDnsProductInstanceResult::DescribeDnsProductInstanceResult() :
ServiceResult()
{}
DescribeDnsProductInstanceResult::DescribeDnsProductInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDnsProductInstanceResult::~DescribeDnsProductInstanceResult()
{}
void DescribeDnsProductInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDnsServers = value["DnsServers"]["DnsServer"];
for (const auto &item : allDnsServers)
dnsServers_.push_back(item.asString());
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
if(!value["VersionCode"].isNull())
versionCode_ = value["VersionCode"].asString();
if(!value["VersionName"].isNull())
versionName_ = value["VersionName"].asString();
if(!value["StartTime"].isNull())
startTime_ = value["StartTime"].asString();
if(!value["StartTimestamp"].isNull())
startTimestamp_ = std::stol(value["StartTimestamp"].asString());
if(!value["EndTime"].isNull())
endTime_ = value["EndTime"].asString();
if(!value["EndTimestamp"].isNull())
endTimestamp_ = std::stol(value["EndTimestamp"].asString());
if(!value["Domain"].isNull())
domain_ = value["Domain"].asString();
if(!value["BindCount"].isNull())
bindCount_ = std::stol(value["BindCount"].asString());
if(!value["BindUsedCount"].isNull())
bindUsedCount_ = std::stol(value["BindUsedCount"].asString());
if(!value["TTLMinValue"].isNull())
tTLMinValue_ = std::stol(value["TTLMinValue"].asString());
if(!value["SubDomainLevel"].isNull())
subDomainLevel_ = std::stol(value["SubDomainLevel"].asString());
if(!value["DnsSLBCount"].isNull())
dnsSLBCount_ = std::stol(value["DnsSLBCount"].asString());
if(!value["URLForwardCount"].isNull())
uRLForwardCount_ = std::stol(value["URLForwardCount"].asString());
if(!value["DDosDefendFlow"].isNull())
dDosDefendFlow_ = std::stol(value["DDosDefendFlow"].asString());
if(!value["DDosDefendQuery"].isNull())
dDosDefendQuery_ = std::stol(value["DDosDefendQuery"].asString());
if(!value["OverseaDDosDefendFlow"].isNull())
overseaDDosDefendFlow_ = std::stol(value["OverseaDDosDefendFlow"].asString());
if(!value["SearchEngineLines"].isNull())
searchEngineLines_ = value["SearchEngineLines"].asString();
if(!value["ISPLines"].isNull())
iSPLines_ = value["ISPLines"].asString();
if(!value["ISPRegionLines"].isNull())
iSPRegionLines_ = value["ISPRegionLines"].asString();
if(!value["OverseaLine"].isNull())
overseaLine_ = value["OverseaLine"].asString();
if(!value["MonitorNodeCount"].isNull())
monitorNodeCount_ = std::stol(value["MonitorNodeCount"].asString());
if(!value["MonitorFrequency"].isNull())
monitorFrequency_ = std::stol(value["MonitorFrequency"].asString());
if(!value["MonitorTaskCount"].isNull())
monitorTaskCount_ = std::stol(value["MonitorTaskCount"].asString());
if(!value["RegionLines"].isNull())
regionLines_ = value["RegionLines"].asString() == "true";
if(!value["Gslb"].isNull())
gslb_ = value["Gslb"].asString() == "true";
if(!value["InClean"].isNull())
inClean_ = value["InClean"].asString() == "true";
if(!value["InBlackHole"].isNull())
inBlackHole_ = value["InBlackHole"].asString() == "true";
if(!value["BindDomainCount"].isNull())
bindDomainCount_ = std::stol(value["BindDomainCount"].asString());
if(!value["BindDomainUsedCount"].isNull())
bindDomainUsedCount_ = std::stol(value["BindDomainUsedCount"].asString());
if(!value["DnsSecurity"].isNull())
dnsSecurity_ = value["DnsSecurity"].asString();
}
long DescribeDnsProductInstanceResult::getMonitorNodeCount()const
{
return monitorNodeCount_;
}
bool DescribeDnsProductInstanceResult::getInBlackHole()const
{
return inBlackHole_;
}
long DescribeDnsProductInstanceResult::getBindDomainCount()const
{
return bindDomainCount_;
}
bool DescribeDnsProductInstanceResult::getRegionLines()const
{
return regionLines_;
}
std::string DescribeDnsProductInstanceResult::getEndTime()const
{
return endTime_;
}
long DescribeDnsProductInstanceResult::getBindCount()const
{
return bindCount_;
}
long DescribeDnsProductInstanceResult::getStartTimestamp()const
{
return startTimestamp_;
}
std::string DescribeDnsProductInstanceResult::getISPLines()const
{
return iSPLines_;
}
std::vector<std::string> DescribeDnsProductInstanceResult::getDnsServers()const
{
return dnsServers_;
}
long DescribeDnsProductInstanceResult::getEndTimestamp()const
{
return endTimestamp_;
}
long DescribeDnsProductInstanceResult::getDDosDefendQuery()const
{
return dDosDefendQuery_;
}
std::string DescribeDnsProductInstanceResult::getDnsSecurity()const
{
return dnsSecurity_;
}
long DescribeDnsProductInstanceResult::getURLForwardCount()const
{
return uRLForwardCount_;
}
long DescribeDnsProductInstanceResult::getTTLMinValue()const
{
return tTLMinValue_;
}
std::string DescribeDnsProductInstanceResult::getVersionName()const
{
return versionName_;
}
std::string DescribeDnsProductInstanceResult::getOverseaLine()const
{
return overseaLine_;
}
std::string DescribeDnsProductInstanceResult::getISPRegionLines()const
{
return iSPRegionLines_;
}
bool DescribeDnsProductInstanceResult::getGslb()const
{
return gslb_;
}
long DescribeDnsProductInstanceResult::getBindUsedCount()const
{
return bindUsedCount_;
}
long DescribeDnsProductInstanceResult::getDnsSLBCount()const
{
return dnsSLBCount_;
}
std::string DescribeDnsProductInstanceResult::getInstanceId()const
{
return instanceId_;
}
long DescribeDnsProductInstanceResult::getMonitorTaskCount()const
{
return monitorTaskCount_;
}
std::string DescribeDnsProductInstanceResult::getStartTime()const
{
return startTime_;
}
long DescribeDnsProductInstanceResult::getDDosDefendFlow()const
{
return dDosDefendFlow_;
}
long DescribeDnsProductInstanceResult::getMonitorFrequency()const
{
return monitorFrequency_;
}
std::string DescribeDnsProductInstanceResult::getSearchEngineLines()const
{
return searchEngineLines_;
}
long DescribeDnsProductInstanceResult::getBindDomainUsedCount()const
{
return bindDomainUsedCount_;
}
std::string DescribeDnsProductInstanceResult::getVersionCode()const
{
return versionCode_;
}
long DescribeDnsProductInstanceResult::getOverseaDDosDefendFlow()const
{
return overseaDDosDefendFlow_;
}
long DescribeDnsProductInstanceResult::getSubDomainLevel()const
{
return subDomainLevel_;
}
bool DescribeDnsProductInstanceResult::getInClean()const
{
return inClean_;
}
std::string DescribeDnsProductInstanceResult::getDomain()const
{
return domain_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/DescribeDnsProductInstancesRequest.h>
using AlibabaCloud::Alidns::Model::DescribeDnsProductInstancesRequest;
DescribeDnsProductInstancesRequest::DescribeDnsProductInstancesRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsProductInstances")
{}
DescribeDnsProductInstancesRequest::~DescribeDnsProductInstancesRequest()
{}
std::string DescribeDnsProductInstancesRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeDnsProductInstancesRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
long DescribeDnsProductInstancesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDnsProductInstancesRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDnsProductInstancesRequest::getLang()const
{
return lang_;
}
void DescribeDnsProductInstancesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeDnsProductInstancesRequest::getVersionCode()const
{
return versionCode_;
}
void DescribeDnsProductInstancesRequest::setVersionCode(const std::string& versionCode)
{
versionCode_ = versionCode;
setParameter("VersionCode", versionCode);
}
long DescribeDnsProductInstancesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDnsProductInstancesRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDnsProductInstancesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDnsProductInstancesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,139 @@
/*
* 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/DescribeDnsProductInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeDnsProductInstancesResult::DescribeDnsProductInstancesResult() :
ServiceResult()
{}
DescribeDnsProductInstancesResult::DescribeDnsProductInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDnsProductInstancesResult::~DescribeDnsProductInstancesResult()
{}
void DescribeDnsProductInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDnsProducts = value["DnsProducts"]["DnsProduct"];
for (auto value : allDnsProducts)
{
DnsProduct dnsProductsObject;
if(!value["InstanceId"].isNull())
dnsProductsObject.instanceId = value["InstanceId"].asString();
if(!value["VersionCode"].isNull())
dnsProductsObject.versionCode = value["VersionCode"].asString();
if(!value["VersionName"].isNull())
dnsProductsObject.versionName = value["VersionName"].asString();
if(!value["StartTime"].isNull())
dnsProductsObject.startTime = value["StartTime"].asString();
if(!value["EndTime"].isNull())
dnsProductsObject.endTime = value["EndTime"].asString();
if(!value["StartTimestamp"].isNull())
dnsProductsObject.startTimestamp = std::stol(value["StartTimestamp"].asString());
if(!value["EndTimestamp"].isNull())
dnsProductsObject.endTimestamp = std::stol(value["EndTimestamp"].asString());
if(!value["Domain"].isNull())
dnsProductsObject.domain = value["Domain"].asString();
if(!value["BindCount"].isNull())
dnsProductsObject.bindCount = std::stol(value["BindCount"].asString());
if(!value["BindUsedCount"].isNull())
dnsProductsObject.bindUsedCount = std::stol(value["BindUsedCount"].asString());
if(!value["TTLMinValue"].isNull())
dnsProductsObject.tTLMinValue = std::stol(value["TTLMinValue"].asString());
if(!value["SubDomainLevel"].isNull())
dnsProductsObject.subDomainLevel = std::stol(value["SubDomainLevel"].asString());
if(!value["DnsSLBCount"].isNull())
dnsProductsObject.dnsSLBCount = std::stol(value["DnsSLBCount"].asString());
if(!value["URLForwardCount"].isNull())
dnsProductsObject.uRLForwardCount = std::stol(value["URLForwardCount"].asString());
if(!value["DDosDefendFlow"].isNull())
dnsProductsObject.dDosDefendFlow = std::stol(value["DDosDefendFlow"].asString());
if(!value["DDosDefendQuery"].isNull())
dnsProductsObject.dDosDefendQuery = std::stol(value["DDosDefendQuery"].asString());
if(!value["OverseaDDosDefendFlow"].isNull())
dnsProductsObject.overseaDDosDefendFlow = std::stol(value["OverseaDDosDefendFlow"].asString());
if(!value["SearchEngineLines"].isNull())
dnsProductsObject.searchEngineLines = value["SearchEngineLines"].asString();
if(!value["ISPLines"].isNull())
dnsProductsObject.iSPLines = value["ISPLines"].asString();
if(!value["ISPRegionLines"].isNull())
dnsProductsObject.iSPRegionLines = value["ISPRegionLines"].asString();
if(!value["OverseaLine"].isNull())
dnsProductsObject.overseaLine = value["OverseaLine"].asString();
if(!value["MonitorNodeCount"].isNull())
dnsProductsObject.monitorNodeCount = std::stol(value["MonitorNodeCount"].asString());
if(!value["MonitorFrequency"].isNull())
dnsProductsObject.monitorFrequency = std::stol(value["MonitorFrequency"].asString());
if(!value["MonitorTaskCount"].isNull())
dnsProductsObject.monitorTaskCount = std::stol(value["MonitorTaskCount"].asString());
if(!value["RegionLines"].isNull())
dnsProductsObject.regionLines = value["RegionLines"].asString() == "true";
if(!value["Gslb"].isNull())
dnsProductsObject.gslb = value["Gslb"].asString() == "true";
if(!value["InClean"].isNull())
dnsProductsObject.inClean = value["InClean"].asString() == "true";
if(!value["InBlackHole"].isNull())
dnsProductsObject.inBlackHole = value["InBlackHole"].asString() == "true";
if(!value["BindDomainCount"].isNull())
dnsProductsObject.bindDomainCount = std::stol(value["BindDomainCount"].asString());
if(!value["BindDomainUsedCount"].isNull())
dnsProductsObject.bindDomainUsedCount = std::stol(value["BindDomainUsedCount"].asString());
if(!value["DnsSecurity"].isNull())
dnsProductsObject.dnsSecurity = value["DnsSecurity"].asString();
dnsProducts_.push_back(dnsProductsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
long DescribeDnsProductInstancesResult::getTotalCount()const
{
return totalCount_;
}
long DescribeDnsProductInstancesResult::getPageSize()const
{
return pageSize_;
}
long DescribeDnsProductInstancesResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeDnsProductInstancesResult::DnsProduct> DescribeDnsProductInstancesResult::getDnsProducts()const
{
return dnsProducts_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/DescribeDomainGroupsRequest.h>
using AlibabaCloud::Alidns::Model::DescribeDomainGroupsRequest;
DescribeDomainGroupsRequest::DescribeDomainGroupsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainGroups")
{}
DescribeDomainGroupsRequest::~DescribeDomainGroupsRequest()
{}
std::string DescribeDomainGroupsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeDomainGroupsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
long DescribeDomainGroupsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDomainGroupsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDomainGroupsRequest::getLang()const
{
return lang_;
}
void DescribeDomainGroupsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeDomainGroupsRequest::getKeyWord()const
{
return keyWord_;
}
void DescribeDomainGroupsRequest::setKeyWord(const std::string& keyWord)
{
keyWord_ = keyWord;
setParameter("KeyWord", keyWord);
}
long DescribeDomainGroupsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDomainGroupsRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDomainGroupsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainGroupsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,83 @@
/*
* 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/DescribeDomainGroupsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeDomainGroupsResult::DescribeDomainGroupsResult() :
ServiceResult()
{}
DescribeDomainGroupsResult::DescribeDomainGroupsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainGroupsResult::~DescribeDomainGroupsResult()
{}
void DescribeDomainGroupsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomainGroups = value["DomainGroups"]["DomainGroup"];
for (auto value : allDomainGroups)
{
DomainGroup domainGroupsObject;
if(!value["GroupId"].isNull())
domainGroupsObject.groupId = value["GroupId"].asString();
if(!value["GroupName"].isNull())
domainGroupsObject.groupName = value["GroupName"].asString();
if(!value["DomainCount"].isNull())
domainGroupsObject.domainCount = std::stol(value["DomainCount"].asString());
domainGroups_.push_back(domainGroupsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
std::vector<DescribeDomainGroupsResult::DomainGroup> DescribeDomainGroupsResult::getDomainGroups()const
{
return domainGroups_;
}
long DescribeDomainGroupsResult::getTotalCount()const
{
return totalCount_;
}
long DescribeDomainGroupsResult::getPageSize()const
{
return pageSize_;
}
long DescribeDomainGroupsResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/DescribeDomainInfoRequest.h>
using AlibabaCloud::Alidns::Model::DescribeDomainInfoRequest;
DescribeDomainInfoRequest::DescribeDomainInfoRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainInfo")
{}
DescribeDomainInfoRequest::~DescribeDomainInfoRequest()
{}
std::string DescribeDomainInfoRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeDomainInfoRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeDomainInfoRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainInfoRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainInfoRequest::getLang()const
{
return lang_;
}
void DescribeDomainInfoRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeDomainInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool DescribeDomainInfoRequest::getNeedDetailAttributes()const
{
return needDetailAttributes_;
}
void DescribeDomainInfoRequest::setNeedDetailAttributes(bool needDetailAttributes)
{
needDetailAttributes_ = needDetailAttributes;
setParameter("NeedDetailAttributes", needDetailAttributes ? "true" : "false");
}

View File

@@ -0,0 +1,199 @@
/*
* 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/DescribeDomainInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeDomainInfoResult::DescribeDomainInfoResult() :
ServiceResult()
{}
DescribeDomainInfoResult::DescribeDomainInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainInfoResult::~DescribeDomainInfoResult()
{}
void DescribeDomainInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRecordLines = value["RecordLines"]["RecordLine"];
for (auto value : allRecordLines)
{
RecordLine recordLinesObject;
if(!value["LineCode"].isNull())
recordLinesObject.lineCode = value["LineCode"].asString();
if(!value["FatherCode"].isNull())
recordLinesObject.fatherCode = value["FatherCode"].asString();
if(!value["LineName"].isNull())
recordLinesObject.lineName = value["LineName"].asString();
if(!value["LineDisplayName"].isNull())
recordLinesObject.lineDisplayName = value["LineDisplayName"].asString();
recordLines_.push_back(recordLinesObject);
}
auto allDnsServers = value["DnsServers"]["DnsServer"];
for (const auto &item : allDnsServers)
dnsServers_.push_back(item.asString());
auto allAvailableTtls = value["AvailableTtls"]["AvailableTtl"];
for (const auto &item : allAvailableTtls)
availableTtls_.push_back(item.asString());
if(!value["DomainId"].isNull())
domainId_ = value["DomainId"].asString();
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["PunyCode"].isNull())
punyCode_ = value["PunyCode"].asString();
if(!value["AliDomain"].isNull())
aliDomain_ = value["AliDomain"].asString() == "true";
if(!value["Remark"].isNull())
remark_ = value["Remark"].asString();
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
if(!value["VersionCode"].isNull())
versionCode_ = value["VersionCode"].asString();
if(!value["VersionName"].isNull())
versionName_ = value["VersionName"].asString();
if(!value["MinTtl"].isNull())
minTtl_ = std::stol(value["MinTtl"].asString());
if(!value["RecordLineTreeJson"].isNull())
recordLineTreeJson_ = value["RecordLineTreeJson"].asString();
if(!value["LineType"].isNull())
lineType_ = value["LineType"].asString();
if(!value["RegionLines"].isNull())
regionLines_ = value["RegionLines"].asString() == "true";
if(!value["InBlackHole"].isNull())
inBlackHole_ = value["InBlackHole"].asString() == "true";
if(!value["InClean"].isNull())
inClean_ = value["InClean"].asString() == "true";
if(!value["SlaveDns"].isNull())
slaveDns_ = value["SlaveDns"].asString() == "true";
}
std::string DescribeDomainInfoResult::getGroupName()const
{
return groupName_;
}
std::string DescribeDomainInfoResult::getRecordLineTreeJson()const
{
return recordLineTreeJson_;
}
bool DescribeDomainInfoResult::getInBlackHole()const
{
return inBlackHole_;
}
bool DescribeDomainInfoResult::getRegionLines()const
{
return regionLines_;
}
bool DescribeDomainInfoResult::getAliDomain()const
{
return aliDomain_;
}
bool DescribeDomainInfoResult::getSlaveDns()const
{
return slaveDns_;
}
std::string DescribeDomainInfoResult::getDomainName()const
{
return domainName_;
}
std::string DescribeDomainInfoResult::getInstanceId()const
{
return instanceId_;
}
std::string DescribeDomainInfoResult::getPunyCode()const
{
return punyCode_;
}
std::vector<std::string> DescribeDomainInfoResult::getDnsServers()const
{
return dnsServers_;
}
std::string DescribeDomainInfoResult::getRemark()const
{
return remark_;
}
std::string DescribeDomainInfoResult::getGroupId()const
{
return groupId_;
}
std::vector<DescribeDomainInfoResult::RecordLine> DescribeDomainInfoResult::getRecordLines()const
{
return recordLines_;
}
std::string DescribeDomainInfoResult::getVersionCode()const
{
return versionCode_;
}
std::string DescribeDomainInfoResult::getDomainId()const
{
return domainId_;
}
std::vector<std::string> DescribeDomainInfoResult::getAvailableTtls()const
{
return availableTtls_;
}
std::string DescribeDomainInfoResult::getVersionName()const
{
return versionName_;
}
long DescribeDomainInfoResult::getMinTtl()const
{
return minTtl_;
}
bool DescribeDomainInfoResult::getInClean()const
{
return inClean_;
}
std::string DescribeDomainInfoResult::getLineType()const
{
return lineType_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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/DescribeDomainLogsRequest.h>
using AlibabaCloud::Alidns::Model::DescribeDomainLogsRequest;
DescribeDomainLogsRequest::DescribeDomainLogsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainLogs")
{}
DescribeDomainLogsRequest::~DescribeDomainLogsRequest()
{}
std::string DescribeDomainLogsRequest::getEndDate()const
{
return endDate_;
}
void DescribeDomainLogsRequest::setEndDate(const std::string& endDate)
{
endDate_ = endDate;
setParameter("EndDate", endDate);
}
std::string DescribeDomainLogsRequest::getGroupId()const
{
return groupId_;
}
void DescribeDomainLogsRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string DescribeDomainLogsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeDomainLogsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
long DescribeDomainLogsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDomainLogsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDomainLogsRequest::getLang()const
{
return lang_;
}
void DescribeDomainLogsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeDomainLogsRequest::getKeyWord()const
{
return keyWord_;
}
void DescribeDomainLogsRequest::setKeyWord(const std::string& keyWord)
{
keyWord_ = keyWord;
setParameter("KeyWord", keyWord);
}
std::string DescribeDomainLogsRequest::getStartDate()const
{
return startDate_;
}
void DescribeDomainLogsRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setParameter("StartDate", startDate);
}
std::string DescribeDomainLogsRequest::getType()const
{
return type_;
}
void DescribeDomainLogsRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
long DescribeDomainLogsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDomainLogsRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}

View File

@@ -0,0 +1,89 @@
/*
* 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/DescribeDomainLogsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeDomainLogsResult::DescribeDomainLogsResult() :
ServiceResult()
{}
DescribeDomainLogsResult::DescribeDomainLogsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainLogsResult::~DescribeDomainLogsResult()
{}
void DescribeDomainLogsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomainLogs = value["DomainLogs"]["DomainLog"];
for (auto value : allDomainLogs)
{
DomainLog domainLogsObject;
if(!value["ActionTime"].isNull())
domainLogsObject.actionTime = value["ActionTime"].asString();
if(!value["ActionTimestamp"].isNull())
domainLogsObject.actionTimestamp = std::stol(value["ActionTimestamp"].asString());
if(!value["DomainName"].isNull())
domainLogsObject.domainName = value["DomainName"].asString();
if(!value["Action"].isNull())
domainLogsObject.action = value["Action"].asString();
if(!value["Message"].isNull())
domainLogsObject.message = value["Message"].asString();
if(!value["ClientIp"].isNull())
domainLogsObject.clientIp = value["ClientIp"].asString();
domainLogs_.push_back(domainLogsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
long DescribeDomainLogsResult::getTotalCount()const
{
return totalCount_;
}
long DescribeDomainLogsResult::getPageSize()const
{
return pageSize_;
}
long DescribeDomainLogsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeDomainLogsResult::DomainLog> DescribeDomainLogsResult::getDomainLogs()const
{
return domainLogs_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/DescribeDomainNsRequest.h>
using AlibabaCloud::Alidns::Model::DescribeDomainNsRequest;
DescribeDomainNsRequest::DescribeDomainNsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainNs")
{}
DescribeDomainNsRequest::~DescribeDomainNsRequest()
{}
std::string DescribeDomainNsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeDomainNsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeDomainNsRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainNsRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainNsRequest::getLang()const
{
return lang_;
}
void DescribeDomainNsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeDomainNsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainNsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,75 @@
/*
* 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/DescribeDomainNsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeDomainNsResult::DescribeDomainNsResult() :
ServiceResult()
{}
DescribeDomainNsResult::DescribeDomainNsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainNsResult::~DescribeDomainNsResult()
{}
void DescribeDomainNsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDnsServers = value["DnsServers"]["DnsServer"];
for (const auto &item : allDnsServers)
dnsServers_.push_back(item.asString());
auto allExpectDnsServers = value["ExpectDnsServers"]["ExpectDnsServer"];
for (const auto &item : allExpectDnsServers)
expectDnsServers_.push_back(item.asString());
if(!value["AllAliDns"].isNull())
allAliDns_ = value["AllAliDns"].asString() == "true";
if(!value["IncludeAliDns"].isNull())
includeAliDns_ = value["IncludeAliDns"].asString() == "true";
}
bool DescribeDomainNsResult::getAllAliDns()const
{
return allAliDns_;
}
std::vector<std::string> DescribeDomainNsResult::getExpectDnsServers()const
{
return expectDnsServers_;
}
std::vector<std::string> DescribeDomainNsResult::getDnsServers()const
{
return dnsServers_;
}
bool DescribeDomainNsResult::getIncludeAliDns()const
{
return includeAliDns_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/DescribeDomainRecordInfoRequest.h>
using AlibabaCloud::Alidns::Model::DescribeDomainRecordInfoRequest;
DescribeDomainRecordInfoRequest::DescribeDomainRecordInfoRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainRecordInfo")
{}
DescribeDomainRecordInfoRequest::~DescribeDomainRecordInfoRequest()
{}
std::string DescribeDomainRecordInfoRequest::getRecordId()const
{
return recordId_;
}
void DescribeDomainRecordInfoRequest::setRecordId(const std::string& recordId)
{
recordId_ = recordId;
setParameter("RecordId", recordId);
}
std::string DescribeDomainRecordInfoRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeDomainRecordInfoRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeDomainRecordInfoRequest::getLang()const
{
return lang_;
}
void DescribeDomainRecordInfoRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeDomainRecordInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainRecordInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,143 @@
/*
* 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/DescribeDomainRecordInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeDomainRecordInfoResult::DescribeDomainRecordInfoResult() :
ServiceResult()
{}
DescribeDomainRecordInfoResult::DescribeDomainRecordInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainRecordInfoResult::~DescribeDomainRecordInfoResult()
{}
void DescribeDomainRecordInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DomainId"].isNull())
domainId_ = value["DomainId"].asString();
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["PunyCode"].isNull())
punyCode_ = value["PunyCode"].asString();
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
if(!value["RecordId"].isNull())
recordId_ = value["RecordId"].asString();
if(!value["RR"].isNull())
rR_ = value["RR"].asString();
if(!value["Type"].isNull())
type_ = value["Type"].asString();
if(!value["Value"].isNull())
value_ = value["Value"].asString();
if(!value["TTL"].isNull())
tTL_ = std::stol(value["TTL"].asString());
if(!value["Priority"].isNull())
priority_ = std::stol(value["Priority"].asString());
if(!value["Line"].isNull())
line_ = value["Line"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["Locked"].isNull())
locked_ = value["Locked"].asString() == "true";
}
std::string DescribeDomainRecordInfoResult::getGroupName()const
{
return groupName_;
}
std::string DescribeDomainRecordInfoResult::getRR()const
{
return rR_;
}
std::string DescribeDomainRecordInfoResult::getStatus()const
{
return status_;
}
std::string DescribeDomainRecordInfoResult::getDomainName()const
{
return domainName_;
}
long DescribeDomainRecordInfoResult::getPriority()const
{
return priority_;
}
std::string DescribeDomainRecordInfoResult::getPunyCode()const
{
return punyCode_;
}
long DescribeDomainRecordInfoResult::getTTL()const
{
return tTL_;
}
std::string DescribeDomainRecordInfoResult::getGroupId()const
{
return groupId_;
}
std::string DescribeDomainRecordInfoResult::getLine()const
{
return line_;
}
bool DescribeDomainRecordInfoResult::getLocked()const
{
return locked_;
}
std::string DescribeDomainRecordInfoResult::getType()const
{
return type_;
}
std::string DescribeDomainRecordInfoResult::getDomainId()const
{
return domainId_;
}
std::string DescribeDomainRecordInfoResult::getValue()const
{
return value_;
}
std::string DescribeDomainRecordInfoResult::getRecordId()const
{
return recordId_;
}

View File

@@ -0,0 +1,170 @@
/*
* 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/DescribeDomainRecordsRequest.h>
using AlibabaCloud::Alidns::Model::DescribeDomainRecordsRequest;
DescribeDomainRecordsRequest::DescribeDomainRecordsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainRecords")
{}
DescribeDomainRecordsRequest::~DescribeDomainRecordsRequest()
{}
std::string DescribeDomainRecordsRequest::getValueKeyWord()const
{
return valueKeyWord_;
}
void DescribeDomainRecordsRequest::setValueKeyWord(const std::string& valueKeyWord)
{
valueKeyWord_ = valueKeyWord;
setParameter("ValueKeyWord", valueKeyWord);
}
long DescribeDomainRecordsRequest::getGroupId()const
{
return groupId_;
}
void DescribeDomainRecordsRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setParameter("GroupId", std::to_string(groupId));
}
std::string DescribeDomainRecordsRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainRecordsRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainRecordsRequest::getOrderBy()const
{
return orderBy_;
}
void DescribeDomainRecordsRequest::setOrderBy(const std::string& orderBy)
{
orderBy_ = orderBy;
setParameter("OrderBy", orderBy);
}
long DescribeDomainRecordsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDomainRecordsRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDomainRecordsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeDomainRecordsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
long DescribeDomainRecordsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDomainRecordsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDomainRecordsRequest::getSearchMode()const
{
return searchMode_;
}
void DescribeDomainRecordsRequest::setSearchMode(const std::string& searchMode)
{
searchMode_ = searchMode;
setParameter("SearchMode", searchMode);
}
std::string DescribeDomainRecordsRequest::getLang()const
{
return lang_;
}
void DescribeDomainRecordsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeDomainRecordsRequest::getKeyWord()const
{
return keyWord_;
}
void DescribeDomainRecordsRequest::setKeyWord(const std::string& keyWord)
{
keyWord_ = keyWord;
setParameter("KeyWord", keyWord);
}
std::string DescribeDomainRecordsRequest::getTypeKeyWord()const
{
return typeKeyWord_;
}
void DescribeDomainRecordsRequest::setTypeKeyWord(const std::string& typeKeyWord)
{
typeKeyWord_ = typeKeyWord;
setParameter("TypeKeyWord", typeKeyWord);
}
std::string DescribeDomainRecordsRequest::getRRKeyWord()const
{
return rRKeyWord_;
}
void DescribeDomainRecordsRequest::setRRKeyWord(const std::string& rRKeyWord)
{
rRKeyWord_ = rRKeyWord;
setParameter("RRKeyWord", rRKeyWord);
}
std::string DescribeDomainRecordsRequest::getDirection()const
{
return direction_;
}
void DescribeDomainRecordsRequest::setDirection(const std::string& direction)
{
direction_ = direction;
setParameter("Direction", direction);
}

View File

@@ -0,0 +1,101 @@
/*
* 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/DescribeDomainRecordsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeDomainRecordsResult::DescribeDomainRecordsResult() :
ServiceResult()
{}
DescribeDomainRecordsResult::DescribeDomainRecordsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainRecordsResult::~DescribeDomainRecordsResult()
{}
void DescribeDomainRecordsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomainRecords = value["DomainRecords"]["Record"];
for (auto value : allDomainRecords)
{
Record domainRecordsObject;
if(!value["DomainName"].isNull())
domainRecordsObject.domainName = value["DomainName"].asString();
if(!value["RecordId"].isNull())
domainRecordsObject.recordId = value["RecordId"].asString();
if(!value["RR"].isNull())
domainRecordsObject.rR = value["RR"].asString();
if(!value["Type"].isNull())
domainRecordsObject.type = value["Type"].asString();
if(!value["Value"].isNull())
domainRecordsObject.value = value["Value"].asString();
if(!value["TTL"].isNull())
domainRecordsObject.tTL = std::stol(value["TTL"].asString());
if(!value["Priority"].isNull())
domainRecordsObject.priority = std::stol(value["Priority"].asString());
if(!value["Line"].isNull())
domainRecordsObject.line = value["Line"].asString();
if(!value["Status"].isNull())
domainRecordsObject.status = value["Status"].asString();
if(!value["Locked"].isNull())
domainRecordsObject.locked = value["Locked"].asString() == "true";
if(!value["Weight"].isNull())
domainRecordsObject.weight = std::stoi(value["Weight"].asString());
if(!value["Remark"].isNull())
domainRecordsObject.remark = value["Remark"].asString();
domainRecords_.push_back(domainRecordsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
long DescribeDomainRecordsResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeDomainRecordsResult::Record> DescribeDomainRecordsResult::getDomainRecords()const
{
return domainRecords_;
}
long DescribeDomainRecordsResult::getPageSize()const
{
return pageSize_;
}
long DescribeDomainRecordsResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,104 @@
/*
* 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/DescribeDomainsRequest.h>
using AlibabaCloud::Alidns::Model::DescribeDomainsRequest;
DescribeDomainsRequest::DescribeDomainsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeDomains")
{}
DescribeDomainsRequest::~DescribeDomainsRequest()
{}
std::string DescribeDomainsRequest::getGroupId()const
{
return groupId_;
}
void DescribeDomainsRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string DescribeDomainsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeDomainsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
long DescribeDomainsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDomainsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDomainsRequest::getSearchMode()const
{
return searchMode_;
}
void DescribeDomainsRequest::setSearchMode(const std::string& searchMode)
{
searchMode_ = searchMode;
setParameter("SearchMode", searchMode);
}
std::string DescribeDomainsRequest::getLang()const
{
return lang_;
}
void DescribeDomainsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeDomainsRequest::getKeyWord()const
{
return keyWord_;
}
void DescribeDomainsRequest::setKeyWord(const std::string& keyWord)
{
keyWord_ = keyWord;
setParameter("KeyWord", keyWord);
}
long DescribeDomainsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDomainsRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}

View File

@@ -0,0 +1,108 @@
/*
* 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/DescribeDomainsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeDomainsResult::DescribeDomainsResult() :
ServiceResult()
{}
DescribeDomainsResult::DescribeDomainsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainsResult::~DescribeDomainsResult()
{}
void DescribeDomainsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomains = value["Domains"]["Domain"];
for (auto value : allDomains)
{
Domain domainsObject;
if(!value["DomainId"].isNull())
domainsObject.domainId = value["DomainId"].asString();
if(!value["DomainName"].isNull())
domainsObject.domainName = value["DomainName"].asString();
if(!value["PunyCode"].isNull())
domainsObject.punyCode = value["PunyCode"].asString();
if(!value["AliDomain"].isNull())
domainsObject.aliDomain = value["AliDomain"].asString() == "true";
if(!value["RecordCount"].isNull())
domainsObject.recordCount = std::stol(value["RecordCount"].asString());
if(!value["RegistrantEmail"].isNull())
domainsObject.registrantEmail = value["RegistrantEmail"].asString();
if(!value["Remark"].isNull())
domainsObject.remark = value["Remark"].asString();
if(!value["GroupId"].isNull())
domainsObject.groupId = value["GroupId"].asString();
if(!value["GroupName"].isNull())
domainsObject.groupName = value["GroupName"].asString();
if(!value["InstanceId"].isNull())
domainsObject.instanceId = value["InstanceId"].asString();
if(!value["VersionCode"].isNull())
domainsObject.versionCode = value["VersionCode"].asString();
if(!value["VersionName"].isNull())
domainsObject.versionName = value["VersionName"].asString();
if(!value["InstanceEndTime"].isNull())
domainsObject.instanceEndTime = value["InstanceEndTime"].asString();
if(!value["InstanceExpired"].isNull())
domainsObject.instanceExpired = value["InstanceExpired"].asString() == "true";
auto allDnsServers = value["DnsServers"]["DnsServer"];
for (auto value : allDnsServers)
domainsObject.dnsServers.push_back(value.asString());
domains_.push_back(domainsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
std::vector<DescribeDomainsResult::Domain> DescribeDomainsResult::getDomains()const
{
return domains_;
}
long DescribeDomainsResult::getTotalCount()const
{
return totalCount_;
}
long DescribeDomainsResult::getPageSize()const
{
return pageSize_;
}
long DescribeDomainsResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/DescribeGtmAccessStrategiesRequest.h>
using AlibabaCloud::Alidns::Model::DescribeGtmAccessStrategiesRequest;
DescribeGtmAccessStrategiesRequest::DescribeGtmAccessStrategiesRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmAccessStrategies")
{}
DescribeGtmAccessStrategiesRequest::~DescribeGtmAccessStrategiesRequest()
{}
std::string DescribeGtmAccessStrategiesRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeGtmAccessStrategiesRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeGtmAccessStrategiesRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeGtmAccessStrategiesRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
int DescribeGtmAccessStrategiesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeGtmAccessStrategiesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeGtmAccessStrategiesRequest::getLang()const
{
return lang_;
}
void DescribeGtmAccessStrategiesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
int DescribeGtmAccessStrategiesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeGtmAccessStrategiesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}

View File

@@ -0,0 +1,122 @@
/*
* 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/DescribeGtmAccessStrategiesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeGtmAccessStrategiesResult::DescribeGtmAccessStrategiesResult() :
ServiceResult()
{}
DescribeGtmAccessStrategiesResult::DescribeGtmAccessStrategiesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGtmAccessStrategiesResult::~DescribeGtmAccessStrategiesResult()
{}
void DescribeGtmAccessStrategiesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allStrategies = value["Strategies"]["Strategy"];
for (auto value : allStrategies)
{
Strategy strategiesObject;
if(!value["StrategyId"].isNull())
strategiesObject.strategyId = value["StrategyId"].asString();
if(!value["StrategyName"].isNull())
strategiesObject.strategyName = value["StrategyName"].asString();
if(!value["CreateTime"].isNull())
strategiesObject.createTime = value["CreateTime"].asString();
if(!value["CreateTimestamp"].isNull())
strategiesObject.createTimestamp = std::stol(value["CreateTimestamp"].asString());
if(!value["DefaultAddrPoolId"].isNull())
strategiesObject.defaultAddrPoolId = value["DefaultAddrPoolId"].asString();
if(!value["DefaultAddrPoolName"].isNull())
strategiesObject.defaultAddrPoolName = value["DefaultAddrPoolName"].asString();
if(!value["FailoverAddrPoolId"].isNull())
strategiesObject.failoverAddrPoolId = value["FailoverAddrPoolId"].asString();
if(!value["FailoverAddrPoolName"].isNull())
strategiesObject.failoverAddrPoolName = value["FailoverAddrPoolName"].asString();
if(!value["AccessMode"].isNull())
strategiesObject.accessMode = value["AccessMode"].asString();
if(!value["AccessStatus"].isNull())
strategiesObject.accessStatus = value["AccessStatus"].asString();
if(!value["StrategyMode"].isNull())
strategiesObject.strategyMode = value["StrategyMode"].asString();
if(!value["InstanceId"].isNull())
strategiesObject.instanceId = value["InstanceId"].asString();
auto allLines = value["Lines"]["Line"];
for (auto value : allLines)
{
Strategy::Line linesObject;
if(!value["LineCode"].isNull())
linesObject.lineCode = value["LineCode"].asString();
if(!value["LineName"].isNull())
linesObject.lineName = value["LineName"].asString();
if(!value["GroupCode"].isNull())
linesObject.groupCode = value["GroupCode"].asString();
if(!value["GroupName"].isNull())
linesObject.groupName = value["GroupName"].asString();
strategiesObject.lines.push_back(linesObject);
}
strategies_.push_back(strategiesObject);
}
if(!value["TotalItems"].isNull())
totalItems_ = std::stoi(value["TotalItems"].asString());
if(!value["TotalPages"].isNull())
totalPages_ = std::stoi(value["TotalPages"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribeGtmAccessStrategiesResult::getPageSize()const
{
return pageSize_;
}
int DescribeGtmAccessStrategiesResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeGtmAccessStrategiesResult::Strategy> DescribeGtmAccessStrategiesResult::getStrategies()const
{
return strategies_;
}
int DescribeGtmAccessStrategiesResult::getTotalPages()const
{
return totalPages_;
}
int DescribeGtmAccessStrategiesResult::getTotalItems()const
{
return totalItems_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/DescribeGtmAccessStrategyAvailableConfigRequest.h>
using AlibabaCloud::Alidns::Model::DescribeGtmAccessStrategyAvailableConfigRequest;
DescribeGtmAccessStrategyAvailableConfigRequest::DescribeGtmAccessStrategyAvailableConfigRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmAccessStrategyAvailableConfig")
{}
DescribeGtmAccessStrategyAvailableConfigRequest::~DescribeGtmAccessStrategyAvailableConfigRequest()
{}
std::string DescribeGtmAccessStrategyAvailableConfigRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeGtmAccessStrategyAvailableConfigRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeGtmAccessStrategyAvailableConfigRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeGtmAccessStrategyAvailableConfigRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeGtmAccessStrategyAvailableConfigRequest::getLang()const
{
return lang_;
}
void DescribeGtmAccessStrategyAvailableConfigRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,81 @@
/*
* 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/DescribeGtmAccessStrategyAvailableConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeGtmAccessStrategyAvailableConfigResult::DescribeGtmAccessStrategyAvailableConfigResult() :
ServiceResult()
{}
DescribeGtmAccessStrategyAvailableConfigResult::DescribeGtmAccessStrategyAvailableConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGtmAccessStrategyAvailableConfigResult::~DescribeGtmAccessStrategyAvailableConfigResult()
{}
void DescribeGtmAccessStrategyAvailableConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAddrPools = value["AddrPools"]["AddrPool"];
for (auto value : allAddrPools)
{
AddrPool addrPoolsObject;
if(!value["AddrPoolId"].isNull())
addrPoolsObject.addrPoolId = value["AddrPoolId"].asString();
if(!value["AddrPoolName"].isNull())
addrPoolsObject.addrPoolName = value["AddrPoolName"].asString();
addrPools_.push_back(addrPoolsObject);
}
auto allLines = value["Lines"]["Line"];
for (auto value : allLines)
{
Line linesObject;
if(!value["LineCode"].isNull())
linesObject.lineCode = value["LineCode"].asString();
if(!value["LineName"].isNull())
linesObject.lineName = value["LineName"].asString();
if(!value["GroupCode"].isNull())
linesObject.groupCode = value["GroupCode"].asString();
if(!value["GroupName"].isNull())
linesObject.groupName = value["GroupName"].asString();
if(!value["Status"].isNull())
linesObject.status = value["Status"].asString();
lines_.push_back(linesObject);
}
}
std::vector<DescribeGtmAccessStrategyAvailableConfigResult::AddrPool> DescribeGtmAccessStrategyAvailableConfigResult::getAddrPools()const
{
return addrPools_;
}
std::vector<DescribeGtmAccessStrategyAvailableConfigResult::Line> DescribeGtmAccessStrategyAvailableConfigResult::getLines()const
{
return lines_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/DescribeGtmAccessStrategyRequest.h>
using AlibabaCloud::Alidns::Model::DescribeGtmAccessStrategyRequest;
DescribeGtmAccessStrategyRequest::DescribeGtmAccessStrategyRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmAccessStrategy")
{}
DescribeGtmAccessStrategyRequest::~DescribeGtmAccessStrategyRequest()
{}
std::string DescribeGtmAccessStrategyRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeGtmAccessStrategyRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeGtmAccessStrategyRequest::getStrategyId()const
{
return strategyId_;
}
void DescribeGtmAccessStrategyRequest::setStrategyId(const std::string& strategyId)
{
strategyId_ = strategyId;
setParameter("StrategyId", strategyId);
}
std::string DescribeGtmAccessStrategyRequest::getLang()const
{
return lang_;
}
void DescribeGtmAccessStrategyRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,134 @@
/*
* 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/DescribeGtmAccessStrategyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeGtmAccessStrategyResult::DescribeGtmAccessStrategyResult() :
ServiceResult()
{}
DescribeGtmAccessStrategyResult::DescribeGtmAccessStrategyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGtmAccessStrategyResult::~DescribeGtmAccessStrategyResult()
{}
void DescribeGtmAccessStrategyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLines = value["Lines"]["Line"];
for (auto value : allLines)
{
Line linesObject;
if(!value["LineCode"].isNull())
linesObject.lineCode = value["LineCode"].asString();
if(!value["LineName"].isNull())
linesObject.lineName = value["LineName"].asString();
if(!value["GroupCode"].isNull())
linesObject.groupCode = value["GroupCode"].asString();
if(!value["GroupName"].isNull())
linesObject.groupName = value["GroupName"].asString();
lines_.push_back(linesObject);
}
if(!value["StrategyId"].isNull())
strategyId_ = value["StrategyId"].asString();
if(!value["StrategyName"].isNull())
strategyName_ = value["StrategyName"].asString();
if(!value["DefultAddrPoolId"].isNull())
defultAddrPoolId_ = value["DefultAddrPoolId"].asString();
if(!value["DefaultAddrPoolName"].isNull())
defaultAddrPoolName_ = value["DefaultAddrPoolName"].asString();
if(!value["FailoverAddrPoolId"].isNull())
failoverAddrPoolId_ = value["FailoverAddrPoolId"].asString();
if(!value["FailoverAddrPoolName"].isNull())
failoverAddrPoolName_ = value["FailoverAddrPoolName"].asString();
if(!value["StrategyMode"].isNull())
strategyMode_ = value["StrategyMode"].asString();
if(!value["AccessMode"].isNull())
accessMode_ = value["AccessMode"].asString();
if(!value["AccessStatus"].isNull())
accessStatus_ = value["AccessStatus"].asString();
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
}
std::string DescribeGtmAccessStrategyResult::getDefaultAddrPoolName()const
{
return defaultAddrPoolName_;
}
std::string DescribeGtmAccessStrategyResult::getDefultAddrPoolId()const
{
return defultAddrPoolId_;
}
std::string DescribeGtmAccessStrategyResult::getStrategyName()const
{
return strategyName_;
}
std::string DescribeGtmAccessStrategyResult::getInstanceId()const
{
return instanceId_;
}
std::string DescribeGtmAccessStrategyResult::getStrategyId()const
{
return strategyId_;
}
std::string DescribeGtmAccessStrategyResult::getAccessMode()const
{
return accessMode_;
}
std::string DescribeGtmAccessStrategyResult::getStrategyMode()const
{
return strategyMode_;
}
std::string DescribeGtmAccessStrategyResult::getFailoverAddrPoolName()const
{
return failoverAddrPoolName_;
}
std::string DescribeGtmAccessStrategyResult::getFailoverAddrPoolId()const
{
return failoverAddrPoolId_;
}
std::vector<DescribeGtmAccessStrategyResult::Line> DescribeGtmAccessStrategyResult::getLines()const
{
return lines_;
}
std::string DescribeGtmAccessStrategyResult::getAccessStatus()const
{
return accessStatus_;
}

View File

@@ -0,0 +1,49 @@
/*
* 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/DescribeGtmAvailableAlertGroupRequest.h>
using AlibabaCloud::Alidns::Model::DescribeGtmAvailableAlertGroupRequest;
DescribeGtmAvailableAlertGroupRequest::DescribeGtmAvailableAlertGroupRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmAvailableAlertGroup")
{}
DescribeGtmAvailableAlertGroupRequest::~DescribeGtmAvailableAlertGroupRequest()
{}
std::string DescribeGtmAvailableAlertGroupRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeGtmAvailableAlertGroupRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeGtmAvailableAlertGroupRequest::getLang()const
{
return lang_;
}
void DescribeGtmAvailableAlertGroupRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/DescribeGtmAvailableAlertGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeGtmAvailableAlertGroupResult::DescribeGtmAvailableAlertGroupResult() :
ServiceResult()
{}
DescribeGtmAvailableAlertGroupResult::DescribeGtmAvailableAlertGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGtmAvailableAlertGroupResult::~DescribeGtmAvailableAlertGroupResult()
{}
void DescribeGtmAvailableAlertGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AvailableAlertGroup"].isNull())
availableAlertGroup_ = value["AvailableAlertGroup"].asString();
}
std::string DescribeGtmAvailableAlertGroupResult::getAvailableAlertGroup()const
{
return availableAlertGroup_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/DescribeGtmInstanceAddressPoolRequest.h>
using AlibabaCloud::Alidns::Model::DescribeGtmInstanceAddressPoolRequest;
DescribeGtmInstanceAddressPoolRequest::DescribeGtmInstanceAddressPoolRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstanceAddressPool")
{}
DescribeGtmInstanceAddressPoolRequest::~DescribeGtmInstanceAddressPoolRequest()
{}
std::string DescribeGtmInstanceAddressPoolRequest::getAddrPoolId()const
{
return addrPoolId_;
}
void DescribeGtmInstanceAddressPoolRequest::setAddrPoolId(const std::string& addrPoolId)
{
addrPoolId_ = addrPoolId;
setParameter("AddrPoolId", addrPoolId);
}
std::string DescribeGtmInstanceAddressPoolRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeGtmInstanceAddressPoolRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeGtmInstanceAddressPoolRequest::getLang()const
{
return lang_;
}
void DescribeGtmInstanceAddressPoolRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,158 @@
/*
* 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/DescribeGtmInstanceAddressPoolResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeGtmInstanceAddressPoolResult::DescribeGtmInstanceAddressPoolResult() :
ServiceResult()
{}
DescribeGtmInstanceAddressPoolResult::DescribeGtmInstanceAddressPoolResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGtmInstanceAddressPoolResult::~DescribeGtmInstanceAddressPoolResult()
{}
void DescribeGtmInstanceAddressPoolResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAddrs = value["Addrs"]["Addr"];
for (auto value : allAddrs)
{
Addr addrsObject;
if(!value["AddrId"].isNull())
addrsObject.addrId = std::stol(value["AddrId"].asString());
if(!value["CreateTime"].isNull())
addrsObject.createTime = value["CreateTime"].asString();
if(!value["CreateTimestamp"].isNull())
addrsObject.createTimestamp = std::stol(value["CreateTimestamp"].asString());
if(!value["UpdateTime"].isNull())
addrsObject.updateTime = value["UpdateTime"].asString();
if(!value["UpdateTimestamp"].isNull())
addrsObject.updateTimestamp = std::stol(value["UpdateTimestamp"].asString());
if(!value["Value"].isNull())
addrsObject.value = value["Value"].asString();
if(!value["LbaWeight"].isNull())
addrsObject.lbaWeight = std::stoi(value["LbaWeight"].asString());
if(!value["Mode"].isNull())
addrsObject.mode = value["Mode"].asString();
if(!value["AlertStatus"].isNull())
addrsObject.alertStatus = value["AlertStatus"].asString();
addrs_.push_back(addrsObject);
}
if(!value["AddrPoolId"].isNull())
addrPoolId_ = value["AddrPoolId"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["CreateTimestamp"].isNull())
createTimestamp_ = std::stol(value["CreateTimestamp"].asString());
if(!value["UpdateTime"].isNull())
updateTime_ = value["UpdateTime"].asString();
if(!value["UpdateTimestamp"].isNull())
updateTimestamp_ = std::stol(value["UpdateTimestamp"].asString());
if(!value["AddrCount"].isNull())
addrCount_ = std::stoi(value["AddrCount"].asString());
if(!value["MinAvailableAddrNum"].isNull())
minAvailableAddrNum_ = std::stoi(value["MinAvailableAddrNum"].asString());
if(!value["MonitorConfigId"].isNull())
monitorConfigId_ = value["MonitorConfigId"].asString();
if(!value["MonitorStatus"].isNull())
monitorStatus_ = value["MonitorStatus"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["Type"].isNull())
type_ = value["Type"].asString();
}
std::vector<DescribeGtmInstanceAddressPoolResult::Addr> DescribeGtmInstanceAddressPoolResult::getAddrs()const
{
return addrs_;
}
std::string DescribeGtmInstanceAddressPoolResult::getStatus()const
{
return status_;
}
std::string DescribeGtmInstanceAddressPoolResult::getCreateTime()const
{
return createTime_;
}
int DescribeGtmInstanceAddressPoolResult::getAddrCount()const
{
return addrCount_;
}
std::string DescribeGtmInstanceAddressPoolResult::getName()const
{
return name_;
}
std::string DescribeGtmInstanceAddressPoolResult::getType()const
{
return type_;
}
std::string DescribeGtmInstanceAddressPoolResult::getAddrPoolId()const
{
return addrPoolId_;
}
std::string DescribeGtmInstanceAddressPoolResult::getUpdateTime()const
{
return updateTime_;
}
long DescribeGtmInstanceAddressPoolResult::getUpdateTimestamp()const
{
return updateTimestamp_;
}
int DescribeGtmInstanceAddressPoolResult::getMinAvailableAddrNum()const
{
return minAvailableAddrNum_;
}
std::string DescribeGtmInstanceAddressPoolResult::getMonitorConfigId()const
{
return monitorConfigId_;
}
long DescribeGtmInstanceAddressPoolResult::getCreateTimestamp()const
{
return createTimestamp_;
}
std::string DescribeGtmInstanceAddressPoolResult::getMonitorStatus()const
{
return monitorStatus_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/DescribeGtmInstanceAddressPoolsRequest.h>
using AlibabaCloud::Alidns::Model::DescribeGtmInstanceAddressPoolsRequest;
DescribeGtmInstanceAddressPoolsRequest::DescribeGtmInstanceAddressPoolsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstanceAddressPools")
{}
DescribeGtmInstanceAddressPoolsRequest::~DescribeGtmInstanceAddressPoolsRequest()
{}
std::string DescribeGtmInstanceAddressPoolsRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeGtmInstanceAddressPoolsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeGtmInstanceAddressPoolsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeGtmInstanceAddressPoolsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
int DescribeGtmInstanceAddressPoolsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeGtmInstanceAddressPoolsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeGtmInstanceAddressPoolsRequest::getLang()const
{
return lang_;
}
void DescribeGtmInstanceAddressPoolsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
int DescribeGtmInstanceAddressPoolsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeGtmInstanceAddressPoolsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}

View File

@@ -0,0 +1,108 @@
/*
* 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/DescribeGtmInstanceAddressPoolsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeGtmInstanceAddressPoolsResult::DescribeGtmInstanceAddressPoolsResult() :
ServiceResult()
{}
DescribeGtmInstanceAddressPoolsResult::DescribeGtmInstanceAddressPoolsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGtmInstanceAddressPoolsResult::~DescribeGtmInstanceAddressPoolsResult()
{}
void DescribeGtmInstanceAddressPoolsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAddrPools = value["AddrPools"]["AddrPool"];
for (auto value : allAddrPools)
{
AddrPool addrPoolsObject;
if(!value["AddrPoolId"].isNull())
addrPoolsObject.addrPoolId = value["AddrPoolId"].asString();
if(!value["CreateTime"].isNull())
addrPoolsObject.createTime = value["CreateTime"].asString();
if(!value["CreateTimestamp"].isNull())
addrPoolsObject.createTimestamp = std::stol(value["CreateTimestamp"].asString());
if(!value["UpdateTime"].isNull())
addrPoolsObject.updateTime = value["UpdateTime"].asString();
if(!value["UpdateTimestamp"].isNull())
addrPoolsObject.updateTimestamp = std::stol(value["UpdateTimestamp"].asString());
if(!value["AddrCount"].isNull())
addrPoolsObject.addrCount = std::stoi(value["AddrCount"].asString());
if(!value["MinAvailableAddrNum"].isNull())
addrPoolsObject.minAvailableAddrNum = std::stoi(value["MinAvailableAddrNum"].asString());
if(!value["MonitorConfigId"].isNull())
addrPoolsObject.monitorConfigId = value["MonitorConfigId"].asString();
if(!value["MonitorStatus"].isNull())
addrPoolsObject.monitorStatus = value["MonitorStatus"].asString();
if(!value["Name"].isNull())
addrPoolsObject.name = value["Name"].asString();
if(!value["Status"].isNull())
addrPoolsObject.status = value["Status"].asString();
if(!value["Type"].isNull())
addrPoolsObject.type = value["Type"].asString();
addrPools_.push_back(addrPoolsObject);
}
if(!value["TotalItems"].isNull())
totalItems_ = std::stoi(value["TotalItems"].asString());
if(!value["TotalPages"].isNull())
totalPages_ = std::stoi(value["TotalPages"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribeGtmInstanceAddressPoolsResult::getPageSize()const
{
return pageSize_;
}
int DescribeGtmInstanceAddressPoolsResult::getPageNumber()const
{
return pageNumber_;
}
int DescribeGtmInstanceAddressPoolsResult::getTotalPages()const
{
return totalPages_;
}
int DescribeGtmInstanceAddressPoolsResult::getTotalItems()const
{
return totalItems_;
}
std::vector<DescribeGtmInstanceAddressPoolsResult::AddrPool> DescribeGtmInstanceAddressPoolsResult::getAddrPools()const
{
return addrPools_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/DescribeGtmInstanceRequest.h>
using AlibabaCloud::Alidns::Model::DescribeGtmInstanceRequest;
DescribeGtmInstanceRequest::DescribeGtmInstanceRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstance")
{}
DescribeGtmInstanceRequest::~DescribeGtmInstanceRequest()
{}
std::string DescribeGtmInstanceRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeGtmInstanceRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeGtmInstanceRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeGtmInstanceRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeGtmInstanceRequest::getLang()const
{
return lang_;
}
void DescribeGtmInstanceRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,129 @@
/*
* 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/DescribeGtmInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeGtmInstanceResult::DescribeGtmInstanceResult() :
ServiceResult()
{}
DescribeGtmInstanceResult::DescribeGtmInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGtmInstanceResult::~DescribeGtmInstanceResult()
{}
void DescribeGtmInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
if(!value["InstanceName"].isNull())
instanceName_ = value["InstanceName"].asString();
if(!value["VersionCode"].isNull())
versionCode_ = value["VersionCode"].asString();
if(!value["ExpireTime"].isNull())
expireTime_ = value["ExpireTime"].asString();
if(!value["ExpireTimestamp"].isNull())
expireTimestamp_ = std::stol(value["ExpireTimestamp"].asString());
if(!value["Cname"].isNull())
cname_ = value["Cname"].asString();
if(!value["UserDomainName"].isNull())
userDomainName_ = value["UserDomainName"].asString();
if(!value["Ttl"].isNull())
ttl_ = std::stoi(value["Ttl"].asString());
if(!value["LbaStrategy"].isNull())
lbaStrategy_ = value["LbaStrategy"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["CreateTimestamp"].isNull())
createTimestamp_ = std::stol(value["CreateTimestamp"].asString());
if(!value["AlertGroup"].isNull())
alertGroup_ = value["AlertGroup"].asString();
}
std::string DescribeGtmInstanceResult::getInstanceName()const
{
return instanceName_;
}
std::string DescribeGtmInstanceResult::getVersionCode()const
{
return versionCode_;
}
long DescribeGtmInstanceResult::getExpireTimestamp()const
{
return expireTimestamp_;
}
std::string DescribeGtmInstanceResult::getUserDomainName()const
{
return userDomainName_;
}
std::string DescribeGtmInstanceResult::getAlertGroup()const
{
return alertGroup_;
}
std::string DescribeGtmInstanceResult::getLbaStrategy()const
{
return lbaStrategy_;
}
std::string DescribeGtmInstanceResult::getInstanceId()const
{
return instanceId_;
}
std::string DescribeGtmInstanceResult::getCreateTime()const
{
return createTime_;
}
std::string DescribeGtmInstanceResult::getExpireTime()const
{
return expireTime_;
}
std::string DescribeGtmInstanceResult::getCname()const
{
return cname_;
}
int DescribeGtmInstanceResult::getTtl()const
{
return ttl_;
}
long DescribeGtmInstanceResult::getCreateTimestamp()const
{
return createTimestamp_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/DescribeGtmInstanceStatusRequest.h>
using AlibabaCloud::Alidns::Model::DescribeGtmInstanceStatusRequest;
DescribeGtmInstanceStatusRequest::DescribeGtmInstanceStatusRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstanceStatus")
{}
DescribeGtmInstanceStatusRequest::~DescribeGtmInstanceStatusRequest()
{}
std::string DescribeGtmInstanceStatusRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeGtmInstanceStatusRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeGtmInstanceStatusRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeGtmInstanceStatusRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeGtmInstanceStatusRequest::getLang()const
{
return lang_;
}
void DescribeGtmInstanceStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/DescribeGtmInstanceStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeGtmInstanceStatusResult::DescribeGtmInstanceStatusResult() :
ServiceResult()
{}
DescribeGtmInstanceStatusResult::DescribeGtmInstanceStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGtmInstanceStatusResult::~DescribeGtmInstanceStatusResult()
{}
void DescribeGtmInstanceStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AccessStatus"].isNull())
accessStatus_ = value["AccessStatus"].asString();
if(!value["AlertStatus"].isNull())
alertStatus_ = value["AlertStatus"].asString();
}
std::string DescribeGtmInstanceStatusResult::getAlertStatus()const
{
return alertStatus_;
}
std::string DescribeGtmInstanceStatusResult::getAccessStatus()const
{
return accessStatus_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/DescribeGtmInstancesRequest.h>
using AlibabaCloud::Alidns::Model::DescribeGtmInstancesRequest;
DescribeGtmInstancesRequest::DescribeGtmInstancesRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstances")
{}
DescribeGtmInstancesRequest::~DescribeGtmInstancesRequest()
{}
std::string DescribeGtmInstancesRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeGtmInstancesRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
int DescribeGtmInstancesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeGtmInstancesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeGtmInstancesRequest::getLang()const
{
return lang_;
}
void DescribeGtmInstancesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeGtmInstancesRequest::getKeyword()const
{
return keyword_;
}
void DescribeGtmInstancesRequest::setKeyword(const std::string& keyword)
{
keyword_ = keyword;
setParameter("Keyword", keyword);
}
int DescribeGtmInstancesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeGtmInstancesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}

View File

@@ -0,0 +1,108 @@
/*
* 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/DescribeGtmInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeGtmInstancesResult::DescribeGtmInstancesResult() :
ServiceResult()
{}
DescribeGtmInstancesResult::DescribeGtmInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGtmInstancesResult::~DescribeGtmInstancesResult()
{}
void DescribeGtmInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGtmInstances = value["GtmInstances"]["GtmInstance"];
for (auto value : allGtmInstances)
{
GtmInstance gtmInstancesObject;
if(!value["InstanceId"].isNull())
gtmInstancesObject.instanceId = value["InstanceId"].asString();
if(!value["InstanceName"].isNull())
gtmInstancesObject.instanceName = value["InstanceName"].asString();
if(!value["Cname"].isNull())
gtmInstancesObject.cname = value["Cname"].asString();
if(!value["UserDomainName"].isNull())
gtmInstancesObject.userDomainName = value["UserDomainName"].asString();
if(!value["VersionCode"].isNull())
gtmInstancesObject.versionCode = value["VersionCode"].asString();
if(!value["Ttl"].isNull())
gtmInstancesObject.ttl = std::stoi(value["Ttl"].asString());
if(!value["LbaStrategy"].isNull())
gtmInstancesObject.lbaStrategy = value["LbaStrategy"].asString();
if(!value["CreateTime"].isNull())
gtmInstancesObject.createTime = value["CreateTime"].asString();
if(!value["CreateTimestamp"].isNull())
gtmInstancesObject.createTimestamp = std::stol(value["CreateTimestamp"].asString());
if(!value["ExpireTime"].isNull())
gtmInstancesObject.expireTime = value["ExpireTime"].asString();
if(!value["ExpireTimestamp"].isNull())
gtmInstancesObject.expireTimestamp = std::stol(value["ExpireTimestamp"].asString());
if(!value["AlertGroup"].isNull())
gtmInstancesObject.alertGroup = value["AlertGroup"].asString();
gtmInstances_.push_back(gtmInstancesObject);
}
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalItems"].isNull())
totalItems_ = std::stoi(value["TotalItems"].asString());
if(!value["TotalPages"].isNull())
totalPages_ = std::stoi(value["TotalPages"].asString());
}
int DescribeGtmInstancesResult::getPageSize()const
{
return pageSize_;
}
int DescribeGtmInstancesResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeGtmInstancesResult::GtmInstance> DescribeGtmInstancesResult::getGtmInstances()const
{
return gtmInstances_;
}
int DescribeGtmInstancesResult::getTotalPages()const
{
return totalPages_;
}
int DescribeGtmInstancesResult::getTotalItems()const
{
return totalItems_;
}

View File

@@ -0,0 +1,115 @@
/*
* 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/DescribeGtmLogsRequest.h>
using AlibabaCloud::Alidns::Model::DescribeGtmLogsRequest;
DescribeGtmLogsRequest::DescribeGtmLogsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmLogs")
{}
DescribeGtmLogsRequest::~DescribeGtmLogsRequest()
{}
std::string DescribeGtmLogsRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeGtmLogsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeGtmLogsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeGtmLogsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
int DescribeGtmLogsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeGtmLogsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeGtmLogsRequest::getLang()const
{
return lang_;
}
void DescribeGtmLogsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeGtmLogsRequest::getKeyword()const
{
return keyword_;
}
void DescribeGtmLogsRequest::setKeyword(const std::string& keyword)
{
keyword_ = keyword;
setParameter("Keyword", keyword);
}
long DescribeGtmLogsRequest::getStartTimestamp()const
{
return startTimestamp_;
}
void DescribeGtmLogsRequest::setStartTimestamp(long startTimestamp)
{
startTimestamp_ = startTimestamp;
setParameter("StartTimestamp", std::to_string(startTimestamp));
}
int DescribeGtmLogsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeGtmLogsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
long DescribeGtmLogsRequest::getEndTimestamp()const
{
return endTimestamp_;
}
void DescribeGtmLogsRequest::setEndTimestamp(long endTimestamp)
{
endTimestamp_ = endTimestamp;
setParameter("EndTimestamp", std::to_string(endTimestamp));
}

View File

@@ -0,0 +1,102 @@
/*
* 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/DescribeGtmLogsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeGtmLogsResult::DescribeGtmLogsResult() :
ServiceResult()
{}
DescribeGtmLogsResult::DescribeGtmLogsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGtmLogsResult::~DescribeGtmLogsResult()
{}
void DescribeGtmLogsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLogs = value["Logs"]["Log"];
for (auto value : allLogs)
{
Log logsObject;
if(!value["OperTime"].isNull())
logsObject.operTime = value["OperTime"].asString();
if(!value["OperAction"].isNull())
logsObject.operAction = value["OperAction"].asString();
if(!value["EntityType"].isNull())
logsObject.entityType = value["EntityType"].asString();
if(!value["EntityId"].isNull())
logsObject.entityId = value["EntityId"].asString();
if(!value["EntityName"].isNull())
logsObject.entityName = value["EntityName"].asString();
if(!value["OperIp"].isNull())
logsObject.operIp = value["OperIp"].asString();
if(!value["OperTimestamp"].isNull())
logsObject.operTimestamp = std::stol(value["OperTimestamp"].asString());
if(!value["Id"].isNull())
logsObject.id = std::stol(value["Id"].asString());
if(!value["Content"].isNull())
logsObject.content = value["Content"].asString();
logs_.push_back(logsObject);
}
if(!value["TotalItems"].isNull())
totalItems_ = std::stoi(value["TotalItems"].asString());
if(!value["TotalPages"].isNull())
totalPages_ = std::stoi(value["TotalPages"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int DescribeGtmLogsResult::getPageSize()const
{
return pageSize_;
}
int DescribeGtmLogsResult::getPageNumber()const
{
return pageNumber_;
}
int DescribeGtmLogsResult::getTotalPages()const
{
return totalPages_;
}
std::vector<DescribeGtmLogsResult::Log> DescribeGtmLogsResult::getLogs()const
{
return logs_;
}
int DescribeGtmLogsResult::getTotalItems()const
{
return totalItems_;
}

View File

@@ -0,0 +1,49 @@
/*
* 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/DescribeGtmMonitorAvailableConfigRequest.h>
using AlibabaCloud::Alidns::Model::DescribeGtmMonitorAvailableConfigRequest;
DescribeGtmMonitorAvailableConfigRequest::DescribeGtmMonitorAvailableConfigRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmMonitorAvailableConfig")
{}
DescribeGtmMonitorAvailableConfigRequest::~DescribeGtmMonitorAvailableConfigRequest()
{}
std::string DescribeGtmMonitorAvailableConfigRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeGtmMonitorAvailableConfigRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeGtmMonitorAvailableConfigRequest::getLang()const
{
return lang_;
}
void DescribeGtmMonitorAvailableConfigRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,68 @@
/*
* 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/DescribeGtmMonitorAvailableConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeGtmMonitorAvailableConfigResult::DescribeGtmMonitorAvailableConfigResult() :
ServiceResult()
{}
DescribeGtmMonitorAvailableConfigResult::DescribeGtmMonitorAvailableConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGtmMonitorAvailableConfigResult::~DescribeGtmMonitorAvailableConfigResult()
{}
void DescribeGtmMonitorAvailableConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIspCityNodes = value["IspCityNodes"]["IspCityNode"];
for (auto value : allIspCityNodes)
{
IspCityNode ispCityNodesObject;
if(!value["IspName"].isNull())
ispCityNodesObject.ispName = value["IspName"].asString();
if(!value["IspCode"].isNull())
ispCityNodesObject.ispCode = value["IspCode"].asString();
if(!value["CityName"].isNull())
ispCityNodesObject.cityName = value["CityName"].asString();
if(!value["CityCode"].isNull())
ispCityNodesObject.cityCode = value["CityCode"].asString();
if(!value["DefaultSelected"].isNull())
ispCityNodesObject.defaultSelected = value["DefaultSelected"].asString() == "true";
if(!value["Mainland"].isNull())
ispCityNodesObject.mainland = value["Mainland"].asString() == "true";
ispCityNodes_.push_back(ispCityNodesObject);
}
}
std::vector<DescribeGtmMonitorAvailableConfigResult::IspCityNode> DescribeGtmMonitorAvailableConfigResult::getIspCityNodes()const
{
return ispCityNodes_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/DescribeGtmMonitorConfigRequest.h>
using AlibabaCloud::Alidns::Model::DescribeGtmMonitorConfigRequest;
DescribeGtmMonitorConfigRequest::DescribeGtmMonitorConfigRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmMonitorConfig")
{}
DescribeGtmMonitorConfigRequest::~DescribeGtmMonitorConfigRequest()
{}
std::string DescribeGtmMonitorConfigRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeGtmMonitorConfigRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeGtmMonitorConfigRequest::getMonitorConfigId()const
{
return monitorConfigId_;
}
void DescribeGtmMonitorConfigRequest::setMonitorConfigId(const std::string& monitorConfigId)
{
monitorConfigId_ = monitorConfigId;
setParameter("MonitorConfigId", monitorConfigId);
}
std::string DescribeGtmMonitorConfigRequest::getLang()const
{
return lang_;
}
void DescribeGtmMonitorConfigRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,141 @@
/*
* 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/DescribeGtmMonitorConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeGtmMonitorConfigResult::DescribeGtmMonitorConfigResult() :
ServiceResult()
{}
DescribeGtmMonitorConfigResult::DescribeGtmMonitorConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGtmMonitorConfigResult::~DescribeGtmMonitorConfigResult()
{}
void DescribeGtmMonitorConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIspCityNodes = value["IspCityNodes"]["IspCityNode"];
for (auto value : allIspCityNodes)
{
IspCityNode ispCityNodesObject;
if(!value["CountryName"].isNull())
ispCityNodesObject.countryName = value["CountryName"].asString();
if(!value["CountryCode"].isNull())
ispCityNodesObject.countryCode = value["CountryCode"].asString();
if(!value["CityName"].isNull())
ispCityNodesObject.cityName = value["CityName"].asString();
if(!value["CityCode"].isNull())
ispCityNodesObject.cityCode = value["CityCode"].asString();
ispCityNodes_.push_back(ispCityNodesObject);
}
if(!value["MonitorConfigId"].isNull())
monitorConfigId_ = value["MonitorConfigId"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["CreateTimestamp"].isNull())
createTimestamp_ = std::stol(value["CreateTimestamp"].asString());
if(!value["UpdateTime"].isNull())
updateTime_ = value["UpdateTime"].asString();
if(!value["UpdateTimestamp"].isNull())
updateTimestamp_ = std::stol(value["UpdateTimestamp"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["ProtocolType"].isNull())
protocolType_ = value["ProtocolType"].asString();
if(!value["Interval"].isNull())
interval_ = std::stoi(value["Interval"].asString());
if(!value["EvaluationCount"].isNull())
evaluationCount_ = std::stoi(value["EvaluationCount"].asString());
if(!value["Timeout"].isNull())
timeout_ = std::stoi(value["Timeout"].asString());
if(!value["MonitorExtendInfo"].isNull())
monitorExtendInfo_ = value["MonitorExtendInfo"].asString();
}
std::vector<DescribeGtmMonitorConfigResult::IspCityNode> DescribeGtmMonitorConfigResult::getIspCityNodes()const
{
return ispCityNodes_;
}
std::string DescribeGtmMonitorConfigResult::getProtocolType()const
{
return protocolType_;
}
int DescribeGtmMonitorConfigResult::getTimeout()const
{
return timeout_;
}
std::string DescribeGtmMonitorConfigResult::getCreateTime()const
{
return createTime_;
}
std::string DescribeGtmMonitorConfigResult::getUpdateTime()const
{
return updateTime_;
}
int DescribeGtmMonitorConfigResult::getEvaluationCount()const
{
return evaluationCount_;
}
long DescribeGtmMonitorConfigResult::getUpdateTimestamp()const
{
return updateTimestamp_;
}
std::string DescribeGtmMonitorConfigResult::getMonitorExtendInfo()const
{
return monitorExtendInfo_;
}
std::string DescribeGtmMonitorConfigResult::getMonitorConfigId()const
{
return monitorConfigId_;
}
long DescribeGtmMonitorConfigResult::getCreateTimestamp()const
{
return createTimestamp_;
}
std::string DescribeGtmMonitorConfigResult::getName()const
{
return name_;
}
int DescribeGtmMonitorConfigResult::getInterval()const
{
return interval_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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/DescribeRecordLogsRequest.h>
using AlibabaCloud::Alidns::Model::DescribeRecordLogsRequest;
DescribeRecordLogsRequest::DescribeRecordLogsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeRecordLogs")
{}
DescribeRecordLogsRequest::~DescribeRecordLogsRequest()
{}
std::string DescribeRecordLogsRequest::getEndDate()const
{
return endDate_;
}
void DescribeRecordLogsRequest::setEndDate(const std::string& endDate)
{
endDate_ = endDate;
setParameter("EndDate", endDate);
}
std::string DescribeRecordLogsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeRecordLogsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeRecordLogsRequest::getDomainName()const
{
return domainName_;
}
void DescribeRecordLogsRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeRecordLogsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeRecordLogsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeRecordLogsRequest::getLang()const
{
return lang_;
}
void DescribeRecordLogsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeRecordLogsRequest::getKeyWord()const
{
return keyWord_;
}
void DescribeRecordLogsRequest::setKeyWord(const std::string& keyWord)
{
keyWord_ = keyWord;
setParameter("KeyWord", keyWord);
}
std::string DescribeRecordLogsRequest::getStartDate()const
{
return startDate_;
}
void DescribeRecordLogsRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setParameter("StartDate", startDate);
}
long DescribeRecordLogsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeRecordLogsRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeRecordLogsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeRecordLogsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,87 @@
/*
* 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/DescribeRecordLogsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeRecordLogsResult::DescribeRecordLogsResult() :
ServiceResult()
{}
DescribeRecordLogsResult::DescribeRecordLogsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRecordLogsResult::~DescribeRecordLogsResult()
{}
void DescribeRecordLogsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRecordLogs = value["RecordLogs"]["RecordLog"];
for (auto value : allRecordLogs)
{
RecordLog recordLogsObject;
if(!value["ActionTime"].isNull())
recordLogsObject.actionTime = value["ActionTime"].asString();
if(!value["ActionTimestamp"].isNull())
recordLogsObject.actionTimestamp = std::stol(value["ActionTimestamp"].asString());
if(!value["Action"].isNull())
recordLogsObject.action = value["Action"].asString();
if(!value["Message"].isNull())
recordLogsObject.message = value["Message"].asString();
if(!value["ClientIp"].isNull())
recordLogsObject.clientIp = value["ClientIp"].asString();
recordLogs_.push_back(recordLogsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
long DescribeRecordLogsResult::getTotalCount()const
{
return totalCount_;
}
long DescribeRecordLogsResult::getPageSize()const
{
return pageSize_;
}
long DescribeRecordLogsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeRecordLogsResult::RecordLog> DescribeRecordLogsResult::getRecordLogs()const
{
return recordLogs_;
}

View File

@@ -0,0 +1,115 @@
/*
* 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/DescribeSubDomainRecordsRequest.h>
using AlibabaCloud::Alidns::Model::DescribeSubDomainRecordsRequest;
DescribeSubDomainRecordsRequest::DescribeSubDomainRecordsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeSubDomainRecords")
{}
DescribeSubDomainRecordsRequest::~DescribeSubDomainRecordsRequest()
{}
std::string DescribeSubDomainRecordsRequest::getLine()const
{
return line_;
}
void DescribeSubDomainRecordsRequest::setLine(const std::string& line)
{
line_ = line;
setParameter("Line", line);
}
std::string DescribeSubDomainRecordsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeSubDomainRecordsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
long DescribeSubDomainRecordsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeSubDomainRecordsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeSubDomainRecordsRequest::getSubDomain()const
{
return subDomain_;
}
void DescribeSubDomainRecordsRequest::setSubDomain(const std::string& subDomain)
{
subDomain_ = subDomain;
setParameter("SubDomain", subDomain);
}
std::string DescribeSubDomainRecordsRequest::getLang()const
{
return lang_;
}
void DescribeSubDomainRecordsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeSubDomainRecordsRequest::getType()const
{
return type_;
}
void DescribeSubDomainRecordsRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
long DescribeSubDomainRecordsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeSubDomainRecordsRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeSubDomainRecordsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeSubDomainRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,99 @@
/*
* 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/DescribeSubDomainRecordsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeSubDomainRecordsResult::DescribeSubDomainRecordsResult() :
ServiceResult()
{}
DescribeSubDomainRecordsResult::DescribeSubDomainRecordsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSubDomainRecordsResult::~DescribeSubDomainRecordsResult()
{}
void DescribeSubDomainRecordsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomainRecords = value["DomainRecords"]["Record"];
for (auto value : allDomainRecords)
{
Record domainRecordsObject;
if(!value["DomainName"].isNull())
domainRecordsObject.domainName = value["DomainName"].asString();
if(!value["RecordId"].isNull())
domainRecordsObject.recordId = value["RecordId"].asString();
if(!value["RR"].isNull())
domainRecordsObject.rR = value["RR"].asString();
if(!value["Type"].isNull())
domainRecordsObject.type = value["Type"].asString();
if(!value["Value"].isNull())
domainRecordsObject.value = value["Value"].asString();
if(!value["TTL"].isNull())
domainRecordsObject.tTL = std::stol(value["TTL"].asString());
if(!value["Priority"].isNull())
domainRecordsObject.priority = std::stol(value["Priority"].asString());
if(!value["Line"].isNull())
domainRecordsObject.line = value["Line"].asString();
if(!value["Status"].isNull())
domainRecordsObject.status = value["Status"].asString();
if(!value["Locked"].isNull())
domainRecordsObject.locked = value["Locked"].asString() == "true";
if(!value["Weight"].isNull())
domainRecordsObject.weight = std::stoi(value["Weight"].asString());
domainRecords_.push_back(domainRecordsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
long DescribeSubDomainRecordsResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeSubDomainRecordsResult::Record> DescribeSubDomainRecordsResult::getDomainRecords()const
{
return domainRecords_;
}
long DescribeSubDomainRecordsResult::getPageSize()const
{
return pageSize_;
}
long DescribeSubDomainRecordsResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/DescribeSupportLinesRequest.h>
using AlibabaCloud::Alidns::Model::DescribeSupportLinesRequest;
DescribeSupportLinesRequest::DescribeSupportLinesRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeSupportLines")
{}
DescribeSupportLinesRequest::~DescribeSupportLinesRequest()
{}
std::string DescribeSupportLinesRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeSupportLinesRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeSupportLinesRequest::getDomainName()const
{
return domainName_;
}
void DescribeSupportLinesRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeSupportLinesRequest::getLang()const
{
return lang_;
}
void DescribeSupportLinesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeSupportLinesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeSupportLinesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,64 @@
/*
* 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/DescribeSupportLinesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeSupportLinesResult::DescribeSupportLinesResult() :
ServiceResult()
{}
DescribeSupportLinesResult::DescribeSupportLinesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSupportLinesResult::~DescribeSupportLinesResult()
{}
void DescribeSupportLinesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRecordLines = value["RecordLines"]["RecordLine"];
for (auto value : allRecordLines)
{
RecordLine recordLinesObject;
if(!value["LineCode"].isNull())
recordLinesObject.lineCode = value["LineCode"].asString();
if(!value["FatherCode"].isNull())
recordLinesObject.fatherCode = value["FatherCode"].asString();
if(!value["LineName"].isNull())
recordLinesObject.lineName = value["LineName"].asString();
if(!value["LineDisplayName"].isNull())
recordLinesObject.lineDisplayName = value["LineDisplayName"].asString();
recordLines_.push_back(recordLinesObject);
}
}
std::vector<DescribeSupportLinesResult::RecordLine> DescribeSupportLinesResult::getRecordLines()const
{
return recordLines_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/GetMainDomainNameRequest.h>
using AlibabaCloud::Alidns::Model::GetMainDomainNameRequest;
GetMainDomainNameRequest::GetMainDomainNameRequest() :
RpcServiceRequest("alidns", "2015-01-09", "GetMainDomainName")
{}
GetMainDomainNameRequest::~GetMainDomainNameRequest()
{}
std::string GetMainDomainNameRequest::getInputString()const
{
return inputString_;
}
void GetMainDomainNameRequest::setInputString(const std::string& inputString)
{
inputString_ = inputString;
setParameter("InputString", inputString);
}
std::string GetMainDomainNameRequest::getUserClientIp()const
{
return userClientIp_;
}
void GetMainDomainNameRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string GetMainDomainNameRequest::getLang()const
{
return lang_;
}
void GetMainDomainNameRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string GetMainDomainNameRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetMainDomainNameRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,66 @@
/*
* 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/GetMainDomainNameResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
GetMainDomainNameResult::GetMainDomainNameResult() :
ServiceResult()
{}
GetMainDomainNameResult::GetMainDomainNameResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMainDomainNameResult::~GetMainDomainNameResult()
{}
void GetMainDomainNameResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["RR"].isNull())
rR_ = value["RR"].asString();
if(!value["DomainLevel"].isNull())
domainLevel_ = std::stol(value["DomainLevel"].asString());
}
std::string GetMainDomainNameResult::getRR()const
{
return rR_;
}
std::string GetMainDomainNameResult::getDomainName()const
{
return domainName_;
}
long GetMainDomainNameResult::getDomainLevel()const
{
return domainLevel_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/ModifyHichinaDomainDNSRequest.h>
using AlibabaCloud::Alidns::Model::ModifyHichinaDomainDNSRequest;
ModifyHichinaDomainDNSRequest::ModifyHichinaDomainDNSRequest() :
RpcServiceRequest("alidns", "2015-01-09", "ModifyHichinaDomainDNS")
{}
ModifyHichinaDomainDNSRequest::~ModifyHichinaDomainDNSRequest()
{}
std::string ModifyHichinaDomainDNSRequest::getUserClientIp()const
{
return userClientIp_;
}
void ModifyHichinaDomainDNSRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string ModifyHichinaDomainDNSRequest::getDomainName()const
{
return domainName_;
}
void ModifyHichinaDomainDNSRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string ModifyHichinaDomainDNSRequest::getLang()const
{
return lang_;
}
void ModifyHichinaDomainDNSRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string ModifyHichinaDomainDNSRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ModifyHichinaDomainDNSRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,61 @@
/*
* 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/ModifyHichinaDomainDNSResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
ModifyHichinaDomainDNSResult::ModifyHichinaDomainDNSResult() :
ServiceResult()
{}
ModifyHichinaDomainDNSResult::ModifyHichinaDomainDNSResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyHichinaDomainDNSResult::~ModifyHichinaDomainDNSResult()
{}
void ModifyHichinaDomainDNSResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allOriginalDnsServers = value["OriginalDnsServers"]["DnsServer"];
for (const auto &item : allOriginalDnsServers)
originalDnsServers_.push_back(item.asString());
auto allNewDnsServers = value["NewDnsServers"]["DnsServer"];
for (const auto &item : allNewDnsServers)
newDnsServers_.push_back(item.asString());
}
std::vector<std::string> ModifyHichinaDomainDNSResult::getNewDnsServers()const
{
return newDnsServers_;
}
std::vector<std::string> ModifyHichinaDomainDNSResult::getOriginalDnsServers()const
{
return originalDnsServers_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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")
{}
OperateBatchDomainRequest::~OperateBatchDomainRequest()
{}
std::string OperateBatchDomainRequest::getUserClientIp()const
{
return userClientIp_;
}
void OperateBatchDomainRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
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);
setParameter(str + ".Rr", obj.rr);
setParameter(str + ".Line", obj.line);
setParameter(str + ".Domain", obj.domain);
setParameter(str + ".Type", obj.type);
setParameter(str + ".Priority", std::to_string(obj.priority));
setParameter(str + ".Value", obj.value);
setParameter(str + ".Ttl", std::to_string(obj.ttl));
}
}
std::string OperateBatchDomainRequest::getLang()const
{
return lang_;
}
void OperateBatchDomainRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string OperateBatchDomainRequest::getType()const
{
return type_;
}
void OperateBatchDomainRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/OperateBatchDomainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
OperateBatchDomainResult::OperateBatchDomainResult() :
ServiceResult()
{}
OperateBatchDomainResult::OperateBatchDomainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
OperateBatchDomainResult::~OperateBatchDomainResult()
{}
void OperateBatchDomainResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = std::stol(value["TaskId"].asString());
}
long OperateBatchDomainResult::getTaskId()const
{
return taskId_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/QueryCreateInstancePriceRequest.h>
using AlibabaCloud::Alidns::Model::QueryCreateInstancePriceRequest;
QueryCreateInstancePriceRequest::QueryCreateInstancePriceRequest() :
RpcServiceRequest("alidns", "2015-01-09", "QueryCreateInstancePrice")
{}
QueryCreateInstancePriceRequest::~QueryCreateInstancePriceRequest()
{}
int QueryCreateInstancePriceRequest::getMonth()const
{
return month_;
}
void QueryCreateInstancePriceRequest::setMonth(int month)
{
month_ = month;
setParameter("Month", std::to_string(month));
}
std::string QueryCreateInstancePriceRequest::getUserClientIp()const
{
return userClientIp_;
}
void QueryCreateInstancePriceRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string QueryCreateInstancePriceRequest::getLang()const
{
return lang_;
}
void QueryCreateInstancePriceRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string QueryCreateInstancePriceRequest::getInstanceVersion()const
{
return instanceVersion_;
}
void QueryCreateInstancePriceRequest::setInstanceVersion(const std::string& instanceVersion)
{
instanceVersion_ = instanceVersion;
setParameter("InstanceVersion", instanceVersion);
}
long QueryCreateInstancePriceRequest::getOwnerId()const
{
return ownerId_;
}
void QueryCreateInstancePriceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryCreateInstancePriceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryCreateInstancePriceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,90 @@
/*
* 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/QueryCreateInstancePriceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
QueryCreateInstancePriceResult::QueryCreateInstancePriceResult() :
ServiceResult()
{}
QueryCreateInstancePriceResult::QueryCreateInstancePriceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryCreateInstancePriceResult::~QueryCreateInstancePriceResult()
{}
void QueryCreateInstancePriceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRules = value["Rules"]["Rule"];
for (auto value : allRules)
{
Rule rulesObject;
if(!value["RuleId"].isNull())
rulesObject.ruleId = std::stol(value["RuleId"].asString());
if(!value["Name"].isNull())
rulesObject.name = value["Name"].asString();
if(!value["Title"].isNull())
rulesObject.title = value["Title"].asString();
rules_.push_back(rulesObject);
}
if(!value["Origin"].isNull())
origin_ = value["Origin"].asString();
if(!value["Discount"].isNull())
discount_ = value["Discount"].asString();
if(!value["Amount"].isNull())
amount_ = value["Amount"].asString();
if(!value["Currency"].isNull())
currency_ = value["Currency"].asString();
}
std::string QueryCreateInstancePriceResult::getOrigin()const
{
return origin_;
}
std::string QueryCreateInstancePriceResult::getDiscount()const
{
return discount_;
}
std::string QueryCreateInstancePriceResult::getAmount()const
{
return amount_;
}
std::string QueryCreateInstancePriceResult::getCurrency()const
{
return currency_;
}
std::vector<QueryCreateInstancePriceResult::Rule> QueryCreateInstancePriceResult::getRules()const
{
return rules_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/SetDNSSLBStatusRequest.h>
using AlibabaCloud::Alidns::Model::SetDNSSLBStatusRequest;
SetDNSSLBStatusRequest::SetDNSSLBStatusRequest() :
RpcServiceRequest("alidns", "2015-01-09", "SetDNSSLBStatus")
{}
SetDNSSLBStatusRequest::~SetDNSSLBStatusRequest()
{}
std::string SetDNSSLBStatusRequest::getUserClientIp()const
{
return userClientIp_;
}
void SetDNSSLBStatusRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string SetDNSSLBStatusRequest::getSubDomain()const
{
return subDomain_;
}
void SetDNSSLBStatusRequest::setSubDomain(const std::string& subDomain)
{
subDomain_ = subDomain;
setParameter("SubDomain", subDomain);
}
std::string SetDNSSLBStatusRequest::getLang()const
{
return lang_;
}
void SetDNSSLBStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
bool SetDNSSLBStatusRequest::getOpen()const
{
return open_;
}
void SetDNSSLBStatusRequest::setOpen(bool open)
{
open_ = open;
setParameter("Open", open ? "true" : "false");
}
std::string SetDNSSLBStatusRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SetDNSSLBStatusRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/SetDNSSLBStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
SetDNSSLBStatusResult::SetDNSSLBStatusResult() :
ServiceResult()
{}
SetDNSSLBStatusResult::SetDNSSLBStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetDNSSLBStatusResult::~SetDNSSLBStatusResult()
{}
void SetDNSSLBStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RecordCount"].isNull())
recordCount_ = std::stol(value["RecordCount"].asString());
if(!value["Open"].isNull())
open_ = value["Open"].asString() == "true";
}
long SetDNSSLBStatusResult::getRecordCount()const
{
return recordCount_;
}
bool SetDNSSLBStatusResult::getOpen()const
{
return open_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/SetDomainRecordStatusRequest.h>
using AlibabaCloud::Alidns::Model::SetDomainRecordStatusRequest;
SetDomainRecordStatusRequest::SetDomainRecordStatusRequest() :
RpcServiceRequest("alidns", "2015-01-09", "SetDomainRecordStatus")
{}
SetDomainRecordStatusRequest::~SetDomainRecordStatusRequest()
{}
std::string SetDomainRecordStatusRequest::getRecordId()const
{
return recordId_;
}
void SetDomainRecordStatusRequest::setRecordId(const std::string& recordId)
{
recordId_ = recordId;
setParameter("RecordId", recordId);
}
std::string SetDomainRecordStatusRequest::getUserClientIp()const
{
return userClientIp_;
}
void SetDomainRecordStatusRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string SetDomainRecordStatusRequest::getLang()const
{
return lang_;
}
void SetDomainRecordStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string SetDomainRecordStatusRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SetDomainRecordStatusRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string SetDomainRecordStatusRequest::getStatus()const
{
return status_;
}
void SetDomainRecordStatusRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/SetDomainRecordStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
SetDomainRecordStatusResult::SetDomainRecordStatusResult() :
ServiceResult()
{}
SetDomainRecordStatusResult::SetDomainRecordStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetDomainRecordStatusResult::~SetDomainRecordStatusResult()
{}
void SetDomainRecordStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RecordId"].isNull())
recordId_ = value["RecordId"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
}
std::string SetDomainRecordStatusResult::getStatus()const
{
return status_;
}
std::string SetDomainRecordStatusResult::getRecordId()const
{
return recordId_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/SetGtmAccessModeRequest.h>
using AlibabaCloud::Alidns::Model::SetGtmAccessModeRequest;
SetGtmAccessModeRequest::SetGtmAccessModeRequest() :
RpcServiceRequest("alidns", "2015-01-09", "SetGtmAccessMode")
{}
SetGtmAccessModeRequest::~SetGtmAccessModeRequest()
{}
std::string SetGtmAccessModeRequest::getUserClientIp()const
{
return userClientIp_;
}
void SetGtmAccessModeRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string SetGtmAccessModeRequest::getStrategyId()const
{
return strategyId_;
}
void SetGtmAccessModeRequest::setStrategyId(const std::string& strategyId)
{
strategyId_ = strategyId;
setParameter("StrategyId", strategyId);
}
std::string SetGtmAccessModeRequest::getLang()const
{
return lang_;
}
void SetGtmAccessModeRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string SetGtmAccessModeRequest::getAccessMode()const
{
return accessMode_;
}
void SetGtmAccessModeRequest::setAccessMode(const std::string& accessMode)
{
accessMode_ = accessMode;
setParameter("AccessMode", accessMode);
}

Some files were not shown because too many files have changed in this diff Show More