6750
vpc/src/VpcClient.cc
6750
vpc/src/VpcClient.cc
File diff suppressed because it is too large
Load Diff
@@ -33,7 +33,7 @@ long ActivateRouterInterfaceRequest::getResourceOwnerId()const
|
||||
void ActivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ActivateRouterInterfaceRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string ActivateRouterInterfaceRequest::getResourceOwnerAccount()const
|
||||
void ActivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ActivateRouterInterfaceRequest::getRegionId()const
|
||||
@@ -55,7 +55,7 @@ std::string ActivateRouterInterfaceRequest::getRegionId()const
|
||||
void ActivateRouterInterfaceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long ActivateRouterInterfaceRequest::getOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long ActivateRouterInterfaceRequest::getOwnerId()const
|
||||
void ActivateRouterInterfaceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ActivateRouterInterfaceRequest::getRouterInterfaceId()const
|
||||
@@ -77,6 +77,6 @@ std::string ActivateRouterInterfaceRequest::getRouterInterfaceId()const
|
||||
void ActivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId)
|
||||
{
|
||||
routerInterfaceId_ = routerInterfaceId;
|
||||
setParameter("RouterInterfaceId", routerInterfaceId);
|
||||
setCoreParameter("RouterInterfaceId", routerInterfaceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ActivateRouterInterfaceResult::~ActivateRouterInterfaceResult()
|
||||
|
||||
void ActivateRouterInterfaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long ActiveFlowLogRequest::getResourceOwnerId()const
|
||||
void ActiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string ActiveFlowLogRequest::getResourceOwnerAccount()const
|
||||
void ActiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogRequest::getRegionId()const
|
||||
@@ -55,7 +55,7 @@ std::string ActiveFlowLogRequest::getRegionId()const
|
||||
void ActiveFlowLogRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string ActiveFlowLogRequest::getOwnerAccount()const
|
||||
void ActiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ActiveFlowLogRequest::getOwnerId()const
|
||||
@@ -77,7 +77,7 @@ long ActiveFlowLogRequest::getOwnerId()const
|
||||
void ActiveFlowLogRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogRequest::getFlowLogId()const
|
||||
@@ -88,6 +88,6 @@ std::string ActiveFlowLogRequest::getFlowLogId()const
|
||||
void ActiveFlowLogRequest::setFlowLogId(const std::string& flowLogId)
|
||||
{
|
||||
flowLogId_ = flowLogId;
|
||||
setParameter("FlowLogId", flowLogId);
|
||||
setCoreParameter("FlowLogId", flowLogId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ActiveFlowLogResult::~ActiveFlowLogResult()
|
||||
|
||||
void ActiveFlowLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long AddBandwidthPackageIpsRequest::getResourceOwnerId()const
|
||||
void AddBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddBandwidthPackageIpsRequest::getBandwidthPackageId()const
|
||||
@@ -44,7 +44,7 @@ std::string AddBandwidthPackageIpsRequest::getBandwidthPackageId()const
|
||||
void AddBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
|
||||
{
|
||||
bandwidthPackageId_ = bandwidthPackageId;
|
||||
setParameter("BandwidthPackageId", bandwidthPackageId);
|
||||
setCoreParameter("BandwidthPackageId", bandwidthPackageId);
|
||||
}
|
||||
|
||||
std::string AddBandwidthPackageIpsRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string AddBandwidthPackageIpsRequest::getResourceOwnerAccount()const
|
||||
void AddBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AddBandwidthPackageIpsRequest::getRegionId()const
|
||||
@@ -66,7 +66,7 @@ std::string AddBandwidthPackageIpsRequest::getRegionId()const
|
||||
void AddBandwidthPackageIpsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddBandwidthPackageIpsRequest::getClientToken()const
|
||||
@@ -77,7 +77,7 @@ std::string AddBandwidthPackageIpsRequest::getClientToken()const
|
||||
void AddBandwidthPackageIpsRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string AddBandwidthPackageIpsRequest::getOwnerAccount()const
|
||||
@@ -88,7 +88,7 @@ std::string AddBandwidthPackageIpsRequest::getOwnerAccount()const
|
||||
void AddBandwidthPackageIpsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long AddBandwidthPackageIpsRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long AddBandwidthPackageIpsRequest::getOwnerId()const
|
||||
void AddBandwidthPackageIpsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AddBandwidthPackageIpsRequest::getIpCount()const
|
||||
@@ -110,6 +110,6 @@ std::string AddBandwidthPackageIpsRequest::getIpCount()const
|
||||
void AddBandwidthPackageIpsRequest::setIpCount(const std::string& ipCount)
|
||||
{
|
||||
ipCount_ = ipCount;
|
||||
setParameter("IpCount", ipCount);
|
||||
setCoreParameter("IpCount", ipCount);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AddBandwidthPackageIpsResult::~AddBandwidthPackageIpsResult()
|
||||
|
||||
void AddBandwidthPackageIpsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long AddBgpNetworkRequest::getResourceOwnerId()const
|
||||
void AddBgpNetworkRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddBgpNetworkRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string AddBgpNetworkRequest::getResourceOwnerAccount()const
|
||||
void AddBgpNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AddBgpNetworkRequest::getRegionId()const
|
||||
@@ -55,7 +55,7 @@ std::string AddBgpNetworkRequest::getRegionId()const
|
||||
void AddBgpNetworkRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddBgpNetworkRequest::getClientToken()const
|
||||
@@ -66,7 +66,7 @@ std::string AddBgpNetworkRequest::getClientToken()const
|
||||
void AddBgpNetworkRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string AddBgpNetworkRequest::getRouterId()const
|
||||
@@ -77,7 +77,7 @@ std::string AddBgpNetworkRequest::getRouterId()const
|
||||
void AddBgpNetworkRequest::setRouterId(const std::string& routerId)
|
||||
{
|
||||
routerId_ = routerId;
|
||||
setParameter("RouterId", routerId);
|
||||
setCoreParameter("RouterId", routerId);
|
||||
}
|
||||
|
||||
std::string AddBgpNetworkRequest::getVpcId()const
|
||||
@@ -88,7 +88,7 @@ std::string AddBgpNetworkRequest::getVpcId()const
|
||||
void AddBgpNetworkRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string AddBgpNetworkRequest::getOwnerAccount()const
|
||||
@@ -99,7 +99,7 @@ std::string AddBgpNetworkRequest::getOwnerAccount()const
|
||||
void AddBgpNetworkRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long AddBgpNetworkRequest::getOwnerId()const
|
||||
@@ -110,7 +110,7 @@ long AddBgpNetworkRequest::getOwnerId()const
|
||||
void AddBgpNetworkRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AddBgpNetworkRequest::getDstCidrBlock()const
|
||||
@@ -121,6 +121,6 @@ std::string AddBgpNetworkRequest::getDstCidrBlock()const
|
||||
void AddBgpNetworkRequest::setDstCidrBlock(const std::string& dstCidrBlock)
|
||||
{
|
||||
dstCidrBlock_ = dstCidrBlock;
|
||||
setParameter("DstCidrBlock", dstCidrBlock);
|
||||
setCoreParameter("DstCidrBlock", dstCidrBlock);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AddBgpNetworkResult::~AddBgpNetworkResult()
|
||||
|
||||
void AddBgpNetworkResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long AddCommonBandwidthPackageIpRequest::getResourceOwnerId()const
|
||||
void AddCommonBandwidthPackageIpRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddCommonBandwidthPackageIpRequest::getBandwidthPackageId()const
|
||||
@@ -44,7 +44,7 @@ std::string AddCommonBandwidthPackageIpRequest::getBandwidthPackageId()const
|
||||
void AddCommonBandwidthPackageIpRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
|
||||
{
|
||||
bandwidthPackageId_ = bandwidthPackageId;
|
||||
setParameter("BandwidthPackageId", bandwidthPackageId);
|
||||
setCoreParameter("BandwidthPackageId", bandwidthPackageId);
|
||||
}
|
||||
|
||||
std::string AddCommonBandwidthPackageIpRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string AddCommonBandwidthPackageIpRequest::getResourceOwnerAccount()const
|
||||
void AddCommonBandwidthPackageIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AddCommonBandwidthPackageIpRequest::getRegionId()const
|
||||
@@ -66,7 +66,7 @@ std::string AddCommonBandwidthPackageIpRequest::getRegionId()const
|
||||
void AddCommonBandwidthPackageIpRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddCommonBandwidthPackageIpRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string AddCommonBandwidthPackageIpRequest::getOwnerAccount()const
|
||||
void AddCommonBandwidthPackageIpRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AddCommonBandwidthPackageIpRequest::getIpInstanceId()const
|
||||
@@ -88,7 +88,7 @@ std::string AddCommonBandwidthPackageIpRequest::getIpInstanceId()const
|
||||
void AddCommonBandwidthPackageIpRequest::setIpInstanceId(const std::string& ipInstanceId)
|
||||
{
|
||||
ipInstanceId_ = ipInstanceId;
|
||||
setParameter("IpInstanceId", ipInstanceId);
|
||||
setCoreParameter("IpInstanceId", ipInstanceId);
|
||||
}
|
||||
|
||||
long AddCommonBandwidthPackageIpRequest::getOwnerId()const
|
||||
@@ -99,6 +99,6 @@ long AddCommonBandwidthPackageIpRequest::getOwnerId()const
|
||||
void AddCommonBandwidthPackageIpRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AddCommonBandwidthPackageIpResult::~AddCommonBandwidthPackageIpResult()
|
||||
|
||||
void AddCommonBandwidthPackageIpResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long AddGlobalAccelerationInstanceIpRequest::getResourceOwnerId()const
|
||||
void AddGlobalAccelerationInstanceIpRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddGlobalAccelerationInstanceIpRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string AddGlobalAccelerationInstanceIpRequest::getResourceOwnerAccount()con
|
||||
void AddGlobalAccelerationInstanceIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AddGlobalAccelerationInstanceIpRequest::getRegionId()const
|
||||
@@ -55,7 +55,7 @@ std::string AddGlobalAccelerationInstanceIpRequest::getRegionId()const
|
||||
void AddGlobalAccelerationInstanceIpRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddGlobalAccelerationInstanceIpRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string AddGlobalAccelerationInstanceIpRequest::getOwnerAccount()const
|
||||
void AddGlobalAccelerationInstanceIpRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AddGlobalAccelerationInstanceIpRequest::getIpInstanceId()const
|
||||
@@ -77,7 +77,7 @@ std::string AddGlobalAccelerationInstanceIpRequest::getIpInstanceId()const
|
||||
void AddGlobalAccelerationInstanceIpRequest::setIpInstanceId(const std::string& ipInstanceId)
|
||||
{
|
||||
ipInstanceId_ = ipInstanceId;
|
||||
setParameter("IpInstanceId", ipInstanceId);
|
||||
setCoreParameter("IpInstanceId", ipInstanceId);
|
||||
}
|
||||
|
||||
long AddGlobalAccelerationInstanceIpRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long AddGlobalAccelerationInstanceIpRequest::getOwnerId()const
|
||||
void AddGlobalAccelerationInstanceIpRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AddGlobalAccelerationInstanceIpRequest::getGlobalAccelerationInstanceId()const
|
||||
@@ -99,6 +99,6 @@ std::string AddGlobalAccelerationInstanceIpRequest::getGlobalAccelerationInstanc
|
||||
void AddGlobalAccelerationInstanceIpRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId)
|
||||
{
|
||||
globalAccelerationInstanceId_ = globalAccelerationInstanceId;
|
||||
setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId);
|
||||
setCoreParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AddGlobalAccelerationInstanceIpResult::~AddGlobalAccelerationInstanceIpResult()
|
||||
|
||||
void AddGlobalAccelerationInstanceIpResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string AddIPv6TranslatorAclListEntryRequest::getAclId()const
|
||||
void AddIPv6TranslatorAclListEntryRequest::setAclId(const std::string& aclId)
|
||||
{
|
||||
aclId_ = aclId;
|
||||
setParameter("AclId", aclId);
|
||||
setCoreParameter("AclId", aclId);
|
||||
}
|
||||
|
||||
long AddIPv6TranslatorAclListEntryRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long AddIPv6TranslatorAclListEntryRequest::getResourceOwnerId()const
|
||||
void AddIPv6TranslatorAclListEntryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddIPv6TranslatorAclListEntryRequest::getAclEntryIp()const
|
||||
@@ -55,7 +55,7 @@ std::string AddIPv6TranslatorAclListEntryRequest::getAclEntryIp()const
|
||||
void AddIPv6TranslatorAclListEntryRequest::setAclEntryIp(const std::string& aclEntryIp)
|
||||
{
|
||||
aclEntryIp_ = aclEntryIp;
|
||||
setParameter("AclEntryIp", aclEntryIp);
|
||||
setCoreParameter("AclEntryIp", aclEntryIp);
|
||||
}
|
||||
|
||||
std::string AddIPv6TranslatorAclListEntryRequest::getResourceOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string AddIPv6TranslatorAclListEntryRequest::getResourceOwnerAccount()const
|
||||
void AddIPv6TranslatorAclListEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AddIPv6TranslatorAclListEntryRequest::getRegionId()const
|
||||
@@ -77,7 +77,7 @@ std::string AddIPv6TranslatorAclListEntryRequest::getRegionId()const
|
||||
void AddIPv6TranslatorAclListEntryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddIPv6TranslatorAclListEntryRequest::getOwnerAccount()const
|
||||
@@ -88,7 +88,7 @@ std::string AddIPv6TranslatorAclListEntryRequest::getOwnerAccount()const
|
||||
void AddIPv6TranslatorAclListEntryRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AddIPv6TranslatorAclListEntryRequest::getAclEntryComment()const
|
||||
@@ -99,7 +99,7 @@ std::string AddIPv6TranslatorAclListEntryRequest::getAclEntryComment()const
|
||||
void AddIPv6TranslatorAclListEntryRequest::setAclEntryComment(const std::string& aclEntryComment)
|
||||
{
|
||||
aclEntryComment_ = aclEntryComment;
|
||||
setParameter("AclEntryComment", aclEntryComment);
|
||||
setCoreParameter("AclEntryComment", aclEntryComment);
|
||||
}
|
||||
|
||||
long AddIPv6TranslatorAclListEntryRequest::getOwnerId()const
|
||||
@@ -110,6 +110,6 @@ long AddIPv6TranslatorAclListEntryRequest::getOwnerId()const
|
||||
void AddIPv6TranslatorAclListEntryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AddIPv6TranslatorAclListEntryResult::~AddIPv6TranslatorAclListEntryResult()
|
||||
|
||||
void AddIPv6TranslatorAclListEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AclEntryId"].isNull())
|
||||
aclEntryId_ = value["AclEntryId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long AllocateEipAddressRequest::getResourceOwnerId()const
|
||||
void AllocateEipAddressRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int AllocateEipAddressRequest::getPeriod()const
|
||||
@@ -44,7 +44,7 @@ int AllocateEipAddressRequest::getPeriod()const
|
||||
void AllocateEipAddressRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
setCoreParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
bool AllocateEipAddressRequest::getAutoPay()const
|
||||
@@ -55,7 +55,7 @@ bool AllocateEipAddressRequest::getAutoPay()const
|
||||
void AllocateEipAddressRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setParameter("AutoPay", std::to_string(autoPay));
|
||||
setCoreParameter("AutoPay", autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressRequest::getResourceOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string AllocateEipAddressRequest::getResourceOwnerAccount()const
|
||||
void AllocateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressRequest::getBandwidth()const
|
||||
@@ -77,7 +77,7 @@ std::string AllocateEipAddressRequest::getBandwidth()const
|
||||
void AllocateEipAddressRequest::setBandwidth(const std::string& bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", bandwidth);
|
||||
setCoreParameter("Bandwidth", bandwidth);
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressRequest::getClientToken()const
|
||||
@@ -88,7 +88,7 @@ std::string AllocateEipAddressRequest::getClientToken()const
|
||||
void AllocateEipAddressRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressRequest::getISP()const
|
||||
@@ -99,7 +99,7 @@ std::string AllocateEipAddressRequest::getISP()const
|
||||
void AllocateEipAddressRequest::setISP(const std::string& iSP)
|
||||
{
|
||||
iSP_ = iSP;
|
||||
setParameter("ISP", iSP);
|
||||
setCoreParameter("ISP", iSP);
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressRequest::getOwnerAccount()const
|
||||
@@ -110,7 +110,7 @@ std::string AllocateEipAddressRequest::getOwnerAccount()const
|
||||
void AllocateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long AllocateEipAddressRequest::getOwnerId()const
|
||||
@@ -121,7 +121,18 @@ long AllocateEipAddressRequest::getOwnerId()const
|
||||
void AllocateEipAddressRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long AllocateEipAddressRequest::getActivityId()const
|
||||
{
|
||||
return activityId_;
|
||||
}
|
||||
|
||||
void AllocateEipAddressRequest::setActivityId(long activityId)
|
||||
{
|
||||
activityId_ = activityId;
|
||||
setCoreParameter("ActivityId", std::to_string(activityId));
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressRequest::getResourceGroupId()const
|
||||
@@ -132,7 +143,7 @@ std::string AllocateEipAddressRequest::getResourceGroupId()const
|
||||
void AllocateEipAddressRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
setCoreParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressRequest::getRegionId()const
|
||||
@@ -143,7 +154,7 @@ std::string AllocateEipAddressRequest::getRegionId()const
|
||||
void AllocateEipAddressRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressRequest::getInternetChargeType()const
|
||||
@@ -154,7 +165,7 @@ std::string AllocateEipAddressRequest::getInternetChargeType()const
|
||||
void AllocateEipAddressRequest::setInternetChargeType(const std::string& internetChargeType)
|
||||
{
|
||||
internetChargeType_ = internetChargeType;
|
||||
setParameter("InternetChargeType", internetChargeType);
|
||||
setCoreParameter("InternetChargeType", internetChargeType);
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressRequest::getNetmode()const
|
||||
@@ -165,7 +176,7 @@ std::string AllocateEipAddressRequest::getNetmode()const
|
||||
void AllocateEipAddressRequest::setNetmode(const std::string& netmode)
|
||||
{
|
||||
netmode_ = netmode;
|
||||
setParameter("Netmode", netmode);
|
||||
setCoreParameter("Netmode", netmode);
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressRequest::getPricingCycle()const
|
||||
@@ -176,7 +187,7 @@ std::string AllocateEipAddressRequest::getPricingCycle()const
|
||||
void AllocateEipAddressRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
{
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter("PricingCycle", pricingCycle);
|
||||
setCoreParameter("PricingCycle", pricingCycle);
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressRequest::getInstanceChargeType()const
|
||||
@@ -187,6 +198,6 @@ std::string AllocateEipAddressRequest::getInstanceChargeType()const
|
||||
void AllocateEipAddressRequest::setInstanceChargeType(const std::string& instanceChargeType)
|
||||
{
|
||||
instanceChargeType_ = instanceChargeType;
|
||||
setParameter("InstanceChargeType", instanceChargeType);
|
||||
setCoreParameter("InstanceChargeType", instanceChargeType);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AllocateEipAddressResult::~AllocateEipAddressResult()
|
||||
|
||||
void AllocateEipAddressResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AllocationId"].isNull())
|
||||
allocationId_ = value["AllocationId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long AllocateIpv6InternetBandwidthRequest::getResourceOwnerId()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getClientToken()const
|
||||
@@ -44,7 +44,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getClientToken()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long AllocateIpv6InternetBandwidthRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long AllocateIpv6InternetBandwidthRequest::getCallerParentId()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool AllocateIpv6InternetBandwidthRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool AllocateIpv6InternetBandwidthRequest::getProxy_original_security_transport(
|
||||
void AllocateIpv6InternetBandwidthRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getProxy_original_source_ip()const
|
||||
@@ -77,7 +77,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getProxy_original_source_ip()c
|
||||
void AllocateIpv6InternetBandwidthRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getOwnerIdLoginEmail()const
|
||||
@@ -88,7 +88,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getOwnerIdLoginEmail()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getCallerType()const
|
||||
@@ -99,7 +99,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getCallerType()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getAccessKeyId()const
|
||||
@@ -110,7 +110,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getAccessKeyId()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getResourceGroupId()const
|
||||
@@ -121,7 +121,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getResourceGroupId()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
setCoreParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getRegionId()const
|
||||
@@ -132,7 +132,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getRegionId()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getSecurityToken()const
|
||||
@@ -143,7 +143,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getSecurityToken()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool AllocateIpv6InternetBandwidthRequest::getEnable()const
|
||||
@@ -154,7 +154,7 @@ bool AllocateIpv6InternetBandwidthRequest::getEnable()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
setCoreParameter("Enable", enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getRequestContent()const
|
||||
@@ -165,7 +165,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getRequestContent()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getCallerBidEmail()const
|
||||
@@ -176,7 +176,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getCallerBidEmail()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getCallerUidEmail()const
|
||||
@@ -187,7 +187,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getCallerUidEmail()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long AllocateIpv6InternetBandwidthRequest::getCallerUid()const
|
||||
@@ -198,7 +198,7 @@ long AllocateIpv6InternetBandwidthRequest::getCallerUid()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getApp_ip()const
|
||||
@@ -209,7 +209,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getApp_ip()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
int AllocateIpv6InternetBandwidthRequest::getBandwidth()const
|
||||
@@ -220,7 +220,7 @@ int AllocateIpv6InternetBandwidthRequest::getBandwidth()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
setCoreParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getResourceOwnerAccount()const
|
||||
@@ -231,7 +231,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getResourceOwnerAccount()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getOwnerAccount()const
|
||||
@@ -242,7 +242,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getOwnerAccount()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getCallerBid()const
|
||||
@@ -253,7 +253,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getCallerBid()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long AllocateIpv6InternetBandwidthRequest::getOwnerId()const
|
||||
@@ -264,7 +264,7 @@ long AllocateIpv6InternetBandwidthRequest::getOwnerId()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool AllocateIpv6InternetBandwidthRequest::getProxy_trust_transport_info()const
|
||||
@@ -275,7 +275,7 @@ bool AllocateIpv6InternetBandwidthRequest::getProxy_trust_transport_info()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool AllocateIpv6InternetBandwidthRequest::getAk_mfa_present()const
|
||||
@@ -286,7 +286,7 @@ bool AllocateIpv6InternetBandwidthRequest::getAk_mfa_present()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool AllocateIpv6InternetBandwidthRequest::getSecurity_transport()const
|
||||
@@ -297,7 +297,7 @@ bool AllocateIpv6InternetBandwidthRequest::getSecurity_transport()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getIpv6AddressId()const
|
||||
@@ -308,7 +308,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getIpv6AddressId()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setIpv6AddressId(const std::string& ipv6AddressId)
|
||||
{
|
||||
ipv6AddressId_ = ipv6AddressId;
|
||||
setParameter("Ipv6AddressId", ipv6AddressId);
|
||||
setCoreParameter("Ipv6AddressId", ipv6AddressId);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getInternetChargeType()const
|
||||
@@ -319,7 +319,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getInternetChargeType()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setInternetChargeType(const std::string& internetChargeType)
|
||||
{
|
||||
internetChargeType_ = internetChargeType;
|
||||
setParameter("InternetChargeType", internetChargeType);
|
||||
setCoreParameter("InternetChargeType", internetChargeType);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getRequestId()const
|
||||
@@ -330,7 +330,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getRequestId()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string AllocateIpv6InternetBandwidthRequest::getIpv6GatewayId()const
|
||||
@@ -341,6 +341,6 @@ std::string AllocateIpv6InternetBandwidthRequest::getIpv6GatewayId()const
|
||||
void AllocateIpv6InternetBandwidthRequest::setIpv6GatewayId(const std::string& ipv6GatewayId)
|
||||
{
|
||||
ipv6GatewayId_ = ipv6GatewayId;
|
||||
setParameter("Ipv6GatewayId", ipv6GatewayId);
|
||||
setCoreParameter("Ipv6GatewayId", ipv6GatewayId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AllocateIpv6InternetBandwidthResult::~AllocateIpv6InternetBandwidthResult()
|
||||
|
||||
void AllocateIpv6InternetBandwidthResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Ipv6AddressId"].isNull())
|
||||
ipv6AddressId_ = value["Ipv6AddressId"].asString();
|
||||
|
||||
190
vpc/src/model/ApplyPhysicalConnectionLOARequest.cc
Normal file
190
vpc/src/model/ApplyPhysicalConnectionLOARequest.cc
Normal file
@@ -0,0 +1,190 @@
|
||||
/*
|
||||
* 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/vpc/model/ApplyPhysicalConnectionLOARequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::ApplyPhysicalConnectionLOARequest;
|
||||
|
||||
ApplyPhysicalConnectionLOARequest::ApplyPhysicalConnectionLOARequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "ApplyPhysicalConnectionLOA")
|
||||
{}
|
||||
|
||||
ApplyPhysicalConnectionLOARequest::~ApplyPhysicalConnectionLOARequest()
|
||||
{}
|
||||
|
||||
long ApplyPhysicalConnectionLOARequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ApplyPhysicalConnectionLOARequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ApplyPhysicalConnectionLOARequest::getPeerLocation()const
|
||||
{
|
||||
return peerLocation_;
|
||||
}
|
||||
|
||||
void ApplyPhysicalConnectionLOARequest::setPeerLocation(const std::string& peerLocation)
|
||||
{
|
||||
peerLocation_ = peerLocation;
|
||||
setCoreParameter("PeerLocation", peerLocation);
|
||||
}
|
||||
|
||||
std::string ApplyPhysicalConnectionLOARequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ApplyPhysicalConnectionLOARequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string ApplyPhysicalConnectionLOARequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ApplyPhysicalConnectionLOARequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int ApplyPhysicalConnectionLOARequest::getBandwidth()const
|
||||
{
|
||||
return bandwidth_;
|
||||
}
|
||||
|
||||
void ApplyPhysicalConnectionLOARequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setCoreParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string ApplyPhysicalConnectionLOARequest::getLineType()const
|
||||
{
|
||||
return lineType_;
|
||||
}
|
||||
|
||||
void ApplyPhysicalConnectionLOARequest::setLineType(const std::string& lineType)
|
||||
{
|
||||
lineType_ = lineType;
|
||||
setCoreParameter("LineType", lineType);
|
||||
}
|
||||
|
||||
std::string ApplyPhysicalConnectionLOARequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ApplyPhysicalConnectionLOARequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ApplyPhysicalConnectionLOARequest::getConstructionTime()const
|
||||
{
|
||||
return constructionTime_;
|
||||
}
|
||||
|
||||
void ApplyPhysicalConnectionLOARequest::setConstructionTime(const std::string& constructionTime)
|
||||
{
|
||||
constructionTime_ = constructionTime;
|
||||
setCoreParameter("ConstructionTime", constructionTime);
|
||||
}
|
||||
|
||||
long ApplyPhysicalConnectionLOARequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ApplyPhysicalConnectionLOARequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ApplyPhysicalConnectionLOARequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ApplyPhysicalConnectionLOARequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ApplyPhysicalConnectionLOARequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ApplyPhysicalConnectionLOARequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ApplyPhysicalConnectionLOARequest::getCompanyName()const
|
||||
{
|
||||
return companyName_;
|
||||
}
|
||||
|
||||
void ApplyPhysicalConnectionLOARequest::setCompanyName(const std::string& companyName)
|
||||
{
|
||||
companyName_ = companyName;
|
||||
setCoreParameter("CompanyName", companyName);
|
||||
}
|
||||
|
||||
std::string ApplyPhysicalConnectionLOARequest::getSi()const
|
||||
{
|
||||
return si_;
|
||||
}
|
||||
|
||||
void ApplyPhysicalConnectionLOARequest::setSi(const std::string& si)
|
||||
{
|
||||
si_ = si;
|
||||
setCoreParameter("Si", si);
|
||||
}
|
||||
|
||||
std::vector<ApplyPhysicalConnectionLOARequest::PMInfo> ApplyPhysicalConnectionLOARequest::getPMInfo()const
|
||||
{
|
||||
return pMInfo_;
|
||||
}
|
||||
|
||||
void ApplyPhysicalConnectionLOARequest::setPMInfo(const std::vector<PMInfo>& pMInfo)
|
||||
{
|
||||
pMInfo_ = pMInfo;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= pMInfo.size(); i++) {
|
||||
auto obj = pMInfo.at(i);
|
||||
std::string str ="PMInfo."+ std::to_string(i);
|
||||
setCoreParameter(str + ".PMCertificateNo", obj.pMCertificateNo);
|
||||
setCoreParameter(str + ".PMName", obj.pMName);
|
||||
setCoreParameter(str + ".PMCertificateType", obj.pMCertificateType);
|
||||
setCoreParameter(str + ".PMContactInfo", obj.pMContactInfo);
|
||||
setCoreParameter(str + ".PMGender", obj.pMGender);
|
||||
}
|
||||
}
|
||||
|
||||
48
vpc/src/model/ApplyPhysicalConnectionLOAResult.cc
Normal file
48
vpc/src/model/ApplyPhysicalConnectionLOAResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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/vpc/model/ApplyPhysicalConnectionLOAResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
ApplyPhysicalConnectionLOAResult::ApplyPhysicalConnectionLOAResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ApplyPhysicalConnectionLOAResult::ApplyPhysicalConnectionLOAResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ApplyPhysicalConnectionLOAResult::~ApplyPhysicalConnectionLOAResult()
|
||||
{}
|
||||
|
||||
void ApplyPhysicalConnectionLOAResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,18 @@ std::string AssociateEipAddressRequest::getPrivateIpAddress()const
|
||||
void AssociateEipAddressRequest::setPrivateIpAddress(const std::string& privateIpAddress)
|
||||
{
|
||||
privateIpAddress_ = privateIpAddress;
|
||||
setParameter("PrivateIpAddress", privateIpAddress);
|
||||
setCoreParameter("PrivateIpAddress", privateIpAddress);
|
||||
}
|
||||
|
||||
std::string AssociateEipAddressRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void AssociateEipAddressRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setCoreParameter("Mode", mode);
|
||||
}
|
||||
|
||||
long AssociateEipAddressRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +55,7 @@ long AssociateEipAddressRequest::getResourceOwnerId()const
|
||||
void AssociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AssociateEipAddressRequest::getInstanceId()const
|
||||
@@ -55,7 +66,7 @@ std::string AssociateEipAddressRequest::getInstanceId()const
|
||||
void AssociateEipAddressRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AssociateEipAddressRequest::getResourceOwnerAccount()const
|
||||
@@ -66,7 +77,7 @@ std::string AssociateEipAddressRequest::getResourceOwnerAccount()const
|
||||
void AssociateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AssociateEipAddressRequest::getRegionId()const
|
||||
@@ -77,7 +88,7 @@ std::string AssociateEipAddressRequest::getRegionId()const
|
||||
void AssociateEipAddressRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AssociateEipAddressRequest::getInstanceRegionId()const
|
||||
@@ -88,7 +99,7 @@ std::string AssociateEipAddressRequest::getInstanceRegionId()const
|
||||
void AssociateEipAddressRequest::setInstanceRegionId(const std::string& instanceRegionId)
|
||||
{
|
||||
instanceRegionId_ = instanceRegionId;
|
||||
setParameter("InstanceRegionId", instanceRegionId);
|
||||
setCoreParameter("InstanceRegionId", instanceRegionId);
|
||||
}
|
||||
|
||||
std::string AssociateEipAddressRequest::getOwnerAccount()const
|
||||
@@ -99,7 +110,7 @@ std::string AssociateEipAddressRequest::getOwnerAccount()const
|
||||
void AssociateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AssociateEipAddressRequest::getInstanceType()const
|
||||
@@ -110,7 +121,7 @@ std::string AssociateEipAddressRequest::getInstanceType()const
|
||||
void AssociateEipAddressRequest::setInstanceType(const std::string& instanceType)
|
||||
{
|
||||
instanceType_ = instanceType;
|
||||
setParameter("InstanceType", instanceType);
|
||||
setCoreParameter("InstanceType", instanceType);
|
||||
}
|
||||
|
||||
std::string AssociateEipAddressRequest::getAllocationId()const
|
||||
@@ -121,7 +132,7 @@ std::string AssociateEipAddressRequest::getAllocationId()const
|
||||
void AssociateEipAddressRequest::setAllocationId(const std::string& allocationId)
|
||||
{
|
||||
allocationId_ = allocationId;
|
||||
setParameter("AllocationId", allocationId);
|
||||
setCoreParameter("AllocationId", allocationId);
|
||||
}
|
||||
|
||||
long AssociateEipAddressRequest::getOwnerId()const
|
||||
@@ -132,6 +143,6 @@ long AssociateEipAddressRequest::getOwnerId()const
|
||||
void AssociateEipAddressRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AssociateEipAddressResult::~AssociateEipAddressResult()
|
||||
|
||||
void AssociateEipAddressResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long AssociateGlobalAccelerationInstanceRequest::getResourceOwnerId()const
|
||||
void AssociateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AssociateGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string AssociateGlobalAccelerationInstanceRequest::getResourceOwnerAccount(
|
||||
void AssociateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AssociateGlobalAccelerationInstanceRequest::getRegionId()const
|
||||
@@ -55,7 +55,7 @@ std::string AssociateGlobalAccelerationInstanceRequest::getRegionId()const
|
||||
void AssociateGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AssociateGlobalAccelerationInstanceRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string AssociateGlobalAccelerationInstanceRequest::getOwnerAccount()const
|
||||
void AssociateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerId()const
|
||||
@@ -77,7 +77,7 @@ std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerId()cons
|
||||
void AssociateGlobalAccelerationInstanceRequest::setBackendServerId(const std::string& backendServerId)
|
||||
{
|
||||
backendServerId_ = backendServerId;
|
||||
setParameter("BackendServerId", backendServerId);
|
||||
setCoreParameter("BackendServerId", backendServerId);
|
||||
}
|
||||
|
||||
long AssociateGlobalAccelerationInstanceRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long AssociateGlobalAccelerationInstanceRequest::getOwnerId()const
|
||||
void AssociateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AssociateGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId()const
|
||||
@@ -99,7 +99,7 @@ std::string AssociateGlobalAccelerationInstanceRequest::getGlobalAccelerationIns
|
||||
void AssociateGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId)
|
||||
{
|
||||
globalAccelerationInstanceId_ = globalAccelerationInstanceId;
|
||||
setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId);
|
||||
setCoreParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId);
|
||||
}
|
||||
|
||||
std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerRegionId()const
|
||||
@@ -110,7 +110,7 @@ std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerRegionId
|
||||
void AssociateGlobalAccelerationInstanceRequest::setBackendServerRegionId(const std::string& backendServerRegionId)
|
||||
{
|
||||
backendServerRegionId_ = backendServerRegionId;
|
||||
setParameter("BackendServerRegionId", backendServerRegionId);
|
||||
setCoreParameter("BackendServerRegionId", backendServerRegionId);
|
||||
}
|
||||
|
||||
std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerType()const
|
||||
@@ -121,6 +121,6 @@ std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerType()co
|
||||
void AssociateGlobalAccelerationInstanceRequest::setBackendServerType(const std::string& backendServerType)
|
||||
{
|
||||
backendServerType_ = backendServerType;
|
||||
setParameter("BackendServerType", backendServerType);
|
||||
setCoreParameter("BackendServerType", backendServerType);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AssociateGlobalAccelerationInstanceResult::~AssociateGlobalAccelerationInstanceR
|
||||
|
||||
void AssociateGlobalAccelerationInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string AssociateHaVipRequest::getHaVipId()const
|
||||
void AssociateHaVipRequest::setHaVipId(const std::string& haVipId)
|
||||
{
|
||||
haVipId_ = haVipId;
|
||||
setParameter("HaVipId", haVipId);
|
||||
setCoreParameter("HaVipId", haVipId);
|
||||
}
|
||||
|
||||
long AssociateHaVipRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long AssociateHaVipRequest::getResourceOwnerId()const
|
||||
void AssociateHaVipRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AssociateHaVipRequest::getInstanceId()const
|
||||
@@ -55,7 +55,7 @@ std::string AssociateHaVipRequest::getInstanceId()const
|
||||
void AssociateHaVipRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AssociateHaVipRequest::getResourceOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string AssociateHaVipRequest::getResourceOwnerAccount()const
|
||||
void AssociateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AssociateHaVipRequest::getClientToken()const
|
||||
@@ -77,7 +77,7 @@ std::string AssociateHaVipRequest::getClientToken()const
|
||||
void AssociateHaVipRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string AssociateHaVipRequest::getRegionId()const
|
||||
@@ -88,7 +88,7 @@ std::string AssociateHaVipRequest::getRegionId()const
|
||||
void AssociateHaVipRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AssociateHaVipRequest::getOwnerAccount()const
|
||||
@@ -99,7 +99,7 @@ std::string AssociateHaVipRequest::getOwnerAccount()const
|
||||
void AssociateHaVipRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long AssociateHaVipRequest::getOwnerId()const
|
||||
@@ -110,6 +110,6 @@ long AssociateHaVipRequest::getOwnerId()const
|
||||
void AssociateHaVipRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AssociateHaVipResult::~AssociateHaVipResult()
|
||||
|
||||
void AssociateHaVipResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
308
vpc/src/model/AssociateNetworkAclRequest.cc
Normal file
308
vpc/src/model/AssociateNetworkAclRequest.cc
Normal file
@@ -0,0 +1,308 @@
|
||||
/*
|
||||
* 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/vpc/model/AssociateNetworkAclRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::AssociateNetworkAclRequest;
|
||||
|
||||
AssociateNetworkAclRequest::AssociateNetworkAclRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "AssociateNetworkAcl")
|
||||
{}
|
||||
|
||||
AssociateNetworkAclRequest::~AssociateNetworkAclRequest()
|
||||
{}
|
||||
|
||||
long AssociateNetworkAclRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AssociateNetworkAclRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long AssociateNetworkAclRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool AssociateNetworkAclRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AssociateNetworkAclRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string AssociateNetworkAclRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string AssociateNetworkAclRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string AssociateNetworkAclRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AssociateNetworkAclRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AssociateNetworkAclRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool AssociateNetworkAclRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setCoreParameter("Enable", enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AssociateNetworkAclRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string AssociateNetworkAclRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string AssociateNetworkAclRequest::getNetworkAclId()const
|
||||
{
|
||||
return networkAclId_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setNetworkAclId(const std::string& networkAclId)
|
||||
{
|
||||
networkAclId_ = networkAclId;
|
||||
setCoreParameter("NetworkAclId", networkAclId);
|
||||
}
|
||||
|
||||
std::string AssociateNetworkAclRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long AssociateNetworkAclRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string AssociateNetworkAclRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::vector<AssociateNetworkAclRequest::Resource> AssociateNetworkAclRequest::getResource()const
|
||||
{
|
||||
return resource_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setResource(const std::vector<Resource>& resource)
|
||||
{
|
||||
resource_ = resource;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= resource.size(); i++) {
|
||||
auto obj = resource.at(i);
|
||||
std::string str ="Resource."+ std::to_string(i);
|
||||
setCoreParameter(str + ".ResourceType", obj.resourceType);
|
||||
setCoreParameter(str + ".ResourceId", obj.resourceId);
|
||||
}
|
||||
}
|
||||
|
||||
std::string AssociateNetworkAclRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AssociateNetworkAclRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long AssociateNetworkAclRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool AssociateNetworkAclRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool AssociateNetworkAclRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool AssociateNetworkAclRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AssociateNetworkAclRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void AssociateNetworkAclRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
48
vpc/src/model/AssociateNetworkAclResult.cc
Normal file
48
vpc/src/model/AssociateNetworkAclResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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/vpc/model/AssociateNetworkAclResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
AssociateNetworkAclResult::AssociateNetworkAclResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AssociateNetworkAclResult::AssociateNetworkAclResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AssociateNetworkAclResult::~AssociateNetworkAclResult()
|
||||
{}
|
||||
|
||||
void AssociateNetworkAclResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long AssociatePhysicalConnectionToVirtualBorderRouterRequest::getResourceOwnerId
|
||||
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getCircuitCode()const
|
||||
@@ -44,7 +44,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getCircuitC
|
||||
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setCircuitCode(const std::string& circuitCode)
|
||||
{
|
||||
circuitCode_ = circuitCode;
|
||||
setParameter("CircuitCode", circuitCode);
|
||||
setCoreParameter("CircuitCode", circuitCode);
|
||||
}
|
||||
|
||||
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVlanId()const
|
||||
@@ -55,7 +55,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVlanId()
|
||||
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setVlanId(const std::string& vlanId)
|
||||
{
|
||||
vlanId_ = vlanId;
|
||||
setParameter("VlanId", vlanId);
|
||||
setCoreParameter("VlanId", vlanId);
|
||||
}
|
||||
|
||||
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getResourceOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getResource
|
||||
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getClientToken()const
|
||||
@@ -77,7 +77,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getClientTo
|
||||
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerAccount()const
|
||||
@@ -88,7 +88,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerAcc
|
||||
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVbrId()const
|
||||
@@ -99,7 +99,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVbrId()c
|
||||
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setVbrId(const std::string& vbrId)
|
||||
{
|
||||
vbrId_ = vbrId;
|
||||
setParameter("VbrId", vbrId);
|
||||
setCoreParameter("VbrId", vbrId);
|
||||
}
|
||||
|
||||
long AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerId()const
|
||||
@@ -110,7 +110,7 @@ long AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerId()const
|
||||
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeerGatewayIp()const
|
||||
@@ -121,7 +121,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeerGate
|
||||
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeerGatewayIp(const std::string& peerGatewayIp)
|
||||
{
|
||||
peerGatewayIp_ = peerGatewayIp;
|
||||
setParameter("PeerGatewayIp", peerGatewayIp);
|
||||
setCoreParameter("PeerGatewayIp", peerGatewayIp);
|
||||
}
|
||||
|
||||
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeeringSubnetMask()const
|
||||
@@ -132,7 +132,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeeringS
|
||||
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask)
|
||||
{
|
||||
peeringSubnetMask_ = peeringSubnetMask;
|
||||
setParameter("PeeringSubnetMask", peeringSubnetMask);
|
||||
setCoreParameter("PeeringSubnetMask", peeringSubnetMask);
|
||||
}
|
||||
|
||||
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getRegionId()const
|
||||
@@ -143,7 +143,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getRegionId
|
||||
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPhysicalConnectionId()const
|
||||
@@ -154,7 +154,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPhysical
|
||||
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId)
|
||||
{
|
||||
physicalConnectionId_ = physicalConnectionId;
|
||||
setParameter("PhysicalConnectionId", physicalConnectionId);
|
||||
setCoreParameter("PhysicalConnectionId", physicalConnectionId);
|
||||
}
|
||||
|
||||
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getLocalGatewayIp()const
|
||||
@@ -165,6 +165,6 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getLocalGat
|
||||
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setLocalGatewayIp(const std::string& localGatewayIp)
|
||||
{
|
||||
localGatewayIp_ = localGatewayIp;
|
||||
setParameter("LocalGatewayIp", localGatewayIp);
|
||||
setCoreParameter("LocalGatewayIp", localGatewayIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AssociatePhysicalConnectionToVirtualBorderRouterResult::~AssociatePhysicalConnec
|
||||
|
||||
void AssociatePhysicalConnectionToVirtualBorderRouterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long AssociateRouteTableRequest::getResourceOwnerId()const
|
||||
void AssociateRouteTableRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getClientToken()const
|
||||
@@ -44,7 +44,7 @@ std::string AssociateRouteTableRequest::getClientToken()const
|
||||
void AssociateRouteTableRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long AssociateRouteTableRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long AssociateRouteTableRequest::getCallerParentId()const
|
||||
void AssociateRouteTableRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool AssociateRouteTableRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool AssociateRouteTableRequest::getProxy_original_security_transport()const
|
||||
void AssociateRouteTableRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getProxy_original_source_ip()const
|
||||
@@ -77,7 +77,7 @@ std::string AssociateRouteTableRequest::getProxy_original_source_ip()const
|
||||
void AssociateRouteTableRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getOwnerIdLoginEmail()const
|
||||
@@ -88,7 +88,7 @@ std::string AssociateRouteTableRequest::getOwnerIdLoginEmail()const
|
||||
void AssociateRouteTableRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getCallerType()const
|
||||
@@ -99,7 +99,7 @@ std::string AssociateRouteTableRequest::getCallerType()const
|
||||
void AssociateRouteTableRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getAccessKeyId()const
|
||||
@@ -110,7 +110,7 @@ std::string AssociateRouteTableRequest::getAccessKeyId()const
|
||||
void AssociateRouteTableRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getResourceGroupId()const
|
||||
@@ -121,7 +121,7 @@ std::string AssociateRouteTableRequest::getResourceGroupId()const
|
||||
void AssociateRouteTableRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
setCoreParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getRegionId()const
|
||||
@@ -132,7 +132,7 @@ std::string AssociateRouteTableRequest::getRegionId()const
|
||||
void AssociateRouteTableRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getSecurityToken()const
|
||||
@@ -143,7 +143,7 @@ std::string AssociateRouteTableRequest::getSecurityToken()const
|
||||
void AssociateRouteTableRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool AssociateRouteTableRequest::getEnable()const
|
||||
@@ -154,7 +154,7 @@ bool AssociateRouteTableRequest::getEnable()const
|
||||
void AssociateRouteTableRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
setCoreParameter("Enable", enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getRequestContent()const
|
||||
@@ -165,7 +165,7 @@ std::string AssociateRouteTableRequest::getRequestContent()const
|
||||
void AssociateRouteTableRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getCallerBidEmail()const
|
||||
@@ -176,7 +176,7 @@ std::string AssociateRouteTableRequest::getCallerBidEmail()const
|
||||
void AssociateRouteTableRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getCallerUidEmail()const
|
||||
@@ -187,7 +187,7 @@ std::string AssociateRouteTableRequest::getCallerUidEmail()const
|
||||
void AssociateRouteTableRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getRouteTableId()const
|
||||
@@ -198,7 +198,7 @@ std::string AssociateRouteTableRequest::getRouteTableId()const
|
||||
void AssociateRouteTableRequest::setRouteTableId(const std::string& routeTableId)
|
||||
{
|
||||
routeTableId_ = routeTableId;
|
||||
setParameter("RouteTableId", routeTableId);
|
||||
setCoreParameter("RouteTableId", routeTableId);
|
||||
}
|
||||
|
||||
long AssociateRouteTableRequest::getCallerUid()const
|
||||
@@ -209,7 +209,7 @@ long AssociateRouteTableRequest::getCallerUid()const
|
||||
void AssociateRouteTableRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getApp_ip()const
|
||||
@@ -220,7 +220,7 @@ std::string AssociateRouteTableRequest::getApp_ip()const
|
||||
void AssociateRouteTableRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getResourceOwnerAccount()const
|
||||
@@ -231,7 +231,7 @@ std::string AssociateRouteTableRequest::getResourceOwnerAccount()const
|
||||
void AssociateRouteTableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getOwnerAccount()const
|
||||
@@ -242,7 +242,7 @@ std::string AssociateRouteTableRequest::getOwnerAccount()const
|
||||
void AssociateRouteTableRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getCallerBid()const
|
||||
@@ -253,7 +253,7 @@ std::string AssociateRouteTableRequest::getCallerBid()const
|
||||
void AssociateRouteTableRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long AssociateRouteTableRequest::getOwnerId()const
|
||||
@@ -264,7 +264,7 @@ long AssociateRouteTableRequest::getOwnerId()const
|
||||
void AssociateRouteTableRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool AssociateRouteTableRequest::getProxy_trust_transport_info()const
|
||||
@@ -275,7 +275,7 @@ bool AssociateRouteTableRequest::getProxy_trust_transport_info()const
|
||||
void AssociateRouteTableRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool AssociateRouteTableRequest::getAk_mfa_present()const
|
||||
@@ -286,7 +286,7 @@ bool AssociateRouteTableRequest::getAk_mfa_present()const
|
||||
void AssociateRouteTableRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getVSwitchId()const
|
||||
@@ -297,7 +297,7 @@ std::string AssociateRouteTableRequest::getVSwitchId()const
|
||||
void AssociateRouteTableRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
bool AssociateRouteTableRequest::getSecurity_transport()const
|
||||
@@ -308,7 +308,7 @@ bool AssociateRouteTableRequest::getSecurity_transport()const
|
||||
void AssociateRouteTableRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AssociateRouteTableRequest::getRequestId()const
|
||||
@@ -319,6 +319,6 @@ std::string AssociateRouteTableRequest::getRequestId()const
|
||||
void AssociateRouteTableRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AssociateRouteTableResult::~AssociateRouteTableResult()
|
||||
|
||||
void AssociateRouteTableResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
104
vpc/src/model/CancelCommonBandwidthPackageIpBandwidthRequest.cc
Normal file
104
vpc/src/model/CancelCommonBandwidthPackageIpBandwidthRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::CancelCommonBandwidthPackageIpBandwidthRequest;
|
||||
|
||||
CancelCommonBandwidthPackageIpBandwidthRequest::CancelCommonBandwidthPackageIpBandwidthRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "CancelCommonBandwidthPackageIpBandwidth")
|
||||
{}
|
||||
|
||||
CancelCommonBandwidthPackageIpBandwidthRequest::~CancelCommonBandwidthPackageIpBandwidthRequest()
|
||||
{}
|
||||
|
||||
long CancelCommonBandwidthPackageIpBandwidthRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CancelCommonBandwidthPackageIpBandwidthRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CancelCommonBandwidthPackageIpBandwidthRequest::getBandwidthPackageId()const
|
||||
{
|
||||
return bandwidthPackageId_;
|
||||
}
|
||||
|
||||
void CancelCommonBandwidthPackageIpBandwidthRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
|
||||
{
|
||||
bandwidthPackageId_ = bandwidthPackageId;
|
||||
setCoreParameter("BandwidthPackageId", bandwidthPackageId);
|
||||
}
|
||||
|
||||
std::string CancelCommonBandwidthPackageIpBandwidthRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CancelCommonBandwidthPackageIpBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CancelCommonBandwidthPackageIpBandwidthRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CancelCommonBandwidthPackageIpBandwidthRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CancelCommonBandwidthPackageIpBandwidthRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CancelCommonBandwidthPackageIpBandwidthRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CancelCommonBandwidthPackageIpBandwidthRequest::getEipId()const
|
||||
{
|
||||
return eipId_;
|
||||
}
|
||||
|
||||
void CancelCommonBandwidthPackageIpBandwidthRequest::setEipId(const std::string& eipId)
|
||||
{
|
||||
eipId_ = eipId;
|
||||
setCoreParameter("EipId", eipId);
|
||||
}
|
||||
|
||||
long CancelCommonBandwidthPackageIpBandwidthRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CancelCommonBandwidthPackageIpBandwidthRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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/vpc/model/CancelCommonBandwidthPackageIpBandwidthResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
CancelCommonBandwidthPackageIpBandwidthResult::CancelCommonBandwidthPackageIpBandwidthResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelCommonBandwidthPackageIpBandwidthResult::CancelCommonBandwidthPackageIpBandwidthResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelCommonBandwidthPackageIpBandwidthResult::~CancelCommonBandwidthPackageIpBandwidthResult()
|
||||
{}
|
||||
|
||||
void CancelCommonBandwidthPackageIpBandwidthResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long CancelPhysicalConnectionRequest::getResourceOwnerId()const
|
||||
void CancelPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CancelPhysicalConnectionRequest::getRegionId()const
|
||||
@@ -44,7 +44,7 @@ std::string CancelPhysicalConnectionRequest::getRegionId()const
|
||||
void CancelPhysicalConnectionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CancelPhysicalConnectionRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string CancelPhysicalConnectionRequest::getResourceOwnerAccount()const
|
||||
void CancelPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CancelPhysicalConnectionRequest::getClientToken()const
|
||||
@@ -66,7 +66,7 @@ std::string CancelPhysicalConnectionRequest::getClientToken()const
|
||||
void CancelPhysicalConnectionRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CancelPhysicalConnectionRequest::getPhysicalConnectionId()const
|
||||
@@ -77,7 +77,7 @@ std::string CancelPhysicalConnectionRequest::getPhysicalConnectionId()const
|
||||
void CancelPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId)
|
||||
{
|
||||
physicalConnectionId_ = physicalConnectionId;
|
||||
setParameter("PhysicalConnectionId", physicalConnectionId);
|
||||
setCoreParameter("PhysicalConnectionId", physicalConnectionId);
|
||||
}
|
||||
|
||||
std::string CancelPhysicalConnectionRequest::getOwnerAccount()const
|
||||
@@ -88,7 +88,7 @@ std::string CancelPhysicalConnectionRequest::getOwnerAccount()const
|
||||
void CancelPhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CancelPhysicalConnectionRequest::getOwnerId()const
|
||||
@@ -99,6 +99,6 @@ long CancelPhysicalConnectionRequest::getOwnerId()const
|
||||
void CancelPhysicalConnectionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CancelPhysicalConnectionResult::~CancelPhysicalConnectionResult()
|
||||
|
||||
void CancelPhysicalConnectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
126
vpc/src/model/CompletePhysicalConnectionLOARequest.cc
Normal file
126
vpc/src/model/CompletePhysicalConnectionLOARequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::CompletePhysicalConnectionLOARequest;
|
||||
|
||||
CompletePhysicalConnectionLOARequest::CompletePhysicalConnectionLOARequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "CompletePhysicalConnectionLOA")
|
||||
{}
|
||||
|
||||
CompletePhysicalConnectionLOARequest::~CompletePhysicalConnectionLOARequest()
|
||||
{}
|
||||
|
||||
std::string CompletePhysicalConnectionLOARequest::getLineLabel()const
|
||||
{
|
||||
return lineLabel_;
|
||||
}
|
||||
|
||||
void CompletePhysicalConnectionLOARequest::setLineLabel(const std::string& lineLabel)
|
||||
{
|
||||
lineLabel_ = lineLabel;
|
||||
setCoreParameter("LineLabel", lineLabel);
|
||||
}
|
||||
|
||||
std::string CompletePhysicalConnectionLOARequest::getLineCode()const
|
||||
{
|
||||
return lineCode_;
|
||||
}
|
||||
|
||||
void CompletePhysicalConnectionLOARequest::setLineCode(const std::string& lineCode)
|
||||
{
|
||||
lineCode_ = lineCode;
|
||||
setCoreParameter("LineCode", lineCode);
|
||||
}
|
||||
|
||||
long CompletePhysicalConnectionLOARequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CompletePhysicalConnectionLOARequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CompletePhysicalConnectionLOARequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CompletePhysicalConnectionLOARequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CompletePhysicalConnectionLOARequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CompletePhysicalConnectionLOARequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CompletePhysicalConnectionLOARequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CompletePhysicalConnectionLOARequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CompletePhysicalConnectionLOARequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CompletePhysicalConnectionLOARequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CompletePhysicalConnectionLOARequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CompletePhysicalConnectionLOARequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CompletePhysicalConnectionLOARequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CompletePhysicalConnectionLOARequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
48
vpc/src/model/CompletePhysicalConnectionLOAResult.cc
Normal file
48
vpc/src/model/CompletePhysicalConnectionLOAResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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/vpc/model/CompletePhysicalConnectionLOAResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
CompletePhysicalConnectionLOAResult::CompletePhysicalConnectionLOAResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CompletePhysicalConnectionLOAResult::CompletePhysicalConnectionLOAResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CompletePhysicalConnectionLOAResult::~CompletePhysicalConnectionLOAResult()
|
||||
{}
|
||||
|
||||
void CompletePhysicalConnectionLOAResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long ConnectRouterInterfaceRequest::getResourceOwnerId()const
|
||||
void ConnectRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ConnectRouterInterfaceRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string ConnectRouterInterfaceRequest::getResourceOwnerAccount()const
|
||||
void ConnectRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ConnectRouterInterfaceRequest::getRegionId()const
|
||||
@@ -55,7 +55,7 @@ std::string ConnectRouterInterfaceRequest::getRegionId()const
|
||||
void ConnectRouterInterfaceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long ConnectRouterInterfaceRequest::getOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long ConnectRouterInterfaceRequest::getOwnerId()const
|
||||
void ConnectRouterInterfaceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ConnectRouterInterfaceRequest::getRouterInterfaceId()const
|
||||
@@ -77,6 +77,6 @@ std::string ConnectRouterInterfaceRequest::getRouterInterfaceId()const
|
||||
void ConnectRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId)
|
||||
{
|
||||
routerInterfaceId_ = routerInterfaceId;
|
||||
setParameter("RouterInterfaceId", routerInterfaceId);
|
||||
setCoreParameter("RouterInterfaceId", routerInterfaceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ConnectRouterInterfaceResult::~ConnectRouterInterfaceResult()
|
||||
|
||||
void ConnectRouterInterfaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long ConvertBandwidthPackageRequest::getResourceOwnerId()const
|
||||
void ConvertBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getClientToken()const
|
||||
@@ -44,7 +44,7 @@ std::string ConvertBandwidthPackageRequest::getClientToken()const
|
||||
void ConvertBandwidthPackageRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long ConvertBandwidthPackageRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long ConvertBandwidthPackageRequest::getCallerParentId()const
|
||||
void ConvertBandwidthPackageRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool ConvertBandwidthPackageRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool ConvertBandwidthPackageRequest::getProxy_original_security_transport()const
|
||||
void ConvertBandwidthPackageRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getProxy_original_source_ip()const
|
||||
@@ -77,7 +77,7 @@ std::string ConvertBandwidthPackageRequest::getProxy_original_source_ip()const
|
||||
void ConvertBandwidthPackageRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getCallerType()const
|
||||
@@ -88,7 +88,7 @@ std::string ConvertBandwidthPackageRequest::getCallerType()const
|
||||
void ConvertBandwidthPackageRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getOwnerIdLoginEmail()const
|
||||
@@ -99,7 +99,7 @@ std::string ConvertBandwidthPackageRequest::getOwnerIdLoginEmail()const
|
||||
void ConvertBandwidthPackageRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getAccessKeyId()const
|
||||
@@ -110,7 +110,7 @@ std::string ConvertBandwidthPackageRequest::getAccessKeyId()const
|
||||
void ConvertBandwidthPackageRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getRegionId()const
|
||||
@@ -121,7 +121,7 @@ std::string ConvertBandwidthPackageRequest::getRegionId()const
|
||||
void ConvertBandwidthPackageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getSecurityToken()const
|
||||
@@ -132,7 +132,7 @@ std::string ConvertBandwidthPackageRequest::getSecurityToken()const
|
||||
void ConvertBandwidthPackageRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool ConvertBandwidthPackageRequest::getEnable()const
|
||||
@@ -143,7 +143,7 @@ bool ConvertBandwidthPackageRequest::getEnable()const
|
||||
void ConvertBandwidthPackageRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
setCoreParameter("Enable", enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getRequestContent()const
|
||||
@@ -154,7 +154,7 @@ std::string ConvertBandwidthPackageRequest::getRequestContent()const
|
||||
void ConvertBandwidthPackageRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getCallerBidEmail()const
|
||||
@@ -165,7 +165,7 @@ std::string ConvertBandwidthPackageRequest::getCallerBidEmail()const
|
||||
void ConvertBandwidthPackageRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getCallerUidEmail()const
|
||||
@@ -176,7 +176,7 @@ std::string ConvertBandwidthPackageRequest::getCallerUidEmail()const
|
||||
void ConvertBandwidthPackageRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long ConvertBandwidthPackageRequest::getCallerUid()const
|
||||
@@ -187,7 +187,7 @@ long ConvertBandwidthPackageRequest::getCallerUid()const
|
||||
void ConvertBandwidthPackageRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getApp_ip()const
|
||||
@@ -198,7 +198,7 @@ std::string ConvertBandwidthPackageRequest::getApp_ip()const
|
||||
void ConvertBandwidthPackageRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getBandwidthPackageId()const
|
||||
@@ -209,7 +209,7 @@ std::string ConvertBandwidthPackageRequest::getBandwidthPackageId()const
|
||||
void ConvertBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
|
||||
{
|
||||
bandwidthPackageId_ = bandwidthPackageId;
|
||||
setParameter("BandwidthPackageId", bandwidthPackageId);
|
||||
setCoreParameter("BandwidthPackageId", bandwidthPackageId);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
@@ -220,7 +220,7 @@ std::string ConvertBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
void ConvertBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getCallerBid()const
|
||||
@@ -231,7 +231,7 @@ std::string ConvertBandwidthPackageRequest::getCallerBid()const
|
||||
void ConvertBandwidthPackageRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long ConvertBandwidthPackageRequest::getOwnerId()const
|
||||
@@ -242,7 +242,7 @@ long ConvertBandwidthPackageRequest::getOwnerId()const
|
||||
void ConvertBandwidthPackageRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool ConvertBandwidthPackageRequest::getProxy_trust_transport_info()const
|
||||
@@ -253,7 +253,7 @@ bool ConvertBandwidthPackageRequest::getProxy_trust_transport_info()const
|
||||
void ConvertBandwidthPackageRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ConvertBandwidthPackageRequest::getAk_mfa_present()const
|
||||
@@ -264,7 +264,7 @@ bool ConvertBandwidthPackageRequest::getAk_mfa_present()const
|
||||
void ConvertBandwidthPackageRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ConvertBandwidthPackageRequest::getSecurity_transport()const
|
||||
@@ -275,7 +275,7 @@ bool ConvertBandwidthPackageRequest::getSecurity_transport()const
|
||||
void ConvertBandwidthPackageRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConvertBandwidthPackageRequest::getRequestId()const
|
||||
@@ -286,6 +286,6 @@ std::string ConvertBandwidthPackageRequest::getRequestId()const
|
||||
void ConvertBandwidthPackageRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ConvertBandwidthPackageResult::~ConvertBandwidthPackageResult()
|
||||
|
||||
void ConvertBandwidthPackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ConvertInstanceId"].isNull())
|
||||
convertInstanceId_ = value["ConvertInstanceId"].asString();
|
||||
|
||||
302
vpc/src/model/CopyNetworkAclEntriesRequest.cc
Normal file
302
vpc/src/model/CopyNetworkAclEntriesRequest.cc
Normal file
@@ -0,0 +1,302 @@
|
||||
/*
|
||||
* 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/vpc/model/CopyNetworkAclEntriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::CopyNetworkAclEntriesRequest;
|
||||
|
||||
CopyNetworkAclEntriesRequest::CopyNetworkAclEntriesRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "CopyNetworkAclEntries")
|
||||
{}
|
||||
|
||||
CopyNetworkAclEntriesRequest::~CopyNetworkAclEntriesRequest()
|
||||
{}
|
||||
|
||||
long CopyNetworkAclEntriesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long CopyNetworkAclEntriesRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CopyNetworkAclEntriesRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool CopyNetworkAclEntriesRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setCoreParameter("Enable", enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getNetworkAclId()const
|
||||
{
|
||||
return networkAclId_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setNetworkAclId(const std::string& networkAclId)
|
||||
{
|
||||
networkAclId_ = networkAclId;
|
||||
setCoreParameter("NetworkAclId", networkAclId);
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CopyNetworkAclEntriesRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getSourceNetworkAclId()const
|
||||
{
|
||||
return sourceNetworkAclId_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setSourceNetworkAclId(const std::string& sourceNetworkAclId)
|
||||
{
|
||||
sourceNetworkAclId_ = sourceNetworkAclId;
|
||||
setCoreParameter("SourceNetworkAclId", sourceNetworkAclId);
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CopyNetworkAclEntriesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool CopyNetworkAclEntriesRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CopyNetworkAclEntriesRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CopyNetworkAclEntriesRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CopyNetworkAclEntriesRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CopyNetworkAclEntriesRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
48
vpc/src/model/CopyNetworkAclEntriesResult.cc
Normal file
48
vpc/src/model/CopyNetworkAclEntriesResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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/vpc/model/CopyNetworkAclEntriesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
CopyNetworkAclEntriesResult::CopyNetworkAclEntriesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CopyNetworkAclEntriesResult::CopyNetworkAclEntriesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CopyNetworkAclEntriesResult::~CopyNetworkAclEntriesResult()
|
||||
{}
|
||||
|
||||
void CopyNetworkAclEntriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateBandwidthPackageRequest::getResourceOwnerId()const
|
||||
void CreateBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
void CreateBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateBandwidthPackageRequest::getClientToken()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateBandwidthPackageRequest::getClientToken()const
|
||||
void CreateBandwidthPackageRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int CreateBandwidthPackageRequest::getBandwidth()const
|
||||
@@ -66,7 +66,7 @@ int CreateBandwidthPackageRequest::getBandwidth()const
|
||||
void CreateBandwidthPackageRequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
setCoreParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string CreateBandwidthPackageRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateBandwidthPackageRequest::getOwnerAccount()const
|
||||
void CreateBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateBandwidthPackageRequest::getISP()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateBandwidthPackageRequest::getISP()const
|
||||
void CreateBandwidthPackageRequest::setISP(const std::string& iSP)
|
||||
{
|
||||
iSP_ = iSP;
|
||||
setParameter("ISP", iSP);
|
||||
setCoreParameter("ISP", iSP);
|
||||
}
|
||||
|
||||
std::string CreateBandwidthPackageRequest::getDescription()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateBandwidthPackageRequest::getDescription()const
|
||||
void CreateBandwidthPackageRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateBandwidthPackageRequest::getOwnerId()const
|
||||
@@ -110,7 +110,7 @@ long CreateBandwidthPackageRequest::getOwnerId()const
|
||||
void CreateBandwidthPackageRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateBandwidthPackageRequest::getRegionId()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateBandwidthPackageRequest::getRegionId()const
|
||||
void CreateBandwidthPackageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateBandwidthPackageRequest::getZone()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateBandwidthPackageRequest::getZone()const
|
||||
void CreateBandwidthPackageRequest::setZone(const std::string& zone)
|
||||
{
|
||||
zone_ = zone;
|
||||
setParameter("Zone", zone);
|
||||
setCoreParameter("Zone", zone);
|
||||
}
|
||||
|
||||
std::string CreateBandwidthPackageRequest::getInternetChargeType()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateBandwidthPackageRequest::getInternetChargeType()const
|
||||
void CreateBandwidthPackageRequest::setInternetChargeType(const std::string& internetChargeType)
|
||||
{
|
||||
internetChargeType_ = internetChargeType;
|
||||
setParameter("InternetChargeType", internetChargeType);
|
||||
setCoreParameter("InternetChargeType", internetChargeType);
|
||||
}
|
||||
|
||||
std::string CreateBandwidthPackageRequest::getName()const
|
||||
@@ -154,7 +154,7 @@ std::string CreateBandwidthPackageRequest::getName()const
|
||||
void CreateBandwidthPackageRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateBandwidthPackageRequest::getNatGatewayId()const
|
||||
@@ -165,7 +165,7 @@ std::string CreateBandwidthPackageRequest::getNatGatewayId()const
|
||||
void CreateBandwidthPackageRequest::setNatGatewayId(const std::string& natGatewayId)
|
||||
{
|
||||
natGatewayId_ = natGatewayId;
|
||||
setParameter("NatGatewayId", natGatewayId);
|
||||
setCoreParameter("NatGatewayId", natGatewayId);
|
||||
}
|
||||
|
||||
int CreateBandwidthPackageRequest::getIpCount()const
|
||||
@@ -176,6 +176,6 @@ int CreateBandwidthPackageRequest::getIpCount()const
|
||||
void CreateBandwidthPackageRequest::setIpCount(int ipCount)
|
||||
{
|
||||
ipCount_ = ipCount;
|
||||
setParameter("IpCount", std::to_string(ipCount));
|
||||
setCoreParameter("IpCount", std::to_string(ipCount));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateBandwidthPackageResult::~CreateBandwidthPackageResult()
|
||||
|
||||
void CreateBandwidthPackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BandwidthPackageId"].isNull())
|
||||
bandwidthPackageId_ = value["BandwidthPackageId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateBgpGroupRequest::getAuthKey()const
|
||||
void CreateBgpGroupRequest::setAuthKey(const std::string& authKey)
|
||||
{
|
||||
authKey_ = authKey;
|
||||
setParameter("AuthKey", authKey);
|
||||
setCoreParameter("AuthKey", authKey);
|
||||
}
|
||||
|
||||
long CreateBgpGroupRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long CreateBgpGroupRequest::getResourceOwnerId()const
|
||||
void CreateBgpGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateBgpGroupRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateBgpGroupRequest::getResourceOwnerAccount()const
|
||||
void CreateBgpGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateBgpGroupRequest::getClientToken()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateBgpGroupRequest::getClientToken()const
|
||||
void CreateBgpGroupRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateBgpGroupRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateBgpGroupRequest::getOwnerAccount()const
|
||||
void CreateBgpGroupRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateBgpGroupRequest::getDescription()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateBgpGroupRequest::getDescription()const
|
||||
void CreateBgpGroupRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateBgpGroupRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long CreateBgpGroupRequest::getOwnerId()const
|
||||
void CreateBgpGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long CreateBgpGroupRequest::getPeerAsn()const
|
||||
@@ -110,7 +110,7 @@ long CreateBgpGroupRequest::getPeerAsn()const
|
||||
void CreateBgpGroupRequest::setPeerAsn(long peerAsn)
|
||||
{
|
||||
peerAsn_ = peerAsn;
|
||||
setParameter("PeerAsn", std::to_string(peerAsn));
|
||||
setCoreParameter("PeerAsn", std::to_string(peerAsn));
|
||||
}
|
||||
|
||||
bool CreateBgpGroupRequest::getIsFakeAsn()const
|
||||
@@ -121,7 +121,7 @@ bool CreateBgpGroupRequest::getIsFakeAsn()const
|
||||
void CreateBgpGroupRequest::setIsFakeAsn(bool isFakeAsn)
|
||||
{
|
||||
isFakeAsn_ = isFakeAsn;
|
||||
setParameter("IsFakeAsn", std::to_string(isFakeAsn));
|
||||
setCoreParameter("IsFakeAsn", isFakeAsn ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBgpGroupRequest::getRegionId()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateBgpGroupRequest::getRegionId()const
|
||||
void CreateBgpGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateBgpGroupRequest::getRouterId()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateBgpGroupRequest::getRouterId()const
|
||||
void CreateBgpGroupRequest::setRouterId(const std::string& routerId)
|
||||
{
|
||||
routerId_ = routerId;
|
||||
setParameter("RouterId", routerId);
|
||||
setCoreParameter("RouterId", routerId);
|
||||
}
|
||||
|
||||
std::string CreateBgpGroupRequest::getName()const
|
||||
@@ -154,6 +154,6 @@ std::string CreateBgpGroupRequest::getName()const
|
||||
void CreateBgpGroupRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateBgpGroupResult::~CreateBgpGroupResult()
|
||||
|
||||
void CreateBgpGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BgpGroupId"].isNull())
|
||||
bgpGroupId_ = value["BgpGroupId"].asString();
|
||||
|
||||
@@ -33,7 +33,18 @@ long CreateBgpPeerRequest::getResourceOwnerId()const
|
||||
void CreateBgpPeerRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
bool CreateBgpPeerRequest::getEnableBfd()const
|
||||
{
|
||||
return enableBfd_;
|
||||
}
|
||||
|
||||
void CreateBgpPeerRequest::setEnableBfd(bool enableBfd)
|
||||
{
|
||||
enableBfd_ = enableBfd;
|
||||
setCoreParameter("EnableBfd", enableBfd ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBgpPeerRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +55,7 @@ std::string CreateBgpPeerRequest::getResourceOwnerAccount()const
|
||||
void CreateBgpPeerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateBgpPeerRequest::getRegionId()const
|
||||
@@ -55,7 +66,7 @@ std::string CreateBgpPeerRequest::getRegionId()const
|
||||
void CreateBgpPeerRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateBgpPeerRequest::getClientToken()const
|
||||
@@ -66,7 +77,7 @@ std::string CreateBgpPeerRequest::getClientToken()const
|
||||
void CreateBgpPeerRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateBgpPeerRequest::getOwnerAccount()const
|
||||
@@ -77,7 +88,7 @@ std::string CreateBgpPeerRequest::getOwnerAccount()const
|
||||
void CreateBgpPeerRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateBgpPeerRequest::getBgpGroupId()const
|
||||
@@ -88,7 +99,7 @@ std::string CreateBgpPeerRequest::getBgpGroupId()const
|
||||
void CreateBgpPeerRequest::setBgpGroupId(const std::string& bgpGroupId)
|
||||
{
|
||||
bgpGroupId_ = bgpGroupId;
|
||||
setParameter("BgpGroupId", bgpGroupId);
|
||||
setCoreParameter("BgpGroupId", bgpGroupId);
|
||||
}
|
||||
|
||||
long CreateBgpPeerRequest::getOwnerId()const
|
||||
@@ -99,7 +110,7 @@ long CreateBgpPeerRequest::getOwnerId()const
|
||||
void CreateBgpPeerRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateBgpPeerRequest::getPeerIpAddress()const
|
||||
@@ -110,6 +121,6 @@ std::string CreateBgpPeerRequest::getPeerIpAddress()const
|
||||
void CreateBgpPeerRequest::setPeerIpAddress(const std::string& peerIpAddress)
|
||||
{
|
||||
peerIpAddress_ = peerIpAddress;
|
||||
setParameter("PeerIpAddress", peerIpAddress);
|
||||
setCoreParameter("PeerIpAddress", peerIpAddress);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateBgpPeerResult::~CreateBgpPeerResult()
|
||||
|
||||
void CreateBgpPeerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BgpPeerId"].isNull())
|
||||
bgpPeerId_ = value["BgpPeerId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateCommonBandwidthPackageRequest::getResourceOwnerId()const
|
||||
void CreateCommonBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateCommonBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
void CreateCommonBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getClientToken()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateCommonBandwidthPackageRequest::getClientToken()const
|
||||
void CreateCommonBandwidthPackageRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int CreateCommonBandwidthPackageRequest::getBandwidth()const
|
||||
@@ -66,7 +66,7 @@ int CreateCommonBandwidthPackageRequest::getBandwidth()const
|
||||
void CreateCommonBandwidthPackageRequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
setCoreParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateCommonBandwidthPackageRequest::getOwnerAccount()const
|
||||
void CreateCommonBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getISP()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateCommonBandwidthPackageRequest::getISP()const
|
||||
void CreateCommonBandwidthPackageRequest::setISP(const std::string& iSP)
|
||||
{
|
||||
iSP_ = iSP;
|
||||
setParameter("ISP", iSP);
|
||||
setCoreParameter("ISP", iSP);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getDescription()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateCommonBandwidthPackageRequest::getDescription()const
|
||||
void CreateCommonBandwidthPackageRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateCommonBandwidthPackageRequest::getOwnerId()const
|
||||
@@ -110,7 +110,7 @@ long CreateCommonBandwidthPackageRequest::getOwnerId()const
|
||||
void CreateCommonBandwidthPackageRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getResourceGroupId()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateCommonBandwidthPackageRequest::getResourceGroupId()const
|
||||
void CreateCommonBandwidthPackageRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
setCoreParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getRegionId()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateCommonBandwidthPackageRequest::getRegionId()const
|
||||
void CreateCommonBandwidthPackageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getZone()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateCommonBandwidthPackageRequest::getZone()const
|
||||
void CreateCommonBandwidthPackageRequest::setZone(const std::string& zone)
|
||||
{
|
||||
zone_ = zone;
|
||||
setParameter("Zone", zone);
|
||||
setCoreParameter("Zone", zone);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getInternetChargeType()const
|
||||
@@ -154,7 +154,7 @@ std::string CreateCommonBandwidthPackageRequest::getInternetChargeType()const
|
||||
void CreateCommonBandwidthPackageRequest::setInternetChargeType(const std::string& internetChargeType)
|
||||
{
|
||||
internetChargeType_ = internetChargeType;
|
||||
setParameter("InternetChargeType", internetChargeType);
|
||||
setCoreParameter("InternetChargeType", internetChargeType);
|
||||
}
|
||||
|
||||
std::string CreateCommonBandwidthPackageRequest::getName()const
|
||||
@@ -165,7 +165,7 @@ std::string CreateCommonBandwidthPackageRequest::getName()const
|
||||
void CreateCommonBandwidthPackageRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
int CreateCommonBandwidthPackageRequest::getRatio()const
|
||||
@@ -176,6 +176,6 @@ int CreateCommonBandwidthPackageRequest::getRatio()const
|
||||
void CreateCommonBandwidthPackageRequest::setRatio(int ratio)
|
||||
{
|
||||
ratio_ = ratio;
|
||||
setParameter("Ratio", std::to_string(ratio));
|
||||
setCoreParameter("Ratio", std::to_string(ratio));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateCommonBandwidthPackageResult::~CreateCommonBandwidthPackageResult()
|
||||
|
||||
void CreateCommonBandwidthPackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BandwidthPackageId"].isNull())
|
||||
bandwidthPackageId_ = value["BandwidthPackageId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateCustomerGatewayRequest::getIpAddress()const
|
||||
void CreateCustomerGatewayRequest::setIpAddress(const std::string& ipAddress)
|
||||
{
|
||||
ipAddress_ = ipAddress;
|
||||
setParameter("IpAddress", ipAddress);
|
||||
setCoreParameter("IpAddress", ipAddress);
|
||||
}
|
||||
|
||||
long CreateCustomerGatewayRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long CreateCustomerGatewayRequest::getResourceOwnerId()const
|
||||
void CreateCustomerGatewayRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateCustomerGatewayRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateCustomerGatewayRequest::getResourceOwnerAccount()const
|
||||
void CreateCustomerGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateCustomerGatewayRequest::getRegionId()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateCustomerGatewayRequest::getRegionId()const
|
||||
void CreateCustomerGatewayRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateCustomerGatewayRequest::getClientToken()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateCustomerGatewayRequest::getClientToken()const
|
||||
void CreateCustomerGatewayRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateCustomerGatewayRequest::getOwnerAccount()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateCustomerGatewayRequest::getOwnerAccount()const
|
||||
void CreateCustomerGatewayRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateCustomerGatewayRequest::getName()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateCustomerGatewayRequest::getName()const
|
||||
void CreateCustomerGatewayRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateCustomerGatewayRequest::getDescription()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateCustomerGatewayRequest::getDescription()const
|
||||
void CreateCustomerGatewayRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateCustomerGatewayRequest::getOwnerId()const
|
||||
@@ -121,6 +121,6 @@ long CreateCustomerGatewayRequest::getOwnerId()const
|
||||
void CreateCustomerGatewayRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateCustomerGatewayResult::~CreateCustomerGatewayResult()
|
||||
|
||||
void CreateCustomerGatewayResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CustomerGatewayId"].isNull())
|
||||
customerGatewayId_ = value["CustomerGatewayId"].asString();
|
||||
|
||||
203
vpc/src/model/CreateExpressCloudConnectionRequest.cc
Normal file
203
vpc/src/model/CreateExpressCloudConnectionRequest.cc
Normal file
@@ -0,0 +1,203 @@
|
||||
/*
|
||||
* 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/vpc/model/CreateExpressCloudConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::CreateExpressCloudConnectionRequest;
|
||||
|
||||
CreateExpressCloudConnectionRequest::CreateExpressCloudConnectionRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "CreateExpressCloudConnection")
|
||||
{}
|
||||
|
||||
CreateExpressCloudConnectionRequest::~CreateExpressCloudConnectionRequest()
|
||||
{}
|
||||
|
||||
long CreateExpressCloudConnectionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateExpressCloudConnectionRequest::getPeerLocation()const
|
||||
{
|
||||
return peerLocation_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setPeerLocation(const std::string& peerLocation)
|
||||
{
|
||||
peerLocation_ = peerLocation;
|
||||
setCoreParameter("PeerLocation", peerLocation);
|
||||
}
|
||||
|
||||
std::string CreateExpressCloudConnectionRequest::getPortType()const
|
||||
{
|
||||
return portType_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setPortType(const std::string& portType)
|
||||
{
|
||||
portType_ = portType;
|
||||
setCoreParameter("PortType", portType);
|
||||
}
|
||||
|
||||
std::string CreateExpressCloudConnectionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int CreateExpressCloudConnectionRequest::getBandwidth()const
|
||||
{
|
||||
return bandwidth_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setCoreParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string CreateExpressCloudConnectionRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateExpressCloudConnectionRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateExpressCloudConnectionRequest::getPeerCity()const
|
||||
{
|
||||
return peerCity_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setPeerCity(const std::string& peerCity)
|
||||
{
|
||||
peerCity_ = peerCity;
|
||||
setCoreParameter("PeerCity", peerCity);
|
||||
}
|
||||
|
||||
std::string CreateExpressCloudConnectionRequest::getIDCardNo()const
|
||||
{
|
||||
return iDCardNo_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setIDCardNo(const std::string& iDCardNo)
|
||||
{
|
||||
iDCardNo_ = iDCardNo;
|
||||
setCoreParameter("IDCardNo", iDCardNo);
|
||||
}
|
||||
|
||||
std::string CreateExpressCloudConnectionRequest::getRedundantEccId()const
|
||||
{
|
||||
return redundantEccId_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setRedundantEccId(const std::string& redundantEccId)
|
||||
{
|
||||
redundantEccId_ = redundantEccId;
|
||||
setCoreParameter("RedundantEccId", redundantEccId);
|
||||
}
|
||||
|
||||
long CreateExpressCloudConnectionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateExpressCloudConnectionRequest::getContactMail()const
|
||||
{
|
||||
return contactMail_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setContactMail(const std::string& contactMail)
|
||||
{
|
||||
contactMail_ = contactMail;
|
||||
setCoreParameter("ContactMail", contactMail);
|
||||
}
|
||||
|
||||
std::string CreateExpressCloudConnectionRequest::getContactTel()const
|
||||
{
|
||||
return contactTel_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setContactTel(const std::string& contactTel)
|
||||
{
|
||||
contactTel_ = contactTel;
|
||||
setCoreParameter("ContactTel", contactTel);
|
||||
}
|
||||
|
||||
std::string CreateExpressCloudConnectionRequest::getIdcSP()const
|
||||
{
|
||||
return idcSP_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setIdcSP(const std::string& idcSP)
|
||||
{
|
||||
idcSP_ = idcSP;
|
||||
setCoreParameter("IdcSP", idcSP);
|
||||
}
|
||||
|
||||
std::string CreateExpressCloudConnectionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateExpressCloudConnectionRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateExpressCloudConnectionRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
55
vpc/src/model/CreateExpressCloudConnectionResult.cc
Normal file
55
vpc/src/model/CreateExpressCloudConnectionResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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/vpc/model/CreateExpressCloudConnectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
CreateExpressCloudConnectionResult::CreateExpressCloudConnectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateExpressCloudConnectionResult::CreateExpressCloudConnectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateExpressCloudConnectionResult::~CreateExpressCloudConnectionResult()
|
||||
{}
|
||||
|
||||
void CreateExpressCloudConnectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["EccId"].isNull())
|
||||
eccId_ = value["EccId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateExpressCloudConnectionResult::getEccId()const
|
||||
{
|
||||
return eccId_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateFlowLogRequest::getResourceOwnerId()const
|
||||
void CreateFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getResourceId()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateFlowLogRequest::getResourceId()const
|
||||
void CreateFlowLogRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setParameter("ResourceId", resourceId);
|
||||
setCoreParameter("ResourceId", resourceId);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getProjectName()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateFlowLogRequest::getProjectName()const
|
||||
void CreateFlowLogRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getLogStoreName()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateFlowLogRequest::getLogStoreName()const
|
||||
void CreateFlowLogRequest::setLogStoreName(const std::string& logStoreName)
|
||||
{
|
||||
logStoreName_ = logStoreName;
|
||||
setParameter("LogStoreName", logStoreName);
|
||||
setCoreParameter("LogStoreName", logStoreName);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getResourceOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateFlowLogRequest::getResourceOwnerAccount()const
|
||||
void CreateFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getOwnerAccount()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateFlowLogRequest::getOwnerAccount()const
|
||||
void CreateFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getDescription()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateFlowLogRequest::getDescription()const
|
||||
void CreateFlowLogRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateFlowLogRequest::getOwnerId()const
|
||||
@@ -110,7 +110,7 @@ long CreateFlowLogRequest::getOwnerId()const
|
||||
void CreateFlowLogRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getResourceType()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateFlowLogRequest::getResourceType()const
|
||||
void CreateFlowLogRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
setCoreParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getRegionId()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateFlowLogRequest::getRegionId()const
|
||||
void CreateFlowLogRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getTrafficType()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateFlowLogRequest::getTrafficType()const
|
||||
void CreateFlowLogRequest::setTrafficType(const std::string& trafficType)
|
||||
{
|
||||
trafficType_ = trafficType;
|
||||
setParameter("TrafficType", trafficType);
|
||||
setCoreParameter("TrafficType", trafficType);
|
||||
}
|
||||
|
||||
std::string CreateFlowLogRequest::getFlowLogName()const
|
||||
@@ -154,6 +154,6 @@ std::string CreateFlowLogRequest::getFlowLogName()const
|
||||
void CreateFlowLogRequest::setFlowLogName(const std::string& flowLogName)
|
||||
{
|
||||
flowLogName_ = flowLogName;
|
||||
setParameter("FlowLogName", flowLogName);
|
||||
setCoreParameter("FlowLogName", flowLogName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateFlowLogResult::~CreateFlowLogResult()
|
||||
|
||||
void CreateFlowLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateForwardEntryRequest::getResourceOwnerId()const
|
||||
void CreateForwardEntryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateForwardEntryRequest::getResourceOwnerAccount()const
|
||||
void CreateForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getIpProtocol()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateForwardEntryRequest::getIpProtocol()const
|
||||
void CreateForwardEntryRequest::setIpProtocol(const std::string& ipProtocol)
|
||||
{
|
||||
ipProtocol_ = ipProtocol;
|
||||
setParameter("IpProtocol", ipProtocol);
|
||||
setCoreParameter("IpProtocol", ipProtocol);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getForwardEntryName()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateForwardEntryRequest::getForwardEntryName()const
|
||||
void CreateForwardEntryRequest::setForwardEntryName(const std::string& forwardEntryName)
|
||||
{
|
||||
forwardEntryName_ = forwardEntryName;
|
||||
setParameter("ForwardEntryName", forwardEntryName);
|
||||
setCoreParameter("ForwardEntryName", forwardEntryName);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateForwardEntryRequest::getOwnerAccount()const
|
||||
void CreateForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getForwardTableId()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateForwardEntryRequest::getForwardTableId()const
|
||||
void CreateForwardEntryRequest::setForwardTableId(const std::string& forwardTableId)
|
||||
{
|
||||
forwardTableId_ = forwardTableId;
|
||||
setParameter("ForwardTableId", forwardTableId);
|
||||
setCoreParameter("ForwardTableId", forwardTableId);
|
||||
}
|
||||
|
||||
long CreateForwardEntryRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long CreateForwardEntryRequest::getOwnerId()const
|
||||
void CreateForwardEntryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getInternalIp()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateForwardEntryRequest::getInternalIp()const
|
||||
void CreateForwardEntryRequest::setInternalIp(const std::string& internalIp)
|
||||
{
|
||||
internalIp_ = internalIp;
|
||||
setParameter("InternalIp", internalIp);
|
||||
setCoreParameter("InternalIp", internalIp);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getRegionId()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateForwardEntryRequest::getRegionId()const
|
||||
void CreateForwardEntryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getInternalPort()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateForwardEntryRequest::getInternalPort()const
|
||||
void CreateForwardEntryRequest::setInternalPort(const std::string& internalPort)
|
||||
{
|
||||
internalPort_ = internalPort;
|
||||
setParameter("InternalPort", internalPort);
|
||||
setCoreParameter("InternalPort", internalPort);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getExternalIp()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateForwardEntryRequest::getExternalIp()const
|
||||
void CreateForwardEntryRequest::setExternalIp(const std::string& externalIp)
|
||||
{
|
||||
externalIp_ = externalIp;
|
||||
setParameter("ExternalIp", externalIp);
|
||||
setCoreParameter("ExternalIp", externalIp);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getExternalPort()const
|
||||
@@ -154,6 +154,6 @@ std::string CreateForwardEntryRequest::getExternalPort()const
|
||||
void CreateForwardEntryRequest::setExternalPort(const std::string& externalPort)
|
||||
{
|
||||
externalPort_ = externalPort;
|
||||
setParameter("ExternalPort", externalPort);
|
||||
setCoreParameter("ExternalPort", externalPort);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateForwardEntryResult::~CreateForwardEntryResult()
|
||||
|
||||
void CreateForwardEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ForwardEntryId"].isNull())
|
||||
forwardEntryId_ = value["ForwardEntryId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateGlobalAccelerationInstanceRequest::getResourceOwnerId()const
|
||||
void CreateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateGlobalAccelerationInstanceRequest::getBandwidthType()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getBandwidthType()const
|
||||
void CreateGlobalAccelerationInstanceRequest::setBandwidthType(const std::string& bandwidthType)
|
||||
{
|
||||
bandwidthType_ = bandwidthType;
|
||||
setParameter("BandwidthType", bandwidthType);
|
||||
setCoreParameter("BandwidthType", bandwidthType);
|
||||
}
|
||||
|
||||
std::string CreateGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getResourceOwnerAccount()co
|
||||
void CreateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateGlobalAccelerationInstanceRequest::getServiceLocation()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getServiceLocation()const
|
||||
void CreateGlobalAccelerationInstanceRequest::setServiceLocation(const std::string& serviceLocation)
|
||||
{
|
||||
serviceLocation_ = serviceLocation;
|
||||
setParameter("ServiceLocation", serviceLocation);
|
||||
setCoreParameter("ServiceLocation", serviceLocation);
|
||||
}
|
||||
|
||||
std::string CreateGlobalAccelerationInstanceRequest::getBandwidth()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getBandwidth()const
|
||||
void CreateGlobalAccelerationInstanceRequest::setBandwidth(const std::string& bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", bandwidth);
|
||||
setCoreParameter("Bandwidth", bandwidth);
|
||||
}
|
||||
|
||||
std::string CreateGlobalAccelerationInstanceRequest::getClientToken()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getClientToken()const
|
||||
void CreateGlobalAccelerationInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateGlobalAccelerationInstanceRequest::getOwnerAccount()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getOwnerAccount()const
|
||||
void CreateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateGlobalAccelerationInstanceRequest::getDescription()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getDescription()const
|
||||
void CreateGlobalAccelerationInstanceRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateGlobalAccelerationInstanceRequest::getOwnerId()const
|
||||
@@ -121,7 +121,7 @@ long CreateGlobalAccelerationInstanceRequest::getOwnerId()const
|
||||
void CreateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateGlobalAccelerationInstanceRequest::getRegionId()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getRegionId()const
|
||||
void CreateGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateGlobalAccelerationInstanceRequest::getInternetChargeType()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getInternetChargeType()cons
|
||||
void CreateGlobalAccelerationInstanceRequest::setInternetChargeType(const std::string& internetChargeType)
|
||||
{
|
||||
internetChargeType_ = internetChargeType;
|
||||
setParameter("InternetChargeType", internetChargeType);
|
||||
setCoreParameter("InternetChargeType", internetChargeType);
|
||||
}
|
||||
|
||||
std::string CreateGlobalAccelerationInstanceRequest::getName()const
|
||||
@@ -154,6 +154,6 @@ std::string CreateGlobalAccelerationInstanceRequest::getName()const
|
||||
void CreateGlobalAccelerationInstanceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateGlobalAccelerationInstanceResult::~CreateGlobalAccelerationInstanceResult(
|
||||
|
||||
void CreateGlobalAccelerationInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["GlobalAccelerationInstanceId"].isNull())
|
||||
globalAccelerationInstanceId_ = value["GlobalAccelerationInstanceId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateHaVipRequest::getVSwitchId()const
|
||||
void CreateHaVipRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateHaVipRequest::getIpAddress()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateHaVipRequest::getIpAddress()const
|
||||
void CreateHaVipRequest::setIpAddress(const std::string& ipAddress)
|
||||
{
|
||||
ipAddress_ = ipAddress;
|
||||
setParameter("IpAddress", ipAddress);
|
||||
setCoreParameter("IpAddress", ipAddress);
|
||||
}
|
||||
|
||||
long CreateHaVipRequest::getResourceOwnerId()const
|
||||
@@ -55,7 +55,7 @@ long CreateHaVipRequest::getResourceOwnerId()const
|
||||
void CreateHaVipRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateHaVipRequest::getResourceOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateHaVipRequest::getResourceOwnerAccount()const
|
||||
void CreateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateHaVipRequest::getClientToken()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateHaVipRequest::getClientToken()const
|
||||
void CreateHaVipRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateHaVipRequest::getRegionId()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateHaVipRequest::getRegionId()const
|
||||
void CreateHaVipRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateHaVipRequest::getOwnerAccount()const
|
||||
@@ -99,7 +99,18 @@ std::string CreateHaVipRequest::getOwnerAccount()const
|
||||
void CreateHaVipRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateHaVipRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateHaVipRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateHaVipRequest::getDescription()const
|
||||
@@ -110,7 +121,7 @@ std::string CreateHaVipRequest::getDescription()const
|
||||
void CreateHaVipRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateHaVipRequest::getOwnerId()const
|
||||
@@ -121,6 +132,6 @@ long CreateHaVipRequest::getOwnerId()const
|
||||
void CreateHaVipRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,16 +35,26 @@ CreateHaVipResult::~CreateHaVipResult()
|
||||
|
||||
void CreateHaVipResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HaVipId"].isNull())
|
||||
haVipId_ = value["HaVipId"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
ipAddress_ = value["IpAddress"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateHaVipResult::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
std::string CreateHaVipResult::getHaVipId()const
|
||||
{
|
||||
return haVipId_;
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateIPv6TranslatorAclListRequest::getResourceOwnerId()const
|
||||
void CreateIPv6TranslatorAclListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorAclListRequest::getAclName()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateIPv6TranslatorAclListRequest::getAclName()const
|
||||
void CreateIPv6TranslatorAclListRequest::setAclName(const std::string& aclName)
|
||||
{
|
||||
aclName_ = aclName;
|
||||
setParameter("AclName", aclName);
|
||||
setCoreParameter("AclName", aclName);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorAclListRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateIPv6TranslatorAclListRequest::getResourceOwnerAccount()const
|
||||
void CreateIPv6TranslatorAclListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorAclListRequest::getRegionId()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateIPv6TranslatorAclListRequest::getRegionId()const
|
||||
void CreateIPv6TranslatorAclListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorAclListRequest::getClientToken()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateIPv6TranslatorAclListRequest::getClientToken()const
|
||||
void CreateIPv6TranslatorAclListRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorAclListRequest::getOwnerAccount()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateIPv6TranslatorAclListRequest::getOwnerAccount()const
|
||||
void CreateIPv6TranslatorAclListRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CreateIPv6TranslatorAclListRequest::getOwnerId()const
|
||||
@@ -99,6 +99,6 @@ long CreateIPv6TranslatorAclListRequest::getOwnerId()const
|
||||
void CreateIPv6TranslatorAclListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateIPv6TranslatorAclListResult::~CreateIPv6TranslatorAclListResult()
|
||||
|
||||
void CreateIPv6TranslatorAclListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AclId"].isNull())
|
||||
aclId_ = value["AclId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ int CreateIPv6TranslatorEntryRequest::getBackendIpv4Port()const
|
||||
void CreateIPv6TranslatorEntryRequest::setBackendIpv4Port(int backendIpv4Port)
|
||||
{
|
||||
backendIpv4Port_ = backendIpv4Port;
|
||||
setParameter("BackendIpv4Port", std::to_string(backendIpv4Port));
|
||||
setCoreParameter("BackendIpv4Port", std::to_string(backendIpv4Port));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getAclId()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateIPv6TranslatorEntryRequest::getAclId()const
|
||||
void CreateIPv6TranslatorEntryRequest::setAclId(const std::string& aclId)
|
||||
{
|
||||
aclId_ = aclId;
|
||||
setParameter("AclId", aclId);
|
||||
setCoreParameter("AclId", aclId);
|
||||
}
|
||||
|
||||
long CreateIPv6TranslatorEntryRequest::getResourceOwnerId()const
|
||||
@@ -55,7 +55,7 @@ long CreateIPv6TranslatorEntryRequest::getResourceOwnerId()const
|
||||
void CreateIPv6TranslatorEntryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getResourceOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateIPv6TranslatorEntryRequest::getResourceOwnerAccount()const
|
||||
void CreateIPv6TranslatorEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getEntryName()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateIPv6TranslatorEntryRequest::getEntryName()const
|
||||
void CreateIPv6TranslatorEntryRequest::setEntryName(const std::string& entryName)
|
||||
{
|
||||
entryName_ = entryName;
|
||||
setParameter("EntryName", entryName);
|
||||
setCoreParameter("EntryName", entryName);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getOwnerAccount()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateIPv6TranslatorEntryRequest::getOwnerAccount()const
|
||||
void CreateIPv6TranslatorEntryRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CreateIPv6TranslatorEntryRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long CreateIPv6TranslatorEntryRequest::getOwnerId()const
|
||||
void CreateIPv6TranslatorEntryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getAclStatus()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateIPv6TranslatorEntryRequest::getAclStatus()const
|
||||
void CreateIPv6TranslatorEntryRequest::setAclStatus(const std::string& aclStatus)
|
||||
{
|
||||
aclStatus_ = aclStatus;
|
||||
setParameter("AclStatus", aclStatus);
|
||||
setCoreParameter("AclStatus", aclStatus);
|
||||
}
|
||||
|
||||
int CreateIPv6TranslatorEntryRequest::getEntryBandwidth()const
|
||||
@@ -121,7 +121,7 @@ int CreateIPv6TranslatorEntryRequest::getEntryBandwidth()const
|
||||
void CreateIPv6TranslatorEntryRequest::setEntryBandwidth(int entryBandwidth)
|
||||
{
|
||||
entryBandwidth_ = entryBandwidth;
|
||||
setParameter("EntryBandwidth", std::to_string(entryBandwidth));
|
||||
setCoreParameter("EntryBandwidth", std::to_string(entryBandwidth));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getAclType()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateIPv6TranslatorEntryRequest::getAclType()const
|
||||
void CreateIPv6TranslatorEntryRequest::setAclType(const std::string& aclType)
|
||||
{
|
||||
aclType_ = aclType;
|
||||
setParameter("AclType", aclType);
|
||||
setCoreParameter("AclType", aclType);
|
||||
}
|
||||
|
||||
int CreateIPv6TranslatorEntryRequest::getAllocateIpv6Port()const
|
||||
@@ -143,7 +143,7 @@ int CreateIPv6TranslatorEntryRequest::getAllocateIpv6Port()const
|
||||
void CreateIPv6TranslatorEntryRequest::setAllocateIpv6Port(int allocateIpv6Port)
|
||||
{
|
||||
allocateIpv6Port_ = allocateIpv6Port;
|
||||
setParameter("AllocateIpv6Port", std::to_string(allocateIpv6Port));
|
||||
setCoreParameter("AllocateIpv6Port", std::to_string(allocateIpv6Port));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getEntryDescription()const
|
||||
@@ -154,7 +154,7 @@ std::string CreateIPv6TranslatorEntryRequest::getEntryDescription()const
|
||||
void CreateIPv6TranslatorEntryRequest::setEntryDescription(const std::string& entryDescription)
|
||||
{
|
||||
entryDescription_ = entryDescription;
|
||||
setParameter("EntryDescription", entryDescription);
|
||||
setCoreParameter("EntryDescription", entryDescription);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getRegionId()const
|
||||
@@ -165,7 +165,7 @@ std::string CreateIPv6TranslatorEntryRequest::getRegionId()const
|
||||
void CreateIPv6TranslatorEntryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getBackendIpv4Addr()const
|
||||
@@ -176,7 +176,7 @@ std::string CreateIPv6TranslatorEntryRequest::getBackendIpv4Addr()const
|
||||
void CreateIPv6TranslatorEntryRequest::setBackendIpv4Addr(const std::string& backendIpv4Addr)
|
||||
{
|
||||
backendIpv4Addr_ = backendIpv4Addr;
|
||||
setParameter("BackendIpv4Addr", backendIpv4Addr);
|
||||
setCoreParameter("BackendIpv4Addr", backendIpv4Addr);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getTransProtocol()const
|
||||
@@ -187,7 +187,7 @@ std::string CreateIPv6TranslatorEntryRequest::getTransProtocol()const
|
||||
void CreateIPv6TranslatorEntryRequest::setTransProtocol(const std::string& transProtocol)
|
||||
{
|
||||
transProtocol_ = transProtocol;
|
||||
setParameter("TransProtocol", transProtocol);
|
||||
setCoreParameter("TransProtocol", transProtocol);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorEntryRequest::getIpv6TranslatorId()const
|
||||
@@ -198,6 +198,6 @@ std::string CreateIPv6TranslatorEntryRequest::getIpv6TranslatorId()const
|
||||
void CreateIPv6TranslatorEntryRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId)
|
||||
{
|
||||
ipv6TranslatorId_ = ipv6TranslatorId;
|
||||
setParameter("Ipv6TranslatorId", ipv6TranslatorId);
|
||||
setCoreParameter("Ipv6TranslatorId", ipv6TranslatorId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateIPv6TranslatorEntryResult::~CreateIPv6TranslatorEntryResult()
|
||||
|
||||
void CreateIPv6TranslatorEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Ipv6TranslatorEntryId"].isNull())
|
||||
ipv6TranslatorEntryId_ = value["Ipv6TranslatorEntryId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateIPv6TranslatorRequest::getResourceOwnerId()const
|
||||
void CreateIPv6TranslatorRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
bool CreateIPv6TranslatorRequest::getAutoPay()const
|
||||
@@ -44,7 +44,7 @@ bool CreateIPv6TranslatorRequest::getAutoPay()const
|
||||
void CreateIPv6TranslatorRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setParameter("AutoPay", std::to_string(autoPay));
|
||||
setCoreParameter("AutoPay", autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateIPv6TranslatorRequest::getResourceOwnerAccount()const
|
||||
void CreateIPv6TranslatorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getClientToken()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateIPv6TranslatorRequest::getClientToken()const
|
||||
void CreateIPv6TranslatorRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int CreateIPv6TranslatorRequest::getBandwidth()const
|
||||
@@ -77,7 +77,7 @@ int CreateIPv6TranslatorRequest::getBandwidth()const
|
||||
void CreateIPv6TranslatorRequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
setCoreParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getOwnerAccount()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateIPv6TranslatorRequest::getOwnerAccount()const
|
||||
void CreateIPv6TranslatorRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CreateIPv6TranslatorRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long CreateIPv6TranslatorRequest::getOwnerId()const
|
||||
void CreateIPv6TranslatorRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getSpec()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateIPv6TranslatorRequest::getSpec()const
|
||||
void CreateIPv6TranslatorRequest::setSpec(const std::string& spec)
|
||||
{
|
||||
spec_ = spec;
|
||||
setParameter("Spec", spec);
|
||||
setCoreParameter("Spec", spec);
|
||||
}
|
||||
|
||||
int CreateIPv6TranslatorRequest::getDuration()const
|
||||
@@ -121,7 +121,7 @@ int CreateIPv6TranslatorRequest::getDuration()const
|
||||
void CreateIPv6TranslatorRequest::setDuration(int duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", std::to_string(duration));
|
||||
setCoreParameter("Duration", std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getRegionId()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateIPv6TranslatorRequest::getRegionId()const
|
||||
void CreateIPv6TranslatorRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getName()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateIPv6TranslatorRequest::getName()const
|
||||
void CreateIPv6TranslatorRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getPayType()const
|
||||
@@ -154,7 +154,7 @@ std::string CreateIPv6TranslatorRequest::getPayType()const
|
||||
void CreateIPv6TranslatorRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setParameter("PayType", payType);
|
||||
setCoreParameter("PayType", payType);
|
||||
}
|
||||
|
||||
std::string CreateIPv6TranslatorRequest::getPricingCycle()const
|
||||
@@ -165,6 +165,6 @@ std::string CreateIPv6TranslatorRequest::getPricingCycle()const
|
||||
void CreateIPv6TranslatorRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
{
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter("PricingCycle", pricingCycle);
|
||||
setCoreParameter("PricingCycle", pricingCycle);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateIPv6TranslatorResult::~CreateIPv6TranslatorResult()
|
||||
|
||||
void CreateIPv6TranslatorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Ipv6TranslatorId"].isNull())
|
||||
ipv6TranslatorId_ = value["Ipv6TranslatorId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateIpv6EgressOnlyRuleRequest::getResourceOwnerId()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getClientToken()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getClientToken()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long CreateIpv6EgressOnlyRuleRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long CreateIpv6EgressOnlyRuleRequest::getCallerParentId()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getDescription()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getDescription()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
bool CreateIpv6EgressOnlyRuleRequest::getProxy_original_security_transport()const
|
||||
@@ -77,7 +77,7 @@ bool CreateIpv6EgressOnlyRuleRequest::getProxy_original_security_transport()cons
|
||||
void CreateIpv6EgressOnlyRuleRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getProxy_original_source_ip()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getProxy_original_source_ip()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getOwnerIdLoginEmail()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getOwnerIdLoginEmail()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getCallerType()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getCallerType()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getAccessKeyId()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getAccessKeyId()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getResourceGroupId()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getResourceGroupId()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
setCoreParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getRegionId()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getRegionId()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getSecurityToken()const
|
||||
@@ -154,7 +154,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getSecurityToken()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool CreateIpv6EgressOnlyRuleRequest::getEnable()const
|
||||
@@ -165,7 +165,7 @@ bool CreateIpv6EgressOnlyRuleRequest::getEnable()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
setCoreParameter("Enable", enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getRequestContent()const
|
||||
@@ -176,7 +176,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getRequestContent()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getInstanceType()const
|
||||
@@ -187,7 +187,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getInstanceType()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setInstanceType(const std::string& instanceType)
|
||||
{
|
||||
instanceType_ = instanceType;
|
||||
setParameter("InstanceType", instanceType);
|
||||
setCoreParameter("InstanceType", instanceType);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getCallerBidEmail()const
|
||||
@@ -198,7 +198,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getCallerBidEmail()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getCallerUidEmail()const
|
||||
@@ -209,7 +209,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getCallerUidEmail()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateIpv6EgressOnlyRuleRequest::getCallerUid()const
|
||||
@@ -220,7 +220,7 @@ long CreateIpv6EgressOnlyRuleRequest::getCallerUid()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getApp_ip()const
|
||||
@@ -231,7 +231,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getApp_ip()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getResourceOwnerAccount()const
|
||||
@@ -242,7 +242,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getResourceOwnerAccount()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getOwnerAccount()const
|
||||
@@ -253,7 +253,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getOwnerAccount()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getCallerBid()const
|
||||
@@ -264,7 +264,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getCallerBid()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateIpv6EgressOnlyRuleRequest::getOwnerId()const
|
||||
@@ -275,7 +275,7 @@ long CreateIpv6EgressOnlyRuleRequest::getOwnerId()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool CreateIpv6EgressOnlyRuleRequest::getProxy_trust_transport_info()const
|
||||
@@ -286,7 +286,7 @@ bool CreateIpv6EgressOnlyRuleRequest::getProxy_trust_transport_info()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateIpv6EgressOnlyRuleRequest::getAk_mfa_present()const
|
||||
@@ -297,7 +297,7 @@ bool CreateIpv6EgressOnlyRuleRequest::getAk_mfa_present()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateIpv6EgressOnlyRuleRequest::getSecurity_transport()const
|
||||
@@ -308,7 +308,7 @@ bool CreateIpv6EgressOnlyRuleRequest::getSecurity_transport()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getInstanceId()const
|
||||
@@ -319,7 +319,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getInstanceId()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getRequestId()const
|
||||
@@ -330,7 +330,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getRequestId()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getIpv6GatewayId()const
|
||||
@@ -341,7 +341,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getIpv6GatewayId()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setIpv6GatewayId(const std::string& ipv6GatewayId)
|
||||
{
|
||||
ipv6GatewayId_ = ipv6GatewayId;
|
||||
setParameter("Ipv6GatewayId", ipv6GatewayId);
|
||||
setCoreParameter("Ipv6GatewayId", ipv6GatewayId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6EgressOnlyRuleRequest::getName()const
|
||||
@@ -352,6 +352,6 @@ std::string CreateIpv6EgressOnlyRuleRequest::getName()const
|
||||
void CreateIpv6EgressOnlyRuleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateIpv6EgressOnlyRuleResult::~CreateIpv6EgressOnlyRuleResult()
|
||||
|
||||
void CreateIpv6EgressOnlyRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Ipv6EgressRuleId"].isNull())
|
||||
ipv6EgressRuleId_ = value["Ipv6EgressRuleId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateIpv6GatewayRequest::getResourceOwnerId()const
|
||||
void CreateIpv6GatewayRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getClientToken()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateIpv6GatewayRequest::getClientToken()const
|
||||
void CreateIpv6GatewayRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long CreateIpv6GatewayRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long CreateIpv6GatewayRequest::getCallerParentId()const
|
||||
void CreateIpv6GatewayRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getDescription()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateIpv6GatewayRequest::getDescription()const
|
||||
void CreateIpv6GatewayRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
bool CreateIpv6GatewayRequest::getProxy_original_security_transport()const
|
||||
@@ -77,7 +77,7 @@ bool CreateIpv6GatewayRequest::getProxy_original_security_transport()const
|
||||
void CreateIpv6GatewayRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getProxy_original_source_ip()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateIpv6GatewayRequest::getProxy_original_source_ip()const
|
||||
void CreateIpv6GatewayRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getSpec()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateIpv6GatewayRequest::getSpec()const
|
||||
void CreateIpv6GatewayRequest::setSpec(const std::string& spec)
|
||||
{
|
||||
spec_ = spec;
|
||||
setParameter("Spec", spec);
|
||||
setCoreParameter("Spec", spec);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getOwnerIdLoginEmail()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateIpv6GatewayRequest::getOwnerIdLoginEmail()const
|
||||
void CreateIpv6GatewayRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getCallerType()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateIpv6GatewayRequest::getCallerType()const
|
||||
void CreateIpv6GatewayRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getAccessKeyId()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateIpv6GatewayRequest::getAccessKeyId()const
|
||||
void CreateIpv6GatewayRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getResourceGroupId()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateIpv6GatewayRequest::getResourceGroupId()const
|
||||
void CreateIpv6GatewayRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
setCoreParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getRegionId()const
|
||||
@@ -154,7 +154,7 @@ std::string CreateIpv6GatewayRequest::getRegionId()const
|
||||
void CreateIpv6GatewayRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getSecurityToken()const
|
||||
@@ -165,7 +165,7 @@ std::string CreateIpv6GatewayRequest::getSecurityToken()const
|
||||
void CreateIpv6GatewayRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool CreateIpv6GatewayRequest::getEnable()const
|
||||
@@ -176,7 +176,7 @@ bool CreateIpv6GatewayRequest::getEnable()const
|
||||
void CreateIpv6GatewayRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
setCoreParameter("Enable", enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getRequestContent()const
|
||||
@@ -187,7 +187,7 @@ std::string CreateIpv6GatewayRequest::getRequestContent()const
|
||||
void CreateIpv6GatewayRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getCallerBidEmail()const
|
||||
@@ -198,7 +198,7 @@ std::string CreateIpv6GatewayRequest::getCallerBidEmail()const
|
||||
void CreateIpv6GatewayRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getCallerUidEmail()const
|
||||
@@ -209,7 +209,7 @@ std::string CreateIpv6GatewayRequest::getCallerUidEmail()const
|
||||
void CreateIpv6GatewayRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateIpv6GatewayRequest::getCallerUid()const
|
||||
@@ -220,7 +220,7 @@ long CreateIpv6GatewayRequest::getCallerUid()const
|
||||
void CreateIpv6GatewayRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getApp_ip()const
|
||||
@@ -231,7 +231,7 @@ std::string CreateIpv6GatewayRequest::getApp_ip()const
|
||||
void CreateIpv6GatewayRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getResourceOwnerAccount()const
|
||||
@@ -242,7 +242,7 @@ std::string CreateIpv6GatewayRequest::getResourceOwnerAccount()const
|
||||
void CreateIpv6GatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getOwnerAccount()const
|
||||
@@ -253,7 +253,7 @@ std::string CreateIpv6GatewayRequest::getOwnerAccount()const
|
||||
void CreateIpv6GatewayRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getCallerBid()const
|
||||
@@ -264,7 +264,7 @@ std::string CreateIpv6GatewayRequest::getCallerBid()const
|
||||
void CreateIpv6GatewayRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateIpv6GatewayRequest::getOwnerId()const
|
||||
@@ -275,7 +275,7 @@ long CreateIpv6GatewayRequest::getOwnerId()const
|
||||
void CreateIpv6GatewayRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool CreateIpv6GatewayRequest::getProxy_trust_transport_info()const
|
||||
@@ -286,7 +286,7 @@ bool CreateIpv6GatewayRequest::getProxy_trust_transport_info()const
|
||||
void CreateIpv6GatewayRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateIpv6GatewayRequest::getAk_mfa_present()const
|
||||
@@ -297,7 +297,7 @@ bool CreateIpv6GatewayRequest::getAk_mfa_present()const
|
||||
void CreateIpv6GatewayRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateIpv6GatewayRequest::getSecurity_transport()const
|
||||
@@ -308,7 +308,7 @@ bool CreateIpv6GatewayRequest::getSecurity_transport()const
|
||||
void CreateIpv6GatewayRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getRequestId()const
|
||||
@@ -319,7 +319,7 @@ std::string CreateIpv6GatewayRequest::getRequestId()const
|
||||
void CreateIpv6GatewayRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getVpcId()const
|
||||
@@ -330,7 +330,7 @@ std::string CreateIpv6GatewayRequest::getVpcId()const
|
||||
void CreateIpv6GatewayRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateIpv6GatewayRequest::getName()const
|
||||
@@ -341,6 +341,6 @@ std::string CreateIpv6GatewayRequest::getName()const
|
||||
void CreateIpv6GatewayRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateIpv6GatewayResult::~CreateIpv6GatewayResult()
|
||||
|
||||
void CreateIpv6GatewayResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Ipv6GatewayId"].isNull())
|
||||
ipv6GatewayId_ = value["Ipv6GatewayId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateNatGatewayRequest::getResourceOwnerId()const
|
||||
void CreateNatGatewayRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
bool CreateNatGatewayRequest::getAutoPay()const
|
||||
@@ -44,7 +44,7 @@ bool CreateNatGatewayRequest::getAutoPay()const
|
||||
void CreateNatGatewayRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setParameter("AutoPay", std::to_string(autoPay));
|
||||
setCoreParameter("AutoPay", autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateNatGatewayRequest::getResourceOwnerAccount()const
|
||||
void CreateNatGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getClientToken()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateNatGatewayRequest::getClientToken()const
|
||||
void CreateNatGatewayRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateNatGatewayRequest::getOwnerAccount()const
|
||||
void CreateNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getDescription()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateNatGatewayRequest::getDescription()const
|
||||
void CreateNatGatewayRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateNatGatewayRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long CreateNatGatewayRequest::getOwnerId()const
|
||||
void CreateNatGatewayRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getSpec()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateNatGatewayRequest::getSpec()const
|
||||
void CreateNatGatewayRequest::setSpec(const std::string& spec)
|
||||
{
|
||||
spec_ = spec;
|
||||
setParameter("Spec", spec);
|
||||
setCoreParameter("Spec", spec);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getDuration()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateNatGatewayRequest::getDuration()const
|
||||
void CreateNatGatewayRequest::setDuration(const std::string& duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", duration);
|
||||
setCoreParameter("Duration", duration);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getRegionId()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateNatGatewayRequest::getRegionId()const
|
||||
void CreateNatGatewayRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getVpcId()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateNatGatewayRequest::getVpcId()const
|
||||
void CreateNatGatewayRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getName()const
|
||||
@@ -154,7 +154,7 @@ std::string CreateNatGatewayRequest::getName()const
|
||||
void CreateNatGatewayRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::vector<CreateNatGatewayRequest::BandwidthPackage> CreateNatGatewayRequest::getBandwidthPackage()const
|
||||
@@ -169,11 +169,11 @@ void CreateNatGatewayRequest::setBandwidthPackage(const std::vector<BandwidthPac
|
||||
for(int i = 0; i!= bandwidthPackage.size(); i++) {
|
||||
auto obj = bandwidthPackage.at(i);
|
||||
std::string str ="BandwidthPackage."+ std::to_string(i);
|
||||
setParameter(str + ".Bandwidth", std::to_string(obj.bandwidth));
|
||||
setParameter(str + ".Zone", obj.zone);
|
||||
setParameter(str + ".InternetChargeType", obj.internetChargeType);
|
||||
setParameter(str + ".ISP", obj.iSP);
|
||||
setParameter(str + ".IpCount", std::to_string(obj.ipCount));
|
||||
setCoreParameter(str + ".Bandwidth", std::to_string(obj.bandwidth));
|
||||
setCoreParameter(str + ".Zone", obj.zone);
|
||||
setCoreParameter(str + ".InternetChargeType", obj.internetChargeType);
|
||||
setCoreParameter(str + ".ISP", obj.iSP);
|
||||
setCoreParameter(str + ".IpCount", std::to_string(obj.ipCount));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ std::string CreateNatGatewayRequest::getInstanceChargeType()const
|
||||
void CreateNatGatewayRequest::setInstanceChargeType(const std::string& instanceChargeType)
|
||||
{
|
||||
instanceChargeType_ = instanceChargeType;
|
||||
setParameter("InstanceChargeType", instanceChargeType);
|
||||
setCoreParameter("InstanceChargeType", instanceChargeType);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getPricingCycle()const
|
||||
@@ -196,6 +196,6 @@ std::string CreateNatGatewayRequest::getPricingCycle()const
|
||||
void CreateNatGatewayRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
{
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter("PricingCycle", pricingCycle);
|
||||
setCoreParameter("PricingCycle", pricingCycle);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateNatGatewayResult::~CreateNatGatewayResult()
|
||||
|
||||
void CreateNatGatewayResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"];
|
||||
for (const auto &item : allForwardTableIds)
|
||||
|
||||
313
vpc/src/model/CreateNetworkAclRequest.cc
Normal file
313
vpc/src/model/CreateNetworkAclRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* 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/vpc/model/CreateNetworkAclRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::CreateNetworkAclRequest;
|
||||
|
||||
CreateNetworkAclRequest::CreateNetworkAclRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "CreateNetworkAcl")
|
||||
{}
|
||||
|
||||
CreateNetworkAclRequest::~CreateNetworkAclRequest()
|
||||
{}
|
||||
|
||||
long CreateNetworkAclRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long CreateNetworkAclRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
bool CreateNetworkAclRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool CreateNetworkAclRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setCoreParameter("Enable", enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateNetworkAclRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getNetworkAclName()const
|
||||
{
|
||||
return networkAclName_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setNetworkAclName(const std::string& networkAclName)
|
||||
{
|
||||
networkAclName_ = networkAclName;
|
||||
setCoreParameter("NetworkAclName", networkAclName);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateNetworkAclRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool CreateNetworkAclRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateNetworkAclRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateNetworkAclRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
131
vpc/src/model/CreateNetworkAclResult.cc
Normal file
131
vpc/src/model/CreateNetworkAclResult.cc
Normal file
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* 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/vpc/model/CreateNetworkAclResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
CreateNetworkAclResult::CreateNetworkAclResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNetworkAclResult::CreateNetworkAclResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNetworkAclResult::~CreateNetworkAclResult()
|
||||
{}
|
||||
|
||||
void CreateNetworkAclResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto networkAclAttributeNode = value["NetworkAclAttribute"];
|
||||
if(!networkAclAttributeNode["NetworkAclId"].isNull())
|
||||
networkAclAttribute_.networkAclId = networkAclAttributeNode["NetworkAclId"].asString();
|
||||
if(!networkAclAttributeNode["RegionId"].isNull())
|
||||
networkAclAttribute_.regionId = networkAclAttributeNode["RegionId"].asString();
|
||||
if(!networkAclAttributeNode["NetworkAclName"].isNull())
|
||||
networkAclAttribute_.networkAclName = networkAclAttributeNode["NetworkAclName"].asString();
|
||||
if(!networkAclAttributeNode["Description"].isNull())
|
||||
networkAclAttribute_.description = networkAclAttributeNode["Description"].asString();
|
||||
if(!networkAclAttributeNode["VpcId"].isNull())
|
||||
networkAclAttribute_.vpcId = networkAclAttributeNode["VpcId"].asString();
|
||||
if(!networkAclAttributeNode["CreationTime"].isNull())
|
||||
networkAclAttribute_.creationTime = networkAclAttributeNode["CreationTime"].asString();
|
||||
if(!networkAclAttributeNode["Status"].isNull())
|
||||
networkAclAttribute_.status = networkAclAttributeNode["Status"].asString();
|
||||
auto allIngressAclEntries = value["IngressAclEntries"]["IngressAclEntry"];
|
||||
for (auto value : allIngressAclEntries)
|
||||
{
|
||||
NetworkAclAttribute::IngressAclEntry ingressAclEntryObject;
|
||||
if(!value["NetworkAclEntryId"].isNull())
|
||||
ingressAclEntryObject.networkAclEntryId = value["NetworkAclEntryId"].asString();
|
||||
if(!value["Policy"].isNull())
|
||||
ingressAclEntryObject.policy = value["Policy"].asString();
|
||||
if(!value["Protocol"].isNull())
|
||||
ingressAclEntryObject.protocol = value["Protocol"].asString();
|
||||
if(!value["SourceCidrIp"].isNull())
|
||||
ingressAclEntryObject.sourceCidrIp = value["SourceCidrIp"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
ingressAclEntryObject.port = value["Port"].asString();
|
||||
if(!value["EntryType"].isNull())
|
||||
ingressAclEntryObject.entryType = value["EntryType"].asString();
|
||||
if(!value["NetworkAclEntryName"].isNull())
|
||||
ingressAclEntryObject.networkAclEntryName = value["NetworkAclEntryName"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
ingressAclEntryObject.description = value["Description"].asString();
|
||||
networkAclAttribute_.ingressAclEntries.push_back(ingressAclEntryObject);
|
||||
}
|
||||
auto allEgressAclEntries = value["EgressAclEntries"]["EgressAclEntry"];
|
||||
for (auto value : allEgressAclEntries)
|
||||
{
|
||||
NetworkAclAttribute::EgressAclEntry egressAclEntryObject;
|
||||
if(!value["NetworkAclEntryId"].isNull())
|
||||
egressAclEntryObject.networkAclEntryId = value["NetworkAclEntryId"].asString();
|
||||
if(!value["Policy"].isNull())
|
||||
egressAclEntryObject.policy = value["Policy"].asString();
|
||||
if(!value["Protocol"].isNull())
|
||||
egressAclEntryObject.protocol = value["Protocol"].asString();
|
||||
if(!value["DestinationCidrIp"].isNull())
|
||||
egressAclEntryObject.destinationCidrIp = value["DestinationCidrIp"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
egressAclEntryObject.port = value["Port"].asString();
|
||||
if(!value["EntryType"].isNull())
|
||||
egressAclEntryObject.entryType = value["EntryType"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
egressAclEntryObject.description = value["Description"].asString();
|
||||
if(!value["NetworkAclEntryName"].isNull())
|
||||
egressAclEntryObject.networkAclEntryName = value["NetworkAclEntryName"].asString();
|
||||
networkAclAttribute_.egressAclEntries.push_back(egressAclEntryObject);
|
||||
}
|
||||
auto allResources = value["Resources"]["Resource"];
|
||||
for (auto value : allResources)
|
||||
{
|
||||
NetworkAclAttribute::Resource resourceObject;
|
||||
if(!value["ResourceId"].isNull())
|
||||
resourceObject.resourceId = value["ResourceId"].asString();
|
||||
if(!value["ResourceType"].isNull())
|
||||
resourceObject.resourceType = value["ResourceType"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
resourceObject.status = value["Status"].asString();
|
||||
networkAclAttribute_.resources.push_back(resourceObject);
|
||||
}
|
||||
if(!value["NetworkAclId"].isNull())
|
||||
networkAclId_ = value["NetworkAclId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclResult::getNetworkAclId()const
|
||||
{
|
||||
return networkAclId_;
|
||||
}
|
||||
|
||||
CreateNetworkAclResult::NetworkAclAttribute CreateNetworkAclResult::getNetworkAclAttribute()const
|
||||
{
|
||||
return networkAclAttribute_;
|
||||
}
|
||||
|
||||
148
vpc/src/model/CreatePhysicalConnectionOccupancyOrderRequest.cc
Normal file
148
vpc/src/model/CreatePhysicalConnectionOccupancyOrderRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/vpc/model/CreatePhysicalConnectionOccupancyOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::CreatePhysicalConnectionOccupancyOrderRequest;
|
||||
|
||||
CreatePhysicalConnectionOccupancyOrderRequest::CreatePhysicalConnectionOccupancyOrderRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "CreatePhysicalConnectionOccupancyOrder")
|
||||
{}
|
||||
|
||||
CreatePhysicalConnectionOccupancyOrderRequest::~CreatePhysicalConnectionOccupancyOrderRequest()
|
||||
{}
|
||||
|
||||
int CreatePhysicalConnectionOccupancyOrderRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionOccupancyOrderRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setCoreParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
long CreatePhysicalConnectionOccupancyOrderRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionOccupancyOrderRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
bool CreatePhysicalConnectionOccupancyOrderRequest::getAutoPay()const
|
||||
{
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionOccupancyOrderRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setCoreParameter("AutoPay", autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionOccupancyOrderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionOccupancyOrderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionOccupancyOrderRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionOccupancyOrderRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionOccupancyOrderRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionOccupancyOrderRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionOccupancyOrderRequest::getPhysicalConnectionId()const
|
||||
{
|
||||
return physicalConnectionId_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionOccupancyOrderRequest::setPhysicalConnectionId(const std::string& physicalConnectionId)
|
||||
{
|
||||
physicalConnectionId_ = physicalConnectionId;
|
||||
setCoreParameter("PhysicalConnectionId", physicalConnectionId);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionOccupancyOrderRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionOccupancyOrderRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CreatePhysicalConnectionOccupancyOrderRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionOccupancyOrderRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionOccupancyOrderRequest::getInstanceChargeType()const
|
||||
{
|
||||
return instanceChargeType_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionOccupancyOrderRequest::setInstanceChargeType(const std::string& instanceChargeType)
|
||||
{
|
||||
instanceChargeType_ = instanceChargeType;
|
||||
setCoreParameter("InstanceChargeType", instanceChargeType);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionOccupancyOrderRequest::getPricingCycle()const
|
||||
{
|
||||
return pricingCycle_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionOccupancyOrderRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
{
|
||||
pricingCycle_ = pricingCycle;
|
||||
setCoreParameter("PricingCycle", pricingCycle);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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/vpc/model/CreatePhysicalConnectionOccupancyOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
CreatePhysicalConnectionOccupancyOrderResult::CreatePhysicalConnectionOccupancyOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePhysicalConnectionOccupancyOrderResult::CreatePhysicalConnectionOccupancyOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePhysicalConnectionOccupancyOrderResult::~CreatePhysicalConnectionOccupancyOrderResult()
|
||||
{}
|
||||
|
||||
void CreatePhysicalConnectionOccupancyOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreatePhysicalConnectionRequest::getAccessPointId()const
|
||||
void CreatePhysicalConnectionRequest::setAccessPointId(const std::string& accessPointId)
|
||||
{
|
||||
accessPointId_ = accessPointId;
|
||||
setParameter("AccessPointId", accessPointId);
|
||||
setCoreParameter("AccessPointId", accessPointId);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionRequest::getRedundantPhysicalConnectionId()const
|
||||
@@ -44,7 +44,7 @@ std::string CreatePhysicalConnectionRequest::getRedundantPhysicalConnectionId()c
|
||||
void CreatePhysicalConnectionRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId)
|
||||
{
|
||||
redundantPhysicalConnectionId_ = redundantPhysicalConnectionId;
|
||||
setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId);
|
||||
setCoreParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionRequest::getPeerLocation()const
|
||||
@@ -55,7 +55,7 @@ std::string CreatePhysicalConnectionRequest::getPeerLocation()const
|
||||
void CreatePhysicalConnectionRequest::setPeerLocation(const std::string& peerLocation)
|
||||
{
|
||||
peerLocation_ = peerLocation;
|
||||
setParameter("PeerLocation", peerLocation);
|
||||
setCoreParameter("PeerLocation", peerLocation);
|
||||
}
|
||||
|
||||
long CreatePhysicalConnectionRequest::getResourceOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long CreatePhysicalConnectionRequest::getResourceOwnerId()const
|
||||
void CreatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionRequest::getPortType()const
|
||||
@@ -77,7 +77,7 @@ std::string CreatePhysicalConnectionRequest::getPortType()const
|
||||
void CreatePhysicalConnectionRequest::setPortType(const std::string& portType)
|
||||
{
|
||||
portType_ = portType;
|
||||
setParameter("PortType", portType);
|
||||
setCoreParameter("PortType", portType);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionRequest::getCircuitCode()const
|
||||
@@ -88,7 +88,7 @@ std::string CreatePhysicalConnectionRequest::getCircuitCode()const
|
||||
void CreatePhysicalConnectionRequest::setCircuitCode(const std::string& circuitCode)
|
||||
{
|
||||
circuitCode_ = circuitCode;
|
||||
setParameter("CircuitCode", circuitCode);
|
||||
setCoreParameter("CircuitCode", circuitCode);
|
||||
}
|
||||
|
||||
int CreatePhysicalConnectionRequest::getBandwidth()const
|
||||
@@ -99,7 +99,7 @@ int CreatePhysicalConnectionRequest::getBandwidth()const
|
||||
void CreatePhysicalConnectionRequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
setCoreParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionRequest::getClientToken()const
|
||||
@@ -110,7 +110,7 @@ std::string CreatePhysicalConnectionRequest::getClientToken()const
|
||||
void CreatePhysicalConnectionRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionRequest::getResourceOwnerAccount()const
|
||||
@@ -121,7 +121,7 @@ std::string CreatePhysicalConnectionRequest::getResourceOwnerAccount()const
|
||||
void CreatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionRequest::getOwnerAccount()const
|
||||
@@ -132,7 +132,7 @@ std::string CreatePhysicalConnectionRequest::getOwnerAccount()const
|
||||
void CreatePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionRequest::getDescription()const
|
||||
@@ -143,7 +143,7 @@ std::string CreatePhysicalConnectionRequest::getDescription()const
|
||||
void CreatePhysicalConnectionRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionRequest::getType()const
|
||||
@@ -154,7 +154,7 @@ std::string CreatePhysicalConnectionRequest::getType()const
|
||||
void CreatePhysicalConnectionRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
long CreatePhysicalConnectionRequest::getOwnerId()const
|
||||
@@ -165,7 +165,7 @@ long CreatePhysicalConnectionRequest::getOwnerId()const
|
||||
void CreatePhysicalConnectionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionRequest::getLineOperator()const
|
||||
@@ -176,7 +176,7 @@ std::string CreatePhysicalConnectionRequest::getLineOperator()const
|
||||
void CreatePhysicalConnectionRequest::setLineOperator(const std::string& lineOperator)
|
||||
{
|
||||
lineOperator_ = lineOperator;
|
||||
setParameter("LineOperator", lineOperator);
|
||||
setCoreParameter("LineOperator", lineOperator);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionRequest::getRegionId()const
|
||||
@@ -187,7 +187,7 @@ std::string CreatePhysicalConnectionRequest::getRegionId()const
|
||||
void CreatePhysicalConnectionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionRequest::getName()const
|
||||
@@ -198,6 +198,6 @@ std::string CreatePhysicalConnectionRequest::getName()const
|
||||
void CreatePhysicalConnectionRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreatePhysicalConnectionResult::~CreatePhysicalConnectionResult()
|
||||
|
||||
void CreatePhysicalConnectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PhysicalConnectionId"].isNull())
|
||||
physicalConnectionId_ = value["PhysicalConnectionId"].asString();
|
||||
|
||||
148
vpc/src/model/CreatePhysicalConnectionSetupOrderRequest.cc
Normal file
148
vpc/src/model/CreatePhysicalConnectionSetupOrderRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/vpc/model/CreatePhysicalConnectionSetupOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Vpc::Model::CreatePhysicalConnectionSetupOrderRequest;
|
||||
|
||||
CreatePhysicalConnectionSetupOrderRequest::CreatePhysicalConnectionSetupOrderRequest() :
|
||||
RpcServiceRequest("vpc", "2016-04-28", "CreatePhysicalConnectionSetupOrder")
|
||||
{}
|
||||
|
||||
CreatePhysicalConnectionSetupOrderRequest::~CreatePhysicalConnectionSetupOrderRequest()
|
||||
{}
|
||||
|
||||
std::string CreatePhysicalConnectionSetupOrderRequest::getAccessPointId()const
|
||||
{
|
||||
return accessPointId_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionSetupOrderRequest::setAccessPointId(const std::string& accessPointId)
|
||||
{
|
||||
accessPointId_ = accessPointId;
|
||||
setCoreParameter("AccessPointId", accessPointId);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionSetupOrderRequest::getRedundantPhysicalConnectionId()const
|
||||
{
|
||||
return redundantPhysicalConnectionId_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionSetupOrderRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId)
|
||||
{
|
||||
redundantPhysicalConnectionId_ = redundantPhysicalConnectionId;
|
||||
setCoreParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId);
|
||||
}
|
||||
|
||||
long CreatePhysicalConnectionSetupOrderRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionSetupOrderRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionSetupOrderRequest::getPortType()const
|
||||
{
|
||||
return portType_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionSetupOrderRequest::setPortType(const std::string& portType)
|
||||
{
|
||||
portType_ = portType;
|
||||
setCoreParameter("PortType", portType);
|
||||
}
|
||||
|
||||
bool CreatePhysicalConnectionSetupOrderRequest::getAutoPay()const
|
||||
{
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionSetupOrderRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setCoreParameter("AutoPay", autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionSetupOrderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionSetupOrderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionSetupOrderRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionSetupOrderRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionSetupOrderRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionSetupOrderRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionSetupOrderRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionSetupOrderRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CreatePhysicalConnectionSetupOrderRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionSetupOrderRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionSetupOrderRequest::getLineOperator()const
|
||||
{
|
||||
return lineOperator_;
|
||||
}
|
||||
|
||||
void CreatePhysicalConnectionSetupOrderRequest::setLineOperator(const std::string& lineOperator)
|
||||
{
|
||||
lineOperator_ = lineOperator;
|
||||
setCoreParameter("LineOperator", lineOperator);
|
||||
}
|
||||
|
||||
62
vpc/src/model/CreatePhysicalConnectionSetupOrderResult.cc
Normal file
62
vpc/src/model/CreatePhysicalConnectionSetupOrderResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/vpc/model/CreatePhysicalConnectionSetupOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vpc;
|
||||
using namespace AlibabaCloud::Vpc::Model;
|
||||
|
||||
CreatePhysicalConnectionSetupOrderResult::CreatePhysicalConnectionSetupOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePhysicalConnectionSetupOrderResult::CreatePhysicalConnectionSetupOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePhysicalConnectionSetupOrderResult::~CreatePhysicalConnectionSetupOrderResult()
|
||||
{}
|
||||
|
||||
void CreatePhysicalConnectionSetupOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["PhysicalConnectionId"].isNull())
|
||||
physicalConnectionId_ = value["PhysicalConnectionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionSetupOrderResult::getPhysicalConnectionId()const
|
||||
{
|
||||
return physicalConnectionId_;
|
||||
}
|
||||
|
||||
std::string CreatePhysicalConnectionSetupOrderResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateRouteEntryRequest::getResourceOwnerId()const
|
||||
void CreateRouteEntryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getRouteEntryName()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateRouteEntryRequest::getRouteEntryName()const
|
||||
void CreateRouteEntryRequest::setRouteEntryName(const std::string& routeEntryName)
|
||||
{
|
||||
routeEntryName_ = routeEntryName;
|
||||
setParameter("RouteEntryName", routeEntryName);
|
||||
setCoreParameter("RouteEntryName", routeEntryName);
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateRouteEntryRequest::getResourceOwnerAccount()const
|
||||
void CreateRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getClientToken()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateRouteEntryRequest::getClientToken()const
|
||||
void CreateRouteEntryRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getDestinationCidrBlock()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateRouteEntryRequest::getDestinationCidrBlock()const
|
||||
void CreateRouteEntryRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock)
|
||||
{
|
||||
destinationCidrBlock_ = destinationCidrBlock;
|
||||
setParameter("DestinationCidrBlock", destinationCidrBlock);
|
||||
setCoreParameter("DestinationCidrBlock", destinationCidrBlock);
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getOwnerAccount()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateRouteEntryRequest::getOwnerAccount()const
|
||||
void CreateRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CreateRouteEntryRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long CreateRouteEntryRequest::getOwnerId()const
|
||||
void CreateRouteEntryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getPrivateIpAddress()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateRouteEntryRequest::getPrivateIpAddress()const
|
||||
void CreateRouteEntryRequest::setPrivateIpAddress(const std::string& privateIpAddress)
|
||||
{
|
||||
privateIpAddress_ = privateIpAddress;
|
||||
setParameter("PrivateIpAddress", privateIpAddress);
|
||||
setCoreParameter("PrivateIpAddress", privateIpAddress);
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getRegionId()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateRouteEntryRequest::getRegionId()const
|
||||
void CreateRouteEntryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getNextHopId()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateRouteEntryRequest::getNextHopId()const
|
||||
void CreateRouteEntryRequest::setNextHopId(const std::string& nextHopId)
|
||||
{
|
||||
nextHopId_ = nextHopId;
|
||||
setParameter("NextHopId", nextHopId);
|
||||
setCoreParameter("NextHopId", nextHopId);
|
||||
}
|
||||
|
||||
std::string CreateRouteEntryRequest::getNextHopType()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateRouteEntryRequest::getNextHopType()const
|
||||
void CreateRouteEntryRequest::setNextHopType(const std::string& nextHopType)
|
||||
{
|
||||
nextHopType_ = nextHopType;
|
||||
setParameter("NextHopType", nextHopType);
|
||||
setCoreParameter("NextHopType", nextHopType);
|
||||
}
|
||||
|
||||
std::vector<CreateRouteEntryRequest::NextHopList> CreateRouteEntryRequest::getNextHopList()const
|
||||
@@ -158,9 +158,9 @@ void CreateRouteEntryRequest::setNextHopList(const std::vector<NextHopList>& nex
|
||||
for(int i = 0; i!= nextHopList.size(); i++) {
|
||||
auto obj = nextHopList.at(i);
|
||||
std::string str ="NextHopList."+ std::to_string(i);
|
||||
setParameter(str + ".Weight", std::to_string(obj.weight));
|
||||
setParameter(str + ".NextHopId", obj.nextHopId);
|
||||
setParameter(str + ".NextHopType", obj.nextHopType);
|
||||
setCoreParameter(str + ".Weight", std::to_string(obj.weight));
|
||||
setCoreParameter(str + ".NextHopId", obj.nextHopId);
|
||||
setCoreParameter(str + ".NextHopType", obj.nextHopType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,6 +172,6 @@ std::string CreateRouteEntryRequest::getRouteTableId()const
|
||||
void CreateRouteEntryRequest::setRouteTableId(const std::string& routeTableId)
|
||||
{
|
||||
routeTableId_ = routeTableId;
|
||||
setParameter("RouteTableId", routeTableId);
|
||||
setCoreParameter("RouteTableId", routeTableId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateRouteEntryResult::~CreateRouteEntryResult()
|
||||
|
||||
void CreateRouteEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateRouteTableRequest::getResourceOwnerId()const
|
||||
void CreateRouteTableRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getClientToken()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateRouteTableRequest::getClientToken()const
|
||||
void CreateRouteTableRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long CreateRouteTableRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long CreateRouteTableRequest::getCallerParentId()const
|
||||
void CreateRouteTableRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getDescription()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateRouteTableRequest::getDescription()const
|
||||
void CreateRouteTableRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
bool CreateRouteTableRequest::getProxy_original_security_transport()const
|
||||
@@ -77,7 +77,7 @@ bool CreateRouteTableRequest::getProxy_original_security_transport()const
|
||||
void CreateRouteTableRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getProxy_original_source_ip()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateRouteTableRequest::getProxy_original_source_ip()const
|
||||
void CreateRouteTableRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getOwnerIdLoginEmail()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateRouteTableRequest::getOwnerIdLoginEmail()const
|
||||
void CreateRouteTableRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getCallerType()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateRouteTableRequest::getCallerType()const
|
||||
void CreateRouteTableRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getAccessKeyId()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateRouteTableRequest::getAccessKeyId()const
|
||||
void CreateRouteTableRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getResourceGroupId()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateRouteTableRequest::getResourceGroupId()const
|
||||
void CreateRouteTableRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
setCoreParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getRouteTableName()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateRouteTableRequest::getRouteTableName()const
|
||||
void CreateRouteTableRequest::setRouteTableName(const std::string& routeTableName)
|
||||
{
|
||||
routeTableName_ = routeTableName;
|
||||
setParameter("RouteTableName", routeTableName);
|
||||
setCoreParameter("RouteTableName", routeTableName);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getRegionId()const
|
||||
@@ -154,7 +154,7 @@ std::string CreateRouteTableRequest::getRegionId()const
|
||||
void CreateRouteTableRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getSecurityToken()const
|
||||
@@ -165,7 +165,7 @@ std::string CreateRouteTableRequest::getSecurityToken()const
|
||||
void CreateRouteTableRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
bool CreateRouteTableRequest::getEnable()const
|
||||
@@ -176,7 +176,7 @@ bool CreateRouteTableRequest::getEnable()const
|
||||
void CreateRouteTableRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
setCoreParameter("Enable", enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getRequestContent()const
|
||||
@@ -187,7 +187,7 @@ std::string CreateRouteTableRequest::getRequestContent()const
|
||||
void CreateRouteTableRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getCallerBidEmail()const
|
||||
@@ -198,7 +198,7 @@ std::string CreateRouteTableRequest::getCallerBidEmail()const
|
||||
void CreateRouteTableRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getCallerUidEmail()const
|
||||
@@ -209,7 +209,7 @@ std::string CreateRouteTableRequest::getCallerUidEmail()const
|
||||
void CreateRouteTableRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateRouteTableRequest::getCallerUid()const
|
||||
@@ -220,7 +220,7 @@ long CreateRouteTableRequest::getCallerUid()const
|
||||
void CreateRouteTableRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getApp_ip()const
|
||||
@@ -231,7 +231,7 @@ std::string CreateRouteTableRequest::getApp_ip()const
|
||||
void CreateRouteTableRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getResourceOwnerAccount()const
|
||||
@@ -242,7 +242,7 @@ std::string CreateRouteTableRequest::getResourceOwnerAccount()const
|
||||
void CreateRouteTableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getOwnerAccount()const
|
||||
@@ -253,7 +253,7 @@ std::string CreateRouteTableRequest::getOwnerAccount()const
|
||||
void CreateRouteTableRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getCallerBid()const
|
||||
@@ -264,7 +264,7 @@ std::string CreateRouteTableRequest::getCallerBid()const
|
||||
void CreateRouteTableRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateRouteTableRequest::getOwnerId()const
|
||||
@@ -275,7 +275,7 @@ long CreateRouteTableRequest::getOwnerId()const
|
||||
void CreateRouteTableRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool CreateRouteTableRequest::getProxy_trust_transport_info()const
|
||||
@@ -286,7 +286,7 @@ bool CreateRouteTableRequest::getProxy_trust_transport_info()const
|
||||
void CreateRouteTableRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateRouteTableRequest::getAk_mfa_present()const
|
||||
@@ -297,7 +297,7 @@ bool CreateRouteTableRequest::getAk_mfa_present()const
|
||||
void CreateRouteTableRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateRouteTableRequest::getSecurity_transport()const
|
||||
@@ -308,7 +308,7 @@ bool CreateRouteTableRequest::getSecurity_transport()const
|
||||
void CreateRouteTableRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getRequestId()const
|
||||
@@ -319,7 +319,7 @@ std::string CreateRouteTableRequest::getRequestId()const
|
||||
void CreateRouteTableRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateRouteTableRequest::getVpcId()const
|
||||
@@ -330,6 +330,6 @@ std::string CreateRouteTableRequest::getVpcId()const
|
||||
void CreateRouteTableRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateRouteTableResult::~CreateRouteTableResult()
|
||||
|
||||
void CreateRouteTableResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RouteTableId"].isNull())
|
||||
routeTableId_ = value["RouteTableId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateRouterInterfaceRequest::getAccessPointId()const
|
||||
void CreateRouterInterfaceRequest::setAccessPointId(const std::string& accessPointId)
|
||||
{
|
||||
accessPointId_ = accessPointId;
|
||||
setParameter("AccessPointId", accessPointId);
|
||||
setCoreParameter("AccessPointId", accessPointId);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getOppositeRouterId()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateRouterInterfaceRequest::getOppositeRouterId()const
|
||||
void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string& oppositeRouterId)
|
||||
{
|
||||
oppositeRouterId_ = oppositeRouterId;
|
||||
setParameter("OppositeRouterId", oppositeRouterId);
|
||||
setCoreParameter("OppositeRouterId", oppositeRouterId);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getOppositeAccessPointId()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateRouterInterfaceRequest::getOppositeAccessPointId()const
|
||||
void CreateRouterInterfaceRequest::setOppositeAccessPointId(const std::string& oppositeAccessPointId)
|
||||
{
|
||||
oppositeAccessPointId_ = oppositeAccessPointId;
|
||||
setParameter("OppositeAccessPointId", oppositeAccessPointId);
|
||||
setCoreParameter("OppositeAccessPointId", oppositeAccessPointId);
|
||||
}
|
||||
|
||||
long CreateRouterInterfaceRequest::getResourceOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long CreateRouterInterfaceRequest::getResourceOwnerId()const
|
||||
void CreateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getRole()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateRouterInterfaceRequest::getRole()const
|
||||
void CreateRouterInterfaceRequest::setRole(const std::string& role)
|
||||
{
|
||||
role_ = role;
|
||||
setParameter("Role", role);
|
||||
setCoreParameter("Role", role);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getClientToken()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateRouterInterfaceRequest::getClientToken()const
|
||||
void CreateRouterInterfaceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const
|
||||
void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp)
|
||||
{
|
||||
healthCheckTargetIp_ = healthCheckTargetIp;
|
||||
setParameter("HealthCheckTargetIp", healthCheckTargetIp);
|
||||
setCoreParameter("HealthCheckTargetIp", healthCheckTargetIp);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getDescription()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateRouterInterfaceRequest::getDescription()const
|
||||
void CreateRouterInterfaceRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getSpec()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateRouterInterfaceRequest::getSpec()const
|
||||
void CreateRouterInterfaceRequest::setSpec(const std::string& spec)
|
||||
{
|
||||
spec_ = spec;
|
||||
setParameter("Spec", spec);
|
||||
setCoreParameter("Spec", spec);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getRegionId()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateRouterInterfaceRequest::getRegionId()const
|
||||
void CreateRouterInterfaceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const
|
||||
void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId)
|
||||
{
|
||||
oppositeInterfaceId_ = oppositeInterfaceId;
|
||||
setParameter("OppositeInterfaceId", oppositeInterfaceId);
|
||||
setCoreParameter("OppositeInterfaceId", oppositeInterfaceId);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getInstanceChargeType()const
|
||||
@@ -154,7 +154,7 @@ std::string CreateRouterInterfaceRequest::getInstanceChargeType()const
|
||||
void CreateRouterInterfaceRequest::setInstanceChargeType(const std::string& instanceChargeType)
|
||||
{
|
||||
instanceChargeType_ = instanceChargeType;
|
||||
setParameter("InstanceChargeType", instanceChargeType);
|
||||
setCoreParameter("InstanceChargeType", instanceChargeType);
|
||||
}
|
||||
|
||||
int CreateRouterInterfaceRequest::getPeriod()const
|
||||
@@ -165,7 +165,7 @@ int CreateRouterInterfaceRequest::getPeriod()const
|
||||
void CreateRouterInterfaceRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
setCoreParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
bool CreateRouterInterfaceRequest::getAutoPay()const
|
||||
@@ -176,7 +176,7 @@ bool CreateRouterInterfaceRequest::getAutoPay()const
|
||||
void CreateRouterInterfaceRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setParameter("AutoPay", std::to_string(autoPay));
|
||||
setCoreParameter("AutoPay", autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getResourceOwnerAccount()const
|
||||
@@ -187,7 +187,7 @@ std::string CreateRouterInterfaceRequest::getResourceOwnerAccount()const
|
||||
void CreateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getOppositeRegionId()const
|
||||
@@ -198,7 +198,7 @@ std::string CreateRouterInterfaceRequest::getOppositeRegionId()const
|
||||
void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string& oppositeRegionId)
|
||||
{
|
||||
oppositeRegionId_ = oppositeRegionId;
|
||||
setParameter("OppositeRegionId", oppositeRegionId);
|
||||
setCoreParameter("OppositeRegionId", oppositeRegionId);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getOwnerAccount()const
|
||||
@@ -209,7 +209,7 @@ std::string CreateRouterInterfaceRequest::getOwnerAccount()const
|
||||
void CreateRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CreateRouterInterfaceRequest::getOwnerId()const
|
||||
@@ -220,7 +220,7 @@ long CreateRouterInterfaceRequest::getOwnerId()const
|
||||
void CreateRouterInterfaceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId()const
|
||||
@@ -231,7 +231,7 @@ std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId()const
|
||||
void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId)
|
||||
{
|
||||
oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId;
|
||||
setParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId);
|
||||
setCoreParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getRouterType()const
|
||||
@@ -242,7 +242,7 @@ std::string CreateRouterInterfaceRequest::getRouterType()const
|
||||
void CreateRouterInterfaceRequest::setRouterType(const std::string& routerType)
|
||||
{
|
||||
routerType_ = routerType;
|
||||
setParameter("RouterType", routerType);
|
||||
setCoreParameter("RouterType", routerType);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp()const
|
||||
@@ -253,7 +253,7 @@ std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp()const
|
||||
void CreateRouterInterfaceRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp)
|
||||
{
|
||||
healthCheckSourceIp_ = healthCheckSourceIp;
|
||||
setParameter("HealthCheckSourceIp", healthCheckSourceIp);
|
||||
setCoreParameter("HealthCheckSourceIp", healthCheckSourceIp);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getRouterId()const
|
||||
@@ -264,7 +264,7 @@ std::string CreateRouterInterfaceRequest::getRouterId()const
|
||||
void CreateRouterInterfaceRequest::setRouterId(const std::string& routerId)
|
||||
{
|
||||
routerId_ = routerId;
|
||||
setParameter("RouterId", routerId);
|
||||
setCoreParameter("RouterId", routerId);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getOppositeRouterType()const
|
||||
@@ -275,7 +275,7 @@ std::string CreateRouterInterfaceRequest::getOppositeRouterType()const
|
||||
void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string& oppositeRouterType)
|
||||
{
|
||||
oppositeRouterType_ = oppositeRouterType;
|
||||
setParameter("OppositeRouterType", oppositeRouterType);
|
||||
setCoreParameter("OppositeRouterType", oppositeRouterType);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getName()const
|
||||
@@ -286,7 +286,7 @@ std::string CreateRouterInterfaceRequest::getName()const
|
||||
void CreateRouterInterfaceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateRouterInterfaceRequest::getPricingCycle()const
|
||||
@@ -297,6 +297,6 @@ std::string CreateRouterInterfaceRequest::getPricingCycle()const
|
||||
void CreateRouterInterfaceRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
{
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter("PricingCycle", pricingCycle);
|
||||
setCoreParameter("PricingCycle", pricingCycle);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateRouterInterfaceResult::~CreateRouterInterfaceResult()
|
||||
|
||||
void CreateRouterInterfaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RouterInterfaceId"].isNull())
|
||||
routerInterfaceId_ = value["RouterInterfaceId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateSnatEntryRequest::getResourceOwnerId()const
|
||||
void CreateSnatEntryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getSourceVSwitchId()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateSnatEntryRequest::getSourceVSwitchId()const
|
||||
void CreateSnatEntryRequest::setSourceVSwitchId(const std::string& sourceVSwitchId)
|
||||
{
|
||||
sourceVSwitchId_ = sourceVSwitchId;
|
||||
setParameter("SourceVSwitchId", sourceVSwitchId);
|
||||
setCoreParameter("SourceVSwitchId", sourceVSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateSnatEntryRequest::getResourceOwnerAccount()const
|
||||
void CreateSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getRegionId()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateSnatEntryRequest::getRegionId()const
|
||||
void CreateSnatEntryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateSnatEntryRequest::getOwnerAccount()const
|
||||
void CreateSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getSnatEntryName()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateSnatEntryRequest::getSnatEntryName()const
|
||||
void CreateSnatEntryRequest::setSnatEntryName(const std::string& snatEntryName)
|
||||
{
|
||||
snatEntryName_ = snatEntryName;
|
||||
setParameter("SnatEntryName", snatEntryName);
|
||||
setCoreParameter("SnatEntryName", snatEntryName);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getSourceCIDR()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateSnatEntryRequest::getSourceCIDR()const
|
||||
void CreateSnatEntryRequest::setSourceCIDR(const std::string& sourceCIDR)
|
||||
{
|
||||
sourceCIDR_ = sourceCIDR;
|
||||
setParameter("SourceCIDR", sourceCIDR);
|
||||
setCoreParameter("SourceCIDR", sourceCIDR);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getSnatTableId()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateSnatEntryRequest::getSnatTableId()const
|
||||
void CreateSnatEntryRequest::setSnatTableId(const std::string& snatTableId)
|
||||
{
|
||||
snatTableId_ = snatTableId;
|
||||
setParameter("SnatTableId", snatTableId);
|
||||
setCoreParameter("SnatTableId", snatTableId);
|
||||
}
|
||||
|
||||
long CreateSnatEntryRequest::getOwnerId()const
|
||||
@@ -121,7 +121,7 @@ long CreateSnatEntryRequest::getOwnerId()const
|
||||
void CreateSnatEntryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getSnatIp()const
|
||||
@@ -132,6 +132,6 @@ std::string CreateSnatEntryRequest::getSnatIp()const
|
||||
void CreateSnatEntryRequest::setSnatIp(const std::string& snatIp)
|
||||
{
|
||||
snatIp_ = snatIp;
|
||||
setParameter("SnatIp", snatIp);
|
||||
setCoreParameter("SnatIp", snatIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateSnatEntryResult::~CreateSnatEntryResult()
|
||||
|
||||
void CreateSnatEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SnatEntryId"].isNull())
|
||||
snatEntryId_ = value["SnatEntryId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateSslVpnClientCertRequest::getSslVpnServerId()const
|
||||
void CreateSslVpnClientCertRequest::setSslVpnServerId(const std::string& sslVpnServerId)
|
||||
{
|
||||
sslVpnServerId_ = sslVpnServerId;
|
||||
setParameter("SslVpnServerId", sslVpnServerId);
|
||||
setCoreParameter("SslVpnServerId", sslVpnServerId);
|
||||
}
|
||||
|
||||
long CreateSslVpnClientCertRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long CreateSslVpnClientCertRequest::getResourceOwnerId()const
|
||||
void CreateSslVpnClientCertRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateSslVpnClientCertRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateSslVpnClientCertRequest::getResourceOwnerAccount()const
|
||||
void CreateSslVpnClientCertRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateSslVpnClientCertRequest::getClientToken()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateSslVpnClientCertRequest::getClientToken()const
|
||||
void CreateSslVpnClientCertRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateSslVpnClientCertRequest::getRegionId()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateSslVpnClientCertRequest::getRegionId()const
|
||||
void CreateSslVpnClientCertRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateSslVpnClientCertRequest::getOwnerAccount()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateSslVpnClientCertRequest::getOwnerAccount()const
|
||||
void CreateSslVpnClientCertRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateSslVpnClientCertRequest::getName()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateSslVpnClientCertRequest::getName()const
|
||||
void CreateSslVpnClientCertRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
long CreateSslVpnClientCertRequest::getOwnerId()const
|
||||
@@ -110,6 +110,6 @@ long CreateSslVpnClientCertRequest::getOwnerId()const
|
||||
void CreateSslVpnClientCertRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateSslVpnClientCertResult::~CreateSslVpnClientCertResult()
|
||||
|
||||
void CreateSslVpnClientCertResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateSslVpnServerRequest::getCipher()const
|
||||
void CreateSslVpnServerRequest::setCipher(const std::string& cipher)
|
||||
{
|
||||
cipher_ = cipher;
|
||||
setParameter("Cipher", cipher);
|
||||
setCoreParameter("Cipher", cipher);
|
||||
}
|
||||
|
||||
long CreateSslVpnServerRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long CreateSslVpnServerRequest::getResourceOwnerId()const
|
||||
void CreateSslVpnServerRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateSslVpnServerRequest::getClientIpPool()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateSslVpnServerRequest::getClientIpPool()const
|
||||
void CreateSslVpnServerRequest::setClientIpPool(const std::string& clientIpPool)
|
||||
{
|
||||
clientIpPool_ = clientIpPool;
|
||||
setParameter("ClientIpPool", clientIpPool);
|
||||
setCoreParameter("ClientIpPool", clientIpPool);
|
||||
}
|
||||
|
||||
std::string CreateSslVpnServerRequest::getResourceOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateSslVpnServerRequest::getResourceOwnerAccount()const
|
||||
void CreateSslVpnServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateSslVpnServerRequest::getClientToken()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateSslVpnServerRequest::getClientToken()const
|
||||
void CreateSslVpnServerRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
bool CreateSslVpnServerRequest::getCompress()const
|
||||
@@ -88,7 +88,7 @@ bool CreateSslVpnServerRequest::getCompress()const
|
||||
void CreateSslVpnServerRequest::setCompress(bool compress)
|
||||
{
|
||||
compress_ = compress;
|
||||
setParameter("Compress", std::to_string(compress));
|
||||
setCoreParameter("Compress", compress ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateSslVpnServerRequest::getOwnerAccount()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateSslVpnServerRequest::getOwnerAccount()const
|
||||
void CreateSslVpnServerRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateSslVpnServerRequest::getVpnGatewayId()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateSslVpnServerRequest::getVpnGatewayId()const
|
||||
void CreateSslVpnServerRequest::setVpnGatewayId(const std::string& vpnGatewayId)
|
||||
{
|
||||
vpnGatewayId_ = vpnGatewayId;
|
||||
setParameter("VpnGatewayId", vpnGatewayId);
|
||||
setCoreParameter("VpnGatewayId", vpnGatewayId);
|
||||
}
|
||||
|
||||
long CreateSslVpnServerRequest::getOwnerId()const
|
||||
@@ -121,7 +121,7 @@ long CreateSslVpnServerRequest::getOwnerId()const
|
||||
void CreateSslVpnServerRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateSslVpnServerRequest::getLocalSubnet()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateSslVpnServerRequest::getLocalSubnet()const
|
||||
void CreateSslVpnServerRequest::setLocalSubnet(const std::string& localSubnet)
|
||||
{
|
||||
localSubnet_ = localSubnet;
|
||||
setParameter("LocalSubnet", localSubnet);
|
||||
setCoreParameter("LocalSubnet", localSubnet);
|
||||
}
|
||||
|
||||
std::string CreateSslVpnServerRequest::getRegionId()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateSslVpnServerRequest::getRegionId()const
|
||||
void CreateSslVpnServerRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int CreateSslVpnServerRequest::getPort()const
|
||||
@@ -154,7 +154,7 @@ int CreateSslVpnServerRequest::getPort()const
|
||||
void CreateSslVpnServerRequest::setPort(int port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", std::to_string(port));
|
||||
setCoreParameter("Port", std::to_string(port));
|
||||
}
|
||||
|
||||
std::string CreateSslVpnServerRequest::getProto()const
|
||||
@@ -165,7 +165,7 @@ std::string CreateSslVpnServerRequest::getProto()const
|
||||
void CreateSslVpnServerRequest::setProto(const std::string& proto)
|
||||
{
|
||||
proto_ = proto;
|
||||
setParameter("Proto", proto);
|
||||
setCoreParameter("Proto", proto);
|
||||
}
|
||||
|
||||
std::string CreateSslVpnServerRequest::getName()const
|
||||
@@ -176,6 +176,6 @@ std::string CreateSslVpnServerRequest::getName()const
|
||||
void CreateSslVpnServerRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateSslVpnServerResult::~CreateSslVpnServerResult()
|
||||
|
||||
void CreateSslVpnServerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SslVpnServerId"].isNull())
|
||||
sslVpnServerId_ = value["SslVpnServerId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateVSwitchRequest::getResourceOwnerId()const
|
||||
void CreateVSwitchRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateVSwitchRequest::getResourceOwnerAccount()const
|
||||
void CreateVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getClientToken()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateVSwitchRequest::getClientToken()const
|
||||
void CreateVSwitchRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateVSwitchRequest::getOwnerAccount()const
|
||||
void CreateVSwitchRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getDescription()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateVSwitchRequest::getDescription()const
|
||||
void CreateVSwitchRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateVSwitchRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long CreateVSwitchRequest::getOwnerId()const
|
||||
void CreateVSwitchRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int CreateVSwitchRequest::getIpv6CidrBlock()const
|
||||
@@ -99,7 +99,7 @@ int CreateVSwitchRequest::getIpv6CidrBlock()const
|
||||
void CreateVSwitchRequest::setIpv6CidrBlock(int ipv6CidrBlock)
|
||||
{
|
||||
ipv6CidrBlock_ = ipv6CidrBlock;
|
||||
setParameter("Ipv6CidrBlock", std::to_string(ipv6CidrBlock));
|
||||
setCoreParameter("Ipv6CidrBlock", std::to_string(ipv6CidrBlock));
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getRegionId()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateVSwitchRequest::getRegionId()const
|
||||
void CreateVSwitchRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getVpcId()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateVSwitchRequest::getVpcId()const
|
||||
void CreateVSwitchRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getVSwitchName()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateVSwitchRequest::getVSwitchName()const
|
||||
void CreateVSwitchRequest::setVSwitchName(const std::string& vSwitchName)
|
||||
{
|
||||
vSwitchName_ = vSwitchName;
|
||||
setParameter("VSwitchName", vSwitchName);
|
||||
setCoreParameter("VSwitchName", vSwitchName);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getCidrBlock()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateVSwitchRequest::getCidrBlock()const
|
||||
void CreateVSwitchRequest::setCidrBlock(const std::string& cidrBlock)
|
||||
{
|
||||
cidrBlock_ = cidrBlock;
|
||||
setParameter("CidrBlock", cidrBlock);
|
||||
setCoreParameter("CidrBlock", cidrBlock);
|
||||
}
|
||||
|
||||
std::string CreateVSwitchRequest::getZoneId()const
|
||||
@@ -154,6 +154,6 @@ std::string CreateVSwitchRequest::getZoneId()const
|
||||
void CreateVSwitchRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateVSwitchResult::~CreateVSwitchResult()
|
||||
|
||||
void CreateVSwitchResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["VSwitchId"].isNull())
|
||||
vSwitchId_ = value["VSwitchId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateVirtualBorderRouterRequest::getResourceOwnerId()const
|
||||
void CreateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateVirtualBorderRouterRequest::getCircuitCode()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateVirtualBorderRouterRequest::getCircuitCode()const
|
||||
void CreateVirtualBorderRouterRequest::setCircuitCode(const std::string& circuitCode)
|
||||
{
|
||||
circuitCode_ = circuitCode;
|
||||
setParameter("CircuitCode", circuitCode);
|
||||
setCoreParameter("CircuitCode", circuitCode);
|
||||
}
|
||||
|
||||
int CreateVirtualBorderRouterRequest::getVlanId()const
|
||||
@@ -55,7 +55,7 @@ int CreateVirtualBorderRouterRequest::getVlanId()const
|
||||
void CreateVirtualBorderRouterRequest::setVlanId(int vlanId)
|
||||
{
|
||||
vlanId_ = vlanId;
|
||||
setParameter("VlanId", std::to_string(vlanId));
|
||||
setCoreParameter("VlanId", std::to_string(vlanId));
|
||||
}
|
||||
|
||||
std::string CreateVirtualBorderRouterRequest::getClientToken()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateVirtualBorderRouterRequest::getClientToken()const
|
||||
void CreateVirtualBorderRouterRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateVirtualBorderRouterRequest::getResourceOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateVirtualBorderRouterRequest::getResourceOwnerAccount()const
|
||||
void CreateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateVirtualBorderRouterRequest::getOwnerAccount()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateVirtualBorderRouterRequest::getOwnerAccount()const
|
||||
void CreateVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateVirtualBorderRouterRequest::getDescription()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateVirtualBorderRouterRequest::getDescription()const
|
||||
void CreateVirtualBorderRouterRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateVirtualBorderRouterRequest::getOwnerId()const
|
||||
@@ -110,7 +110,7 @@ long CreateVirtualBorderRouterRequest::getOwnerId()const
|
||||
void CreateVirtualBorderRouterRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateVirtualBorderRouterRequest::getPeerGatewayIp()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateVirtualBorderRouterRequest::getPeerGatewayIp()const
|
||||
void CreateVirtualBorderRouterRequest::setPeerGatewayIp(const std::string& peerGatewayIp)
|
||||
{
|
||||
peerGatewayIp_ = peerGatewayIp;
|
||||
setParameter("PeerGatewayIp", peerGatewayIp);
|
||||
setCoreParameter("PeerGatewayIp", peerGatewayIp);
|
||||
}
|
||||
|
||||
std::string CreateVirtualBorderRouterRequest::getPeeringSubnetMask()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateVirtualBorderRouterRequest::getPeeringSubnetMask()const
|
||||
void CreateVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask)
|
||||
{
|
||||
peeringSubnetMask_ = peeringSubnetMask;
|
||||
setParameter("PeeringSubnetMask", peeringSubnetMask);
|
||||
setCoreParameter("PeeringSubnetMask", peeringSubnetMask);
|
||||
}
|
||||
|
||||
std::string CreateVirtualBorderRouterRequest::getRegionId()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateVirtualBorderRouterRequest::getRegionId()const
|
||||
void CreateVirtualBorderRouterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateVirtualBorderRouterRequest::getPhysicalConnectionId()const
|
||||
@@ -154,7 +154,7 @@ std::string CreateVirtualBorderRouterRequest::getPhysicalConnectionId()const
|
||||
void CreateVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId)
|
||||
{
|
||||
physicalConnectionId_ = physicalConnectionId;
|
||||
setParameter("PhysicalConnectionId", physicalConnectionId);
|
||||
setCoreParameter("PhysicalConnectionId", physicalConnectionId);
|
||||
}
|
||||
|
||||
std::string CreateVirtualBorderRouterRequest::getName()const
|
||||
@@ -165,7 +165,7 @@ std::string CreateVirtualBorderRouterRequest::getName()const
|
||||
void CreateVirtualBorderRouterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateVirtualBorderRouterRequest::getLocalGatewayIp()const
|
||||
@@ -176,7 +176,7 @@ std::string CreateVirtualBorderRouterRequest::getLocalGatewayIp()const
|
||||
void CreateVirtualBorderRouterRequest::setLocalGatewayIp(const std::string& localGatewayIp)
|
||||
{
|
||||
localGatewayIp_ = localGatewayIp;
|
||||
setParameter("LocalGatewayIp", localGatewayIp);
|
||||
setCoreParameter("LocalGatewayIp", localGatewayIp);
|
||||
}
|
||||
|
||||
long CreateVirtualBorderRouterRequest::getVbrOwnerId()const
|
||||
@@ -187,6 +187,6 @@ long CreateVirtualBorderRouterRequest::getVbrOwnerId()const
|
||||
void CreateVirtualBorderRouterRequest::setVbrOwnerId(long vbrOwnerId)
|
||||
{
|
||||
vbrOwnerId_ = vbrOwnerId;
|
||||
setParameter("VbrOwnerId", std::to_string(vbrOwnerId));
|
||||
setCoreParameter("VbrOwnerId", std::to_string(vbrOwnerId));
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user