| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- /*
- * 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")
- {
- setMethod(HttpRequest::Method::Post);
- }
- AddGtmAddressPoolRequest::~AddGtmAddressPoolRequest()
- {}
- std::string AddGtmAddressPoolRequest::getMonitorExtendInfo()const
- {
- return monitorExtendInfo_;
- }
- void AddGtmAddressPoolRequest::setMonitorExtendInfo(const std::string& monitorExtendInfo)
- {
- monitorExtendInfo_ = monitorExtendInfo;
- setParameter("MonitorExtendInfo", monitorExtendInfo);
- }
- std::string AddGtmAddressPoolRequest::getType()const
- {
- return type_;
- }
- void AddGtmAddressPoolRequest::setType(const std::string& type)
- {
- type_ = type;
- setParameter("Type", type);
- }
- int AddGtmAddressPoolRequest::getTimeout()const
- {
- return timeout_;
- }
- void AddGtmAddressPoolRequest::setTimeout(int timeout)
- {
- timeout_ = timeout;
- setParameter("Timeout", std::to_string(timeout));
- }
- int AddGtmAddressPoolRequest::getMinAvailableAddrNum()const
- {
- return minAvailableAddrNum_;
- }
- void AddGtmAddressPoolRequest::setMinAvailableAddrNum(int minAvailableAddrNum)
- {
- minAvailableAddrNum_ = minAvailableAddrNum;
- setParameter("MinAvailableAddrNum", std::to_string(minAvailableAddrNum));
- }
- int AddGtmAddressPoolRequest::getEvaluationCount()const
- {
- return evaluationCount_;
- }
- void AddGtmAddressPoolRequest::setEvaluationCount(int evaluationCount)
- {
- evaluationCount_ = evaluationCount;
- setParameter("EvaluationCount", std::to_string(evaluationCount));
- }
- std::string AddGtmAddressPoolRequest::getLang()const
- {
- return lang_;
- }
- void AddGtmAddressPoolRequest::setLang(const std::string& lang)
- {
- lang_ = lang;
- setParameter("Lang", lang);
- }
- std::vector<AddGtmAddressPoolRequest::Addr> AddGtmAddressPoolRequest::getAddr()const
- {
- return addr_;
- }
- void AddGtmAddressPoolRequest::setAddr(const std::vector<Addr>& addr)
- {
- addr_ = addr;
- for(int dep1 = 0; dep1!= addr.size(); dep1++) {
- auto addrObj = addr.at(dep1);
- std::string addrObjStr = "Addr." + std::to_string(dep1 + 1);
- setParameter(addrObjStr + ".Mode", addrObj.mode);
- setParameter(addrObjStr + ".LbaWeight", std::to_string(addrObj.lbaWeight));
- setParameter(addrObjStr + ".Value", addrObj.value);
- }
- }
- std::string AddGtmAddressPoolRequest::getMonitorStatus()const
- {
- return monitorStatus_;
- }
- void AddGtmAddressPoolRequest::setMonitorStatus(const std::string& monitorStatus)
- {
- monitorStatus_ = monitorStatus;
- setParameter("MonitorStatus", monitorStatus);
- }
- 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::getProtocolType()const
- {
- return protocolType_;
- }
- void AddGtmAddressPoolRequest::setProtocolType(const std::string& protocolType)
- {
- protocolType_ = protocolType;
- setParameter("ProtocolType", protocolType);
- }
- int AddGtmAddressPoolRequest::getInterval()const
- {
- return interval_;
- }
- void AddGtmAddressPoolRequest::setInterval(int interval)
- {
- interval_ = interval;
- setParameter("Interval", std::to_string(interval));
- }
- std::vector<AddGtmAddressPoolRequest::IspCityNode> AddGtmAddressPoolRequest::getIspCityNode()const
- {
- return ispCityNode_;
- }
- void AddGtmAddressPoolRequest::setIspCityNode(const std::vector<IspCityNode>& ispCityNode)
- {
- ispCityNode_ = ispCityNode;
- for(int dep1 = 0; dep1!= ispCityNode.size(); dep1++) {
- auto ispCityNodeObj = ispCityNode.at(dep1);
- std::string ispCityNodeObjStr = "IspCityNode." + std::to_string(dep1 + 1);
- setParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode);
- setParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode);
- }
- }
|