regenerate code

This commit is contained in:
wb-hx510875
2020-03-26 17:27:13 +08:00
committed by Axios
parent cba94f2119
commit f0c2600a26
6249 changed files with 188711 additions and 43443 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::ActivateSmartAccessGatewayRequest;
ActivateSmartAccessGatewayRequest::ActivateSmartAccessGatewayRequest() :
RpcServiceRequest("smartag", "2018-03-13", "ActivateSmartAccessGateway")
{}
{
setMethod(HttpRequest::Method::Post);
}
ActivateSmartAccessGatewayRequest::~ActivateSmartAccessGatewayRequest()
{}
@@ -33,7 +35,7 @@ long ActivateSmartAccessGatewayRequest::getResourceOwnerId()const
void ActivateSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ActivateSmartAccessGatewayRequest::getRegionId()const
@@ -44,7 +46,7 @@ std::string ActivateSmartAccessGatewayRequest::getRegionId()const
void ActivateSmartAccessGatewayRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string ActivateSmartAccessGatewayRequest::getResourceOwnerAccount()const
@@ -55,7 +57,7 @@ std::string ActivateSmartAccessGatewayRequest::getResourceOwnerAccount()const
void ActivateSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ActivateSmartAccessGatewayRequest::getOwnerAccount()const
@@ -66,7 +68,7 @@ std::string ActivateSmartAccessGatewayRequest::getOwnerAccount()const
void ActivateSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long ActivateSmartAccessGatewayRequest::getOwnerId()const
@@ -77,7 +79,7 @@ long ActivateSmartAccessGatewayRequest::getOwnerId()const
void ActivateSmartAccessGatewayRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ActivateSmartAccessGatewayRequest::getSmartAGId()const
@@ -88,6 +90,6 @@ std::string ActivateSmartAccessGatewayRequest::getSmartAGId()const
void ActivateSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setCoreParameter("SmartAGId", smartAGId);
setParameter("SmartAGId", smartAGId);
}

View File

@@ -20,74 +20,76 @@ using AlibabaCloud::Smartag::Model::ActiveFlowLogRequest;
ActiveFlowLogRequest::ActiveFlowLogRequest() :
RpcServiceRequest("smartag", "2018-03-13", "ActiveFlowLog")
{}
{
setMethod(HttpRequest::Method::Post);
}
ActiveFlowLogRequest::~ActiveFlowLogRequest()
{}
long ActiveFlowLogRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ActiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ActiveFlowLogRequest::getRegionId()const
{
return regionId_;
}
void ActiveFlowLogRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string ActiveFlowLogRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ActiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ActiveFlowLogRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ActiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long ActiveFlowLogRequest::getOwnerId()const
{
return ownerId_;
}
void ActiveFlowLogRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string ActiveFlowLogRequest::getFlowLogId()const
{
return flowLogId_;
}
void ActiveFlowLogRequest::setFlowLogId(const std::string& flowLogId)
{
flowLogId_ = flowLogId;
setCoreParameter("FlowLogId", flowLogId);
}
long ActiveFlowLogRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ActiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ActiveFlowLogRequest::getRegionId()const
{
return regionId_;
}
void ActiveFlowLogRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ActiveFlowLogRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ActiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ActiveFlowLogRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ActiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long ActiveFlowLogRequest::getOwnerId()const
{
return ownerId_;
}
void ActiveFlowLogRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ActiveFlowLogRequest::getFlowLogId()const
{
return flowLogId_;
}
void ActiveFlowLogRequest::setFlowLogId(const std::string& flowLogId)
{
flowLogId_ = flowLogId;
setParameter("FlowLogId", flowLogId);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::AddACLRuleRequest;
AddACLRuleRequest::AddACLRuleRequest() :
RpcServiceRequest("smartag", "2018-03-13", "AddACLRule")
{}
{
setMethod(HttpRequest::Method::Post);
}
AddACLRuleRequest::~AddACLRuleRequest()
{}
@@ -33,7 +35,7 @@ long AddACLRuleRequest::getResourceOwnerId()const
void AddACLRuleRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddACLRuleRequest::getSourcePortRange()const
@@ -44,7 +46,7 @@ std::string AddACLRuleRequest::getSourcePortRange()const
void AddACLRuleRequest::setSourcePortRange(const std::string& sourcePortRange)
{
sourcePortRange_ = sourcePortRange;
setCoreParameter("SourcePortRange", sourcePortRange);
setParameter("SourcePortRange", sourcePortRange);
}
std::string AddACLRuleRequest::getSourceCidr()const
@@ -55,7 +57,7 @@ std::string AddACLRuleRequest::getSourceCidr()const
void AddACLRuleRequest::setSourceCidr(const std::string& sourceCidr)
{
sourceCidr_ = sourceCidr;
setCoreParameter("SourceCidr", sourceCidr);
setParameter("SourceCidr", sourceCidr);
}
std::string AddACLRuleRequest::getDescription()const
@@ -66,7 +68,7 @@ std::string AddACLRuleRequest::getDescription()const
void AddACLRuleRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
setParameter("Description", description);
}
std::string AddACLRuleRequest::getType()const
@@ -77,7 +79,7 @@ std::string AddACLRuleRequest::getType()const
void AddACLRuleRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
setParameter("Type", type);
}
std::string AddACLRuleRequest::getDestCidr()const
@@ -88,7 +90,7 @@ std::string AddACLRuleRequest::getDestCidr()const
void AddACLRuleRequest::setDestCidr(const std::string& destCidr)
{
destCidr_ = destCidr;
setCoreParameter("DestCidr", destCidr);
setParameter("DestCidr", destCidr);
}
std::string AddACLRuleRequest::getRegionId()const
@@ -99,7 +101,7 @@ std::string AddACLRuleRequest::getRegionId()const
void AddACLRuleRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string AddACLRuleRequest::getDirection()const
@@ -110,7 +112,7 @@ std::string AddACLRuleRequest::getDirection()const
void AddACLRuleRequest::setDirection(const std::string& direction)
{
direction_ = direction;
setCoreParameter("Direction", direction);
setParameter("Direction", direction);
}
std::string AddACLRuleRequest::getPolicy()const
@@ -121,7 +123,7 @@ std::string AddACLRuleRequest::getPolicy()const
void AddACLRuleRequest::setPolicy(const std::string& policy)
{
policy_ = policy;
setCoreParameter("Policy", policy);
setParameter("Policy", policy);
}
std::string AddACLRuleRequest::getAclId()const
@@ -132,7 +134,7 @@ std::string AddACLRuleRequest::getAclId()const
void AddACLRuleRequest::setAclId(const std::string& aclId)
{
aclId_ = aclId;
setCoreParameter("AclId", aclId);
setParameter("AclId", aclId);
}
std::string AddACLRuleRequest::getResourceOwnerAccount()const
@@ -143,7 +145,7 @@ std::string AddACLRuleRequest::getResourceOwnerAccount()const
void AddACLRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddACLRuleRequest::getIpProtocol()const
@@ -154,7 +156,7 @@ std::string AddACLRuleRequest::getIpProtocol()const
void AddACLRuleRequest::setIpProtocol(const std::string& ipProtocol)
{
ipProtocol_ = ipProtocol;
setCoreParameter("IpProtocol", ipProtocol);
setParameter("IpProtocol", ipProtocol);
}
std::string AddACLRuleRequest::getOwnerAccount()const
@@ -165,7 +167,7 @@ std::string AddACLRuleRequest::getOwnerAccount()const
void AddACLRuleRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long AddACLRuleRequest::getOwnerId()const
@@ -176,7 +178,7 @@ long AddACLRuleRequest::getOwnerId()const
void AddACLRuleRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
int AddACLRuleRequest::getPriority()const
@@ -187,7 +189,7 @@ int AddACLRuleRequest::getPriority()const
void AddACLRuleRequest::setPriority(int priority)
{
priority_ = priority;
setCoreParameter("Priority", std::to_string(priority));
setParameter("Priority", std::to_string(priority));
}
std::string AddACLRuleRequest::getDestPortRange()const
@@ -198,6 +200,17 @@ std::string AddACLRuleRequest::getDestPortRange()const
void AddACLRuleRequest::setDestPortRange(const std::string& destPortRange)
{
destPortRange_ = destPortRange;
setCoreParameter("DestPortRange", destPortRange);
setParameter("DestPortRange", destPortRange);
}
std::string AddACLRuleRequest::getName()const
{
return name_;
}
void AddACLRuleRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -65,6 +65,8 @@ void AddACLRuleResult::parse(const std::string &payload)
gmtCreate_ = std::stol(value["GmtCreate"].asString());
if(!value["Type"].isNull())
type_ = value["Type"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
}
@@ -113,6 +115,11 @@ std::string AddACLRuleResult::getDirection()const
return direction_;
}
std::string AddACLRuleResult::getName()const
{
return name_;
}
long AddACLRuleResult::getGmtCreate()const
{
return gmtCreate_;

View File

@@ -20,140 +20,142 @@ using AlibabaCloud::Smartag::Model::AddDnatEntryRequest;
AddDnatEntryRequest::AddDnatEntryRequest() :
RpcServiceRequest("smartag", "2018-03-13", "AddDnatEntry")
{}
{
setMethod(HttpRequest::Method::Post);
}
AddDnatEntryRequest::~AddDnatEntryRequest()
{}
long AddDnatEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddDnatEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddDnatEntryRequest::getType()const
{
return type_;
}
void AddDnatEntryRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
}
std::string AddDnatEntryRequest::getInternalIp()const
{
return internalIp_;
}
void AddDnatEntryRequest::setInternalIp(const std::string& internalIp)
{
internalIp_ = internalIp;
setCoreParameter("InternalIp", internalIp);
}
std::string AddDnatEntryRequest::getRegionId()const
{
return regionId_;
}
void AddDnatEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string AddDnatEntryRequest::getExternalIp()const
{
return externalIp_;
}
void AddDnatEntryRequest::setExternalIp(const std::string& externalIp)
{
externalIp_ = externalIp;
setCoreParameter("ExternalIp", externalIp);
}
std::string AddDnatEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddDnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddDnatEntryRequest::getIpProtocol()const
{
return ipProtocol_;
}
void AddDnatEntryRequest::setIpProtocol(const std::string& ipProtocol)
{
ipProtocol_ = ipProtocol;
setCoreParameter("IpProtocol", ipProtocol);
}
std::string AddDnatEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddDnatEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long AddDnatEntryRequest::getOwnerId()const
{
return ownerId_;
}
void AddDnatEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string AddDnatEntryRequest::getSagId()const
{
return sagId_;
}
void AddDnatEntryRequest::setSagId(const std::string& sagId)
{
sagId_ = sagId;
setCoreParameter("SagId", sagId);
}
std::string AddDnatEntryRequest::getInternalPort()const
{
return internalPort_;
}
void AddDnatEntryRequest::setInternalPort(const std::string& internalPort)
{
internalPort_ = internalPort;
setCoreParameter("InternalPort", internalPort);
}
std::string AddDnatEntryRequest::getExternalPort()const
{
return externalPort_;
}
void AddDnatEntryRequest::setExternalPort(const std::string& externalPort)
{
externalPort_ = externalPort;
setCoreParameter("ExternalPort", externalPort);
}
long AddDnatEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddDnatEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddDnatEntryRequest::getType()const
{
return type_;
}
void AddDnatEntryRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string AddDnatEntryRequest::getInternalIp()const
{
return internalIp_;
}
void AddDnatEntryRequest::setInternalIp(const std::string& internalIp)
{
internalIp_ = internalIp;
setParameter("InternalIp", internalIp);
}
std::string AddDnatEntryRequest::getRegionId()const
{
return regionId_;
}
void AddDnatEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AddDnatEntryRequest::getExternalIp()const
{
return externalIp_;
}
void AddDnatEntryRequest::setExternalIp(const std::string& externalIp)
{
externalIp_ = externalIp;
setParameter("ExternalIp", externalIp);
}
std::string AddDnatEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddDnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddDnatEntryRequest::getIpProtocol()const
{
return ipProtocol_;
}
void AddDnatEntryRequest::setIpProtocol(const std::string& ipProtocol)
{
ipProtocol_ = ipProtocol;
setParameter("IpProtocol", ipProtocol);
}
std::string AddDnatEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddDnatEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AddDnatEntryRequest::getOwnerId()const
{
return ownerId_;
}
void AddDnatEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddDnatEntryRequest::getSagId()const
{
return sagId_;
}
void AddDnatEntryRequest::setSagId(const std::string& sagId)
{
sagId_ = sagId;
setParameter("SagId", sagId);
}
std::string AddDnatEntryRequest::getInternalPort()const
{
return internalPort_;
}
void AddDnatEntryRequest::setInternalPort(const std::string& internalPort)
{
internalPort_ = internalPort;
setParameter("InternalPort", internalPort);
}
std::string AddDnatEntryRequest::getExternalPort()const
{
return externalPort_;
}
void AddDnatEntryRequest::setExternalPort(const std::string& externalPort)
{
externalPort_ = externalPort;
setParameter("ExternalPort", externalPort);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::AddNetworkOptimizationSettingRequest;
AddNetworkOptimizationSettingRequest::AddNetworkOptimizationSettingRequest() :
RpcServiceRequest("smartag", "2018-03-13", "AddNetworkOptimizationSetting")
{}
{
setMethod(HttpRequest::Method::Post);
}
AddNetworkOptimizationSettingRequest::~AddNetworkOptimizationSettingRequest()
{}
@@ -33,7 +35,7 @@ long AddNetworkOptimizationSettingRequest::getResourceOwnerId()const
void AddNetworkOptimizationSettingRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddNetworkOptimizationSettingRequest::getType()const
@@ -44,7 +46,7 @@ std::string AddNetworkOptimizationSettingRequest::getType()const
void AddNetworkOptimizationSettingRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
setParameter("Type", type);
}
std::string AddNetworkOptimizationSettingRequest::getRegionId()const
@@ -55,7 +57,7 @@ std::string AddNetworkOptimizationSettingRequest::getRegionId()const
void AddNetworkOptimizationSettingRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string AddNetworkOptimizationSettingRequest::getNetworkOptId()const
@@ -66,7 +68,7 @@ std::string AddNetworkOptimizationSettingRequest::getNetworkOptId()const
void AddNetworkOptimizationSettingRequest::setNetworkOptId(const std::string& networkOptId)
{
networkOptId_ = networkOptId;
setCoreParameter("NetworkOptId", networkOptId);
setParameter("NetworkOptId", networkOptId);
}
std::string AddNetworkOptimizationSettingRequest::getResourceOwnerAccount()const
@@ -77,7 +79,7 @@ std::string AddNetworkOptimizationSettingRequest::getResourceOwnerAccount()const
void AddNetworkOptimizationSettingRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddNetworkOptimizationSettingRequest::getOwnerAccount()const
@@ -88,7 +90,7 @@ std::string AddNetworkOptimizationSettingRequest::getOwnerAccount()const
void AddNetworkOptimizationSettingRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long AddNetworkOptimizationSettingRequest::getOwnerId()const
@@ -99,7 +101,7 @@ long AddNetworkOptimizationSettingRequest::getOwnerId()const
void AddNetworkOptimizationSettingRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddNetworkOptimizationSettingRequest::getDomain()const
@@ -110,6 +112,6 @@ std::string AddNetworkOptimizationSettingRequest::getDomain()const
void AddNetworkOptimizationSettingRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setCoreParameter("Domain", domain);
setParameter("Domain", domain);
}

View File

@@ -0,0 +1,117 @@
/*
* 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/smartag/model/AddSagCidrRequest.h>
using AlibabaCloud::Smartag::Model::AddSagCidrRequest;
AddSagCidrRequest::AddSagCidrRequest() :
RpcServiceRequest("smartag", "2018-03-13", "AddSagCidr")
{
setMethod(HttpRequest::Method::Post);
}
AddSagCidrRequest::~AddSagCidrRequest()
{}
long AddSagCidrRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddSagCidrRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddSagCidrRequest::getRegionId()const
{
return regionId_;
}
void AddSagCidrRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AddSagCidrRequest::getCidr()const
{
return cidr_;
}
void AddSagCidrRequest::setCidr(const std::string& cidr)
{
cidr_ = cidr;
setParameter("Cidr", cidr);
}
std::string AddSagCidrRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddSagCidrRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddSagCidrRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddSagCidrRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AddSagCidrRequest::getOwnerId()const
{
return ownerId_;
}
void AddSagCidrRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
bool AddSagCidrRequest::getEnableBackup()const
{
return enableBackup_;
}
void AddSagCidrRequest::setEnableBackup(bool enableBackup)
{
enableBackup_ = enableBackup;
setParameter("EnableBackup", enableBackup ? "true" : "false");
}
std::string AddSagCidrRequest::getSmartAGId()const
{
return smartAGId_;
}
void AddSagCidrRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

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

View File

@@ -20,96 +20,98 @@ using AlibabaCloud::Smartag::Model::AddSnatEntryRequest;
AddSnatEntryRequest::AddSnatEntryRequest() :
RpcServiceRequest("smartag", "2018-03-13", "AddSnatEntry")
{}
{
setMethod(HttpRequest::Method::Post);
}
AddSnatEntryRequest::~AddSnatEntryRequest()
{}
long AddSnatEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddSnatEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddSnatEntryRequest::getSnatIp()const
{
return snatIp_;
}
void AddSnatEntryRequest::setSnatIp(const std::string& snatIp)
{
snatIp_ = snatIp;
setCoreParameter("SnatIp", snatIp);
}
std::string AddSnatEntryRequest::getRegionId()const
{
return regionId_;
}
void AddSnatEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string AddSnatEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddSnatEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long AddSnatEntryRequest::getOwnerId()const
{
return ownerId_;
}
void AddSnatEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string AddSnatEntryRequest::getCidrBlock()const
{
return cidrBlock_;
}
void AddSnatEntryRequest::setCidrBlock(const std::string& cidrBlock)
{
cidrBlock_ = cidrBlock;
setCoreParameter("CidrBlock", cidrBlock);
}
std::string AddSnatEntryRequest::getSmartAGId()const
{
return smartAGId_;
}
void AddSnatEntryRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setCoreParameter("SmartAGId", smartAGId);
}
long AddSnatEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddSnatEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddSnatEntryRequest::getSnatIp()const
{
return snatIp_;
}
void AddSnatEntryRequest::setSnatIp(const std::string& snatIp)
{
snatIp_ = snatIp;
setParameter("SnatIp", snatIp);
}
std::string AddSnatEntryRequest::getRegionId()const
{
return regionId_;
}
void AddSnatEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AddSnatEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddSnatEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AddSnatEntryRequest::getOwnerId()const
{
return ownerId_;
}
void AddSnatEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddSnatEntryRequest::getCidrBlock()const
{
return cidrBlock_;
}
void AddSnatEntryRequest::setCidrBlock(const std::string& cidrBlock)
{
cidrBlock_ = cidrBlock;
setParameter("CidrBlock", cidrBlock);
}
std::string AddSnatEntryRequest::getSmartAGId()const
{
return smartAGId_;
}
void AddSnatEntryRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::AssociateACLRequest;
AssociateACLRequest::AssociateACLRequest() :
RpcServiceRequest("smartag", "2018-03-13", "AssociateACL")
{}
{
setMethod(HttpRequest::Method::Post);
}
AssociateACLRequest::~AssociateACLRequest()
{}
@@ -33,7 +35,7 @@ long AssociateACLRequest::getResourceOwnerId()const
void AssociateACLRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AssociateACLRequest::getRegionId()const
@@ -44,7 +46,7 @@ std::string AssociateACLRequest::getRegionId()const
void AssociateACLRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string AssociateACLRequest::getAclId()const
@@ -55,7 +57,7 @@ std::string AssociateACLRequest::getAclId()const
void AssociateACLRequest::setAclId(const std::string& aclId)
{
aclId_ = aclId;
setCoreParameter("AclId", aclId);
setParameter("AclId", aclId);
}
std::string AssociateACLRequest::getResourceOwnerAccount()const
@@ -66,7 +68,7 @@ std::string AssociateACLRequest::getResourceOwnerAccount()const
void AssociateACLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AssociateACLRequest::getOwnerAccount()const
@@ -77,7 +79,7 @@ std::string AssociateACLRequest::getOwnerAccount()const
void AssociateACLRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long AssociateACLRequest::getOwnerId()const
@@ -88,7 +90,7 @@ long AssociateACLRequest::getOwnerId()const
void AssociateACLRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AssociateACLRequest::getSmartAGId()const
@@ -99,6 +101,6 @@ std::string AssociateACLRequest::getSmartAGId()const
void AssociateACLRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setCoreParameter("SmartAGId", smartAGId);
setParameter("SmartAGId", smartAGId);
}

View File

@@ -20,85 +20,87 @@ using AlibabaCloud::Smartag::Model::AssociateFlowLogRequest;
AssociateFlowLogRequest::AssociateFlowLogRequest() :
RpcServiceRequest("smartag", "2018-03-13", "AssociateFlowLog")
{}
{
setMethod(HttpRequest::Method::Post);
}
AssociateFlowLogRequest::~AssociateFlowLogRequest()
{}
long AssociateFlowLogRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AssociateFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AssociateFlowLogRequest::getRegionId()const
{
return regionId_;
}
void AssociateFlowLogRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string AssociateFlowLogRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AssociateFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AssociateFlowLogRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AssociateFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long AssociateFlowLogRequest::getOwnerId()const
{
return ownerId_;
}
void AssociateFlowLogRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string AssociateFlowLogRequest::getSmartAGId()const
{
return smartAGId_;
}
void AssociateFlowLogRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setCoreParameter("SmartAGId", smartAGId);
}
std::string AssociateFlowLogRequest::getFlowLogId()const
{
return flowLogId_;
}
void AssociateFlowLogRequest::setFlowLogId(const std::string& flowLogId)
{
flowLogId_ = flowLogId;
setCoreParameter("FlowLogId", flowLogId);
}
long AssociateFlowLogRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AssociateFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AssociateFlowLogRequest::getRegionId()const
{
return regionId_;
}
void AssociateFlowLogRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AssociateFlowLogRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AssociateFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AssociateFlowLogRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AssociateFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AssociateFlowLogRequest::getOwnerId()const
{
return ownerId_;
}
void AssociateFlowLogRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AssociateFlowLogRequest::getSmartAGId()const
{
return smartAGId_;
}
void AssociateFlowLogRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}
std::string AssociateFlowLogRequest::getFlowLogId()const
{
return flowLogId_;
}
void AssociateFlowLogRequest::setFlowLogId(const std::string& flowLogId)
{
flowLogId_ = flowLogId;
setParameter("FlowLogId", flowLogId);
}

View File

@@ -20,85 +20,87 @@ using AlibabaCloud::Smartag::Model::AssociateQosRequest;
AssociateQosRequest::AssociateQosRequest() :
RpcServiceRequest("smartag", "2018-03-13", "AssociateQos")
{}
{
setMethod(HttpRequest::Method::Post);
}
AssociateQosRequest::~AssociateQosRequest()
{}
long AssociateQosRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AssociateQosRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AssociateQosRequest::getRegionId()const
{
return regionId_;
}
void AssociateQosRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string AssociateQosRequest::getQosId()const
{
return qosId_;
}
void AssociateQosRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setCoreParameter("QosId", qosId);
}
std::string AssociateQosRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AssociateQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AssociateQosRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AssociateQosRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long AssociateQosRequest::getOwnerId()const
{
return ownerId_;
}
void AssociateQosRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string AssociateQosRequest::getSmartAGId()const
{
return smartAGId_;
}
void AssociateQosRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setCoreParameter("SmartAGId", smartAGId);
}
long AssociateQosRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AssociateQosRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AssociateQosRequest::getRegionId()const
{
return regionId_;
}
void AssociateQosRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AssociateQosRequest::getQosId()const
{
return qosId_;
}
void AssociateQosRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setParameter("QosId", qosId);
}
std::string AssociateQosRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AssociateQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AssociateQosRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AssociateQosRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AssociateQosRequest::getOwnerId()const
{
return ownerId_;
}
void AssociateQosRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AssociateQosRequest::getSmartAGId()const
{
return smartAGId_;
}
void AssociateQosRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::AttachNetworkOptimizationSagsRequest;
AttachNetworkOptimizationSagsRequest::AttachNetworkOptimizationSagsRequest() :
RpcServiceRequest("smartag", "2018-03-13", "AttachNetworkOptimizationSags")
{}
{
setMethod(HttpRequest::Method::Post);
}
AttachNetworkOptimizationSagsRequest::~AttachNetworkOptimizationSagsRequest()
{}
@@ -33,7 +35,7 @@ long AttachNetworkOptimizationSagsRequest::getResourceOwnerId()const
void AttachNetworkOptimizationSagsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AttachNetworkOptimizationSagsRequest::getRegionId()const
@@ -44,7 +46,7 @@ std::string AttachNetworkOptimizationSagsRequest::getRegionId()const
void AttachNetworkOptimizationSagsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string AttachNetworkOptimizationSagsRequest::getNetworkOptId()const
@@ -55,7 +57,7 @@ std::string AttachNetworkOptimizationSagsRequest::getNetworkOptId()const
void AttachNetworkOptimizationSagsRequest::setNetworkOptId(const std::string& networkOptId)
{
networkOptId_ = networkOptId;
setCoreParameter("NetworkOptId", networkOptId);
setParameter("NetworkOptId", networkOptId);
}
std::vector<std::string> AttachNetworkOptimizationSagsRequest::getSmartAGIds()const
@@ -66,8 +68,9 @@ std::vector<std::string> AttachNetworkOptimizationSagsRequest::getSmartAGIds()co
void AttachNetworkOptimizationSagsRequest::setSmartAGIds(const std::vector<std::string>& smartAGIds)
{
smartAGIds_ = smartAGIds;
for(int i = 0; i!= smartAGIds.size(); i++)
setCoreParameter("SmartAGIds."+ std::to_string(i), smartAGIds.at(i));
for(int dep1 = 0; dep1!= smartAGIds.size(); dep1++) {
setParameter("SmartAGIds."+ std::to_string(dep1), smartAGIds.at(dep1));
}
}
std::string AttachNetworkOptimizationSagsRequest::getResourceOwnerAccount()const
@@ -78,7 +81,7 @@ std::string AttachNetworkOptimizationSagsRequest::getResourceOwnerAccount()const
void AttachNetworkOptimizationSagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AttachNetworkOptimizationSagsRequest::getOwnerAccount()const
@@ -89,7 +92,7 @@ std::string AttachNetworkOptimizationSagsRequest::getOwnerAccount()const
void AttachNetworkOptimizationSagsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long AttachNetworkOptimizationSagsRequest::getOwnerId()const
@@ -100,6 +103,6 @@ long AttachNetworkOptimizationSagsRequest::getOwnerId()const
void AttachNetworkOptimizationSagsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,106 @@
/*
* 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/smartag/model/BindSerialNumberRequest.h>
using AlibabaCloud::Smartag::Model::BindSerialNumberRequest;
BindSerialNumberRequest::BindSerialNumberRequest() :
RpcServiceRequest("smartag", "2018-03-13", "BindSerialNumber")
{
setMethod(HttpRequest::Method::Post);
}
BindSerialNumberRequest::~BindSerialNumberRequest()
{}
long BindSerialNumberRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void BindSerialNumberRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string BindSerialNumberRequest::getRegionId()const
{
return regionId_;
}
void BindSerialNumberRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string BindSerialNumberRequest::getSerialNumber()const
{
return serialNumber_;
}
void BindSerialNumberRequest::setSerialNumber(const std::string& serialNumber)
{
serialNumber_ = serialNumber;
setParameter("SerialNumber", serialNumber);
}
std::string BindSerialNumberRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void BindSerialNumberRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string BindSerialNumberRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void BindSerialNumberRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long BindSerialNumberRequest::getOwnerId()const
{
return ownerId_;
}
void BindSerialNumberRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string BindSerialNumberRequest::getSmartAGId()const
{
return smartAGId_;
}
void BindSerialNumberRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

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

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::BindSmartAccessGatewayRequest;
BindSmartAccessGatewayRequest::BindSmartAccessGatewayRequest() :
RpcServiceRequest("smartag", "2018-03-13", "BindSmartAccessGateway")
{}
{
setMethod(HttpRequest::Method::Post);
}
BindSmartAccessGatewayRequest::~BindSmartAccessGatewayRequest()
{}
@@ -33,7 +35,7 @@ long BindSmartAccessGatewayRequest::getResourceOwnerId()const
void BindSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string BindSmartAccessGatewayRequest::getCcnId()const
@@ -44,7 +46,7 @@ std::string BindSmartAccessGatewayRequest::getCcnId()const
void BindSmartAccessGatewayRequest::setCcnId(const std::string& ccnId)
{
ccnId_ = ccnId;
setCoreParameter("CcnId", ccnId);
setParameter("CcnId", ccnId);
}
std::string BindSmartAccessGatewayRequest::getRegionId()const
@@ -55,7 +57,7 @@ std::string BindSmartAccessGatewayRequest::getRegionId()const
void BindSmartAccessGatewayRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string BindSmartAccessGatewayRequest::getResourceOwnerAccount()const
@@ -66,7 +68,7 @@ std::string BindSmartAccessGatewayRequest::getResourceOwnerAccount()const
void BindSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string BindSmartAccessGatewayRequest::getOwnerAccount()const
@@ -77,7 +79,7 @@ std::string BindSmartAccessGatewayRequest::getOwnerAccount()const
void BindSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long BindSmartAccessGatewayRequest::getOwnerId()const
@@ -88,7 +90,7 @@ long BindSmartAccessGatewayRequest::getOwnerId()const
void BindSmartAccessGatewayRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
long BindSmartAccessGatewayRequest::getSmartAGUid()const
@@ -99,7 +101,7 @@ long BindSmartAccessGatewayRequest::getSmartAGUid()const
void BindSmartAccessGatewayRequest::setSmartAGUid(long smartAGUid)
{
smartAGUid_ = smartAGUid;
setCoreParameter("SmartAGUid", std::to_string(smartAGUid));
setParameter("SmartAGUid", std::to_string(smartAGUid));
}
std::string BindSmartAccessGatewayRequest::getSmartAGId()const
@@ -110,6 +112,6 @@ std::string BindSmartAccessGatewayRequest::getSmartAGId()const
void BindSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setCoreParameter("SmartAGId", smartAGId);
setParameter("SmartAGId", smartAGId);
}

View File

@@ -20,96 +20,109 @@ using AlibabaCloud::Smartag::Model::BindVbrRequest;
BindVbrRequest::BindVbrRequest() :
RpcServiceRequest("smartag", "2018-03-13", "BindVbr")
{}
{
setMethod(HttpRequest::Method::Post);
}
BindVbrRequest::~BindVbrRequest()
{}
long BindVbrRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void BindVbrRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string BindVbrRequest::getVbrId()const
{
return vbrId_;
}
void BindVbrRequest::setVbrId(const std::string& vbrId)
{
vbrId_ = vbrId;
setCoreParameter("VbrId", vbrId);
}
std::string BindVbrRequest::getVbrRegionId()const
{
return vbrRegionId_;
}
void BindVbrRequest::setVbrRegionId(const std::string& vbrRegionId)
{
vbrRegionId_ = vbrRegionId;
setCoreParameter("VbrRegionId", vbrRegionId);
}
std::string BindVbrRequest::getRegionId()const
{
return regionId_;
}
void BindVbrRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string BindVbrRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void BindVbrRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string BindVbrRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void BindVbrRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long BindVbrRequest::getOwnerId()const
{
return ownerId_;
}
void BindVbrRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string BindVbrRequest::getSmartAGId()const
{
return smartAGId_;
}
void BindVbrRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setCoreParameter("SmartAGId", smartAGId);
}
long BindVbrRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void BindVbrRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string BindVbrRequest::getVbrId()const
{
return vbrId_;
}
void BindVbrRequest::setVbrId(const std::string& vbrId)
{
vbrId_ = vbrId;
setParameter("VbrId", vbrId);
}
std::string BindVbrRequest::getVbrRegionId()const
{
return vbrRegionId_;
}
void BindVbrRequest::setVbrRegionId(const std::string& vbrRegionId)
{
vbrRegionId_ = vbrRegionId;
setParameter("VbrRegionId", vbrRegionId);
}
std::string BindVbrRequest::getRegionId()const
{
return regionId_;
}
void BindVbrRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string BindVbrRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void BindVbrRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string BindVbrRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void BindVbrRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long BindVbrRequest::getOwnerId()const
{
return ownerId_;
}
void BindVbrRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long BindVbrRequest::getSmartAGUid()const
{
return smartAGUid_;
}
void BindVbrRequest::setSmartAGUid(long smartAGUid)
{
smartAGUid_ = smartAGUid;
setParameter("SmartAGUid", std::to_string(smartAGUid));
}
std::string BindVbrRequest::getSmartAGId()const
{
return smartAGId_;
}
void BindVbrRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::ClearSagRouteableAddressRequest;
ClearSagRouteableAddressRequest::ClearSagRouteableAddressRequest() :
RpcServiceRequest("smartag", "2018-03-13", "ClearSagRouteableAddress")
{}
{
setMethod(HttpRequest::Method::Post);
}
ClearSagRouteableAddressRequest::~ClearSagRouteableAddressRequest()
{}
@@ -33,7 +35,7 @@ std::string ClearSagRouteableAddressRequest::getAccess_key_id()const
void ClearSagRouteableAddressRequest::setAccess_key_id(const std::string& access_key_id)
{
access_key_id_ = access_key_id;
setCoreParameter("Access_key_id", access_key_id);
setParameter("Access_key_id", access_key_id);
}
long ClearSagRouteableAddressRequest::getResourceOwnerId()const
@@ -44,7 +46,7 @@ long ClearSagRouteableAddressRequest::getResourceOwnerId()const
void ClearSagRouteableAddressRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ClearSagRouteableAddressRequest::getRegionId()const
@@ -55,7 +57,7 @@ std::string ClearSagRouteableAddressRequest::getRegionId()const
void ClearSagRouteableAddressRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string ClearSagRouteableAddressRequest::getResourceOwnerAccount()const
@@ -66,7 +68,7 @@ std::string ClearSagRouteableAddressRequest::getResourceOwnerAccount()const
void ClearSagRouteableAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ClearSagRouteableAddressRequest::getOwnerAccount()const
@@ -77,7 +79,7 @@ std::string ClearSagRouteableAddressRequest::getOwnerAccount()const
void ClearSagRouteableAddressRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long ClearSagRouteableAddressRequest::getOwnerId()const
@@ -88,7 +90,7 @@ long ClearSagRouteableAddressRequest::getOwnerId()const
void ClearSagRouteableAddressRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ClearSagRouteableAddressRequest::getSagId()const
@@ -99,6 +101,6 @@ std::string ClearSagRouteableAddressRequest::getSagId()const
void ClearSagRouteableAddressRequest::setSagId(const std::string& sagId)
{
sagId_ = sagId;
setCoreParameter("SagId", sagId);
setParameter("SagId", sagId);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::CreateACLRequest;
CreateACLRequest::CreateACLRequest() :
RpcServiceRequest("smartag", "2018-03-13", "CreateACL")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateACLRequest::~CreateACLRequest()
{}
@@ -33,7 +35,7 @@ long CreateACLRequest::getResourceOwnerId()const
void CreateACLRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateACLRequest::getRegionId()const
@@ -44,7 +46,7 @@ std::string CreateACLRequest::getRegionId()const
void CreateACLRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string CreateACLRequest::getResourceOwnerAccount()const
@@ -55,7 +57,7 @@ std::string CreateACLRequest::getResourceOwnerAccount()const
void CreateACLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateACLRequest::getOwnerAccount()const
@@ -66,7 +68,7 @@ std::string CreateACLRequest::getOwnerAccount()const
void CreateACLRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long CreateACLRequest::getOwnerId()const
@@ -77,7 +79,7 @@ long CreateACLRequest::getOwnerId()const
void CreateACLRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateACLRequest::getName()const
@@ -88,6 +90,6 @@ std::string CreateACLRequest::getName()const
void CreateACLRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
setParameter("Name", name);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::CreateCloudConnectNetworkRequest;
CreateCloudConnectNetworkRequest::CreateCloudConnectNetworkRequest() :
RpcServiceRequest("smartag", "2018-03-13", "CreateCloudConnectNetwork")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateCloudConnectNetworkRequest::~CreateCloudConnectNetworkRequest()
{}
@@ -33,7 +35,7 @@ long CreateCloudConnectNetworkRequest::getResourceOwnerId()const
void CreateCloudConnectNetworkRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateCloudConnectNetworkRequest::getDescription()const
@@ -44,7 +46,7 @@ std::string CreateCloudConnectNetworkRequest::getDescription()const
void CreateCloudConnectNetworkRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
setParameter("Description", description);
}
std::string CreateCloudConnectNetworkRequest::getSnatCidrBlock()const
@@ -55,7 +57,7 @@ std::string CreateCloudConnectNetworkRequest::getSnatCidrBlock()const
void CreateCloudConnectNetworkRequest::setSnatCidrBlock(const std::string& snatCidrBlock)
{
snatCidrBlock_ = snatCidrBlock;
setCoreParameter("SnatCidrBlock", snatCidrBlock);
setParameter("SnatCidrBlock", snatCidrBlock);
}
std::string CreateCloudConnectNetworkRequest::getRegionId()const
@@ -66,7 +68,7 @@ std::string CreateCloudConnectNetworkRequest::getRegionId()const
void CreateCloudConnectNetworkRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
bool CreateCloudConnectNetworkRequest::getIsDefault()const
@@ -77,7 +79,7 @@ bool CreateCloudConnectNetworkRequest::getIsDefault()const
void CreateCloudConnectNetworkRequest::setIsDefault(bool isDefault)
{
isDefault_ = isDefault;
setCoreParameter("IsDefault", isDefault ? "true" : "false");
setParameter("IsDefault", isDefault ? "true" : "false");
}
std::string CreateCloudConnectNetworkRequest::getResourceOwnerAccount()const
@@ -88,7 +90,7 @@ std::string CreateCloudConnectNetworkRequest::getResourceOwnerAccount()const
void CreateCloudConnectNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateCloudConnectNetworkRequest::getOwnerAccount()const
@@ -99,7 +101,7 @@ std::string CreateCloudConnectNetworkRequest::getOwnerAccount()const
void CreateCloudConnectNetworkRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long CreateCloudConnectNetworkRequest::getOwnerId()const
@@ -110,7 +112,7 @@ long CreateCloudConnectNetworkRequest::getOwnerId()const
void CreateCloudConnectNetworkRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateCloudConnectNetworkRequest::getName()const
@@ -121,7 +123,7 @@ std::string CreateCloudConnectNetworkRequest::getName()const
void CreateCloudConnectNetworkRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
setParameter("Name", name);
}
std::string CreateCloudConnectNetworkRequest::getCidrBlock()const
@@ -132,6 +134,6 @@ std::string CreateCloudConnectNetworkRequest::getCidrBlock()const
void CreateCloudConnectNetworkRequest::setCidrBlock(const std::string& cidrBlock)
{
cidrBlock_ = cidrBlock;
setCoreParameter("CidrBlock", cidrBlock);
setParameter("CidrBlock", cidrBlock);
}

View File

@@ -20,184 +20,186 @@ using AlibabaCloud::Smartag::Model::CreateFlowLogRequest;
CreateFlowLogRequest::CreateFlowLogRequest() :
RpcServiceRequest("smartag", "2018-03-13", "CreateFlowLog")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateFlowLogRequest::~CreateFlowLogRequest()
{}
long CreateFlowLogRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateFlowLogRequest::getNetflowVersion()const
{
return netflowVersion_;
}
void CreateFlowLogRequest::setNetflowVersion(const std::string& netflowVersion)
{
netflowVersion_ = netflowVersion;
setCoreParameter("NetflowVersion", netflowVersion);
}
std::string CreateFlowLogRequest::getDescription()const
{
return description_;
}
void CreateFlowLogRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
int CreateFlowLogRequest::getInactiveAging()const
{
return inactiveAging_;
}
void CreateFlowLogRequest::setInactiveAging(int inactiveAging)
{
inactiveAging_ = inactiveAging;
setCoreParameter("InactiveAging", std::to_string(inactiveAging));
}
std::string CreateFlowLogRequest::getRegionId()const
{
return regionId_;
}
void CreateFlowLogRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string CreateFlowLogRequest::getSlsRegionId()const
{
return slsRegionId_;
}
void CreateFlowLogRequest::setSlsRegionId(const std::string& slsRegionId)
{
slsRegionId_ = slsRegionId;
setCoreParameter("SlsRegionId", slsRegionId);
}
int CreateFlowLogRequest::getActiveAging()const
{
return activeAging_;
}
void CreateFlowLogRequest::setActiveAging(int activeAging)
{
activeAging_ = activeAging;
setCoreParameter("ActiveAging", std::to_string(activeAging));
}
std::string CreateFlowLogRequest::getOutputType()const
{
return outputType_;
}
void CreateFlowLogRequest::setOutputType(const std::string& outputType)
{
outputType_ = outputType;
setCoreParameter("OutputType", outputType);
}
std::string CreateFlowLogRequest::getProjectName()const
{
return projectName_;
}
void CreateFlowLogRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setCoreParameter("ProjectName", projectName);
}
std::string CreateFlowLogRequest::getLogstoreName()const
{
return logstoreName_;
}
void CreateFlowLogRequest::setLogstoreName(const std::string& logstoreName)
{
logstoreName_ = logstoreName;
setCoreParameter("LogstoreName", logstoreName);
}
std::string CreateFlowLogRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateFlowLogRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
int CreateFlowLogRequest::getNetflowServerPort()const
{
return netflowServerPort_;
}
void CreateFlowLogRequest::setNetflowServerPort(int netflowServerPort)
{
netflowServerPort_ = netflowServerPort;
setCoreParameter("NetflowServerPort", std::to_string(netflowServerPort));
}
long CreateFlowLogRequest::getOwnerId()const
{
return ownerId_;
}
void CreateFlowLogRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateFlowLogRequest::getNetflowServerIp()const
{
return netflowServerIp_;
}
void CreateFlowLogRequest::setNetflowServerIp(const std::string& netflowServerIp)
{
netflowServerIp_ = netflowServerIp;
setCoreParameter("NetflowServerIp", netflowServerIp);
}
std::string CreateFlowLogRequest::getName()const
{
return name_;
}
void CreateFlowLogRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}
long CreateFlowLogRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateFlowLogRequest::getNetflowVersion()const
{
return netflowVersion_;
}
void CreateFlowLogRequest::setNetflowVersion(const std::string& netflowVersion)
{
netflowVersion_ = netflowVersion;
setParameter("NetflowVersion", netflowVersion);
}
std::string CreateFlowLogRequest::getDescription()const
{
return description_;
}
void CreateFlowLogRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
int CreateFlowLogRequest::getInactiveAging()const
{
return inactiveAging_;
}
void CreateFlowLogRequest::setInactiveAging(int inactiveAging)
{
inactiveAging_ = inactiveAging;
setParameter("InactiveAging", std::to_string(inactiveAging));
}
std::string CreateFlowLogRequest::getRegionId()const
{
return regionId_;
}
void CreateFlowLogRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateFlowLogRequest::getSlsRegionId()const
{
return slsRegionId_;
}
void CreateFlowLogRequest::setSlsRegionId(const std::string& slsRegionId)
{
slsRegionId_ = slsRegionId;
setParameter("SlsRegionId", slsRegionId);
}
int CreateFlowLogRequest::getActiveAging()const
{
return activeAging_;
}
void CreateFlowLogRequest::setActiveAging(int activeAging)
{
activeAging_ = activeAging;
setParameter("ActiveAging", std::to_string(activeAging));
}
std::string CreateFlowLogRequest::getOutputType()const
{
return outputType_;
}
void CreateFlowLogRequest::setOutputType(const std::string& outputType)
{
outputType_ = outputType;
setParameter("OutputType", outputType);
}
std::string CreateFlowLogRequest::getProjectName()const
{
return projectName_;
}
void CreateFlowLogRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setParameter("ProjectName", projectName);
}
std::string CreateFlowLogRequest::getLogstoreName()const
{
return logstoreName_;
}
void CreateFlowLogRequest::setLogstoreName(const std::string& logstoreName)
{
logstoreName_ = logstoreName;
setParameter("LogstoreName", logstoreName);
}
std::string CreateFlowLogRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateFlowLogRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
int CreateFlowLogRequest::getNetflowServerPort()const
{
return netflowServerPort_;
}
void CreateFlowLogRequest::setNetflowServerPort(int netflowServerPort)
{
netflowServerPort_ = netflowServerPort;
setParameter("NetflowServerPort", std::to_string(netflowServerPort));
}
long CreateFlowLogRequest::getOwnerId()const
{
return ownerId_;
}
void CreateFlowLogRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateFlowLogRequest::getNetflowServerIp()const
{
return netflowServerIp_;
}
void CreateFlowLogRequest::setNetflowServerIp(const std::string& netflowServerIp)
{
netflowServerIp_ = netflowServerIp;
setParameter("NetflowServerIp", netflowServerIp);
}
std::string CreateFlowLogRequest::getName()const
{
return name_;
}
void CreateFlowLogRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,238 @@
/*
* 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/smartag/model/CreateHealthCheckRequest.h>
using AlibabaCloud::Smartag::Model::CreateHealthCheckRequest;
CreateHealthCheckRequest::CreateHealthCheckRequest() :
RpcServiceRequest("smartag", "2018-03-13", "CreateHealthCheck")
{
setMethod(HttpRequest::Method::Post);
}
CreateHealthCheckRequest::~CreateHealthCheckRequest()
{}
int CreateHealthCheckRequest::getProbeInterval()const
{
return probeInterval_;
}
void CreateHealthCheckRequest::setProbeInterval(int probeInterval)
{
probeInterval_ = probeInterval;
setParameter("ProbeInterval", std::to_string(probeInterval));
}
long CreateHealthCheckRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateHealthCheckRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int CreateHealthCheckRequest::getDstPort()const
{
return dstPort_;
}
void CreateHealthCheckRequest::setDstPort(int dstPort)
{
dstPort_ = dstPort;
setParameter("DstPort", std::to_string(dstPort));
}
std::string CreateHealthCheckRequest::getDescription()const
{
return description_;
}
void CreateHealthCheckRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateHealthCheckRequest::getType()const
{
return type_;
}
void CreateHealthCheckRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
int CreateHealthCheckRequest::getFailCountThreshold()const
{
return failCountThreshold_;
}
void CreateHealthCheckRequest::setFailCountThreshold(int failCountThreshold)
{
failCountThreshold_ = failCountThreshold;
setParameter("FailCountThreshold", std::to_string(failCountThreshold));
}
int CreateHealthCheckRequest::getProbeTimeout()const
{
return probeTimeout_;
}
void CreateHealthCheckRequest::setProbeTimeout(int probeTimeout)
{
probeTimeout_ = probeTimeout;
setParameter("ProbeTimeout", std::to_string(probeTimeout));
}
int CreateHealthCheckRequest::getRttFailThreshold()const
{
return rttFailThreshold_;
}
void CreateHealthCheckRequest::setRttFailThreshold(int rttFailThreshold)
{
rttFailThreshold_ = rttFailThreshold;
setParameter("RttFailThreshold", std::to_string(rttFailThreshold));
}
std::string CreateHealthCheckRequest::getRegionId()const
{
return regionId_;
}
void CreateHealthCheckRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int CreateHealthCheckRequest::getRttThreshold()const
{
return rttThreshold_;
}
void CreateHealthCheckRequest::setRttThreshold(int rttThreshold)
{
rttThreshold_ = rttThreshold;
setParameter("RttThreshold", std::to_string(rttThreshold));
}
std::string CreateHealthCheckRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateHealthCheckRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateHealthCheckRequest::getDstIpAddr()const
{
return dstIpAddr_;
}
void CreateHealthCheckRequest::setDstIpAddr(const std::string& dstIpAddr)
{
dstIpAddr_ = dstIpAddr;
setParameter("DstIpAddr", dstIpAddr);
}
long CreateHealthCheckRequest::getOwnerId()const
{
return ownerId_;
}
void CreateHealthCheckRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateHealthCheckRequest::getSrcIpAddr()const
{
return srcIpAddr_;
}
void CreateHealthCheckRequest::setSrcIpAddr(const std::string& srcIpAddr)
{
srcIpAddr_ = srcIpAddr;
setParameter("SrcIpAddr", srcIpAddr);
}
std::string CreateHealthCheckRequest::getName()const
{
return name_;
}
void CreateHealthCheckRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateHealthCheckRequest::getSmartAGId()const
{
return smartAGId_;
}
void CreateHealthCheckRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}
int CreateHealthCheckRequest::getSrcPort()const
{
return srcPort_;
}
void CreateHealthCheckRequest::setSrcPort(int srcPort)
{
srcPort_ = srcPort;
setParameter("SrcPort", std::to_string(srcPort));
}
int CreateHealthCheckRequest::getProbeCount()const
{
return probeCount_;
}
void CreateHealthCheckRequest::setProbeCount(int probeCount)
{
probeCount_ = probeCount;
setParameter("ProbeCount", std::to_string(probeCount));
}

View File

@@ -0,0 +1,163 @@
/*
* 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/smartag/model/CreateHealthCheckResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Smartag;
using namespace AlibabaCloud::Smartag::Model;
CreateHealthCheckResult::CreateHealthCheckResult() :
ServiceResult()
{}
CreateHealthCheckResult::CreateHealthCheckResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateHealthCheckResult::~CreateHealthCheckResult()
{}
void CreateHealthCheckResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CreateTime"].isNull())
createTime_ = std::stol(value["CreateTime"].asString());
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
if(!value["SmartAGId"].isNull())
smartAGId_ = value["SmartAGId"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["Type"].isNull())
type_ = value["Type"].asString();
if(!value["DstIpAddr"].isNull())
dstIpAddr_ = value["DstIpAddr"].asString();
if(!value["DstPort"].isNull())
dstPort_ = std::stoi(value["DstPort"].asString());
if(!value["SrcIpAddr"].isNull())
srcIpAddr_ = value["SrcIpAddr"].asString();
if(!value["SrcPort"].isNull())
srcPort_ = std::stoi(value["SrcPort"].asString());
if(!value["ProbeInterval"].isNull())
probeInterval_ = std::stoi(value["ProbeInterval"].asString());
if(!value["ProbeCount"].isNull())
probeCount_ = std::stoi(value["ProbeCount"].asString());
if(!value["ProbeTimeout"].isNull())
probeTimeout_ = std::stoi(value["ProbeTimeout"].asString());
if(!value["RttThreshold"].isNull())
rttThreshold_ = std::stoi(value["RttThreshold"].asString());
if(!value["RttFailThreshold"].isNull())
rttFailThreshold_ = std::stoi(value["RttFailThreshold"].asString());
if(!value["FailCountThreshold"].isNull())
failCountThreshold_ = std::stoi(value["FailCountThreshold"].asString());
}
std::string CreateHealthCheckResult::getDescription()const
{
return description_;
}
int CreateHealthCheckResult::getSrcPort()const
{
return srcPort_;
}
std::string CreateHealthCheckResult::getInstanceId()const
{
return instanceId_;
}
std::string CreateHealthCheckResult::getSrcIpAddr()const
{
return srcIpAddr_;
}
long CreateHealthCheckResult::getCreateTime()const
{
return createTime_;
}
int CreateHealthCheckResult::getFailCountThreshold()const
{
return failCountThreshold_;
}
int CreateHealthCheckResult::getDstPort()const
{
return dstPort_;
}
std::string CreateHealthCheckResult::getName()const
{
return name_;
}
int CreateHealthCheckResult::getProbeCount()const
{
return probeCount_;
}
std::string CreateHealthCheckResult::getType()const
{
return type_;
}
int CreateHealthCheckResult::getProbeTimeout()const
{
return probeTimeout_;
}
int CreateHealthCheckResult::getRttThreshold()const
{
return rttThreshold_;
}
std::string CreateHealthCheckResult::getRegionId()const
{
return regionId_;
}
int CreateHealthCheckResult::getProbeInterval()const
{
return probeInterval_;
}
std::string CreateHealthCheckResult::getSmartAGId()const
{
return smartAGId_;
}
int CreateHealthCheckResult::getRttFailThreshold()const
{
return rttFailThreshold_;
}
std::string CreateHealthCheckResult::getDstIpAddr()const
{
return dstIpAddr_;
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::CreateNetworkOptimizationRequest;
CreateNetworkOptimizationRequest::CreateNetworkOptimizationRequest() :
RpcServiceRequest("smartag", "2018-03-13", "CreateNetworkOptimization")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateNetworkOptimizationRequest::~CreateNetworkOptimizationRequest()
{}
@@ -33,7 +35,7 @@ long CreateNetworkOptimizationRequest::getResourceOwnerId()const
void CreateNetworkOptimizationRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateNetworkOptimizationRequest::getCcnId()const
@@ -44,7 +46,7 @@ std::string CreateNetworkOptimizationRequest::getCcnId()const
void CreateNetworkOptimizationRequest::setCcnId(const std::string& ccnId)
{
ccnId_ = ccnId;
setCoreParameter("CcnId", ccnId);
setParameter("CcnId", ccnId);
}
std::string CreateNetworkOptimizationRequest::getRegionId()const
@@ -55,7 +57,7 @@ std::string CreateNetworkOptimizationRequest::getRegionId()const
void CreateNetworkOptimizationRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string CreateNetworkOptimizationRequest::getResourceOwnerAccount()const
@@ -66,7 +68,7 @@ std::string CreateNetworkOptimizationRequest::getResourceOwnerAccount()const
void CreateNetworkOptimizationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateNetworkOptimizationRequest::getOwnerAccount()const
@@ -77,7 +79,7 @@ std::string CreateNetworkOptimizationRequest::getOwnerAccount()const
void CreateNetworkOptimizationRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long CreateNetworkOptimizationRequest::getOwnerId()const
@@ -88,7 +90,7 @@ long CreateNetworkOptimizationRequest::getOwnerId()const
void CreateNetworkOptimizationRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateNetworkOptimizationRequest::getName()const
@@ -99,6 +101,6 @@ std::string CreateNetworkOptimizationRequest::getName()const
void CreateNetworkOptimizationRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
setParameter("Name", name);
}

View File

@@ -20,162 +20,175 @@ using AlibabaCloud::Smartag::Model::CreateQosCarRequest;
CreateQosCarRequest::CreateQosCarRequest() :
RpcServiceRequest("smartag", "2018-03-13", "CreateQosCar")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateQosCarRequest::~CreateQosCarRequest()
{}
long CreateQosCarRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateQosCarRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int CreateQosCarRequest::getMinBandwidthAbs()const
{
return minBandwidthAbs_;
}
void CreateQosCarRequest::setMinBandwidthAbs(int minBandwidthAbs)
{
minBandwidthAbs_ = minBandwidthAbs;
setCoreParameter("MinBandwidthAbs", std::to_string(minBandwidthAbs));
}
std::string CreateQosCarRequest::getDescription()const
{
return description_;
}
void CreateQosCarRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string CreateQosCarRequest::getRegionId()const
{
return regionId_;
}
void CreateQosCarRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string CreateQosCarRequest::getPercentSourceType()const
{
return percentSourceType_;
}
void CreateQosCarRequest::setPercentSourceType(const std::string& percentSourceType)
{
percentSourceType_ = percentSourceType;
setCoreParameter("PercentSourceType", percentSourceType);
}
std::string CreateQosCarRequest::getQosId()const
{
return qosId_;
}
void CreateQosCarRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setCoreParameter("QosId", qosId);
}
int CreateQosCarRequest::getMaxBandwidthAbs()const
{
return maxBandwidthAbs_;
}
void CreateQosCarRequest::setMaxBandwidthAbs(int maxBandwidthAbs)
{
maxBandwidthAbs_ = maxBandwidthAbs;
setCoreParameter("MaxBandwidthAbs", std::to_string(maxBandwidthAbs));
}
std::string CreateQosCarRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateQosCarRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
int CreateQosCarRequest::getMaxBandwidthPercent()const
{
return maxBandwidthPercent_;
}
void CreateQosCarRequest::setMaxBandwidthPercent(int maxBandwidthPercent)
{
maxBandwidthPercent_ = maxBandwidthPercent;
setCoreParameter("MaxBandwidthPercent", std::to_string(maxBandwidthPercent));
}
std::string CreateQosCarRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateQosCarRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long CreateQosCarRequest::getOwnerId()const
{
return ownerId_;
}
void CreateQosCarRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
int CreateQosCarRequest::getPriority()const
{
return priority_;
}
void CreateQosCarRequest::setPriority(int priority)
{
priority_ = priority;
setCoreParameter("Priority", std::to_string(priority));
}
int CreateQosCarRequest::getMinBandwidthPercent()const
{
return minBandwidthPercent_;
}
void CreateQosCarRequest::setMinBandwidthPercent(int minBandwidthPercent)
{
minBandwidthPercent_ = minBandwidthPercent;
setCoreParameter("MinBandwidthPercent", std::to_string(minBandwidthPercent));
}
std::string CreateQosCarRequest::getLimitType()const
{
return limitType_;
}
void CreateQosCarRequest::setLimitType(const std::string& limitType)
{
limitType_ = limitType;
setCoreParameter("LimitType", limitType);
}
long CreateQosCarRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateQosCarRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int CreateQosCarRequest::getMinBandwidthAbs()const
{
return minBandwidthAbs_;
}
void CreateQosCarRequest::setMinBandwidthAbs(int minBandwidthAbs)
{
minBandwidthAbs_ = minBandwidthAbs;
setParameter("MinBandwidthAbs", std::to_string(minBandwidthAbs));
}
std::string CreateQosCarRequest::getDescription()const
{
return description_;
}
void CreateQosCarRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateQosCarRequest::getRegionId()const
{
return regionId_;
}
void CreateQosCarRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateQosCarRequest::getPercentSourceType()const
{
return percentSourceType_;
}
void CreateQosCarRequest::setPercentSourceType(const std::string& percentSourceType)
{
percentSourceType_ = percentSourceType;
setParameter("PercentSourceType", percentSourceType);
}
std::string CreateQosCarRequest::getQosId()const
{
return qosId_;
}
void CreateQosCarRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setParameter("QosId", qosId);
}
int CreateQosCarRequest::getMaxBandwidthAbs()const
{
return maxBandwidthAbs_;
}
void CreateQosCarRequest::setMaxBandwidthAbs(int maxBandwidthAbs)
{
maxBandwidthAbs_ = maxBandwidthAbs;
setParameter("MaxBandwidthAbs", std::to_string(maxBandwidthAbs));
}
std::string CreateQosCarRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateQosCarRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
int CreateQosCarRequest::getMaxBandwidthPercent()const
{
return maxBandwidthPercent_;
}
void CreateQosCarRequest::setMaxBandwidthPercent(int maxBandwidthPercent)
{
maxBandwidthPercent_ = maxBandwidthPercent;
setParameter("MaxBandwidthPercent", std::to_string(maxBandwidthPercent));
}
std::string CreateQosCarRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateQosCarRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long CreateQosCarRequest::getOwnerId()const
{
return ownerId_;
}
void CreateQosCarRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int CreateQosCarRequest::getPriority()const
{
return priority_;
}
void CreateQosCarRequest::setPriority(int priority)
{
priority_ = priority;
setParameter("Priority", std::to_string(priority));
}
int CreateQosCarRequest::getMinBandwidthPercent()const
{
return minBandwidthPercent_;
}
void CreateQosCarRequest::setMinBandwidthPercent(int minBandwidthPercent)
{
minBandwidthPercent_ = minBandwidthPercent;
setParameter("MinBandwidthPercent", std::to_string(minBandwidthPercent));
}
std::string CreateQosCarRequest::getLimitType()const
{
return limitType_;
}
void CreateQosCarRequest::setLimitType(const std::string& limitType)
{
limitType_ = limitType;
setParameter("LimitType", limitType);
}
std::string CreateQosCarRequest::getName()const
{
return name_;
}
void CreateQosCarRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -20,173 +20,186 @@ using AlibabaCloud::Smartag::Model::CreateQosPolicyRequest;
CreateQosPolicyRequest::CreateQosPolicyRequest() :
RpcServiceRequest("smartag", "2018-03-13", "CreateQosPolicy")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateQosPolicyRequest::~CreateQosPolicyRequest()
{}
long CreateQosPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateQosPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateQosPolicyRequest::getSourcePortRange()const
{
return sourcePortRange_;
}
void CreateQosPolicyRequest::setSourcePortRange(const std::string& sourcePortRange)
{
sourcePortRange_ = sourcePortRange;
setCoreParameter("SourcePortRange", sourcePortRange);
}
std::string CreateQosPolicyRequest::getSourceCidr()const
{
return sourceCidr_;
}
void CreateQosPolicyRequest::setSourceCidr(const std::string& sourceCidr)
{
sourceCidr_ = sourceCidr;
setCoreParameter("SourceCidr", sourceCidr);
}
std::string CreateQosPolicyRequest::getDescription()const
{
return description_;
}
void CreateQosPolicyRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string CreateQosPolicyRequest::getStartTime()const
{
return startTime_;
}
void CreateQosPolicyRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string CreateQosPolicyRequest::getDestCidr()const
{
return destCidr_;
}
void CreateQosPolicyRequest::setDestCidr(const std::string& destCidr)
{
destCidr_ = destCidr;
setCoreParameter("DestCidr", destCidr);
}
std::string CreateQosPolicyRequest::getRegionId()const
{
return regionId_;
}
void CreateQosPolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string CreateQosPolicyRequest::getQosId()const
{
return qosId_;
}
void CreateQosPolicyRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setCoreParameter("QosId", qosId);
}
std::string CreateQosPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateQosPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateQosPolicyRequest::getIpProtocol()const
{
return ipProtocol_;
}
void CreateQosPolicyRequest::setIpProtocol(const std::string& ipProtocol)
{
ipProtocol_ = ipProtocol;
setCoreParameter("IpProtocol", ipProtocol);
}
std::string CreateQosPolicyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateQosPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
std::string CreateQosPolicyRequest::getEndTime()const
{
return endTime_;
}
void CreateQosPolicyRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
long CreateQosPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void CreateQosPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
int CreateQosPolicyRequest::getPriority()const
{
return priority_;
}
void CreateQosPolicyRequest::setPriority(int priority)
{
priority_ = priority;
setCoreParameter("Priority", std::to_string(priority));
}
std::string CreateQosPolicyRequest::getDestPortRange()const
{
return destPortRange_;
}
void CreateQosPolicyRequest::setDestPortRange(const std::string& destPortRange)
{
destPortRange_ = destPortRange;
setCoreParameter("DestPortRange", destPortRange);
}
long CreateQosPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateQosPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateQosPolicyRequest::getSourcePortRange()const
{
return sourcePortRange_;
}
void CreateQosPolicyRequest::setSourcePortRange(const std::string& sourcePortRange)
{
sourcePortRange_ = sourcePortRange;
setParameter("SourcePortRange", sourcePortRange);
}
std::string CreateQosPolicyRequest::getSourceCidr()const
{
return sourceCidr_;
}
void CreateQosPolicyRequest::setSourceCidr(const std::string& sourceCidr)
{
sourceCidr_ = sourceCidr;
setParameter("SourceCidr", sourceCidr);
}
std::string CreateQosPolicyRequest::getDescription()const
{
return description_;
}
void CreateQosPolicyRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateQosPolicyRequest::getStartTime()const
{
return startTime_;
}
void CreateQosPolicyRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string CreateQosPolicyRequest::getDestCidr()const
{
return destCidr_;
}
void CreateQosPolicyRequest::setDestCidr(const std::string& destCidr)
{
destCidr_ = destCidr;
setParameter("DestCidr", destCidr);
}
std::string CreateQosPolicyRequest::getRegionId()const
{
return regionId_;
}
void CreateQosPolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateQosPolicyRequest::getQosId()const
{
return qosId_;
}
void CreateQosPolicyRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setParameter("QosId", qosId);
}
std::string CreateQosPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateQosPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateQosPolicyRequest::getIpProtocol()const
{
return ipProtocol_;
}
void CreateQosPolicyRequest::setIpProtocol(const std::string& ipProtocol)
{
ipProtocol_ = ipProtocol;
setParameter("IpProtocol", ipProtocol);
}
std::string CreateQosPolicyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateQosPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateQosPolicyRequest::getEndTime()const
{
return endTime_;
}
void CreateQosPolicyRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long CreateQosPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void CreateQosPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int CreateQosPolicyRequest::getPriority()const
{
return priority_;
}
void CreateQosPolicyRequest::setPriority(int priority)
{
priority_ = priority;
setParameter("Priority", std::to_string(priority));
}
std::string CreateQosPolicyRequest::getDestPortRange()const
{
return destPortRange_;
}
void CreateQosPolicyRequest::setDestPortRange(const std::string& destPortRange)
{
destPortRange_ = destPortRange;
setParameter("DestPortRange", destPortRange);
}
std::string CreateQosPolicyRequest::getName()const
{
return name_;
}
void CreateQosPolicyRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -61,6 +61,8 @@ void CreateQosPolicyResult::parse(const std::string &payload)
startTime_ = value["StartTime"].asString();
if(!value["EndTime"].isNull())
endTime_ = value["EndTime"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
}
@@ -119,3 +121,8 @@ std::string CreateQosPolicyResult::getDestPortRange()const
return destPortRange_;
}
std::string CreateQosPolicyResult::getName()const
{
return name_;
}

View File

@@ -20,74 +20,87 @@ using AlibabaCloud::Smartag::Model::CreateQosRequest;
CreateQosRequest::CreateQosRequest() :
RpcServiceRequest("smartag", "2018-03-13", "CreateQos")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateQosRequest::~CreateQosRequest()
{}
long CreateQosRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateQosRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateQosRequest::getRegionId()const
{
return regionId_;
}
void CreateQosRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string CreateQosRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateQosRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateQosRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long CreateQosRequest::getOwnerId()const
{
return ownerId_;
}
void CreateQosRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateQosRequest::getQosName()const
{
return qosName_;
}
void CreateQosRequest::setQosName(const std::string& qosName)
{
qosName_ = qosName;
setCoreParameter("QosName", qosName);
}
long CreateQosRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateQosRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateQosRequest::getRegionId()const
{
return regionId_;
}
void CreateQosRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateQosRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateQosRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateQosRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long CreateQosRequest::getOwnerId()const
{
return ownerId_;
}
void CreateQosRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateQosRequest::getQosName()const
{
return qosName_;
}
void CreateQosRequest::setQosName(const std::string& qosName)
{
qosName_ = qosName;
setParameter("QosName", qosName);
}
std::string CreateQosRequest::getQosDescription()const
{
return qosDescription_;
}
void CreateQosRequest::setQosDescription(const std::string& qosDescription)
{
qosDescription_ = qosDescription;
setParameter("QosDescription", qosDescription);
}

View File

@@ -0,0 +1,150 @@
/*
* 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/smartag/model/CreateSagExpressConnectInterfaceRequest.h>
using AlibabaCloud::Smartag::Model::CreateSagExpressConnectInterfaceRequest;
CreateSagExpressConnectInterfaceRequest::CreateSagExpressConnectInterfaceRequest() :
RpcServiceRequest("smartag", "2018-03-13", "CreateSagExpressConnectInterface")
{
setMethod(HttpRequest::Method::Post);
}
CreateSagExpressConnectInterfaceRequest::~CreateSagExpressConnectInterfaceRequest()
{}
long CreateSagExpressConnectInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateSagExpressConnectInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateSagExpressConnectInterfaceRequest::getVlan()const
{
return vlan_;
}
void CreateSagExpressConnectInterfaceRequest::setVlan(const std::string& vlan)
{
vlan_ = vlan;
setParameter("Vlan", vlan);
}
std::string CreateSagExpressConnectInterfaceRequest::getRegionId()const
{
return regionId_;
}
void CreateSagExpressConnectInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateSagExpressConnectInterfaceRequest::getMask()const
{
return mask_;
}
void CreateSagExpressConnectInterfaceRequest::setMask(const std::string& mask)
{
mask_ = mask;
setParameter("Mask", mask);
}
std::string CreateSagExpressConnectInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateSagExpressConnectInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateSagExpressConnectInterfaceRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateSagExpressConnectInterfaceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateSagExpressConnectInterfaceRequest::getIP()const
{
return iP_;
}
void CreateSagExpressConnectInterfaceRequest::setIP(const std::string& iP)
{
iP_ = iP;
setParameter("IP", iP);
}
long CreateSagExpressConnectInterfaceRequest::getOwnerId()const
{
return ownerId_;
}
void CreateSagExpressConnectInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateSagExpressConnectInterfaceRequest::getSmartAGId()const
{
return smartAGId_;
}
void CreateSagExpressConnectInterfaceRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}
std::string CreateSagExpressConnectInterfaceRequest::getSmartAGSn()const
{
return smartAGSn_;
}
void CreateSagExpressConnectInterfaceRequest::setSmartAGSn(const std::string& smartAGSn)
{
smartAGSn_ = smartAGSn;
setParameter("SmartAGSn", smartAGSn);
}
std::string CreateSagExpressConnectInterfaceRequest::getPortName()const
{
return portName_;
}
void CreateSagExpressConnectInterfaceRequest::setPortName(const std::string& portName)
{
portName_ = portName;
setParameter("PortName", portName);
}

View File

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

View File

@@ -0,0 +1,150 @@
/*
* 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/smartag/model/CreateSagStaticRouteRequest.h>
using AlibabaCloud::Smartag::Model::CreateSagStaticRouteRequest;
CreateSagStaticRouteRequest::CreateSagStaticRouteRequest() :
RpcServiceRequest("smartag", "2018-03-13", "CreateSagStaticRoute")
{
setMethod(HttpRequest::Method::Post);
}
CreateSagStaticRouteRequest::~CreateSagStaticRouteRequest()
{}
long CreateSagStaticRouteRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateSagStaticRouteRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateSagStaticRouteRequest::getVlan()const
{
return vlan_;
}
void CreateSagStaticRouteRequest::setVlan(const std::string& vlan)
{
vlan_ = vlan;
setParameter("Vlan", vlan);
}
std::string CreateSagStaticRouteRequest::getRegionId()const
{
return regionId_;
}
void CreateSagStaticRouteRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateSagStaticRouteRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateSagStaticRouteRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateSagStaticRouteRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateSagStaticRouteRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long CreateSagStaticRouteRequest::getOwnerId()const
{
return ownerId_;
}
void CreateSagStaticRouteRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateSagStaticRouteRequest::getNextHop()const
{
return nextHop_;
}
void CreateSagStaticRouteRequest::setNextHop(const std::string& nextHop)
{
nextHop_ = nextHop;
setParameter("NextHop", nextHop);
}
std::string CreateSagStaticRouteRequest::getSmartAGId()const
{
return smartAGId_;
}
void CreateSagStaticRouteRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}
std::string CreateSagStaticRouteRequest::getSmartAGSn()const
{
return smartAGSn_;
}
void CreateSagStaticRouteRequest::setSmartAGSn(const std::string& smartAGSn)
{
smartAGSn_ = smartAGSn;
setParameter("SmartAGSn", smartAGSn);
}
std::string CreateSagStaticRouteRequest::getPortName()const
{
return portName_;
}
void CreateSagStaticRouteRequest::setPortName(const std::string& portName)
{
portName_ = portName;
setParameter("PortName", portName);
}
std::string CreateSagStaticRouteRequest::getDestinationCidr()const
{
return destinationCidr_;
}
void CreateSagStaticRouteRequest::setDestinationCidr(const std::string& destinationCidr)
{
destinationCidr_ = destinationCidr;
setParameter("DestinationCidr", destinationCidr);
}

View File

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

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::CreateSmartAccessGatewayClientUserRequest;
CreateSmartAccessGatewayClientUserRequest::CreateSmartAccessGatewayClientUserRequest() :
RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGatewayClientUser")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateSmartAccessGatewayClientUserRequest::~CreateSmartAccessGatewayClientUserRequest()
{}
@@ -33,7 +35,7 @@ long CreateSmartAccessGatewayClientUserRequest::getResourceOwnerId()const
void CreateSmartAccessGatewayClientUserRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateSmartAccessGatewayClientUserRequest::getPassword()const
@@ -44,7 +46,7 @@ std::string CreateSmartAccessGatewayClientUserRequest::getPassword()const
void CreateSmartAccessGatewayClientUserRequest::setPassword(const std::string& password)
{
password_ = password;
setCoreParameter("Password", password);
setParameter("Password", password);
}
std::string CreateSmartAccessGatewayClientUserRequest::getRegionId()const
@@ -55,7 +57,7 @@ std::string CreateSmartAccessGatewayClientUserRequest::getRegionId()const
void CreateSmartAccessGatewayClientUserRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string CreateSmartAccessGatewayClientUserRequest::getClientIp()const
@@ -66,7 +68,7 @@ std::string CreateSmartAccessGatewayClientUserRequest::getClientIp()const
void CreateSmartAccessGatewayClientUserRequest::setClientIp(const std::string& clientIp)
{
clientIp_ = clientIp;
setCoreParameter("ClientIp", clientIp);
setParameter("ClientIp", clientIp);
}
std::string CreateSmartAccessGatewayClientUserRequest::getResourceOwnerAccount()const
@@ -77,7 +79,7 @@ std::string CreateSmartAccessGatewayClientUserRequest::getResourceOwnerAccount()
void CreateSmartAccessGatewayClientUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long CreateSmartAccessGatewayClientUserRequest::getBandwidth()const
@@ -88,7 +90,7 @@ long CreateSmartAccessGatewayClientUserRequest::getBandwidth()const
void CreateSmartAccessGatewayClientUserRequest::setBandwidth(long bandwidth)
{
bandwidth_ = bandwidth;
setCoreParameter("Bandwidth", std::to_string(bandwidth));
setParameter("Bandwidth", std::to_string(bandwidth));
}
std::string CreateSmartAccessGatewayClientUserRequest::getOwnerAccount()const
@@ -99,7 +101,7 @@ std::string CreateSmartAccessGatewayClientUserRequest::getOwnerAccount()const
void CreateSmartAccessGatewayClientUserRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateSmartAccessGatewayClientUserRequest::getUserMail()const
@@ -110,7 +112,7 @@ std::string CreateSmartAccessGatewayClientUserRequest::getUserMail()const
void CreateSmartAccessGatewayClientUserRequest::setUserMail(const std::string& userMail)
{
userMail_ = userMail;
setCoreParameter("UserMail", userMail);
setParameter("UserMail", userMail);
}
long CreateSmartAccessGatewayClientUserRequest::getOwnerId()const
@@ -121,7 +123,7 @@ long CreateSmartAccessGatewayClientUserRequest::getOwnerId()const
void CreateSmartAccessGatewayClientUserRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateSmartAccessGatewayClientUserRequest::getSmartAGId()const
@@ -132,7 +134,7 @@ std::string CreateSmartAccessGatewayClientUserRequest::getSmartAGId()const
void CreateSmartAccessGatewayClientUserRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setCoreParameter("SmartAGId", smartAGId);
setParameter("SmartAGId", smartAGId);
}
std::string CreateSmartAccessGatewayClientUserRequest::getUserName()const
@@ -143,6 +145,6 @@ std::string CreateSmartAccessGatewayClientUserRequest::getUserName()const
void CreateSmartAccessGatewayClientUserRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setCoreParameter("UserName", userName);
setParameter("UserName", userName);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::CreateSmartAccessGatewayRequest;
CreateSmartAccessGatewayRequest::CreateSmartAccessGatewayRequest() :
RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGateway")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateSmartAccessGatewayRequest::~CreateSmartAccessGatewayRequest()
{}
@@ -33,7 +35,7 @@ int CreateSmartAccessGatewayRequest::getMaxBandWidth()const
void CreateSmartAccessGatewayRequest::setMaxBandWidth(int maxBandWidth)
{
maxBandWidth_ = maxBandWidth;
setCoreParameter("MaxBandWidth", std::to_string(maxBandWidth));
setParameter("MaxBandWidth", std::to_string(maxBandWidth));
}
long CreateSmartAccessGatewayRequest::getResourceOwnerId()const
@@ -44,7 +46,7 @@ long CreateSmartAccessGatewayRequest::getResourceOwnerId()const
void CreateSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateSmartAccessGatewayRequest::getDescription()const
@@ -55,7 +57,7 @@ std::string CreateSmartAccessGatewayRequest::getDescription()const
void CreateSmartAccessGatewayRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
setParameter("Description", description);
}
std::string CreateSmartAccessGatewayRequest::getReceiverTown()const
@@ -66,7 +68,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverTown()const
void CreateSmartAccessGatewayRequest::setReceiverTown(const std::string& receiverTown)
{
receiverTown_ = receiverTown;
setCoreParameter("ReceiverTown", receiverTown);
setParameter("ReceiverTown", receiverTown);
}
std::string CreateSmartAccessGatewayRequest::getReceiverDistrict()const
@@ -77,7 +79,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverDistrict()const
void CreateSmartAccessGatewayRequest::setReceiverDistrict(const std::string& receiverDistrict)
{
receiverDistrict_ = receiverDistrict;
setCoreParameter("ReceiverDistrict", receiverDistrict);
setParameter("ReceiverDistrict", receiverDistrict);
}
std::string CreateSmartAccessGatewayRequest::getRegionId()const
@@ -88,7 +90,7 @@ std::string CreateSmartAccessGatewayRequest::getRegionId()const
void CreateSmartAccessGatewayRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
int CreateSmartAccessGatewayRequest::getUserCount()const
@@ -99,7 +101,7 @@ int CreateSmartAccessGatewayRequest::getUserCount()const
void CreateSmartAccessGatewayRequest::setUserCount(int userCount)
{
userCount_ = userCount;
setCoreParameter("UserCount", std::to_string(userCount));
setParameter("UserCount", std::to_string(userCount));
}
std::string CreateSmartAccessGatewayRequest::getReceiverAddress()const
@@ -110,7 +112,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverAddress()const
void CreateSmartAccessGatewayRequest::setReceiverAddress(const std::string& receiverAddress)
{
receiverAddress_ = receiverAddress;
setCoreParameter("ReceiverAddress", receiverAddress);
setParameter("ReceiverAddress", receiverAddress);
}
std::string CreateSmartAccessGatewayRequest::getInstanceType()const
@@ -121,7 +123,7 @@ std::string CreateSmartAccessGatewayRequest::getInstanceType()const
void CreateSmartAccessGatewayRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setCoreParameter("InstanceType", instanceType);
setParameter("InstanceType", instanceType);
}
std::string CreateSmartAccessGatewayRequest::getBuyerMessage()const
@@ -132,7 +134,7 @@ std::string CreateSmartAccessGatewayRequest::getBuyerMessage()const
void CreateSmartAccessGatewayRequest::setBuyerMessage(const std::string& buyerMessage)
{
buyerMessage_ = buyerMessage;
setCoreParameter("BuyerMessage", buyerMessage);
setParameter("BuyerMessage", buyerMessage);
}
std::string CreateSmartAccessGatewayRequest::getHardWareSpec()const
@@ -143,7 +145,7 @@ std::string CreateSmartAccessGatewayRequest::getHardWareSpec()const
void CreateSmartAccessGatewayRequest::setHardWareSpec(const std::string& hardWareSpec)
{
hardWareSpec_ = hardWareSpec;
setCoreParameter("HardWareSpec", hardWareSpec);
setParameter("HardWareSpec", hardWareSpec);
}
std::string CreateSmartAccessGatewayRequest::getReceiverEmail()const
@@ -154,7 +156,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverEmail()const
void CreateSmartAccessGatewayRequest::setReceiverEmail(const std::string& receiverEmail)
{
receiverEmail_ = receiverEmail;
setCoreParameter("ReceiverEmail", receiverEmail);
setParameter("ReceiverEmail", receiverEmail);
}
std::string CreateSmartAccessGatewayRequest::getReceiverState()const
@@ -165,7 +167,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverState()const
void CreateSmartAccessGatewayRequest::setReceiverState(const std::string& receiverState)
{
receiverState_ = receiverState;
setCoreParameter("ReceiverState", receiverState);
setParameter("ReceiverState", receiverState);
}
std::string CreateSmartAccessGatewayRequest::getReceiverCity()const
@@ -176,7 +178,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverCity()const
void CreateSmartAccessGatewayRequest::setReceiverCity(const std::string& receiverCity)
{
receiverCity_ = receiverCity;
setCoreParameter("ReceiverCity", receiverCity);
setParameter("ReceiverCity", receiverCity);
}
int CreateSmartAccessGatewayRequest::getPeriod()const
@@ -187,7 +189,7 @@ int CreateSmartAccessGatewayRequest::getPeriod()const
void CreateSmartAccessGatewayRequest::setPeriod(int period)
{
period_ = period;
setCoreParameter("Period", std::to_string(period));
setParameter("Period", std::to_string(period));
}
bool CreateSmartAccessGatewayRequest::getAutoPay()const
@@ -198,7 +200,7 @@ bool CreateSmartAccessGatewayRequest::getAutoPay()const
void CreateSmartAccessGatewayRequest::setAutoPay(bool autoPay)
{
autoPay_ = autoPay;
setCoreParameter("AutoPay", autoPay ? "true" : "false");
setParameter("AutoPay", autoPay ? "true" : "false");
}
std::string CreateSmartAccessGatewayRequest::getReceiverMobile()const
@@ -209,7 +211,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverMobile()const
void CreateSmartAccessGatewayRequest::setReceiverMobile(const std::string& receiverMobile)
{
receiverMobile_ = receiverMobile;
setCoreParameter("ReceiverMobile", receiverMobile);
setParameter("ReceiverMobile", receiverMobile);
}
std::string CreateSmartAccessGatewayRequest::getResourceOwnerAccount()const
@@ -220,7 +222,7 @@ std::string CreateSmartAccessGatewayRequest::getResourceOwnerAccount()const
void CreateSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateSmartAccessGatewayRequest::getOwnerAccount()const
@@ -231,7 +233,7 @@ std::string CreateSmartAccessGatewayRequest::getOwnerAccount()const
void CreateSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long CreateSmartAccessGatewayRequest::getOwnerId()const
@@ -242,7 +244,7 @@ long CreateSmartAccessGatewayRequest::getOwnerId()const
void CreateSmartAccessGatewayRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateSmartAccessGatewayRequest::getReceiverPhone()const
@@ -253,7 +255,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverPhone()const
void CreateSmartAccessGatewayRequest::setReceiverPhone(const std::string& receiverPhone)
{
receiverPhone_ = receiverPhone;
setCoreParameter("ReceiverPhone", receiverPhone);
setParameter("ReceiverPhone", receiverPhone);
}
std::string CreateSmartAccessGatewayRequest::getReceiverName()const
@@ -264,7 +266,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverName()const
void CreateSmartAccessGatewayRequest::setReceiverName(const std::string& receiverName)
{
receiverName_ = receiverName;
setCoreParameter("ReceiverName", receiverName);
setParameter("ReceiverName", receiverName);
}
std::string CreateSmartAccessGatewayRequest::getHaType()const
@@ -275,7 +277,7 @@ std::string CreateSmartAccessGatewayRequest::getHaType()const
void CreateSmartAccessGatewayRequest::setHaType(const std::string& haType)
{
haType_ = haType;
setCoreParameter("HaType", haType);
setParameter("HaType", haType);
}
std::string CreateSmartAccessGatewayRequest::getName()const
@@ -286,7 +288,18 @@ std::string CreateSmartAccessGatewayRequest::getName()const
void CreateSmartAccessGatewayRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
setParameter("Name", name);
}
bool CreateSmartAccessGatewayRequest::getAlreadyHaveSag()const
{
return alreadyHaveSag_;
}
void CreateSmartAccessGatewayRequest::setAlreadyHaveSag(bool alreadyHaveSag)
{
alreadyHaveSag_ = alreadyHaveSag;
setParameter("AlreadyHaveSag", alreadyHaveSag ? "true" : "false");
}
std::string CreateSmartAccessGatewayRequest::getReceiverCountry()const
@@ -297,7 +310,7 @@ std::string CreateSmartAccessGatewayRequest::getReceiverCountry()const
void CreateSmartAccessGatewayRequest::setReceiverCountry(const std::string& receiverCountry)
{
receiverCountry_ = receiverCountry;
setCoreParameter("ReceiverCountry", receiverCountry);
setParameter("ReceiverCountry", receiverCountry);
}
std::string CreateSmartAccessGatewayRequest::getChargeType()const
@@ -308,7 +321,7 @@ std::string CreateSmartAccessGatewayRequest::getChargeType()const
void CreateSmartAccessGatewayRequest::setChargeType(const std::string& chargeType)
{
chargeType_ = chargeType;
setCoreParameter("ChargeType", chargeType);
setParameter("ChargeType", chargeType);
}
long CreateSmartAccessGatewayRequest::getDataPlan()const
@@ -319,7 +332,7 @@ long CreateSmartAccessGatewayRequest::getDataPlan()const
void CreateSmartAccessGatewayRequest::setDataPlan(long dataPlan)
{
dataPlan_ = dataPlan;
setCoreParameter("DataPlan", std::to_string(dataPlan));
setParameter("DataPlan", std::to_string(dataPlan));
}
std::string CreateSmartAccessGatewayRequest::getReceiverZip()const
@@ -330,6 +343,6 @@ std::string CreateSmartAccessGatewayRequest::getReceiverZip()const
void CreateSmartAccessGatewayRequest::setReceiverZip(const std::string& receiverZip)
{
receiverZip_ = receiverZip;
setCoreParameter("ReceiverZip", receiverZip);
setParameter("ReceiverZip", receiverZip);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::CreateSmartAccessGatewaySoftwareRequest;
CreateSmartAccessGatewaySoftwareRequest::CreateSmartAccessGatewaySoftwareRequest() :
RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGatewaySoftware")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateSmartAccessGatewaySoftwareRequest::~CreateSmartAccessGatewaySoftwareRequest()
{}
@@ -33,7 +35,7 @@ long CreateSmartAccessGatewaySoftwareRequest::getResourceOwnerId()const
void CreateSmartAccessGatewaySoftwareRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateSmartAccessGatewaySoftwareRequest::getRegionId()const
@@ -44,7 +46,7 @@ std::string CreateSmartAccessGatewaySoftwareRequest::getRegionId()const
void CreateSmartAccessGatewaySoftwareRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
int CreateSmartAccessGatewaySoftwareRequest::getUserCount()const
@@ -55,7 +57,7 @@ int CreateSmartAccessGatewaySoftwareRequest::getUserCount()const
void CreateSmartAccessGatewaySoftwareRequest::setUserCount(int userCount)
{
userCount_ = userCount;
setCoreParameter("UserCount", std::to_string(userCount));
setParameter("UserCount", std::to_string(userCount));
}
int CreateSmartAccessGatewaySoftwareRequest::getPeriod()const
@@ -66,7 +68,7 @@ int CreateSmartAccessGatewaySoftwareRequest::getPeriod()const
void CreateSmartAccessGatewaySoftwareRequest::setPeriod(int period)
{
period_ = period;
setCoreParameter("Period", std::to_string(period));
setParameter("Period", std::to_string(period));
}
bool CreateSmartAccessGatewaySoftwareRequest::getAutoPay()const
@@ -77,7 +79,7 @@ bool CreateSmartAccessGatewaySoftwareRequest::getAutoPay()const
void CreateSmartAccessGatewaySoftwareRequest::setAutoPay(bool autoPay)
{
autoPay_ = autoPay;
setCoreParameter("AutoPay", autoPay ? "true" : "false");
setParameter("AutoPay", autoPay ? "true" : "false");
}
std::string CreateSmartAccessGatewaySoftwareRequest::getResourceOwnerAccount()const
@@ -88,7 +90,7 @@ std::string CreateSmartAccessGatewaySoftwareRequest::getResourceOwnerAccount()co
void CreateSmartAccessGatewaySoftwareRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateSmartAccessGatewaySoftwareRequest::getOwnerAccount()const
@@ -99,7 +101,7 @@ std::string CreateSmartAccessGatewaySoftwareRequest::getOwnerAccount()const
void CreateSmartAccessGatewaySoftwareRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long CreateSmartAccessGatewaySoftwareRequest::getOwnerId()const
@@ -110,7 +112,7 @@ long CreateSmartAccessGatewaySoftwareRequest::getOwnerId()const
void CreateSmartAccessGatewaySoftwareRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateSmartAccessGatewaySoftwareRequest::getChargeType()const
@@ -121,7 +123,7 @@ std::string CreateSmartAccessGatewaySoftwareRequest::getChargeType()const
void CreateSmartAccessGatewaySoftwareRequest::setChargeType(const std::string& chargeType)
{
chargeType_ = chargeType;
setCoreParameter("ChargeType", chargeType);
setParameter("ChargeType", chargeType);
}
long CreateSmartAccessGatewaySoftwareRequest::getDataPlan()const
@@ -132,6 +134,6 @@ long CreateSmartAccessGatewaySoftwareRequest::getDataPlan()const
void CreateSmartAccessGatewaySoftwareRequest::setDataPlan(long dataPlan)
{
dataPlan_ = dataPlan;
setCoreParameter("DataPlan", std::to_string(dataPlan));
setParameter("DataPlan", std::to_string(dataPlan));
}

View File

@@ -20,74 +20,76 @@ using AlibabaCloud::Smartag::Model::DeactiveFlowLogRequest;
DeactiveFlowLogRequest::DeactiveFlowLogRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeactiveFlowLog")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeactiveFlowLogRequest::~DeactiveFlowLogRequest()
{}
long DeactiveFlowLogRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeactiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeactiveFlowLogRequest::getRegionId()const
{
return regionId_;
}
void DeactiveFlowLogRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DeactiveFlowLogRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeactiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeactiveFlowLogRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeactiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DeactiveFlowLogRequest::getOwnerId()const
{
return ownerId_;
}
void DeactiveFlowLogRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeactiveFlowLogRequest::getFlowLogId()const
{
return flowLogId_;
}
void DeactiveFlowLogRequest::setFlowLogId(const std::string& flowLogId)
{
flowLogId_ = flowLogId;
setCoreParameter("FlowLogId", flowLogId);
}
long DeactiveFlowLogRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeactiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeactiveFlowLogRequest::getRegionId()const
{
return regionId_;
}
void DeactiveFlowLogRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeactiveFlowLogRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeactiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeactiveFlowLogRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeactiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeactiveFlowLogRequest::getOwnerId()const
{
return ownerId_;
}
void DeactiveFlowLogRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeactiveFlowLogRequest::getFlowLogId()const
{
return flowLogId_;
}
void DeactiveFlowLogRequest::setFlowLogId(const std::string& flowLogId)
{
flowLogId_ = flowLogId;
setParameter("FlowLogId", flowLogId);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::DeleteACLRequest;
DeleteACLRequest::DeleteACLRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteACL")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteACLRequest::~DeleteACLRequest()
{}
@@ -33,7 +35,7 @@ long DeleteACLRequest::getResourceOwnerId()const
void DeleteACLRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteACLRequest::getRegionId()const
@@ -44,7 +46,7 @@ std::string DeleteACLRequest::getRegionId()const
void DeleteACLRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string DeleteACLRequest::getAclId()const
@@ -55,7 +57,7 @@ std::string DeleteACLRequest::getAclId()const
void DeleteACLRequest::setAclId(const std::string& aclId)
{
aclId_ = aclId;
setCoreParameter("AclId", aclId);
setParameter("AclId", aclId);
}
std::string DeleteACLRequest::getResourceOwnerAccount()const
@@ -66,7 +68,7 @@ std::string DeleteACLRequest::getResourceOwnerAccount()const
void DeleteACLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteACLRequest::getOwnerAccount()const
@@ -77,7 +79,7 @@ std::string DeleteACLRequest::getOwnerAccount()const
void DeleteACLRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long DeleteACLRequest::getOwnerId()const
@@ -88,6 +90,6 @@ long DeleteACLRequest::getOwnerId()const
void DeleteACLRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::DeleteACLRuleRequest;
DeleteACLRuleRequest::DeleteACLRuleRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteACLRule")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteACLRuleRequest::~DeleteACLRuleRequest()
{}
@@ -33,7 +35,7 @@ long DeleteACLRuleRequest::getResourceOwnerId()const
void DeleteACLRuleRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteACLRuleRequest::getRegionId()const
@@ -44,7 +46,7 @@ std::string DeleteACLRuleRequest::getRegionId()const
void DeleteACLRuleRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string DeleteACLRuleRequest::getAclId()const
@@ -55,7 +57,7 @@ std::string DeleteACLRuleRequest::getAclId()const
void DeleteACLRuleRequest::setAclId(const std::string& aclId)
{
aclId_ = aclId;
setCoreParameter("AclId", aclId);
setParameter("AclId", aclId);
}
std::string DeleteACLRuleRequest::getResourceOwnerAccount()const
@@ -66,7 +68,7 @@ std::string DeleteACLRuleRequest::getResourceOwnerAccount()const
void DeleteACLRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteACLRuleRequest::getOwnerAccount()const
@@ -77,7 +79,7 @@ std::string DeleteACLRuleRequest::getOwnerAccount()const
void DeleteACLRuleRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long DeleteACLRuleRequest::getOwnerId()const
@@ -88,7 +90,7 @@ long DeleteACLRuleRequest::getOwnerId()const
void DeleteACLRuleRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteACLRuleRequest::getAcrId()const
@@ -99,6 +101,6 @@ std::string DeleteACLRuleRequest::getAcrId()const
void DeleteACLRuleRequest::setAcrId(const std::string& acrId)
{
acrId_ = acrId;
setCoreParameter("AcrId", acrId);
setParameter("AcrId", acrId);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::DeleteCloudConnectNetworkRequest;
DeleteCloudConnectNetworkRequest::DeleteCloudConnectNetworkRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteCloudConnectNetwork")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteCloudConnectNetworkRequest::~DeleteCloudConnectNetworkRequest()
{}
@@ -33,7 +35,7 @@ long DeleteCloudConnectNetworkRequest::getResourceOwnerId()const
void DeleteCloudConnectNetworkRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteCloudConnectNetworkRequest::getCcnId()const
@@ -44,7 +46,7 @@ std::string DeleteCloudConnectNetworkRequest::getCcnId()const
void DeleteCloudConnectNetworkRequest::setCcnId(const std::string& ccnId)
{
ccnId_ = ccnId;
setCoreParameter("CcnId", ccnId);
setParameter("CcnId", ccnId);
}
std::string DeleteCloudConnectNetworkRequest::getRegionId()const
@@ -55,7 +57,7 @@ std::string DeleteCloudConnectNetworkRequest::getRegionId()const
void DeleteCloudConnectNetworkRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string DeleteCloudConnectNetworkRequest::getResourceOwnerAccount()const
@@ -66,7 +68,7 @@ std::string DeleteCloudConnectNetworkRequest::getResourceOwnerAccount()const
void DeleteCloudConnectNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteCloudConnectNetworkRequest::getOwnerAccount()const
@@ -77,7 +79,7 @@ std::string DeleteCloudConnectNetworkRequest::getOwnerAccount()const
void DeleteCloudConnectNetworkRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long DeleteCloudConnectNetworkRequest::getOwnerId()const
@@ -88,6 +90,6 @@ long DeleteCloudConnectNetworkRequest::getOwnerId()const
void DeleteCloudConnectNetworkRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -20,85 +20,87 @@ using AlibabaCloud::Smartag::Model::DeleteDnatEntryRequest;
DeleteDnatEntryRequest::DeleteDnatEntryRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteDnatEntry")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteDnatEntryRequest::~DeleteDnatEntryRequest()
{}
long DeleteDnatEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteDnatEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteDnatEntryRequest::getDnatEntryId()const
{
return dnatEntryId_;
}
void DeleteDnatEntryRequest::setDnatEntryId(const std::string& dnatEntryId)
{
dnatEntryId_ = dnatEntryId;
setCoreParameter("DnatEntryId", dnatEntryId);
}
std::string DeleteDnatEntryRequest::getRegionId()const
{
return regionId_;
}
void DeleteDnatEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DeleteDnatEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteDnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteDnatEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteDnatEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DeleteDnatEntryRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteDnatEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteDnatEntryRequest::getSagId()const
{
return sagId_;
}
void DeleteDnatEntryRequest::setSagId(const std::string& sagId)
{
sagId_ = sagId;
setCoreParameter("SagId", sagId);
}
long DeleteDnatEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteDnatEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteDnatEntryRequest::getDnatEntryId()const
{
return dnatEntryId_;
}
void DeleteDnatEntryRequest::setDnatEntryId(const std::string& dnatEntryId)
{
dnatEntryId_ = dnatEntryId;
setParameter("DnatEntryId", dnatEntryId);
}
std::string DeleteDnatEntryRequest::getRegionId()const
{
return regionId_;
}
void DeleteDnatEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteDnatEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteDnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteDnatEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteDnatEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteDnatEntryRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteDnatEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteDnatEntryRequest::getSagId()const
{
return sagId_;
}
void DeleteDnatEntryRequest::setSagId(const std::string& sagId)
{
sagId_ = sagId;
setParameter("SagId", sagId);
}

View File

@@ -20,74 +20,76 @@ using AlibabaCloud::Smartag::Model::DeleteFlowLogRequest;
DeleteFlowLogRequest::DeleteFlowLogRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteFlowLog")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteFlowLogRequest::~DeleteFlowLogRequest()
{}
long DeleteFlowLogRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteFlowLogRequest::getRegionId()const
{
return regionId_;
}
void DeleteFlowLogRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DeleteFlowLogRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteFlowLogRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DeleteFlowLogRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteFlowLogRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteFlowLogRequest::getFlowLogId()const
{
return flowLogId_;
}
void DeleteFlowLogRequest::setFlowLogId(const std::string& flowLogId)
{
flowLogId_ = flowLogId;
setCoreParameter("FlowLogId", flowLogId);
}
long DeleteFlowLogRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteFlowLogRequest::getRegionId()const
{
return regionId_;
}
void DeleteFlowLogRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteFlowLogRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteFlowLogRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteFlowLogRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteFlowLogRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteFlowLogRequest::getFlowLogId()const
{
return flowLogId_;
}
void DeleteFlowLogRequest::setFlowLogId(const std::string& flowLogId)
{
flowLogId_ = flowLogId;
setParameter("FlowLogId", flowLogId);
}

View File

@@ -0,0 +1,95 @@
/*
* 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/smartag/model/DeleteHealthCheckRequest.h>
using AlibabaCloud::Smartag::Model::DeleteHealthCheckRequest;
DeleteHealthCheckRequest::DeleteHealthCheckRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteHealthCheck")
{
setMethod(HttpRequest::Method::Post);
}
DeleteHealthCheckRequest::~DeleteHealthCheckRequest()
{}
long DeleteHealthCheckRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteHealthCheckRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteHealthCheckRequest::getHcInstanceId()const
{
return hcInstanceId_;
}
void DeleteHealthCheckRequest::setHcInstanceId(const std::string& hcInstanceId)
{
hcInstanceId_ = hcInstanceId;
setParameter("HcInstanceId", hcInstanceId);
}
std::string DeleteHealthCheckRequest::getRegionId()const
{
return regionId_;
}
void DeleteHealthCheckRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteHealthCheckRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteHealthCheckRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteHealthCheckRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteHealthCheckRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::DeleteNetworkOptimizationRequest;
DeleteNetworkOptimizationRequest::DeleteNetworkOptimizationRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteNetworkOptimization")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteNetworkOptimizationRequest::~DeleteNetworkOptimizationRequest()
{}
@@ -33,7 +35,7 @@ long DeleteNetworkOptimizationRequest::getResourceOwnerId()const
void DeleteNetworkOptimizationRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteNetworkOptimizationRequest::getRegionId()const
@@ -44,7 +46,7 @@ std::string DeleteNetworkOptimizationRequest::getRegionId()const
void DeleteNetworkOptimizationRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string DeleteNetworkOptimizationRequest::getNetworkOptId()const
@@ -55,7 +57,7 @@ std::string DeleteNetworkOptimizationRequest::getNetworkOptId()const
void DeleteNetworkOptimizationRequest::setNetworkOptId(const std::string& networkOptId)
{
networkOptId_ = networkOptId;
setCoreParameter("NetworkOptId", networkOptId);
setParameter("NetworkOptId", networkOptId);
}
std::string DeleteNetworkOptimizationRequest::getResourceOwnerAccount()const
@@ -66,7 +68,7 @@ std::string DeleteNetworkOptimizationRequest::getResourceOwnerAccount()const
void DeleteNetworkOptimizationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteNetworkOptimizationRequest::getOwnerAccount()const
@@ -77,7 +79,7 @@ std::string DeleteNetworkOptimizationRequest::getOwnerAccount()const
void DeleteNetworkOptimizationRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long DeleteNetworkOptimizationRequest::getOwnerId()const
@@ -88,6 +90,6 @@ long DeleteNetworkOptimizationRequest::getOwnerId()const
void DeleteNetworkOptimizationRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::DeleteNetworkOptimizationSettingRequest;
DeleteNetworkOptimizationSettingRequest::DeleteNetworkOptimizationSettingRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteNetworkOptimizationSetting")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteNetworkOptimizationSettingRequest::~DeleteNetworkOptimizationSettingRequest()
{}
@@ -33,7 +35,7 @@ long DeleteNetworkOptimizationSettingRequest::getResourceOwnerId()const
void DeleteNetworkOptimizationSettingRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteNetworkOptimizationSettingRequest::getType()const
@@ -44,7 +46,7 @@ std::string DeleteNetworkOptimizationSettingRequest::getType()const
void DeleteNetworkOptimizationSettingRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
setParameter("Type", type);
}
std::string DeleteNetworkOptimizationSettingRequest::getRegionId()const
@@ -55,7 +57,7 @@ std::string DeleteNetworkOptimizationSettingRequest::getRegionId()const
void DeleteNetworkOptimizationSettingRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string DeleteNetworkOptimizationSettingRequest::getNetworkOptId()const
@@ -66,7 +68,7 @@ std::string DeleteNetworkOptimizationSettingRequest::getNetworkOptId()const
void DeleteNetworkOptimizationSettingRequest::setNetworkOptId(const std::string& networkOptId)
{
networkOptId_ = networkOptId;
setCoreParameter("NetworkOptId", networkOptId);
setParameter("NetworkOptId", networkOptId);
}
std::string DeleteNetworkOptimizationSettingRequest::getResourceOwnerAccount()const
@@ -77,7 +79,7 @@ std::string DeleteNetworkOptimizationSettingRequest::getResourceOwnerAccount()co
void DeleteNetworkOptimizationSettingRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteNetworkOptimizationSettingRequest::getOwnerAccount()const
@@ -88,7 +90,7 @@ std::string DeleteNetworkOptimizationSettingRequest::getOwnerAccount()const
void DeleteNetworkOptimizationSettingRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long DeleteNetworkOptimizationSettingRequest::getOwnerId()const
@@ -99,7 +101,7 @@ long DeleteNetworkOptimizationSettingRequest::getOwnerId()const
void DeleteNetworkOptimizationSettingRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteNetworkOptimizationSettingRequest::getDomain()const
@@ -110,6 +112,6 @@ std::string DeleteNetworkOptimizationSettingRequest::getDomain()const
void DeleteNetworkOptimizationSettingRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setCoreParameter("Domain", domain);
setParameter("Domain", domain);
}

View File

@@ -20,85 +20,87 @@ using AlibabaCloud::Smartag::Model::DeleteQosCarRequest;
DeleteQosCarRequest::DeleteQosCarRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteQosCar")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteQosCarRequest::~DeleteQosCarRequest()
{}
long DeleteQosCarRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteQosCarRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteQosCarRequest::getRegionId()const
{
return regionId_;
}
void DeleteQosCarRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DeleteQosCarRequest::getQosId()const
{
return qosId_;
}
void DeleteQosCarRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setCoreParameter("QosId", qosId);
}
std::string DeleteQosCarRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteQosCarRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteQosCarRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteQosCarRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DeleteQosCarRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteQosCarRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteQosCarRequest::getQosCarId()const
{
return qosCarId_;
}
void DeleteQosCarRequest::setQosCarId(const std::string& qosCarId)
{
qosCarId_ = qosCarId;
setCoreParameter("QosCarId", qosCarId);
}
long DeleteQosCarRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteQosCarRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteQosCarRequest::getRegionId()const
{
return regionId_;
}
void DeleteQosCarRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteQosCarRequest::getQosId()const
{
return qosId_;
}
void DeleteQosCarRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setParameter("QosId", qosId);
}
std::string DeleteQosCarRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteQosCarRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteQosCarRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteQosCarRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteQosCarRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteQosCarRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteQosCarRequest::getQosCarId()const
{
return qosCarId_;
}
void DeleteQosCarRequest::setQosCarId(const std::string& qosCarId)
{
qosCarId_ = qosCarId;
setParameter("QosCarId", qosCarId);
}

View File

@@ -20,85 +20,87 @@ using AlibabaCloud::Smartag::Model::DeleteQosPolicyRequest;
DeleteQosPolicyRequest::DeleteQosPolicyRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteQosPolicy")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteQosPolicyRequest::~DeleteQosPolicyRequest()
{}
long DeleteQosPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteQosPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteQosPolicyRequest::getQosPolicyId()const
{
return qosPolicyId_;
}
void DeleteQosPolicyRequest::setQosPolicyId(const std::string& qosPolicyId)
{
qosPolicyId_ = qosPolicyId;
setCoreParameter("QosPolicyId", qosPolicyId);
}
std::string DeleteQosPolicyRequest::getRegionId()const
{
return regionId_;
}
void DeleteQosPolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DeleteQosPolicyRequest::getQosId()const
{
return qosId_;
}
void DeleteQosPolicyRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setCoreParameter("QosId", qosId);
}
std::string DeleteQosPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteQosPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteQosPolicyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteQosPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DeleteQosPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteQosPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
long DeleteQosPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteQosPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteQosPolicyRequest::getQosPolicyId()const
{
return qosPolicyId_;
}
void DeleteQosPolicyRequest::setQosPolicyId(const std::string& qosPolicyId)
{
qosPolicyId_ = qosPolicyId;
setParameter("QosPolicyId", qosPolicyId);
}
std::string DeleteQosPolicyRequest::getRegionId()const
{
return regionId_;
}
void DeleteQosPolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteQosPolicyRequest::getQosId()const
{
return qosId_;
}
void DeleteQosPolicyRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setParameter("QosId", qosId);
}
std::string DeleteQosPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteQosPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteQosPolicyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteQosPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteQosPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteQosPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -20,74 +20,76 @@ using AlibabaCloud::Smartag::Model::DeleteQosRequest;
DeleteQosRequest::DeleteQosRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteQos")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteQosRequest::~DeleteQosRequest()
{}
long DeleteQosRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteQosRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteQosRequest::getRegionId()const
{
return regionId_;
}
void DeleteQosRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DeleteQosRequest::getQosId()const
{
return qosId_;
}
void DeleteQosRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setCoreParameter("QosId", qosId);
}
std::string DeleteQosRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteQosRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteQosRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DeleteQosRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteQosRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
long DeleteQosRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteQosRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteQosRequest::getRegionId()const
{
return regionId_;
}
void DeleteQosRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteQosRequest::getQosId()const
{
return qosId_;
}
void DeleteQosRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setParameter("QosId", qosId);
}
std::string DeleteQosRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteQosRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteQosRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteQosRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteQosRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,128 @@
/*
* 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/smartag/model/DeleteRouteDistributionStrategyRequest.h>
using AlibabaCloud::Smartag::Model::DeleteRouteDistributionStrategyRequest;
DeleteRouteDistributionStrategyRequest::DeleteRouteDistributionStrategyRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteRouteDistributionStrategy")
{
setMethod(HttpRequest::Method::Post);
}
DeleteRouteDistributionStrategyRequest::~DeleteRouteDistributionStrategyRequest()
{}
std::string DeleteRouteDistributionStrategyRequest::getRouteSource()const
{
return routeSource_;
}
void DeleteRouteDistributionStrategyRequest::setRouteSource(const std::string& routeSource)
{
routeSource_ = routeSource;
setParameter("RouteSource", routeSource);
}
long DeleteRouteDistributionStrategyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteRouteDistributionStrategyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteRouteDistributionStrategyRequest::getRegionId()const
{
return regionId_;
}
void DeleteRouteDistributionStrategyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteRouteDistributionStrategyRequest::getSourceType()const
{
return sourceType_;
}
void DeleteRouteDistributionStrategyRequest::setSourceType(const std::string& sourceType)
{
sourceType_ = sourceType;
setParameter("SourceType", sourceType);
}
std::string DeleteRouteDistributionStrategyRequest::getDestCidrBlock()const
{
return destCidrBlock_;
}
void DeleteRouteDistributionStrategyRequest::setDestCidrBlock(const std::string& destCidrBlock)
{
destCidrBlock_ = destCidrBlock;
setParameter("DestCidrBlock", destCidrBlock);
}
std::string DeleteRouteDistributionStrategyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteRouteDistributionStrategyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteRouteDistributionStrategyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteRouteDistributionStrategyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteRouteDistributionStrategyRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteRouteDistributionStrategyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteRouteDistributionStrategyRequest::getSmartAGId()const
{
return smartAGId_;
}
void DeleteRouteDistributionStrategyRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

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

View File

@@ -0,0 +1,106 @@
/*
* 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/smartag/model/DeleteSagCidrRequest.h>
using AlibabaCloud::Smartag::Model::DeleteSagCidrRequest;
DeleteSagCidrRequest::DeleteSagCidrRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteSagCidr")
{
setMethod(HttpRequest::Method::Post);
}
DeleteSagCidrRequest::~DeleteSagCidrRequest()
{}
long DeleteSagCidrRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteSagCidrRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteSagCidrRequest::getRegionId()const
{
return regionId_;
}
void DeleteSagCidrRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteSagCidrRequest::getCidr()const
{
return cidr_;
}
void DeleteSagCidrRequest::setCidr(const std::string& cidr)
{
cidr_ = cidr;
setParameter("Cidr", cidr);
}
std::string DeleteSagCidrRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteSagCidrRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteSagCidrRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteSagCidrRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteSagCidrRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteSagCidrRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteSagCidrRequest::getSmartAGId()const
{
return smartAGId_;
}
void DeleteSagCidrRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

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

View File

@@ -0,0 +1,128 @@
/*
* 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/smartag/model/DeleteSagExpressConnectInterfaceRequest.h>
using AlibabaCloud::Smartag::Model::DeleteSagExpressConnectInterfaceRequest;
DeleteSagExpressConnectInterfaceRequest::DeleteSagExpressConnectInterfaceRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteSagExpressConnectInterface")
{
setMethod(HttpRequest::Method::Post);
}
DeleteSagExpressConnectInterfaceRequest::~DeleteSagExpressConnectInterfaceRequest()
{}
long DeleteSagExpressConnectInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteSagExpressConnectInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteSagExpressConnectInterfaceRequest::getVlan()const
{
return vlan_;
}
void DeleteSagExpressConnectInterfaceRequest::setVlan(const std::string& vlan)
{
vlan_ = vlan;
setParameter("Vlan", vlan);
}
std::string DeleteSagExpressConnectInterfaceRequest::getRegionId()const
{
return regionId_;
}
void DeleteSagExpressConnectInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteSagExpressConnectInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteSagExpressConnectInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteSagExpressConnectInterfaceRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteSagExpressConnectInterfaceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteSagExpressConnectInterfaceRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteSagExpressConnectInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteSagExpressConnectInterfaceRequest::getSmartAGId()const
{
return smartAGId_;
}
void DeleteSagExpressConnectInterfaceRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}
std::string DeleteSagExpressConnectInterfaceRequest::getSmartAGSn()const
{
return smartAGSn_;
}
void DeleteSagExpressConnectInterfaceRequest::setSmartAGSn(const std::string& smartAGSn)
{
smartAGSn_ = smartAGSn;
setParameter("SmartAGSn", smartAGSn);
}
std::string DeleteSagExpressConnectInterfaceRequest::getPortName()const
{
return portName_;
}
void DeleteSagExpressConnectInterfaceRequest::setPortName(const std::string& portName)
{
portName_ = portName;
setParameter("PortName", portName);
}

View File

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

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/smartag/model/DeleteSagStaticRouteRequest.h>
using AlibabaCloud::Smartag::Model::DeleteSagStaticRouteRequest;
DeleteSagStaticRouteRequest::DeleteSagStaticRouteRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteSagStaticRoute")
{
setMethod(HttpRequest::Method::Post);
}
DeleteSagStaticRouteRequest::~DeleteSagStaticRouteRequest()
{}
long DeleteSagStaticRouteRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteSagStaticRouteRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteSagStaticRouteRequest::getVlan()const
{
return vlan_;
}
void DeleteSagStaticRouteRequest::setVlan(const std::string& vlan)
{
vlan_ = vlan;
setParameter("Vlan", vlan);
}
std::string DeleteSagStaticRouteRequest::getRegionId()const
{
return regionId_;
}
void DeleteSagStaticRouteRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteSagStaticRouteRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteSagStaticRouteRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteSagStaticRouteRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteSagStaticRouteRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteSagStaticRouteRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteSagStaticRouteRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteSagStaticRouteRequest::getSmartAGId()const
{
return smartAGId_;
}
void DeleteSagStaticRouteRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}
std::string DeleteSagStaticRouteRequest::getSmartAGSn()const
{
return smartAGSn_;
}
void DeleteSagStaticRouteRequest::setSmartAGSn(const std::string& smartAGSn)
{
smartAGSn_ = smartAGSn;
setParameter("SmartAGSn", smartAGSn);
}
std::string DeleteSagStaticRouteRequest::getPortName()const
{
return portName_;
}
void DeleteSagStaticRouteRequest::setPortName(const std::string& portName)
{
portName_ = portName;
setParameter("PortName", portName);
}
std::string DeleteSagStaticRouteRequest::getDestinationCidr()const
{
return destinationCidr_;
}
void DeleteSagStaticRouteRequest::setDestinationCidr(const std::string& destinationCidr)
{
destinationCidr_ = destinationCidr;
setParameter("DestinationCidr", destinationCidr);
}

View File

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

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::DeleteSmartAccessGatewayClientUserRequest;
DeleteSmartAccessGatewayClientUserRequest::DeleteSmartAccessGatewayClientUserRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteSmartAccessGatewayClientUser")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteSmartAccessGatewayClientUserRequest::~DeleteSmartAccessGatewayClientUserRequest()
{}
@@ -33,7 +35,7 @@ long DeleteSmartAccessGatewayClientUserRequest::getResourceOwnerId()const
void DeleteSmartAccessGatewayClientUserRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteSmartAccessGatewayClientUserRequest::getRegionId()const
@@ -44,7 +46,7 @@ std::string DeleteSmartAccessGatewayClientUserRequest::getRegionId()const
void DeleteSmartAccessGatewayClientUserRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string DeleteSmartAccessGatewayClientUserRequest::getResourceOwnerAccount()const
@@ -55,7 +57,7 @@ std::string DeleteSmartAccessGatewayClientUserRequest::getResourceOwnerAccount()
void DeleteSmartAccessGatewayClientUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteSmartAccessGatewayClientUserRequest::getOwnerAccount()const
@@ -66,7 +68,7 @@ std::string DeleteSmartAccessGatewayClientUserRequest::getOwnerAccount()const
void DeleteSmartAccessGatewayClientUserRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long DeleteSmartAccessGatewayClientUserRequest::getOwnerId()const
@@ -77,7 +79,7 @@ long DeleteSmartAccessGatewayClientUserRequest::getOwnerId()const
void DeleteSmartAccessGatewayClientUserRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteSmartAccessGatewayClientUserRequest::getSmartAGId()const
@@ -88,7 +90,7 @@ std::string DeleteSmartAccessGatewayClientUserRequest::getSmartAGId()const
void DeleteSmartAccessGatewayClientUserRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setCoreParameter("SmartAGId", smartAGId);
setParameter("SmartAGId", smartAGId);
}
std::string DeleteSmartAccessGatewayClientUserRequest::getUserName()const
@@ -99,6 +101,6 @@ std::string DeleteSmartAccessGatewayClientUserRequest::getUserName()const
void DeleteSmartAccessGatewayClientUserRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setCoreParameter("UserName", userName);
setParameter("UserName", userName);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/smartag/model/DeleteSmartAccessGatewayRequest.h>
using AlibabaCloud::Smartag::Model::DeleteSmartAccessGatewayRequest;
DeleteSmartAccessGatewayRequest::DeleteSmartAccessGatewayRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteSmartAccessGateway")
{
setMethod(HttpRequest::Method::Post);
}
DeleteSmartAccessGatewayRequest::~DeleteSmartAccessGatewayRequest()
{}
std::string DeleteSmartAccessGatewayRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteSmartAccessGatewayRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DeleteSmartAccessGatewayRequest::getRegionId()const
{
return regionId_;
}
void DeleteSmartAccessGatewayRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

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

View File

@@ -20,85 +20,87 @@ using AlibabaCloud::Smartag::Model::DeleteSnatEntryRequest;
DeleteSnatEntryRequest::DeleteSnatEntryRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DeleteSnatEntry")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteSnatEntryRequest::~DeleteSnatEntryRequest()
{}
long DeleteSnatEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteSnatEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteSnatEntryRequest::getRegionId()const
{
return regionId_;
}
void DeleteSnatEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DeleteSnatEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteSnatEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DeleteSnatEntryRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteSnatEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteSnatEntryRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteSnatEntryRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string DeleteSnatEntryRequest::getSmartAGId()const
{
return smartAGId_;
}
void DeleteSnatEntryRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setCoreParameter("SmartAGId", smartAGId);
}
long DeleteSnatEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteSnatEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteSnatEntryRequest::getRegionId()const
{
return regionId_;
}
void DeleteSnatEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteSnatEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteSnatEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteSnatEntryRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteSnatEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteSnatEntryRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteSnatEntryRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DeleteSnatEntryRequest::getSmartAGId()const
{
return smartAGId_;
}
void DeleteSnatEntryRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::DescribeACLAttributeRequest;
DescribeACLAttributeRequest::DescribeACLAttributeRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeACLAttribute")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeACLAttributeRequest::~DescribeACLAttributeRequest()
{}
@@ -33,7 +35,7 @@ long DescribeACLAttributeRequest::getResourceOwnerId()const
void DescribeACLAttributeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeACLAttributeRequest::getPageNumber()const
@@ -44,7 +46,7 @@ int DescribeACLAttributeRequest::getPageNumber()const
void DescribeACLAttributeRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeACLAttributeRequest::getRegionId()const
@@ -55,7 +57,7 @@ std::string DescribeACLAttributeRequest::getRegionId()const
void DescribeACLAttributeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
int DescribeACLAttributeRequest::getPageSize()const
@@ -66,7 +68,7 @@ int DescribeACLAttributeRequest::getPageSize()const
void DescribeACLAttributeRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeACLAttributeRequest::getDirection()const
@@ -77,7 +79,7 @@ std::string DescribeACLAttributeRequest::getDirection()const
void DescribeACLAttributeRequest::setDirection(const std::string& direction)
{
direction_ = direction;
setCoreParameter("Direction", direction);
setParameter("Direction", direction);
}
std::string DescribeACLAttributeRequest::getOrder()const
@@ -88,7 +90,7 @@ std::string DescribeACLAttributeRequest::getOrder()const
void DescribeACLAttributeRequest::setOrder(const std::string& order)
{
order_ = order;
setCoreParameter("Order", order);
setParameter("Order", order);
}
std::string DescribeACLAttributeRequest::getAclId()const
@@ -99,7 +101,7 @@ std::string DescribeACLAttributeRequest::getAclId()const
void DescribeACLAttributeRequest::setAclId(const std::string& aclId)
{
aclId_ = aclId;
setCoreParameter("AclId", aclId);
setParameter("AclId", aclId);
}
std::string DescribeACLAttributeRequest::getResourceOwnerAccount()const
@@ -110,7 +112,7 @@ std::string DescribeACLAttributeRequest::getResourceOwnerAccount()const
void DescribeACLAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeACLAttributeRequest::getOwnerAccount()const
@@ -121,7 +123,7 @@ std::string DescribeACLAttributeRequest::getOwnerAccount()const
void DescribeACLAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long DescribeACLAttributeRequest::getOwnerId()const
@@ -132,6 +134,17 @@ long DescribeACLAttributeRequest::getOwnerId()const
void DescribeACLAttributeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeACLAttributeRequest::getName()const
{
return name_;
}
void DescribeACLAttributeRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -69,6 +69,8 @@ void DescribeACLAttributeResult::parse(const std::string &payload)
acrsObject.aclId = valueAcrsAcr["AclId"].asString();
if(!valueAcrsAcr["Type"].isNull())
acrsObject.type = valueAcrsAcr["Type"].asString();
if(!valueAcrsAcr["Name"].isNull())
acrsObject.name = valueAcrsAcr["Name"].asString();
acrs_.push_back(acrsObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::DescribeACLsRequest;
DescribeACLsRequest::DescribeACLsRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeACLs")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeACLsRequest::~DescribeACLsRequest()
{}
@@ -33,7 +35,7 @@ long DescribeACLsRequest::getResourceOwnerId()const
void DescribeACLsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeACLsRequest::getAclIds()const
@@ -44,7 +46,7 @@ std::string DescribeACLsRequest::getAclIds()const
void DescribeACLsRequest::setAclIds(const std::string& aclIds)
{
aclIds_ = aclIds;
setCoreParameter("AclIds", aclIds);
setParameter("AclIds", aclIds);
}
int DescribeACLsRequest::getPageNumber()const
@@ -55,7 +57,7 @@ int DescribeACLsRequest::getPageNumber()const
void DescribeACLsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeACLsRequest::getRegionId()const
@@ -66,7 +68,7 @@ std::string DescribeACLsRequest::getRegionId()const
void DescribeACLsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
int DescribeACLsRequest::getPageSize()const
@@ -77,7 +79,7 @@ int DescribeACLsRequest::getPageSize()const
void DescribeACLsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeACLsRequest::getResourceOwnerAccount()const
@@ -88,7 +90,7 @@ std::string DescribeACLsRequest::getResourceOwnerAccount()const
void DescribeACLsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeACLsRequest::getOwnerAccount()const
@@ -99,7 +101,7 @@ std::string DescribeACLsRequest::getOwnerAccount()const
void DescribeACLsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long DescribeACLsRequest::getOwnerId()const
@@ -110,7 +112,7 @@ long DescribeACLsRequest::getOwnerId()const
void DescribeACLsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeACLsRequest::getName()const
@@ -121,6 +123,6 @@ std::string DescribeACLsRequest::getName()const
void DescribeACLsRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
setParameter("Name", name);
}

View File

@@ -20,107 +20,131 @@ using AlibabaCloud::Smartag::Model::DescribeBindableSmartAccessGatewaysRequest;
DescribeBindableSmartAccessGatewaysRequest::DescribeBindableSmartAccessGatewaysRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeBindableSmartAccessGateways")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeBindableSmartAccessGatewaysRequest::~DescribeBindableSmartAccessGatewaysRequest()
{}
long DescribeBindableSmartAccessGatewaysRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeBindableSmartAccessGatewaysRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeBindableSmartAccessGatewaysRequest::getCcnId()const
{
return ccnId_;
}
void DescribeBindableSmartAccessGatewaysRequest::setCcnId(const std::string& ccnId)
{
ccnId_ = ccnId;
setCoreParameter("CcnId", ccnId);
}
std::string DescribeBindableSmartAccessGatewaysRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeBindableSmartAccessGatewaysRequest::setPageNumber(const std::string& pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", pageNumber);
}
std::string DescribeBindableSmartAccessGatewaysRequest::getRegionId()const
{
return regionId_;
}
void DescribeBindableSmartAccessGatewaysRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DescribeBindableSmartAccessGatewaysRequest::getPageSize()const
{
return pageSize_;
}
void DescribeBindableSmartAccessGatewaysRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", pageSize);
}
std::string DescribeBindableSmartAccessGatewaysRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeBindableSmartAccessGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeBindableSmartAccessGatewaysRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeBindableSmartAccessGatewaysRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DescribeBindableSmartAccessGatewaysRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeBindableSmartAccessGatewaysRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
bool DescribeBindableSmartAccessGatewaysRequest::getCrossAccount()const
{
return crossAccount_;
}
void DescribeBindableSmartAccessGatewaysRequest::setCrossAccount(bool crossAccount)
{
crossAccount_ = crossAccount;
setCoreParameter("CrossAccount", crossAccount ? "true" : "false");
}
long DescribeBindableSmartAccessGatewaysRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeBindableSmartAccessGatewaysRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeBindableSmartAccessGatewaysRequest::getCcnId()const
{
return ccnId_;
}
void DescribeBindableSmartAccessGatewaysRequest::setCcnId(const std::string& ccnId)
{
ccnId_ = ccnId;
setParameter("CcnId", ccnId);
}
int DescribeBindableSmartAccessGatewaysRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeBindableSmartAccessGatewaysRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeBindableSmartAccessGatewaysRequest::getRegionId()const
{
return regionId_;
}
void DescribeBindableSmartAccessGatewaysRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int DescribeBindableSmartAccessGatewaysRequest::getPageSize()const
{
return pageSize_;
}
void DescribeBindableSmartAccessGatewaysRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeBindableSmartAccessGatewaysRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeBindableSmartAccessGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeBindableSmartAccessGatewaysRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeBindableSmartAccessGatewaysRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeBindableSmartAccessGatewaysRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeBindableSmartAccessGatewaysRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
bool DescribeBindableSmartAccessGatewaysRequest::getCrossAccount()const
{
return crossAccount_;
}
void DescribeBindableSmartAccessGatewaysRequest::setCrossAccount(bool crossAccount)
{
crossAccount_ = crossAccount;
setParameter("CrossAccount", crossAccount ? "true" : "false");
}
std::string DescribeBindableSmartAccessGatewaysRequest::getName()const
{
return name_;
}
void DescribeBindableSmartAccessGatewaysRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string DescribeBindableSmartAccessGatewaysRequest::getSmartAGId()const
{
return smartAGId_;
}
void DescribeBindableSmartAccessGatewaysRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::DescribeCloudConnectNetworksRequest;
DescribeCloudConnectNetworksRequest::DescribeCloudConnectNetworksRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeCloudConnectNetworks")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeCloudConnectNetworksRequest::~DescribeCloudConnectNetworksRequest()
{}
@@ -33,7 +35,7 @@ long DescribeCloudConnectNetworksRequest::getResourceOwnerId()const
void DescribeCloudConnectNetworksRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeCloudConnectNetworksRequest::getCcnId()const
@@ -44,18 +46,18 @@ std::string DescribeCloudConnectNetworksRequest::getCcnId()const
void DescribeCloudConnectNetworksRequest::setCcnId(const std::string& ccnId)
{
ccnId_ = ccnId;
setCoreParameter("CcnId", ccnId);
setParameter("CcnId", ccnId);
}
std::string DescribeCloudConnectNetworksRequest::getPageNumber()const
int DescribeCloudConnectNetworksRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeCloudConnectNetworksRequest::setPageNumber(const std::string& pageNumber)
void DescribeCloudConnectNetworksRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", pageNumber);
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeCloudConnectNetworksRequest::getRegionId()const
@@ -66,18 +68,18 @@ std::string DescribeCloudConnectNetworksRequest::getRegionId()const
void DescribeCloudConnectNetworksRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string DescribeCloudConnectNetworksRequest::getPageSize()const
int DescribeCloudConnectNetworksRequest::getPageSize()const
{
return pageSize_;
}
void DescribeCloudConnectNetworksRequest::setPageSize(const std::string& pageSize)
void DescribeCloudConnectNetworksRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", pageSize);
setParameter("PageSize", std::to_string(pageSize));
}
std::vector<DescribeCloudConnectNetworksRequest::Tag> DescribeCloudConnectNetworksRequest::getTag()const
@@ -88,12 +90,11 @@ std::vector<DescribeCloudConnectNetworksRequest::Tag> DescribeCloudConnectNetwor
void DescribeCloudConnectNetworksRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Value", obj.value);
setCoreParameter(str + ".Key", obj.key);
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}
@@ -105,7 +106,7 @@ std::string DescribeCloudConnectNetworksRequest::getResourceOwnerAccount()const
void DescribeCloudConnectNetworksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeCloudConnectNetworksRequest::getOwnerAccount()const
@@ -116,7 +117,7 @@ std::string DescribeCloudConnectNetworksRequest::getOwnerAccount()const
void DescribeCloudConnectNetworksRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long DescribeCloudConnectNetworksRequest::getOwnerId()const
@@ -127,7 +128,7 @@ long DescribeCloudConnectNetworksRequest::getOwnerId()const
void DescribeCloudConnectNetworksRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeCloudConnectNetworksRequest::getName()const
@@ -138,6 +139,6 @@ std::string DescribeCloudConnectNetworksRequest::getName()const
void DescribeCloudConnectNetworksRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
setParameter("Name", name);
}

View File

@@ -20,85 +20,87 @@ using AlibabaCloud::Smartag::Model::DescribeDeviceAutoUpgradePolicyRequest;
DescribeDeviceAutoUpgradePolicyRequest::DescribeDeviceAutoUpgradePolicyRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeDeviceAutoUpgradePolicy")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeDeviceAutoUpgradePolicyRequest::~DescribeDeviceAutoUpgradePolicyRequest()
{}
long DescribeDeviceAutoUpgradePolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeDeviceAutoUpgradePolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeDeviceAutoUpgradePolicyRequest::getRegionId()const
{
return regionId_;
}
void DescribeDeviceAutoUpgradePolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DescribeDeviceAutoUpgradePolicyRequest::getSerialNumber()const
{
return serialNumber_;
}
void DescribeDeviceAutoUpgradePolicyRequest::setSerialNumber(const std::string& serialNumber)
{
serialNumber_ = serialNumber;
setCoreParameter("SerialNumber", serialNumber);
}
std::string DescribeDeviceAutoUpgradePolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeDeviceAutoUpgradePolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeDeviceAutoUpgradePolicyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeDeviceAutoUpgradePolicyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DescribeDeviceAutoUpgradePolicyRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDeviceAutoUpgradePolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDeviceAutoUpgradePolicyRequest::getSmartAGId()const
{
return smartAGId_;
}
void DescribeDeviceAutoUpgradePolicyRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setCoreParameter("SmartAGId", smartAGId);
}
long DescribeDeviceAutoUpgradePolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeDeviceAutoUpgradePolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeDeviceAutoUpgradePolicyRequest::getRegionId()const
{
return regionId_;
}
void DescribeDeviceAutoUpgradePolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeDeviceAutoUpgradePolicyRequest::getSerialNumber()const
{
return serialNumber_;
}
void DescribeDeviceAutoUpgradePolicyRequest::setSerialNumber(const std::string& serialNumber)
{
serialNumber_ = serialNumber;
setParameter("SerialNumber", serialNumber);
}
std::string DescribeDeviceAutoUpgradePolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeDeviceAutoUpgradePolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeDeviceAutoUpgradePolicyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeDeviceAutoUpgradePolicyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeDeviceAutoUpgradePolicyRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDeviceAutoUpgradePolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDeviceAutoUpgradePolicyRequest::getSmartAGId()const
{
return smartAGId_;
}
void DescribeDeviceAutoUpgradePolicyRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

@@ -20,107 +20,109 @@ using AlibabaCloud::Smartag::Model::DescribeDnatEntriesRequest;
DescribeDnatEntriesRequest::DescribeDnatEntriesRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeDnatEntries")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeDnatEntriesRequest::~DescribeDnatEntriesRequest()
{}
long DescribeDnatEntriesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeDnatEntriesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeDnatEntriesRequest::getType()const
{
return type_;
}
void DescribeDnatEntriesRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
}
int DescribeDnatEntriesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDnatEntriesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDnatEntriesRequest::getRegionId()const
{
return regionId_;
}
void DescribeDnatEntriesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
int DescribeDnatEntriesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDnatEntriesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDnatEntriesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeDnatEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeDnatEntriesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeDnatEntriesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DescribeDnatEntriesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDnatEntriesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDnatEntriesRequest::getSagId()const
{
return sagId_;
}
void DescribeDnatEntriesRequest::setSagId(const std::string& sagId)
{
sagId_ = sagId;
setCoreParameter("SagId", sagId);
}
long DescribeDnatEntriesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeDnatEntriesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeDnatEntriesRequest::getType()const
{
return type_;
}
void DescribeDnatEntriesRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
int DescribeDnatEntriesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDnatEntriesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDnatEntriesRequest::getRegionId()const
{
return regionId_;
}
void DescribeDnatEntriesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int DescribeDnatEntriesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDnatEntriesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDnatEntriesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeDnatEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeDnatEntriesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeDnatEntriesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeDnatEntriesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDnatEntriesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDnatEntriesRequest::getSagId()const
{
return sagId_;
}
void DescribeDnatEntriesRequest::setSagId(const std::string& sagId)
{
sagId_ = sagId;
setParameter("SagId", sagId);
}

View File

@@ -20,96 +20,98 @@ using AlibabaCloud::Smartag::Model::DescribeFlowLogSagsRequest;
DescribeFlowLogSagsRequest::DescribeFlowLogSagsRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeFlowLogSags")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeFlowLogSagsRequest::~DescribeFlowLogSagsRequest()
{}
long DescribeFlowLogSagsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeFlowLogSagsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeFlowLogSagsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeFlowLogSagsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeFlowLogSagsRequest::getRegionId()const
{
return regionId_;
}
void DescribeFlowLogSagsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
int DescribeFlowLogSagsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeFlowLogSagsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeFlowLogSagsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeFlowLogSagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeFlowLogSagsRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeFlowLogSagsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DescribeFlowLogSagsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeFlowLogSagsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeFlowLogSagsRequest::getFlowLogId()const
{
return flowLogId_;
}
void DescribeFlowLogSagsRequest::setFlowLogId(const std::string& flowLogId)
{
flowLogId_ = flowLogId;
setCoreParameter("FlowLogId", flowLogId);
}
long DescribeFlowLogSagsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeFlowLogSagsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeFlowLogSagsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeFlowLogSagsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeFlowLogSagsRequest::getRegionId()const
{
return regionId_;
}
void DescribeFlowLogSagsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int DescribeFlowLogSagsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeFlowLogSagsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeFlowLogSagsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeFlowLogSagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeFlowLogSagsRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeFlowLogSagsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeFlowLogSagsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeFlowLogSagsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeFlowLogSagsRequest::getFlowLogId()const
{
return flowLogId_;
}
void DescribeFlowLogSagsRequest::setFlowLogId(const std::string& flowLogId)
{
flowLogId_ = flowLogId;
setParameter("FlowLogId", flowLogId);
}

View File

@@ -20,140 +20,142 @@ using AlibabaCloud::Smartag::Model::DescribeFlowLogsRequest;
DescribeFlowLogsRequest::DescribeFlowLogsRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeFlowLogs")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeFlowLogsRequest::~DescribeFlowLogsRequest()
{}
long DescribeFlowLogsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeFlowLogsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeFlowLogsRequest::getDescription()const
{
return description_;
}
void DescribeFlowLogsRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
int DescribeFlowLogsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeFlowLogsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeFlowLogsRequest::getRegionId()const
{
return regionId_;
}
void DescribeFlowLogsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
int DescribeFlowLogsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeFlowLogsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeFlowLogsRequest::getOutputType()const
{
return outputType_;
}
void DescribeFlowLogsRequest::setOutputType(const std::string& outputType)
{
outputType_ = outputType;
setCoreParameter("OutputType", outputType);
}
std::string DescribeFlowLogsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeFlowLogsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeFlowLogsRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeFlowLogsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DescribeFlowLogsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeFlowLogsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeFlowLogsRequest::getFlowLogId()const
{
return flowLogId_;
}
void DescribeFlowLogsRequest::setFlowLogId(const std::string& flowLogId)
{
flowLogId_ = flowLogId;
setCoreParameter("FlowLogId", flowLogId);
}
std::string DescribeFlowLogsRequest::getFlowLogName()const
{
return flowLogName_;
}
void DescribeFlowLogsRequest::setFlowLogName(const std::string& flowLogName)
{
flowLogName_ = flowLogName;
setCoreParameter("FlowLogName", flowLogName);
}
std::string DescribeFlowLogsRequest::getStatus()const
{
return status_;
}
void DescribeFlowLogsRequest::setStatus(const std::string& status)
{
status_ = status;
setCoreParameter("Status", status);
}
long DescribeFlowLogsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeFlowLogsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeFlowLogsRequest::getDescription()const
{
return description_;
}
void DescribeFlowLogsRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
int DescribeFlowLogsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeFlowLogsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeFlowLogsRequest::getRegionId()const
{
return regionId_;
}
void DescribeFlowLogsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int DescribeFlowLogsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeFlowLogsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeFlowLogsRequest::getOutputType()const
{
return outputType_;
}
void DescribeFlowLogsRequest::setOutputType(const std::string& outputType)
{
outputType_ = outputType;
setParameter("OutputType", outputType);
}
std::string DescribeFlowLogsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeFlowLogsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeFlowLogsRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeFlowLogsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeFlowLogsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeFlowLogsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeFlowLogsRequest::getFlowLogId()const
{
return flowLogId_;
}
void DescribeFlowLogsRequest::setFlowLogId(const std::string& flowLogId)
{
flowLogId_ = flowLogId;
setParameter("FlowLogId", flowLogId);
}
std::string DescribeFlowLogsRequest::getFlowLogName()const
{
return flowLogName_;
}
void DescribeFlowLogsRequest::setFlowLogName(const std::string& flowLogName)
{
flowLogName_ = flowLogName;
setParameter("FlowLogName", flowLogName);
}
std::string DescribeFlowLogsRequest::getStatus()const
{
return status_;
}
void DescribeFlowLogsRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::DescribeGrantRulesRequest;
DescribeGrantRulesRequest::DescribeGrantRulesRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeGrantRules")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeGrantRulesRequest::~DescribeGrantRulesRequest()
{}
@@ -33,18 +35,18 @@ long DescribeGrantRulesRequest::getResourceOwnerId()const
void DescribeGrantRulesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeGrantRulesRequest::getPageNumber()const
int DescribeGrantRulesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeGrantRulesRequest::setPageNumber(const std::string& pageNumber)
void DescribeGrantRulesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", pageNumber);
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeGrantRulesRequest::getRegionId()const
@@ -55,18 +57,18 @@ std::string DescribeGrantRulesRequest::getRegionId()const
void DescribeGrantRulesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string DescribeGrantRulesRequest::getPageSize()const
int DescribeGrantRulesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeGrantRulesRequest::setPageSize(const std::string& pageSize)
void DescribeGrantRulesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", pageSize);
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeGrantRulesRequest::getResourceOwnerAccount()const
@@ -77,7 +79,7 @@ std::string DescribeGrantRulesRequest::getResourceOwnerAccount()const
void DescribeGrantRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeGrantRulesRequest::getOwnerAccount()const
@@ -88,7 +90,7 @@ std::string DescribeGrantRulesRequest::getOwnerAccount()const
void DescribeGrantRulesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
std::string DescribeGrantRulesRequest::getAssociatedCcnId()const
@@ -99,7 +101,7 @@ std::string DescribeGrantRulesRequest::getAssociatedCcnId()const
void DescribeGrantRulesRequest::setAssociatedCcnId(const std::string& associatedCcnId)
{
associatedCcnId_ = associatedCcnId;
setCoreParameter("AssociatedCcnId", associatedCcnId);
setParameter("AssociatedCcnId", associatedCcnId);
}
long DescribeGrantRulesRequest::getOwnerId()const
@@ -110,6 +112,6 @@ long DescribeGrantRulesRequest::getOwnerId()const
void DescribeGrantRulesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -20,96 +20,98 @@ using AlibabaCloud::Smartag::Model::DescribeGrantSagRulesRequest;
DescribeGrantSagRulesRequest::DescribeGrantSagRulesRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeGrantSagRules")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeGrantSagRulesRequest::~DescribeGrantSagRulesRequest()
{}
long DescribeGrantSagRulesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeGrantSagRulesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeGrantSagRulesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeGrantSagRulesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeGrantSagRulesRequest::getRegionId()const
{
return regionId_;
}
void DescribeGrantSagRulesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
int DescribeGrantSagRulesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeGrantSagRulesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeGrantSagRulesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeGrantSagRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeGrantSagRulesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeGrantSagRulesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DescribeGrantSagRulesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeGrantSagRulesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeGrantSagRulesRequest::getSmartAGId()const
{
return smartAGId_;
}
void DescribeGrantSagRulesRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setCoreParameter("SmartAGId", smartAGId);
}
long DescribeGrantSagRulesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeGrantSagRulesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeGrantSagRulesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeGrantSagRulesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeGrantSagRulesRequest::getRegionId()const
{
return regionId_;
}
void DescribeGrantSagRulesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int DescribeGrantSagRulesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeGrantSagRulesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeGrantSagRulesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeGrantSagRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeGrantSagRulesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeGrantSagRulesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeGrantSagRulesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeGrantSagRulesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeGrantSagRulesRequest::getSmartAGId()const
{
return smartAGId_;
}
void DescribeGrantSagRulesRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

@@ -0,0 +1,128 @@
/*
* 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/smartag/model/DescribeGrantSagVbrRulesRequest.h>
using AlibabaCloud::Smartag::Model::DescribeGrantSagVbrRulesRequest;
DescribeGrantSagVbrRulesRequest::DescribeGrantSagVbrRulesRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeGrantSagVbrRules")
{
setMethod(HttpRequest::Method::Post);
}
DescribeGrantSagVbrRulesRequest::~DescribeGrantSagVbrRulesRequest()
{}
long DescribeGrantSagVbrRulesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeGrantSagVbrRulesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeGrantSagVbrRulesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeGrantSagVbrRulesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeGrantSagVbrRulesRequest::getRegionId()const
{
return regionId_;
}
void DescribeGrantSagVbrRulesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int DescribeGrantSagVbrRulesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeGrantSagVbrRulesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeGrantSagVbrRulesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeGrantSagVbrRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeGrantSagVbrRulesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeGrantSagVbrRulesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeGrantSagVbrRulesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeGrantSagVbrRulesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeGrantSagVbrRulesRequest::getVbrInstanceId()const
{
return vbrInstanceId_;
}
void DescribeGrantSagVbrRulesRequest::setVbrInstanceId(const std::string& vbrInstanceId)
{
vbrInstanceId_ = vbrInstanceId;
setParameter("VbrInstanceId", vbrInstanceId);
}
std::string DescribeGrantSagVbrRulesRequest::getSmartAGId()const
{
return smartAGId_;
}
void DescribeGrantSagVbrRulesRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

@@ -0,0 +1,92 @@
/*
* 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/smartag/model/DescribeGrantSagVbrRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Smartag;
using namespace AlibabaCloud::Smartag::Model;
DescribeGrantSagVbrRulesResult::DescribeGrantSagVbrRulesResult() :
ServiceResult()
{}
DescribeGrantSagVbrRulesResult::DescribeGrantSagVbrRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGrantSagVbrRulesResult::~DescribeGrantSagVbrRulesResult()
{}
void DescribeGrantSagVbrRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGrantRulesNode = value["GrantRules"]["GrantRule"];
for (auto valueGrantRulesGrantRule : allGrantRulesNode)
{
GrantRule grantRulesObject;
if(!valueGrantRulesGrantRule["CreateTime"].isNull())
grantRulesObject.createTime = std::stol(valueGrantRulesGrantRule["CreateTime"].asString());
if(!valueGrantRulesGrantRule["InstanceId"].isNull())
grantRulesObject.instanceId = valueGrantRulesGrantRule["InstanceId"].asString();
if(!valueGrantRulesGrantRule["VbrUid"].isNull())
grantRulesObject.vbrUid = std::stol(valueGrantRulesGrantRule["VbrUid"].asString());
if(!valueGrantRulesGrantRule["VbrInstanceId"].isNull())
grantRulesObject.vbrInstanceId = valueGrantRulesGrantRule["VbrInstanceId"].asString();
if(!valueGrantRulesGrantRule["VbrRegionId"].isNull())
grantRulesObject.vbrRegionId = valueGrantRulesGrantRule["VbrRegionId"].asString();
if(!valueGrantRulesGrantRule["SmartAGUid"].isNull())
grantRulesObject.smartAGUid = std::stol(valueGrantRulesGrantRule["SmartAGUid"].asString());
if(!valueGrantRulesGrantRule["SmartAGId"].isNull())
grantRulesObject.smartAGId = valueGrantRulesGrantRule["SmartAGId"].asString();
if(!valueGrantRulesGrantRule["Bound"].isNull())
grantRulesObject.bound = valueGrantRulesGrantRule["Bound"].asString() == "true";
grantRules_.push_back(grantRulesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribeGrantSagVbrRulesResult::getTotalCount()const
{
return totalCount_;
}
int DescribeGrantSagVbrRulesResult::getPageSize()const
{
return pageSize_;
}
int DescribeGrantSagVbrRulesResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeGrantSagVbrRulesResult::GrantRule> DescribeGrantSagVbrRulesResult::getGrantRules()const
{
return grantRules_;
}

View File

@@ -0,0 +1,106 @@
/*
* 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/smartag/model/DescribeHealthCheckAttributeRequest.h>
using AlibabaCloud::Smartag::Model::DescribeHealthCheckAttributeRequest;
DescribeHealthCheckAttributeRequest::DescribeHealthCheckAttributeRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeHealthCheckAttribute")
{
setMethod(HttpRequest::Method::Post);
}
DescribeHealthCheckAttributeRequest::~DescribeHealthCheckAttributeRequest()
{}
long DescribeHealthCheckAttributeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeHealthCheckAttributeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeHealthCheckAttributeRequest::getHcInstanceId()const
{
return hcInstanceId_;
}
void DescribeHealthCheckAttributeRequest::setHcInstanceId(const std::string& hcInstanceId)
{
hcInstanceId_ = hcInstanceId;
setParameter("HcInstanceId", hcInstanceId);
}
std::string DescribeHealthCheckAttributeRequest::getRegionId()const
{
return regionId_;
}
void DescribeHealthCheckAttributeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeHealthCheckAttributeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeHealthCheckAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeHealthCheckAttributeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeHealthCheckAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeHealthCheckAttributeRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeHealthCheckAttributeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeHealthCheckAttributeRequest::getSmartAGId()const
{
return smartAGId_;
}
void DescribeHealthCheckAttributeRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

@@ -0,0 +1,156 @@
/*
* 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/smartag/model/DescribeHealthCheckAttributeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Smartag;
using namespace AlibabaCloud::Smartag::Model;
DescribeHealthCheckAttributeResult::DescribeHealthCheckAttributeResult() :
ServiceResult()
{}
DescribeHealthCheckAttributeResult::DescribeHealthCheckAttributeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeHealthCheckAttributeResult::~DescribeHealthCheckAttributeResult()
{}
void DescribeHealthCheckAttributeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CreateTime"].isNull())
createTime_ = std::stol(value["CreateTime"].asString());
if(!value["HcInstanceId"].isNull())
hcInstanceId_ = value["HcInstanceId"].asString();
if(!value["SmartAGId"].isNull())
smartAGId_ = value["SmartAGId"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["Type"].isNull())
type_ = value["Type"].asString();
if(!value["DstIpAddr"].isNull())
dstIpAddr_ = value["DstIpAddr"].asString();
if(!value["DstPort"].isNull())
dstPort_ = std::stoi(value["DstPort"].asString());
if(!value["SrcIpAddr"].isNull())
srcIpAddr_ = value["SrcIpAddr"].asString();
if(!value["SrcPort"].isNull())
srcPort_ = std::stoi(value["SrcPort"].asString());
if(!value["ProbeInterval"].isNull())
probeInterval_ = std::stoi(value["ProbeInterval"].asString());
if(!value["ProbeCount"].isNull())
probeCount_ = std::stoi(value["ProbeCount"].asString());
if(!value["ProbeTimeout"].isNull())
probeTimeout_ = std::stoi(value["ProbeTimeout"].asString());
if(!value["RttThreshold"].isNull())
rttThreshold_ = std::stoi(value["RttThreshold"].asString());
if(!value["RttFailThreshold"].isNull())
rttFailThreshold_ = std::stoi(value["RttFailThreshold"].asString());
if(!value["FailCountThreshold"].isNull())
failCountThreshold_ = std::stoi(value["FailCountThreshold"].asString());
}
std::string DescribeHealthCheckAttributeResult::getDescription()const
{
return description_;
}
int DescribeHealthCheckAttributeResult::getSrcPort()const
{
return srcPort_;
}
std::string DescribeHealthCheckAttributeResult::getSrcIpAddr()const
{
return srcIpAddr_;
}
long DescribeHealthCheckAttributeResult::getCreateTime()const
{
return createTime_;
}
int DescribeHealthCheckAttributeResult::getFailCountThreshold()const
{
return failCountThreshold_;
}
int DescribeHealthCheckAttributeResult::getDstPort()const
{
return dstPort_;
}
std::string DescribeHealthCheckAttributeResult::getName()const
{
return name_;
}
int DescribeHealthCheckAttributeResult::getProbeCount()const
{
return probeCount_;
}
std::string DescribeHealthCheckAttributeResult::getType()const
{
return type_;
}
int DescribeHealthCheckAttributeResult::getProbeTimeout()const
{
return probeTimeout_;
}
std::string DescribeHealthCheckAttributeResult::getHcInstanceId()const
{
return hcInstanceId_;
}
int DescribeHealthCheckAttributeResult::getRttThreshold()const
{
return rttThreshold_;
}
int DescribeHealthCheckAttributeResult::getProbeInterval()const
{
return probeInterval_;
}
std::string DescribeHealthCheckAttributeResult::getSmartAGId()const
{
return smartAGId_;
}
int DescribeHealthCheckAttributeResult::getRttFailThreshold()const
{
return rttFailThreshold_;
}
std::string DescribeHealthCheckAttributeResult::getDstIpAddr()const
{
return dstIpAddr_;
}

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/smartag/model/DescribeHealthChecksRequest.h>
using AlibabaCloud::Smartag::Model::DescribeHealthChecksRequest;
DescribeHealthChecksRequest::DescribeHealthChecksRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeHealthChecks")
{
setMethod(HttpRequest::Method::Post);
}
DescribeHealthChecksRequest::~DescribeHealthChecksRequest()
{}
long DescribeHealthChecksRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeHealthChecksRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeHealthChecksRequest::getHcInstanceId()const
{
return hcInstanceId_;
}
void DescribeHealthChecksRequest::setHcInstanceId(const std::string& hcInstanceId)
{
hcInstanceId_ = hcInstanceId;
setParameter("HcInstanceId", hcInstanceId);
}
int DescribeHealthChecksRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeHealthChecksRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeHealthChecksRequest::getRegionId()const
{
return regionId_;
}
void DescribeHealthChecksRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int DescribeHealthChecksRequest::getPageSize()const
{
return pageSize_;
}
void DescribeHealthChecksRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeHealthChecksRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeHealthChecksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeHealthChecksRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeHealthChecksRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeHealthChecksRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeHealthChecksRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeHealthChecksRequest::getName()const
{
return name_;
}
void DescribeHealthChecksRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string DescribeHealthChecksRequest::getSmartAGId()const
{
return smartAGId_;
}
void DescribeHealthChecksRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

@@ -0,0 +1,110 @@
/*
* 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/smartag/model/DescribeHealthChecksResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Smartag;
using namespace AlibabaCloud::Smartag::Model;
DescribeHealthChecksResult::DescribeHealthChecksResult() :
ServiceResult()
{}
DescribeHealthChecksResult::DescribeHealthChecksResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeHealthChecksResult::~DescribeHealthChecksResult()
{}
void DescribeHealthChecksResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allHealthChecksNode = value["HealthChecks"]["HealthCheck"];
for (auto valueHealthChecksHealthCheck : allHealthChecksNode)
{
HealthCheck healthChecksObject;
if(!valueHealthChecksHealthCheck["HcInstanceId"].isNull())
healthChecksObject.hcInstanceId = valueHealthChecksHealthCheck["HcInstanceId"].asString();
if(!valueHealthChecksHealthCheck["SmartAGId"].isNull())
healthChecksObject.smartAGId = valueHealthChecksHealthCheck["SmartAGId"].asString();
if(!valueHealthChecksHealthCheck["Name"].isNull())
healthChecksObject.name = valueHealthChecksHealthCheck["Name"].asString();
if(!valueHealthChecksHealthCheck["Description"].isNull())
healthChecksObject.description = valueHealthChecksHealthCheck["Description"].asString();
if(!valueHealthChecksHealthCheck["Type"].isNull())
healthChecksObject.type = valueHealthChecksHealthCheck["Type"].asString();
if(!valueHealthChecksHealthCheck["DstIpAddr"].isNull())
healthChecksObject.dstIpAddr = valueHealthChecksHealthCheck["DstIpAddr"].asString();
if(!valueHealthChecksHealthCheck["DstPort"].isNull())
healthChecksObject.dstPort = std::stoi(valueHealthChecksHealthCheck["DstPort"].asString());
if(!valueHealthChecksHealthCheck["SrcIpAddr"].isNull())
healthChecksObject.srcIpAddr = valueHealthChecksHealthCheck["SrcIpAddr"].asString();
if(!valueHealthChecksHealthCheck["SrcPort"].isNull())
healthChecksObject.srcPort = std::stoi(valueHealthChecksHealthCheck["SrcPort"].asString());
if(!valueHealthChecksHealthCheck["ProbeInterval"].isNull())
healthChecksObject.probeInterval = std::stoi(valueHealthChecksHealthCheck["ProbeInterval"].asString());
if(!valueHealthChecksHealthCheck["ProbeCount"].isNull())
healthChecksObject.probeCount = std::stoi(valueHealthChecksHealthCheck["ProbeCount"].asString());
if(!valueHealthChecksHealthCheck["ProbeTimeout"].isNull())
healthChecksObject.probeTimeout = std::stoi(valueHealthChecksHealthCheck["ProbeTimeout"].asString());
if(!valueHealthChecksHealthCheck["RttThreshold"].isNull())
healthChecksObject.rttThreshold = std::stoi(valueHealthChecksHealthCheck["RttThreshold"].asString());
if(!valueHealthChecksHealthCheck["RttFailThreshold"].isNull())
healthChecksObject.rttFailThreshold = std::stoi(valueHealthChecksHealthCheck["RttFailThreshold"].asString());
if(!valueHealthChecksHealthCheck["FailCountThreshold"].isNull())
healthChecksObject.failCountThreshold = std::stoi(valueHealthChecksHealthCheck["FailCountThreshold"].asString());
if(!valueHealthChecksHealthCheck["RelationCount"].isNull())
healthChecksObject.relationCount = std::stoi(valueHealthChecksHealthCheck["RelationCount"].asString());
if(!valueHealthChecksHealthCheck["Status"].isNull())
healthChecksObject.status = valueHealthChecksHealthCheck["Status"].asString();
healthChecks_.push_back(healthChecksObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribeHealthChecksResult::getTotalCount()const
{
return totalCount_;
}
int DescribeHealthChecksResult::getPageSize()const
{
return pageSize_;
}
int DescribeHealthChecksResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeHealthChecksResult::HealthCheck> DescribeHealthChecksResult::getHealthChecks()const
{
return healthChecks_;
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::DescribeNetworkOptimizationSagsRequest;
DescribeNetworkOptimizationSagsRequest::DescribeNetworkOptimizationSagsRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeNetworkOptimizationSags")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeNetworkOptimizationSagsRequest::~DescribeNetworkOptimizationSagsRequest()
{}
@@ -33,7 +35,7 @@ long DescribeNetworkOptimizationSagsRequest::getResourceOwnerId()const
void DescribeNetworkOptimizationSagsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeNetworkOptimizationSagsRequest::getPageNumber()const
@@ -44,7 +46,7 @@ int DescribeNetworkOptimizationSagsRequest::getPageNumber()const
void DescribeNetworkOptimizationSagsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeNetworkOptimizationSagsRequest::getRegionId()const
@@ -55,7 +57,7 @@ std::string DescribeNetworkOptimizationSagsRequest::getRegionId()const
void DescribeNetworkOptimizationSagsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string DescribeNetworkOptimizationSagsRequest::getNetworkOptId()const
@@ -66,7 +68,7 @@ std::string DescribeNetworkOptimizationSagsRequest::getNetworkOptId()const
void DescribeNetworkOptimizationSagsRequest::setNetworkOptId(const std::string& networkOptId)
{
networkOptId_ = networkOptId;
setCoreParameter("NetworkOptId", networkOptId);
setParameter("NetworkOptId", networkOptId);
}
int DescribeNetworkOptimizationSagsRequest::getPageSize()const
@@ -77,7 +79,7 @@ int DescribeNetworkOptimizationSagsRequest::getPageSize()const
void DescribeNetworkOptimizationSagsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeNetworkOptimizationSagsRequest::getResourceOwnerAccount()const
@@ -88,7 +90,7 @@ std::string DescribeNetworkOptimizationSagsRequest::getResourceOwnerAccount()con
void DescribeNetworkOptimizationSagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeNetworkOptimizationSagsRequest::getOwnerAccount()const
@@ -99,7 +101,7 @@ std::string DescribeNetworkOptimizationSagsRequest::getOwnerAccount()const
void DescribeNetworkOptimizationSagsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long DescribeNetworkOptimizationSagsRequest::getOwnerId()const
@@ -110,6 +112,6 @@ long DescribeNetworkOptimizationSagsRequest::getOwnerId()const
void DescribeNetworkOptimizationSagsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::DescribeNetworkOptimizationSettingsRequest;
DescribeNetworkOptimizationSettingsRequest::DescribeNetworkOptimizationSettingsRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeNetworkOptimizationSettings")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeNetworkOptimizationSettingsRequest::~DescribeNetworkOptimizationSettingsRequest()
{}
@@ -33,7 +35,7 @@ long DescribeNetworkOptimizationSettingsRequest::getResourceOwnerId()const
void DescribeNetworkOptimizationSettingsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeNetworkOptimizationSettingsRequest::getPageNumber()const
@@ -44,7 +46,7 @@ int DescribeNetworkOptimizationSettingsRequest::getPageNumber()const
void DescribeNetworkOptimizationSettingsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeNetworkOptimizationSettingsRequest::getRegionId()const
@@ -55,7 +57,7 @@ std::string DescribeNetworkOptimizationSettingsRequest::getRegionId()const
void DescribeNetworkOptimizationSettingsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string DescribeNetworkOptimizationSettingsRequest::getNetworkOptId()const
@@ -66,7 +68,7 @@ std::string DescribeNetworkOptimizationSettingsRequest::getNetworkOptId()const
void DescribeNetworkOptimizationSettingsRequest::setNetworkOptId(const std::string& networkOptId)
{
networkOptId_ = networkOptId;
setCoreParameter("NetworkOptId", networkOptId);
setParameter("NetworkOptId", networkOptId);
}
int DescribeNetworkOptimizationSettingsRequest::getPageSize()const
@@ -77,7 +79,7 @@ int DescribeNetworkOptimizationSettingsRequest::getPageSize()const
void DescribeNetworkOptimizationSettingsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeNetworkOptimizationSettingsRequest::getResourceOwnerAccount()const
@@ -88,7 +90,7 @@ std::string DescribeNetworkOptimizationSettingsRequest::getResourceOwnerAccount(
void DescribeNetworkOptimizationSettingsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeNetworkOptimizationSettingsRequest::getOwnerAccount()const
@@ -99,7 +101,7 @@ std::string DescribeNetworkOptimizationSettingsRequest::getOwnerAccount()const
void DescribeNetworkOptimizationSettingsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long DescribeNetworkOptimizationSettingsRequest::getOwnerId()const
@@ -110,6 +112,6 @@ long DescribeNetworkOptimizationSettingsRequest::getOwnerId()const
void DescribeNetworkOptimizationSettingsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::DescribeNetworkOptimizationsRequest;
DescribeNetworkOptimizationsRequest::DescribeNetworkOptimizationsRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeNetworkOptimizations")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeNetworkOptimizationsRequest::~DescribeNetworkOptimizationsRequest()
{}
@@ -33,7 +35,7 @@ long DescribeNetworkOptimizationsRequest::getResourceOwnerId()const
void DescribeNetworkOptimizationsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeNetworkOptimizationsRequest::getCcnId()const
@@ -44,7 +46,7 @@ std::string DescribeNetworkOptimizationsRequest::getCcnId()const
void DescribeNetworkOptimizationsRequest::setCcnId(const std::string& ccnId)
{
ccnId_ = ccnId;
setCoreParameter("CcnId", ccnId);
setParameter("CcnId", ccnId);
}
int DescribeNetworkOptimizationsRequest::getPageNumber()const
@@ -55,7 +57,7 @@ int DescribeNetworkOptimizationsRequest::getPageNumber()const
void DescribeNetworkOptimizationsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeNetworkOptimizationsRequest::getRegionId()const
@@ -66,7 +68,7 @@ std::string DescribeNetworkOptimizationsRequest::getRegionId()const
void DescribeNetworkOptimizationsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string DescribeNetworkOptimizationsRequest::getNetworkOptId()const
@@ -77,7 +79,7 @@ std::string DescribeNetworkOptimizationsRequest::getNetworkOptId()const
void DescribeNetworkOptimizationsRequest::setNetworkOptId(const std::string& networkOptId)
{
networkOptId_ = networkOptId;
setCoreParameter("NetworkOptId", networkOptId);
setParameter("NetworkOptId", networkOptId);
}
int DescribeNetworkOptimizationsRequest::getPageSize()const
@@ -88,7 +90,7 @@ int DescribeNetworkOptimizationsRequest::getPageSize()const
void DescribeNetworkOptimizationsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeNetworkOptimizationsRequest::getResourceOwnerAccount()const
@@ -99,7 +101,7 @@ std::string DescribeNetworkOptimizationsRequest::getResourceOwnerAccount()const
void DescribeNetworkOptimizationsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeNetworkOptimizationsRequest::getOwnerAccount()const
@@ -110,7 +112,7 @@ std::string DescribeNetworkOptimizationsRequest::getOwnerAccount()const
void DescribeNetworkOptimizationsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long DescribeNetworkOptimizationsRequest::getOwnerId()const
@@ -121,7 +123,7 @@ long DescribeNetworkOptimizationsRequest::getOwnerId()const
void DescribeNetworkOptimizationsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeNetworkOptimizationsRequest::getName()const
@@ -132,6 +134,6 @@ std::string DescribeNetworkOptimizationsRequest::getName()const
void DescribeNetworkOptimizationsRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
setParameter("Name", name);
}

View File

@@ -0,0 +1,95 @@
/*
* 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/smartag/model/DescribePbrInterfacesRequest.h>
using AlibabaCloud::Smartag::Model::DescribePbrInterfacesRequest;
DescribePbrInterfacesRequest::DescribePbrInterfacesRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribePbrInterfaces")
{
setMethod(HttpRequest::Method::Post);
}
DescribePbrInterfacesRequest::~DescribePbrInterfacesRequest()
{}
long DescribePbrInterfacesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribePbrInterfacesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribePbrInterfacesRequest::getRegionId()const
{
return regionId_;
}
void DescribePbrInterfacesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribePbrInterfacesRequest::getPbrInstanceId()const
{
return pbrInstanceId_;
}
void DescribePbrInterfacesRequest::setPbrInstanceId(const std::string& pbrInstanceId)
{
pbrInstanceId_ = pbrInstanceId;
setParameter("PbrInstanceId", pbrInstanceId);
}
std::string DescribePbrInterfacesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribePbrInterfacesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribePbrInterfacesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribePbrInterfacesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribePbrInterfacesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribePbrInterfacesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,70 @@
/*
* 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/smartag/model/DescribePbrInterfacesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Smartag;
using namespace AlibabaCloud::Smartag::Model;
DescribePbrInterfacesResult::DescribePbrInterfacesResult() :
ServiceResult()
{}
DescribePbrInterfacesResult::DescribePbrInterfacesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePbrInterfacesResult::~DescribePbrInterfacesResult()
{}
void DescribePbrInterfacesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPbrInterfacesNode = value["PbrInterfaces"]["PbrInterface"];
for (auto valuePbrInterfacesPbrInterface : allPbrInterfacesNode)
{
PbrInterface pbrInterfacesObject;
if(!valuePbrInterfacesPbrInterface["InterfaceName"].isNull())
pbrInterfacesObject.interfaceName = valuePbrInterfacesPbrInterface["InterfaceName"].asString();
if(!valuePbrInterfacesPbrInterface["HealthCheckInstanceId"].isNull())
pbrInterfacesObject.healthCheckInstanceId = valuePbrInterfacesPbrInterface["HealthCheckInstanceId"].asString();
if(!valuePbrInterfacesPbrInterface["Priority"].isNull())
pbrInterfacesObject.priority = std::stoi(valuePbrInterfacesPbrInterface["Priority"].asString());
if(!valuePbrInterfacesPbrInterface["Action"].isNull())
pbrInterfacesObject.action = valuePbrInterfacesPbrInterface["Action"].asString();
pbrInterfaces_.push_back(pbrInterfacesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribePbrInterfacesResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribePbrInterfacesResult::PbrInterface> DescribePbrInterfacesResult::getPbrInterfaces()const
{
return pbrInterfaces_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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/smartag/model/DescribePbrRulesRequest.h>
using AlibabaCloud::Smartag::Model::DescribePbrRulesRequest;
DescribePbrRulesRequest::DescribePbrRulesRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribePbrRules")
{
setMethod(HttpRequest::Method::Post);
}
DescribePbrRulesRequest::~DescribePbrRulesRequest()
{}
long DescribePbrRulesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribePbrRulesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribePbrRulesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribePbrRulesRequest::setPageNumber(const std::string& pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", pageNumber);
}
std::string DescribePbrRulesRequest::getRegionId()const
{
return regionId_;
}
void DescribePbrRulesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribePbrRulesRequest::getPageSize()const
{
return pageSize_;
}
void DescribePbrRulesRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", pageSize);
}
std::string DescribePbrRulesRequest::getPbrInstanceId()const
{
return pbrInstanceId_;
}
void DescribePbrRulesRequest::setPbrInstanceId(const std::string& pbrInstanceId)
{
pbrInstanceId_ = pbrInstanceId;
setParameter("PbrInstanceId", pbrInstanceId);
}
std::string DescribePbrRulesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribePbrRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribePbrRulesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribePbrRulesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribePbrRulesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribePbrRulesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,92 @@
/*
* 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/smartag/model/DescribePbrRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Smartag;
using namespace AlibabaCloud::Smartag::Model;
DescribePbrRulesResult::DescribePbrRulesResult() :
ServiceResult()
{}
DescribePbrRulesResult::DescribePbrRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePbrRulesResult::~DescribePbrRulesResult()
{}
void DescribePbrRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPbrRulesNode = value["PbrRules"]["PbrRule"];
for (auto valuePbrRulesPbrRule : allPbrRulesNode)
{
PbrRule pbrRulesObject;
if(!valuePbrRulesPbrRule["PbrRuleId"].isNull())
pbrRulesObject.pbrRuleId = valuePbrRulesPbrRule["PbrRuleId"].asString();
if(!valuePbrRulesPbrRule["SrcCidr"].isNull())
pbrRulesObject.srcCidr = valuePbrRulesPbrRule["SrcCidr"].asString();
if(!valuePbrRulesPbrRule["DstCidr"].isNull())
pbrRulesObject.dstCidr = valuePbrRulesPbrRule["DstCidr"].asString();
if(!valuePbrRulesPbrRule["SrcPort"].isNull())
pbrRulesObject.srcPort = valuePbrRulesPbrRule["SrcPort"].asString();
if(!valuePbrRulesPbrRule["DstPort"].isNull())
pbrRulesObject.dstPort = valuePbrRulesPbrRule["DstPort"].asString();
if(!valuePbrRulesPbrRule["Protocol"].isNull())
pbrRulesObject.protocol = valuePbrRulesPbrRule["Protocol"].asString();
if(!valuePbrRulesPbrRule["Name"].isNull())
pbrRulesObject.name = valuePbrRulesPbrRule["Name"].asString();
if(!valuePbrRulesPbrRule["Description"].isNull())
pbrRulesObject.description = valuePbrRulesPbrRule["Description"].asString();
pbrRules_.push_back(pbrRulesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribePbrRulesResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribePbrRulesResult::PbrRule> DescribePbrRulesResult::getPbrRules()const
{
return pbrRules_;
}
int DescribePbrRulesResult::getPageSize()const
{
return pageSize_;
}
int DescribePbrRulesResult::getPageNumber()const
{
return pageNumber_;
}

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/smartag/model/DescribePolicyBasedRoutingsRequest.h>
using AlibabaCloud::Smartag::Model::DescribePolicyBasedRoutingsRequest;
DescribePolicyBasedRoutingsRequest::DescribePolicyBasedRoutingsRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribePolicyBasedRoutings")
{
setMethod(HttpRequest::Method::Post);
}
DescribePolicyBasedRoutingsRequest::~DescribePolicyBasedRoutingsRequest()
{}
long DescribePolicyBasedRoutingsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribePolicyBasedRoutingsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribePolicyBasedRoutingsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribePolicyBasedRoutingsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribePolicyBasedRoutingsRequest::getRegionId()const
{
return regionId_;
}
void DescribePolicyBasedRoutingsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int DescribePolicyBasedRoutingsRequest::getPageSize()const
{
return pageSize_;
}
void DescribePolicyBasedRoutingsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribePolicyBasedRoutingsRequest::getPbrInstanceId()const
{
return pbrInstanceId_;
}
void DescribePolicyBasedRoutingsRequest::setPbrInstanceId(const std::string& pbrInstanceId)
{
pbrInstanceId_ = pbrInstanceId;
setParameter("PbrInstanceId", pbrInstanceId);
}
std::string DescribePolicyBasedRoutingsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribePolicyBasedRoutingsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribePolicyBasedRoutingsRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribePolicyBasedRoutingsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribePolicyBasedRoutingsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribePolicyBasedRoutingsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribePolicyBasedRoutingsRequest::getName()const
{
return name_;
}
void DescribePolicyBasedRoutingsRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string DescribePolicyBasedRoutingsRequest::getSmartAGId()const
{
return smartAGId_;
}
void DescribePolicyBasedRoutingsRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

@@ -0,0 +1,84 @@
/*
* 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/smartag/model/DescribePolicyBasedRoutingsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Smartag;
using namespace AlibabaCloud::Smartag::Model;
DescribePolicyBasedRoutingsResult::DescribePolicyBasedRoutingsResult() :
ServiceResult()
{}
DescribePolicyBasedRoutingsResult::DescribePolicyBasedRoutingsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePolicyBasedRoutingsResult::~DescribePolicyBasedRoutingsResult()
{}
void DescribePolicyBasedRoutingsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPolicyBasedRoutingsNode = value["PolicyBasedRoutings"]["PolicyBasedRouting"];
for (auto valuePolicyBasedRoutingsPolicyBasedRouting : allPolicyBasedRoutingsNode)
{
PolicyBasedRouting policyBasedRoutingsObject;
if(!valuePolicyBasedRoutingsPolicyBasedRouting["PbrInstanceId"].isNull())
policyBasedRoutingsObject.pbrInstanceId = valuePolicyBasedRoutingsPolicyBasedRouting["PbrInstanceId"].asString();
if(!valuePolicyBasedRoutingsPolicyBasedRouting["Priority"].isNull())
policyBasedRoutingsObject.priority = std::stoi(valuePolicyBasedRoutingsPolicyBasedRouting["Priority"].asString());
if(!valuePolicyBasedRoutingsPolicyBasedRouting["Name"].isNull())
policyBasedRoutingsObject.name = valuePolicyBasedRoutingsPolicyBasedRouting["Name"].asString();
if(!valuePolicyBasedRoutingsPolicyBasedRouting["Description"].isNull())
policyBasedRoutingsObject.description = valuePolicyBasedRoutingsPolicyBasedRouting["Description"].asString();
policyBasedRoutings_.push_back(policyBasedRoutingsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribePolicyBasedRoutingsResult::getTotalCount()const
{
return totalCount_;
}
int DescribePolicyBasedRoutingsResult::getPageSize()const
{
return pageSize_;
}
int DescribePolicyBasedRoutingsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribePolicyBasedRoutingsResult::PolicyBasedRouting> DescribePolicyBasedRoutingsResult::getPolicyBasedRoutings()const
{
return policyBasedRoutings_;
}

View File

@@ -20,129 +20,131 @@ using AlibabaCloud::Smartag::Model::DescribeQosCarsRequest;
DescribeQosCarsRequest::DescribeQosCarsRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeQosCars")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeQosCarsRequest::~DescribeQosCarsRequest()
{}
long DescribeQosCarsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeQosCarsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeQosCarsRequest::getDescription()const
{
return description_;
}
void DescribeQosCarsRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
int DescribeQosCarsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeQosCarsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeQosCarsRequest::getRegionId()const
{
return regionId_;
}
void DescribeQosCarsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
int DescribeQosCarsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeQosCarsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeQosCarsRequest::getQosId()const
{
return qosId_;
}
void DescribeQosCarsRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setCoreParameter("QosId", qosId);
}
std::string DescribeQosCarsRequest::getOrder()const
{
return order_;
}
void DescribeQosCarsRequest::setOrder(const std::string& order)
{
order_ = order;
setCoreParameter("Order", order);
}
std::string DescribeQosCarsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeQosCarsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeQosCarsRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeQosCarsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DescribeQosCarsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeQosCarsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeQosCarsRequest::getQosCarId()const
{
return qosCarId_;
}
void DescribeQosCarsRequest::setQosCarId(const std::string& qosCarId)
{
qosCarId_ = qosCarId;
setCoreParameter("QosCarId", qosCarId);
}
long DescribeQosCarsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeQosCarsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeQosCarsRequest::getDescription()const
{
return description_;
}
void DescribeQosCarsRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
int DescribeQosCarsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeQosCarsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeQosCarsRequest::getRegionId()const
{
return regionId_;
}
void DescribeQosCarsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int DescribeQosCarsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeQosCarsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeQosCarsRequest::getQosId()const
{
return qosId_;
}
void DescribeQosCarsRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setParameter("QosId", qosId);
}
std::string DescribeQosCarsRequest::getOrder()const
{
return order_;
}
void DescribeQosCarsRequest::setOrder(const std::string& order)
{
order_ = order;
setParameter("Order", order);
}
std::string DescribeQosCarsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeQosCarsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeQosCarsRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeQosCarsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeQosCarsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeQosCarsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeQosCarsRequest::getQosCarId()const
{
return qosCarId_;
}
void DescribeQosCarsRequest::setQosCarId(const std::string& qosCarId)
{
qosCarId_ = qosCarId;
setParameter("QosCarId", qosCarId);
}

View File

@@ -63,6 +63,8 @@ void DescribeQosCarsResult::parse(const std::string &payload)
qosCarsObject.maxBandwidthPercent = std::stoi(valueQosCarsQosCar["MaxBandwidthPercent"].asString());
if(!valueQosCarsQosCar["PercentSourceType"].isNull())
qosCarsObject.percentSourceType = valueQosCarsQosCar["PercentSourceType"].asString();
if(!valueQosCarsQosCar["Name"].isNull())
qosCarsObject.name = valueQosCarsQosCar["Name"].asString();
qosCars_.push_back(qosCarsObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -20,118 +20,131 @@ using AlibabaCloud::Smartag::Model::DescribeQosPoliciesRequest;
DescribeQosPoliciesRequest::DescribeQosPoliciesRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeQosPolicies")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeQosPoliciesRequest::~DescribeQosPoliciesRequest()
{}
long DescribeQosPoliciesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeQosPoliciesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeQosPoliciesRequest::getQosPolicyId()const
{
return qosPolicyId_;
}
void DescribeQosPoliciesRequest::setQosPolicyId(const std::string& qosPolicyId)
{
qosPolicyId_ = qosPolicyId;
setCoreParameter("QosPolicyId", qosPolicyId);
}
std::string DescribeQosPoliciesRequest::getDescription()const
{
return description_;
}
void DescribeQosPoliciesRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
int DescribeQosPoliciesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeQosPoliciesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeQosPoliciesRequest::getRegionId()const
{
return regionId_;
}
void DescribeQosPoliciesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
int DescribeQosPoliciesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeQosPoliciesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeQosPoliciesRequest::getQosId()const
{
return qosId_;
}
void DescribeQosPoliciesRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setCoreParameter("QosId", qosId);
}
std::string DescribeQosPoliciesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeQosPoliciesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeQosPoliciesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeQosPoliciesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DescribeQosPoliciesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeQosPoliciesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
long DescribeQosPoliciesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeQosPoliciesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeQosPoliciesRequest::getQosPolicyId()const
{
return qosPolicyId_;
}
void DescribeQosPoliciesRequest::setQosPolicyId(const std::string& qosPolicyId)
{
qosPolicyId_ = qosPolicyId;
setParameter("QosPolicyId", qosPolicyId);
}
std::string DescribeQosPoliciesRequest::getDescription()const
{
return description_;
}
void DescribeQosPoliciesRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
int DescribeQosPoliciesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeQosPoliciesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeQosPoliciesRequest::getRegionId()const
{
return regionId_;
}
void DescribeQosPoliciesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int DescribeQosPoliciesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeQosPoliciesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeQosPoliciesRequest::getQosId()const
{
return qosId_;
}
void DescribeQosPoliciesRequest::setQosId(const std::string& qosId)
{
qosId_ = qosId;
setParameter("QosId", qosId);
}
std::string DescribeQosPoliciesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeQosPoliciesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeQosPoliciesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeQosPoliciesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeQosPoliciesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeQosPoliciesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int DescribeQosPoliciesRequest::getPriority()const
{
return priority_;
}
void DescribeQosPoliciesRequest::setPriority(int priority)
{
priority_ = priority;
setParameter("Priority", std::to_string(priority));
}

View File

@@ -65,6 +65,8 @@ void DescribeQosPoliciesResult::parse(const std::string &payload)
qosPoliciesObject.startTime = valueQosPoliciesQosPolicy["StartTime"].asString();
if(!valueQosPoliciesQosPolicy["EndTime"].isNull())
qosPoliciesObject.endTime = valueQosPoliciesQosPolicy["EndTime"].asString();
if(!valueQosPoliciesQosPolicy["Name"].isNull())
qosPoliciesObject.name = valueQosPoliciesQosPolicy["Name"].asString();
qosPolicies_.push_back(qosPoliciesObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -20,107 +20,109 @@ using AlibabaCloud::Smartag::Model::DescribeQosesRequest;
DescribeQosesRequest::DescribeQosesRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeQoses")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeQosesRequest::~DescribeQosesRequest()
{}
long DescribeQosesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeQosesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeQosesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeQosesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeQosesRequest::getRegionId()const
{
return regionId_;
}
void DescribeQosesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
int DescribeQosesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeQosesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeQosesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeQosesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeQosesRequest::getQosIds()const
{
return qosIds_;
}
void DescribeQosesRequest::setQosIds(const std::string& qosIds)
{
qosIds_ = qosIds;
setCoreParameter("QosIds", qosIds);
}
std::string DescribeQosesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeQosesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DescribeQosesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeQosesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeQosesRequest::getQosName()const
{
return qosName_;
}
void DescribeQosesRequest::setQosName(const std::string& qosName)
{
qosName_ = qosName;
setCoreParameter("QosName", qosName);
}
long DescribeQosesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeQosesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeQosesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeQosesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeQosesRequest::getRegionId()const
{
return regionId_;
}
void DescribeQosesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int DescribeQosesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeQosesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeQosesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeQosesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeQosesRequest::getQosIds()const
{
return qosIds_;
}
void DescribeQosesRequest::setQosIds(const std::string& qosIds)
{
qosIds_ = qosIds;
setParameter("QosIds", qosIds);
}
std::string DescribeQosesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeQosesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeQosesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeQosesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeQosesRequest::getQosName()const
{
return qosName_;
}
void DescribeQosesRequest::setQosName(const std::string& qosName)
{
qosName_ = qosName;
setParameter("QosName", qosName);
}

View File

@@ -51,6 +51,8 @@ void DescribeQosesResult::parse(const std::string &payload)
qosesObject.sagCount = valueQosesQos["SagCount"].asString();
if(!valueQosesQos["SmartAGIds"].isNull())
qosesObject.smartAGIds = valueQosesQos["SmartAGIds"].asString();
if(!valueQosesQos["QosDescription"].isNull())
qosesObject.qosDescription = valueQosesQos["QosDescription"].asString();
qoses_.push_back(qosesObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Smartag::Model::DescribeRegionsRequest;
DescribeRegionsRequest::DescribeRegionsRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeRegions")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeRegionsRequest::~DescribeRegionsRequest()
{}
@@ -33,7 +35,7 @@ long DescribeRegionsRequest::getResourceOwnerId()const
void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeRegionsRequest::getResourceOwnerAccount()const
@@ -44,7 +46,7 @@ std::string DescribeRegionsRequest::getResourceOwnerAccount()const
void DescribeRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeRegionsRequest::getOwnerAccount()const
@@ -55,7 +57,7 @@ std::string DescribeRegionsRequest::getOwnerAccount()const
void DescribeRegionsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
setParameter("OwnerAccount", ownerAccount);
}
long DescribeRegionsRequest::getOwnerId()const
@@ -66,7 +68,7 @@ long DescribeRegionsRequest::getOwnerId()const
void DescribeRegionsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeRegionsRequest::getAcceptLanguage()const
@@ -77,6 +79,6 @@ std::string DescribeRegionsRequest::getAcceptLanguage()const
void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage)
{
acceptLanguage_ = acceptLanguage;
setCoreParameter("AcceptLanguage", acceptLanguage);
setParameter("AcceptLanguage", acceptLanguage);
}

View File

@@ -0,0 +1,128 @@
/*
* 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/smartag/model/DescribeRouteDistributionStrategiesRequest.h>
using AlibabaCloud::Smartag::Model::DescribeRouteDistributionStrategiesRequest;
DescribeRouteDistributionStrategiesRequest::DescribeRouteDistributionStrategiesRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeRouteDistributionStrategies")
{
setMethod(HttpRequest::Method::Post);
}
DescribeRouteDistributionStrategiesRequest::~DescribeRouteDistributionStrategiesRequest()
{}
long DescribeRouteDistributionStrategiesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeRouteDistributionStrategiesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeRouteDistributionStrategiesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeRouteDistributionStrategiesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeRouteDistributionStrategiesRequest::getRegionId()const
{
return regionId_;
}
void DescribeRouteDistributionStrategiesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int DescribeRouteDistributionStrategiesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeRouteDistributionStrategiesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeRouteDistributionStrategiesRequest::getSourceType()const
{
return sourceType_;
}
void DescribeRouteDistributionStrategiesRequest::setSourceType(const std::string& sourceType)
{
sourceType_ = sourceType;
setParameter("SourceType", sourceType);
}
std::string DescribeRouteDistributionStrategiesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeRouteDistributionStrategiesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeRouteDistributionStrategiesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeRouteDistributionStrategiesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeRouteDistributionStrategiesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeRouteDistributionStrategiesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeRouteDistributionStrategiesRequest::getSmartAGId()const
{
return smartAGId_;
}
void DescribeRouteDistributionStrategiesRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}

View File

@@ -0,0 +1,100 @@
/*
* 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/smartag/model/DescribeRouteDistributionStrategiesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Smartag;
using namespace AlibabaCloud::Smartag::Model;
DescribeRouteDistributionStrategiesResult::DescribeRouteDistributionStrategiesResult() :
ServiceResult()
{}
DescribeRouteDistributionStrategiesResult::DescribeRouteDistributionStrategiesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRouteDistributionStrategiesResult::~DescribeRouteDistributionStrategiesResult()
{}
void DescribeRouteDistributionStrategiesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allStrategiesNode = value["Strategies"]["Strategy"];
for (auto valueStrategiesStrategy : allStrategiesNode)
{
Strategy strategiesObject;
if(!valueStrategiesStrategy["CreateTime"].isNull())
strategiesObject.createTime = std::stol(valueStrategiesStrategy["CreateTime"].asString());
if(!valueStrategiesStrategy["InstanceId"].isNull())
strategiesObject.instanceId = valueStrategiesStrategy["InstanceId"].asString();
if(!valueStrategiesStrategy["SmartAGId"].isNull())
strategiesObject.smartAGId = valueStrategiesStrategy["SmartAGId"].asString();
if(!valueStrategiesStrategy["HcInstanceId"].isNull())
strategiesObject.hcInstanceId = valueStrategiesStrategy["HcInstanceId"].asString();
if(!valueStrategiesStrategy["SourceType"].isNull())
strategiesObject.sourceType = valueStrategiesStrategy["SourceType"].asString();
if(!valueStrategiesStrategy["DestCidrBlock"].isNull())
strategiesObject.destCidrBlock = valueStrategiesStrategy["DestCidrBlock"].asString();
if(!valueStrategiesStrategy["RouteSource"].isNull())
strategiesObject.routeSource = valueStrategiesStrategy["RouteSource"].asString();
if(!valueStrategiesStrategy["RouteDistribution"].isNull())
strategiesObject.routeDistribution = valueStrategiesStrategy["RouteDistribution"].asString();
if(!valueStrategiesStrategy["Status"].isNull())
strategiesObject.status = valueStrategiesStrategy["Status"].asString();
if(!valueStrategiesStrategy["IsConflict"].isNull())
strategiesObject.isConflict = valueStrategiesStrategy["IsConflict"].asString() == "true";
if(!valueStrategiesStrategy["StrategyPublishStatus"].isNull())
strategiesObject.strategyPublishStatus = valueStrategiesStrategy["StrategyPublishStatus"].asString();
if(!valueStrategiesStrategy["ConflictInfo"].isNull())
strategiesObject.conflictInfo = valueStrategiesStrategy["ConflictInfo"].asString();
strategies_.push_back(strategiesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribeRouteDistributionStrategiesResult::getTotalCount()const
{
return totalCount_;
}
int DescribeRouteDistributionStrategiesResult::getPageSize()const
{
return pageSize_;
}
int DescribeRouteDistributionStrategiesResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeRouteDistributionStrategiesResult::Strategy> DescribeRouteDistributionStrategiesResult::getStrategies()const
{
return strategies_;
}

View File

@@ -0,0 +1,106 @@
/*
* 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/smartag/model/DescribeSAGDeviceInfoRequest.h>
using AlibabaCloud::Smartag::Model::DescribeSAGDeviceInfoRequest;
DescribeSAGDeviceInfoRequest::DescribeSAGDeviceInfoRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeSAGDeviceInfo")
{
setMethod(HttpRequest::Method::Post);
}
DescribeSAGDeviceInfoRequest::~DescribeSAGDeviceInfoRequest()
{}
long DescribeSAGDeviceInfoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeSAGDeviceInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeSAGDeviceInfoRequest::getRegionId()const
{
return regionId_;
}
void DescribeSAGDeviceInfoRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeSAGDeviceInfoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeSAGDeviceInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeSAGDeviceInfoRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeSAGDeviceInfoRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeSAGDeviceInfoRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeSAGDeviceInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeSAGDeviceInfoRequest::getSmartAGId()const
{
return smartAGId_;
}
void DescribeSAGDeviceInfoRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}
std::string DescribeSAGDeviceInfoRequest::getSmartAGSn()const
{
return smartAGSn_;
}
void DescribeSAGDeviceInfoRequest::setSmartAGSn(const std::string& smartAGSn)
{
smartAGSn_ = smartAGSn;
setParameter("SmartAGSn", smartAGSn);
}

View File

@@ -0,0 +1,100 @@
/*
* 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/smartag/model/DescribeSAGDeviceInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Smartag;
using namespace AlibabaCloud::Smartag::Model;
DescribeSAGDeviceInfoResult::DescribeSAGDeviceInfoResult() :
ServiceResult()
{}
DescribeSAGDeviceInfoResult::DescribeSAGDeviceInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSAGDeviceInfoResult::~DescribeSAGDeviceInfoResult()
{}
void DescribeSAGDeviceInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Version"].isNull())
version_ = value["Version"].asString();
if(!value["VpnState"].isNull())
vpnState_ = value["VpnState"].asString();
if(!value["SmartAGType"].isNull())
smartAGType_ = value["SmartAGType"].asString();
if(!value["ControllerState"].isNull())
controllerState_ = value["ControllerState"].asString();
if(!value["StartupTime"].isNull())
startupTime_ = value["StartupTime"].asString();
if(!value["LastConnectedControllerTime"].isNull())
lastConnectedControllerTime_ = value["LastConnectedControllerTime"].asString();
if(!value["ServiceIP"].isNull())
serviceIP_ = value["ServiceIP"].asString();
if(!value["SynStatus"].isNull())
synStatus_ = value["SynStatus"].asString();
}
std::string DescribeSAGDeviceInfoResult::getControllerState()const
{
return controllerState_;
}
std::string DescribeSAGDeviceInfoResult::getServiceIP()const
{
return serviceIP_;
}
std::string DescribeSAGDeviceInfoResult::getSmartAGType()const
{
return smartAGType_;
}
std::string DescribeSAGDeviceInfoResult::getSynStatus()const
{
return synStatus_;
}
std::string DescribeSAGDeviceInfoResult::getVersion()const
{
return version_;
}
std::string DescribeSAGDeviceInfoResult::getVpnState()const
{
return vpnState_;
}
std::string DescribeSAGDeviceInfoResult::getStartupTime()const
{
return startupTime_;
}
std::string DescribeSAGDeviceInfoResult::getLastConnectedControllerTime()const
{
return lastConnectedControllerTime_;
}

View File

@@ -0,0 +1,106 @@
/*
* 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/smartag/model/DescribeSagCurrentDnsRequest.h>
using AlibabaCloud::Smartag::Model::DescribeSagCurrentDnsRequest;
DescribeSagCurrentDnsRequest::DescribeSagCurrentDnsRequest() :
RpcServiceRequest("smartag", "2018-03-13", "DescribeSagCurrentDns")
{
setMethod(HttpRequest::Method::Post);
}
DescribeSagCurrentDnsRequest::~DescribeSagCurrentDnsRequest()
{}
long DescribeSagCurrentDnsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeSagCurrentDnsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeSagCurrentDnsRequest::getRegionId()const
{
return regionId_;
}
void DescribeSagCurrentDnsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeSagCurrentDnsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeSagCurrentDnsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeSagCurrentDnsRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeSagCurrentDnsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeSagCurrentDnsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeSagCurrentDnsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeSagCurrentDnsRequest::getSmartAGId()const
{
return smartAGId_;
}
void DescribeSagCurrentDnsRequest::setSmartAGId(const std::string& smartAGId)
{
smartAGId_ = smartAGId;
setParameter("SmartAGId", smartAGId);
}
std::string DescribeSagCurrentDnsRequest::getSmartAGSn()const
{
return smartAGSn_;
}
void DescribeSagCurrentDnsRequest::setSmartAGSn(const std::string& smartAGSn)
{
smartAGSn_ = smartAGSn;
setParameter("SmartAGSn", smartAGSn);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/smartag/model/DescribeSagCurrentDnsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Smartag;
using namespace AlibabaCloud::Smartag::Model;
DescribeSagCurrentDnsResult::DescribeSagCurrentDnsResult() :
ServiceResult()
{}
DescribeSagCurrentDnsResult::DescribeSagCurrentDnsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSagCurrentDnsResult::~DescribeSagCurrentDnsResult()
{}
void DescribeSagCurrentDnsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["MasterDns"].isNull())
masterDns_ = value["MasterDns"].asString();
if(!value["SlaveDns"].isNull())
slaveDns_ = value["SlaveDns"].asString();
}
std::string DescribeSagCurrentDnsResult::getSlaveDns()const
{
return slaveDns_;
}
std::string DescribeSagCurrentDnsResult::getMasterDns()const
{
return masterDns_;
}

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