由丰鲁成发起的VPC SDK自动发布, BUILD_ID=344, 版本号:升级小版本

发布日志:
1, First release vpc for c++
This commit is contained in:
haowei.yao
2018-01-10 16:16:38 +08:00
parent 8002c9424e
commit f0067d6e87
541 changed files with 49886 additions and 2 deletions

4849
vpc/src/VpcClient.cc Normal file

File diff suppressed because it is too large Load Diff

27
vpc/src/VpcRequest.cc Normal file
View File

@@ -0,0 +1,27 @@
/*
* 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/VpcRequest.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Vpc;
VpcRequest::VpcRequest(const std::string & action) :
RpcServiceRequest("vpc", "2016-04-28", action)
{ }
VpcRequest::~VpcRequest()
{ }

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/ActivateRouterInterfaceRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
ActivateRouterInterfaceRequest::ActivateRouterInterfaceRequest() :
VpcRequest("ActivateRouterInterface")
{}
ActivateRouterInterfaceRequest::~ActivateRouterInterfaceRequest()
{}
long ActivateRouterInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ActivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ActivateRouterInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ActivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ActivateRouterInterfaceRequest::getRegionId()const
{
return regionId_;
}
void ActivateRouterInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
long ActivateRouterInterfaceRequest::getOwnerId()const
{
return ownerId_;
}
void ActivateRouterInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ActivateRouterInterfaceRequest::getRouterInterfaceId()const
{
return routerInterfaceId_;
}
void ActivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId)
{
routerInterfaceId_ = routerInterfaceId;
setParameter("RouterInterfaceId", routerInterfaceId);
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/ActivateRouterInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
ActivateRouterInterfaceResult::ActivateRouterInterfaceResult() :
ServiceResult()
{}
ActivateRouterInterfaceResult::ActivateRouterInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ActivateRouterInterfaceResult::~ActivateRouterInterfaceResult()
{}
void ActivateRouterInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,116 @@
/*
* 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/AddBandwidthPackageIpsRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AddBandwidthPackageIpsRequest::AddBandwidthPackageIpsRequest() :
VpcRequest("AddBandwidthPackageIps")
{}
AddBandwidthPackageIpsRequest::~AddBandwidthPackageIpsRequest()
{}
long AddBandwidthPackageIpsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddBandwidthPackageIpsRequest::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
void AddBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
setParameter("BandwidthPackageId", bandwidthPackageId);
}
std::string AddBandwidthPackageIpsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddBandwidthPackageIpsRequest::getRegionId()const
{
return regionId_;
}
void AddBandwidthPackageIpsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AddBandwidthPackageIpsRequest::getClientToken()const
{
return clientToken_;
}
void AddBandwidthPackageIpsRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string AddBandwidthPackageIpsRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddBandwidthPackageIpsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AddBandwidthPackageIpsRequest::getOwnerId()const
{
return ownerId_;
}
void AddBandwidthPackageIpsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddBandwidthPackageIpsRequest::getIpCount()const
{
return ipCount_;
}
void AddBandwidthPackageIpsRequest::setIpCount(const std::string& ipCount)
{
ipCount_ = ipCount;
setParameter("IpCount", ipCount);
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/AddBandwidthPackageIpsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult() :
ServiceResult()
{}
AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddBandwidthPackageIpsResult::~AddBandwidthPackageIpsResult()
{}
void AddBandwidthPackageIpsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,127 @@
/*
* 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/AddBgpNetworkRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AddBgpNetworkRequest::AddBgpNetworkRequest() :
VpcRequest("AddBgpNetwork")
{}
AddBgpNetworkRequest::~AddBgpNetworkRequest()
{}
long AddBgpNetworkRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddBgpNetworkRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddBgpNetworkRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddBgpNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddBgpNetworkRequest::getRegionId()const
{
return regionId_;
}
void AddBgpNetworkRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AddBgpNetworkRequest::getClientToken()const
{
return clientToken_;
}
void AddBgpNetworkRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string AddBgpNetworkRequest::getRouterId()const
{
return routerId_;
}
void AddBgpNetworkRequest::setRouterId(const std::string& routerId)
{
routerId_ = routerId;
setParameter("RouterId", routerId);
}
std::string AddBgpNetworkRequest::getVpcId()const
{
return vpcId_;
}
void AddBgpNetworkRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}
std::string AddBgpNetworkRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddBgpNetworkRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AddBgpNetworkRequest::getOwnerId()const
{
return ownerId_;
}
void AddBgpNetworkRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddBgpNetworkRequest::getDstCidrBlock()const
{
return dstCidrBlock_;
}
void AddBgpNetworkRequest::setDstCidrBlock(const std::string& dstCidrBlock)
{
dstCidrBlock_ = dstCidrBlock;
setParameter("DstCidrBlock", dstCidrBlock);
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/AddBgpNetworkResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AddBgpNetworkResult::AddBgpNetworkResult() :
ServiceResult()
{}
AddBgpNetworkResult::AddBgpNetworkResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddBgpNetworkResult::~AddBgpNetworkResult()
{}
void AddBgpNetworkResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,105 @@
/*
* 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/AddCommonBandwidthPackageIpRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AddCommonBandwidthPackageIpRequest::AddCommonBandwidthPackageIpRequest() :
VpcRequest("AddCommonBandwidthPackageIp")
{}
AddCommonBandwidthPackageIpRequest::~AddCommonBandwidthPackageIpRequest()
{}
long AddCommonBandwidthPackageIpRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddCommonBandwidthPackageIpRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddCommonBandwidthPackageIpRequest::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
void AddCommonBandwidthPackageIpRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
setParameter("BandwidthPackageId", bandwidthPackageId);
}
std::string AddCommonBandwidthPackageIpRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddCommonBandwidthPackageIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddCommonBandwidthPackageIpRequest::getRegionId()const
{
return regionId_;
}
void AddCommonBandwidthPackageIpRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AddCommonBandwidthPackageIpRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddCommonBandwidthPackageIpRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddCommonBandwidthPackageIpRequest::getIpInstanceId()const
{
return ipInstanceId_;
}
void AddCommonBandwidthPackageIpRequest::setIpInstanceId(const std::string& ipInstanceId)
{
ipInstanceId_ = ipInstanceId;
setParameter("IpInstanceId", ipInstanceId);
}
long AddCommonBandwidthPackageIpRequest::getOwnerId()const
{
return ownerId_;
}
void AddCommonBandwidthPackageIpRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/AddCommonBandwidthPackageIpResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AddCommonBandwidthPackageIpResult::AddCommonBandwidthPackageIpResult() :
ServiceResult()
{}
AddCommonBandwidthPackageIpResult::AddCommonBandwidthPackageIpResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddCommonBandwidthPackageIpResult::~AddCommonBandwidthPackageIpResult()
{}
void AddCommonBandwidthPackageIpResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,105 @@
/*
* 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/AddGlobalAccelerationInstanceIpRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AddGlobalAccelerationInstanceIpRequest::AddGlobalAccelerationInstanceIpRequest() :
VpcRequest("AddGlobalAccelerationInstanceIp")
{}
AddGlobalAccelerationInstanceIpRequest::~AddGlobalAccelerationInstanceIpRequest()
{}
long AddGlobalAccelerationInstanceIpRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddGlobalAccelerationInstanceIpRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddGlobalAccelerationInstanceIpRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddGlobalAccelerationInstanceIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddGlobalAccelerationInstanceIpRequest::getRegionId()const
{
return regionId_;
}
void AddGlobalAccelerationInstanceIpRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AddGlobalAccelerationInstanceIpRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddGlobalAccelerationInstanceIpRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddGlobalAccelerationInstanceIpRequest::getIpInstanceId()const
{
return ipInstanceId_;
}
void AddGlobalAccelerationInstanceIpRequest::setIpInstanceId(const std::string& ipInstanceId)
{
ipInstanceId_ = ipInstanceId;
setParameter("IpInstanceId", ipInstanceId);
}
long AddGlobalAccelerationInstanceIpRequest::getOwnerId()const
{
return ownerId_;
}
void AddGlobalAccelerationInstanceIpRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddGlobalAccelerationInstanceIpRequest::getGlobalAccelerationInstanceId()const
{
return globalAccelerationInstanceId_;
}
void AddGlobalAccelerationInstanceIpRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId)
{
globalAccelerationInstanceId_ = globalAccelerationInstanceId;
setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId);
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AddGlobalAccelerationInstanceIpResult::AddGlobalAccelerationInstanceIpResult() :
ServiceResult()
{}
AddGlobalAccelerationInstanceIpResult::AddGlobalAccelerationInstanceIpResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddGlobalAccelerationInstanceIpResult::~AddGlobalAccelerationInstanceIpResult()
{}
void AddGlobalAccelerationInstanceIpResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,182 @@
/*
* 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/AllocateEipAddressRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AllocateEipAddressRequest::AllocateEipAddressRequest() :
VpcRequest("AllocateEipAddress")
{}
AllocateEipAddressRequest::~AllocateEipAddressRequest()
{}
long AllocateEipAddressRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AllocateEipAddressRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int AllocateEipAddressRequest::getPeriod()const
{
return period_;
}
void AllocateEipAddressRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
}
bool AllocateEipAddressRequest::getAutoPay()const
{
return autoPay_;
}
void AllocateEipAddressRequest::setAutoPay(bool autoPay)
{
autoPay_ = autoPay;
setParameter("AutoPay", std::to_string(autoPay));
}
std::string AllocateEipAddressRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AllocateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AllocateEipAddressRequest::getBandwidth()const
{
return bandwidth_;
}
void AllocateEipAddressRequest::setBandwidth(const std::string& bandwidth)
{
bandwidth_ = bandwidth;
setParameter("Bandwidth", bandwidth);
}
std::string AllocateEipAddressRequest::getClientToken()const
{
return clientToken_;
}
void AllocateEipAddressRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string AllocateEipAddressRequest::getISP()const
{
return iSP_;
}
void AllocateEipAddressRequest::setISP(const std::string& iSP)
{
iSP_ = iSP;
setParameter("ISP", iSP);
}
std::string AllocateEipAddressRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AllocateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AllocateEipAddressRequest::getOwnerId()const
{
return ownerId_;
}
void AllocateEipAddressRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AllocateEipAddressRequest::getRegionId()const
{
return regionId_;
}
void AllocateEipAddressRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AllocateEipAddressRequest::getInternetChargeType()const
{
return internetChargeType_;
}
void AllocateEipAddressRequest::setInternetChargeType(const std::string& internetChargeType)
{
internetChargeType_ = internetChargeType;
setParameter("InternetChargeType", internetChargeType);
}
std::string AllocateEipAddressRequest::getNetmode()const
{
return netmode_;
}
void AllocateEipAddressRequest::setNetmode(const std::string& netmode)
{
netmode_ = netmode;
setParameter("Netmode", netmode);
}
std::string AllocateEipAddressRequest::getPricingCycle()const
{
return pricingCycle_;
}
void AllocateEipAddressRequest::setPricingCycle(const std::string& pricingCycle)
{
pricingCycle_ = pricingCycle;
setParameter("PricingCycle", pricingCycle);
}
std::string AllocateEipAddressRequest::getInstanceChargeType()const
{
return instanceChargeType_;
}
void AllocateEipAddressRequest::setInstanceChargeType(const std::string& instanceChargeType)
{
instanceChargeType_ = instanceChargeType;
setParameter("InstanceChargeType", instanceChargeType);
}

View File

@@ -0,0 +1,78 @@
/*
* 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/AllocateEipAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AllocateEipAddressResult::AllocateEipAddressResult() :
ServiceResult()
{}
AllocateEipAddressResult::AllocateEipAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AllocateEipAddressResult::~AllocateEipAddressResult()
{}
void AllocateEipAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
allocationId_ = value["AllocationId"].asString();
eipAddress_ = value["EipAddress"].asString();
orderId_ = std::stol(value["OrderId"].asString());
}
std::string AllocateEipAddressResult::getAllocationId()const
{
return allocationId_;
}
void AllocateEipAddressResult::setAllocationId(const std::string& allocationId)
{
allocationId_ = allocationId;
}
std::string AllocateEipAddressResult::getEipAddress()const
{
return eipAddress_;
}
void AllocateEipAddressResult::setEipAddress(const std::string& eipAddress)
{
eipAddress_ = eipAddress;
}
long AllocateEipAddressResult::getOrderId()const
{
return orderId_;
}
void AllocateEipAddressResult::setOrderId(long orderId)
{
orderId_ = orderId;
}

View File

@@ -0,0 +1,127 @@
/*
* 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/AssociateEipAddressRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AssociateEipAddressRequest::AssociateEipAddressRequest() :
VpcRequest("AssociateEipAddress")
{}
AssociateEipAddressRequest::~AssociateEipAddressRequest()
{}
long AssociateEipAddressRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AssociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AssociateEipAddressRequest::getInstanceId()const
{
return instanceId_;
}
void AssociateEipAddressRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AssociateEipAddressRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AssociateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AssociateEipAddressRequest::getRegionId()const
{
return regionId_;
}
void AssociateEipAddressRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AssociateEipAddressRequest::getInstanceRegionId()const
{
return instanceRegionId_;
}
void AssociateEipAddressRequest::setInstanceRegionId(const std::string& instanceRegionId)
{
instanceRegionId_ = instanceRegionId;
setParameter("InstanceRegionId", instanceRegionId);
}
std::string AssociateEipAddressRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AssociateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AssociateEipAddressRequest::getInstanceType()const
{
return instanceType_;
}
void AssociateEipAddressRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
}
std::string AssociateEipAddressRequest::getAllocationId()const
{
return allocationId_;
}
void AssociateEipAddressRequest::setAllocationId(const std::string& allocationId)
{
allocationId_ = allocationId;
setParameter("AllocationId", allocationId);
}
long AssociateEipAddressRequest::getOwnerId()const
{
return ownerId_;
}
void AssociateEipAddressRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/AssociateEipAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AssociateEipAddressResult::AssociateEipAddressResult() :
ServiceResult()
{}
AssociateEipAddressResult::AssociateEipAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssociateEipAddressResult::~AssociateEipAddressResult()
{}
void AssociateEipAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,127 @@
/*
* 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/AssociateGlobalAccelerationInstanceRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AssociateGlobalAccelerationInstanceRequest::AssociateGlobalAccelerationInstanceRequest() :
VpcRequest("AssociateGlobalAccelerationInstance")
{}
AssociateGlobalAccelerationInstanceRequest::~AssociateGlobalAccelerationInstanceRequest()
{}
long AssociateGlobalAccelerationInstanceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AssociateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AssociateGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AssociateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AssociateGlobalAccelerationInstanceRequest::getRegionId()const
{
return regionId_;
}
void AssociateGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AssociateGlobalAccelerationInstanceRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AssociateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerId()const
{
return backendServerId_;
}
void AssociateGlobalAccelerationInstanceRequest::setBackendServerId(const std::string& backendServerId)
{
backendServerId_ = backendServerId;
setParameter("BackendServerId", backendServerId);
}
long AssociateGlobalAccelerationInstanceRequest::getOwnerId()const
{
return ownerId_;
}
void AssociateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AssociateGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId()const
{
return globalAccelerationInstanceId_;
}
void AssociateGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId)
{
globalAccelerationInstanceId_ = globalAccelerationInstanceId;
setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId);
}
std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerRegionId()const
{
return backendServerRegionId_;
}
void AssociateGlobalAccelerationInstanceRequest::setBackendServerRegionId(const std::string& backendServerRegionId)
{
backendServerRegionId_ = backendServerRegionId;
setParameter("BackendServerRegionId", backendServerRegionId);
}
std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerType()const
{
return backendServerType_;
}
void AssociateGlobalAccelerationInstanceRequest::setBackendServerType(const std::string& backendServerType)
{
backendServerType_ = backendServerType;
setParameter("BackendServerType", backendServerType);
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AssociateGlobalAccelerationInstanceResult::AssociateGlobalAccelerationInstanceResult() :
ServiceResult()
{}
AssociateGlobalAccelerationInstanceResult::AssociateGlobalAccelerationInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssociateGlobalAccelerationInstanceResult::~AssociateGlobalAccelerationInstanceResult()
{}
void AssociateGlobalAccelerationInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,116 @@
/*
* 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/AssociateHaVipRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AssociateHaVipRequest::AssociateHaVipRequest() :
VpcRequest("AssociateHaVip")
{}
AssociateHaVipRequest::~AssociateHaVipRequest()
{}
std::string AssociateHaVipRequest::getHaVipId()const
{
return haVipId_;
}
void AssociateHaVipRequest::setHaVipId(const std::string& haVipId)
{
haVipId_ = haVipId;
setParameter("HaVipId", haVipId);
}
long AssociateHaVipRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AssociateHaVipRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AssociateHaVipRequest::getInstanceId()const
{
return instanceId_;
}
void AssociateHaVipRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AssociateHaVipRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AssociateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AssociateHaVipRequest::getClientToken()const
{
return clientToken_;
}
void AssociateHaVipRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string AssociateHaVipRequest::getRegionId()const
{
return regionId_;
}
void AssociateHaVipRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AssociateHaVipRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AssociateHaVipRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AssociateHaVipRequest::getOwnerId()const
{
return ownerId_;
}
void AssociateHaVipRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/AssociateHaVipResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AssociateHaVipResult::AssociateHaVipResult() :
ServiceResult()
{}
AssociateHaVipResult::AssociateHaVipResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssociateHaVipResult::~AssociateHaVipResult()
{}
void AssociateHaVipResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,171 @@
/*
* 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/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AssociatePhysicalConnectionToVirtualBorderRouterRequest::AssociatePhysicalConnectionToVirtualBorderRouterRequest() :
VpcRequest("AssociatePhysicalConnectionToVirtualBorderRouter")
{}
AssociatePhysicalConnectionToVirtualBorderRouterRequest::~AssociatePhysicalConnectionToVirtualBorderRouterRequest()
{}
long AssociatePhysicalConnectionToVirtualBorderRouterRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getCircuitCode()const
{
return circuitCode_;
}
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setCircuitCode(const std::string& circuitCode)
{
circuitCode_ = circuitCode;
setParameter("CircuitCode", circuitCode);
}
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVlanId()const
{
return vlanId_;
}
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setVlanId(const std::string& vlanId)
{
vlanId_ = vlanId;
setParameter("VlanId", vlanId);
}
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getClientToken()const
{
return clientToken_;
}
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVbrId()const
{
return vbrId_;
}
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setVbrId(const std::string& vbrId)
{
vbrId_ = vbrId;
setParameter("VbrId", vbrId);
}
long AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerId()const
{
return ownerId_;
}
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeerGatewayIp()const
{
return peerGatewayIp_;
}
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeerGatewayIp(const std::string& peerGatewayIp)
{
peerGatewayIp_ = peerGatewayIp;
setParameter("PeerGatewayIp", peerGatewayIp);
}
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeeringSubnetMask()const
{
return peeringSubnetMask_;
}
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask)
{
peeringSubnetMask_ = peeringSubnetMask;
setParameter("PeeringSubnetMask", peeringSubnetMask);
}
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getRegionId()const
{
return regionId_;
}
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPhysicalConnectionId()const
{
return physicalConnectionId_;
}
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId)
{
physicalConnectionId_ = physicalConnectionId;
setParameter("PhysicalConnectionId", physicalConnectionId);
}
std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getLocalGatewayIp()const
{
return localGatewayIp_;
}
void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setLocalGatewayIp(const std::string& localGatewayIp)
{
localGatewayIp_ = localGatewayIp;
setParameter("LocalGatewayIp", localGatewayIp);
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
AssociatePhysicalConnectionToVirtualBorderRouterResult::AssociatePhysicalConnectionToVirtualBorderRouterResult() :
ServiceResult()
{}
AssociatePhysicalConnectionToVirtualBorderRouterResult::AssociatePhysicalConnectionToVirtualBorderRouterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssociatePhysicalConnectionToVirtualBorderRouterResult::~AssociatePhysicalConnectionToVirtualBorderRouterResult()
{}
void AssociatePhysicalConnectionToVirtualBorderRouterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,105 @@
/*
* 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/CancelPhysicalConnectionRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CancelPhysicalConnectionRequest::CancelPhysicalConnectionRequest() :
VpcRequest("CancelPhysicalConnection")
{}
CancelPhysicalConnectionRequest::~CancelPhysicalConnectionRequest()
{}
long CancelPhysicalConnectionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CancelPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CancelPhysicalConnectionRequest::getRegionId()const
{
return regionId_;
}
void CancelPhysicalConnectionRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CancelPhysicalConnectionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CancelPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CancelPhysicalConnectionRequest::getClientToken()const
{
return clientToken_;
}
void CancelPhysicalConnectionRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CancelPhysicalConnectionRequest::getPhysicalConnectionId()const
{
return physicalConnectionId_;
}
void CancelPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId)
{
physicalConnectionId_ = physicalConnectionId;
setParameter("PhysicalConnectionId", physicalConnectionId);
}
std::string CancelPhysicalConnectionRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CancelPhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long CancelPhysicalConnectionRequest::getOwnerId()const
{
return ownerId_;
}
void CancelPhysicalConnectionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/CancelPhysicalConnectionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CancelPhysicalConnectionResult::CancelPhysicalConnectionResult() :
ServiceResult()
{}
CancelPhysicalConnectionResult::CancelPhysicalConnectionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelPhysicalConnectionResult::~CancelPhysicalConnectionResult()
{}
void CancelPhysicalConnectionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/ConnectRouterInterfaceRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
ConnectRouterInterfaceRequest::ConnectRouterInterfaceRequest() :
VpcRequest("ConnectRouterInterface")
{}
ConnectRouterInterfaceRequest::~ConnectRouterInterfaceRequest()
{}
long ConnectRouterInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ConnectRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ConnectRouterInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ConnectRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ConnectRouterInterfaceRequest::getRegionId()const
{
return regionId_;
}
void ConnectRouterInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
long ConnectRouterInterfaceRequest::getOwnerId()const
{
return ownerId_;
}
void ConnectRouterInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ConnectRouterInterfaceRequest::getRouterInterfaceId()const
{
return routerInterfaceId_;
}
void ConnectRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId)
{
routerInterfaceId_ = routerInterfaceId;
setParameter("RouterInterfaceId", routerInterfaceId);
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/ConnectRouterInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
ConnectRouterInterfaceResult::ConnectRouterInterfaceResult() :
ServiceResult()
{}
ConnectRouterInterfaceResult::ConnectRouterInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConnectRouterInterfaceResult::~ConnectRouterInterfaceResult()
{}
void ConnectRouterInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,182 @@
/*
* 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/CreateBandwidthPackageRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateBandwidthPackageRequest::CreateBandwidthPackageRequest() :
VpcRequest("CreateBandwidthPackage")
{}
CreateBandwidthPackageRequest::~CreateBandwidthPackageRequest()
{}
long CreateBandwidthPackageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateBandwidthPackageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateBandwidthPackageRequest::getClientToken()const
{
return clientToken_;
}
void CreateBandwidthPackageRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
int CreateBandwidthPackageRequest::getBandwidth()const
{
return bandwidth_;
}
void CreateBandwidthPackageRequest::setBandwidth(int bandwidth)
{
bandwidth_ = bandwidth;
setParameter("Bandwidth", std::to_string(bandwidth));
}
std::string CreateBandwidthPackageRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateBandwidthPackageRequest::getISP()const
{
return iSP_;
}
void CreateBandwidthPackageRequest::setISP(const std::string& iSP)
{
iSP_ = iSP;
setParameter("ISP", iSP);
}
std::string CreateBandwidthPackageRequest::getDescription()const
{
return description_;
}
void CreateBandwidthPackageRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateBandwidthPackageRequest::getOwnerId()const
{
return ownerId_;
}
void CreateBandwidthPackageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateBandwidthPackageRequest::getRegionId()const
{
return regionId_;
}
void CreateBandwidthPackageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateBandwidthPackageRequest::getZone()const
{
return zone_;
}
void CreateBandwidthPackageRequest::setZone(const std::string& zone)
{
zone_ = zone;
setParameter("Zone", zone);
}
std::string CreateBandwidthPackageRequest::getInternetChargeType()const
{
return internetChargeType_;
}
void CreateBandwidthPackageRequest::setInternetChargeType(const std::string& internetChargeType)
{
internetChargeType_ = internetChargeType;
setParameter("InternetChargeType", internetChargeType);
}
std::string CreateBandwidthPackageRequest::getName()const
{
return name_;
}
void CreateBandwidthPackageRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateBandwidthPackageRequest::getNatGatewayId()const
{
return natGatewayId_;
}
void CreateBandwidthPackageRequest::setNatGatewayId(const std::string& natGatewayId)
{
natGatewayId_ = natGatewayId;
setParameter("NatGatewayId", natGatewayId);
}
int CreateBandwidthPackageRequest::getIpCount()const
{
return ipCount_;
}
void CreateBandwidthPackageRequest::setIpCount(int ipCount)
{
ipCount_ = ipCount;
setParameter("IpCount", std::to_string(ipCount));
}

View File

@@ -0,0 +1,56 @@
/*
* 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/CreateBandwidthPackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateBandwidthPackageResult::CreateBandwidthPackageResult() :
ServiceResult()
{}
CreateBandwidthPackageResult::CreateBandwidthPackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateBandwidthPackageResult::~CreateBandwidthPackageResult()
{}
void CreateBandwidthPackageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
bandwidthPackageId_ = value["BandwidthPackageId"].asString();
}
std::string CreateBandwidthPackageResult::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
void CreateBandwidthPackageResult::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
}

View File

@@ -0,0 +1,160 @@
/*
* 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/CreateBgpGroupRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateBgpGroupRequest::CreateBgpGroupRequest() :
VpcRequest("CreateBgpGroup")
{}
CreateBgpGroupRequest::~CreateBgpGroupRequest()
{}
std::string CreateBgpGroupRequest::getAuthKey()const
{
return authKey_;
}
void CreateBgpGroupRequest::setAuthKey(const std::string& authKey)
{
authKey_ = authKey;
setParameter("AuthKey", authKey);
}
long CreateBgpGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateBgpGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateBgpGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateBgpGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateBgpGroupRequest::getClientToken()const
{
return clientToken_;
}
void CreateBgpGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateBgpGroupRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateBgpGroupRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateBgpGroupRequest::getDescription()const
{
return description_;
}
void CreateBgpGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateBgpGroupRequest::getOwnerId()const
{
return ownerId_;
}
void CreateBgpGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long CreateBgpGroupRequest::getPeerAsn()const
{
return peerAsn_;
}
void CreateBgpGroupRequest::setPeerAsn(long peerAsn)
{
peerAsn_ = peerAsn;
setParameter("PeerAsn", std::to_string(peerAsn));
}
bool CreateBgpGroupRequest::getIsFakeAsn()const
{
return isFakeAsn_;
}
void CreateBgpGroupRequest::setIsFakeAsn(bool isFakeAsn)
{
isFakeAsn_ = isFakeAsn;
setParameter("IsFakeAsn", std::to_string(isFakeAsn));
}
std::string CreateBgpGroupRequest::getRegionId()const
{
return regionId_;
}
void CreateBgpGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateBgpGroupRequest::getRouterId()const
{
return routerId_;
}
void CreateBgpGroupRequest::setRouterId(const std::string& routerId)
{
routerId_ = routerId;
setParameter("RouterId", routerId);
}
std::string CreateBgpGroupRequest::getName()const
{
return name_;
}
void CreateBgpGroupRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,56 @@
/*
* 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/CreateBgpGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateBgpGroupResult::CreateBgpGroupResult() :
ServiceResult()
{}
CreateBgpGroupResult::CreateBgpGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateBgpGroupResult::~CreateBgpGroupResult()
{}
void CreateBgpGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
bgpGroupId_ = value["BgpGroupId"].asString();
}
std::string CreateBgpGroupResult::getBgpGroupId()const
{
return bgpGroupId_;
}
void CreateBgpGroupResult::setBgpGroupId(const std::string& bgpGroupId)
{
bgpGroupId_ = bgpGroupId;
}

View File

@@ -0,0 +1,116 @@
/*
* 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/CreateBgpPeerRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateBgpPeerRequest::CreateBgpPeerRequest() :
VpcRequest("CreateBgpPeer")
{}
CreateBgpPeerRequest::~CreateBgpPeerRequest()
{}
long CreateBgpPeerRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateBgpPeerRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateBgpPeerRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateBgpPeerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateBgpPeerRequest::getRegionId()const
{
return regionId_;
}
void CreateBgpPeerRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateBgpPeerRequest::getClientToken()const
{
return clientToken_;
}
void CreateBgpPeerRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateBgpPeerRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateBgpPeerRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateBgpPeerRequest::getBgpGroupId()const
{
return bgpGroupId_;
}
void CreateBgpPeerRequest::setBgpGroupId(const std::string& bgpGroupId)
{
bgpGroupId_ = bgpGroupId;
setParameter("BgpGroupId", bgpGroupId);
}
long CreateBgpPeerRequest::getOwnerId()const
{
return ownerId_;
}
void CreateBgpPeerRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateBgpPeerRequest::getPeerIpAddress()const
{
return peerIpAddress_;
}
void CreateBgpPeerRequest::setPeerIpAddress(const std::string& peerIpAddress)
{
peerIpAddress_ = peerIpAddress;
setParameter("PeerIpAddress", peerIpAddress);
}

View File

@@ -0,0 +1,56 @@
/*
* 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/CreateBgpPeerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateBgpPeerResult::CreateBgpPeerResult() :
ServiceResult()
{}
CreateBgpPeerResult::CreateBgpPeerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateBgpPeerResult::~CreateBgpPeerResult()
{}
void CreateBgpPeerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
bgpPeerId_ = value["BgpPeerId"].asString();
}
std::string CreateBgpPeerResult::getBgpPeerId()const
{
return bgpPeerId_;
}
void CreateBgpPeerResult::setBgpPeerId(const std::string& bgpPeerId)
{
bgpPeerId_ = bgpPeerId;
}

View File

@@ -0,0 +1,149 @@
/*
* 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/CreateCommonBandwidthPackageRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateCommonBandwidthPackageRequest::CreateCommonBandwidthPackageRequest() :
VpcRequest("CreateCommonBandwidthPackage")
{}
CreateCommonBandwidthPackageRequest::~CreateCommonBandwidthPackageRequest()
{}
long CreateCommonBandwidthPackageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateCommonBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateCommonBandwidthPackageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateCommonBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateCommonBandwidthPackageRequest::getRegionId()const
{
return regionId_;
}
void CreateCommonBandwidthPackageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateCommonBandwidthPackageRequest::getClientToken()const
{
return clientToken_;
}
void CreateCommonBandwidthPackageRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
int CreateCommonBandwidthPackageRequest::getBandwidth()const
{
return bandwidth_;
}
void CreateCommonBandwidthPackageRequest::setBandwidth(int bandwidth)
{
bandwidth_ = bandwidth;
setParameter("Bandwidth", std::to_string(bandwidth));
}
std::string CreateCommonBandwidthPackageRequest::getInternetChargeType()const
{
return internetChargeType_;
}
void CreateCommonBandwidthPackageRequest::setInternetChargeType(const std::string& internetChargeType)
{
internetChargeType_ = internetChargeType;
setParameter("InternetChargeType", internetChargeType);
}
std::string CreateCommonBandwidthPackageRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateCommonBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateCommonBandwidthPackageRequest::getName()const
{
return name_;
}
void CreateCommonBandwidthPackageRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateCommonBandwidthPackageRequest::getDescription()const
{
return description_;
}
void CreateCommonBandwidthPackageRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateCommonBandwidthPackageRequest::getOwnerId()const
{
return ownerId_;
}
void CreateCommonBandwidthPackageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int CreateCommonBandwidthPackageRequest::getRatio()const
{
return ratio_;
}
void CreateCommonBandwidthPackageRequest::setRatio(int ratio)
{
ratio_ = ratio;
setParameter("Ratio", std::to_string(ratio));
}

View File

@@ -0,0 +1,56 @@
/*
* 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/CreateCommonBandwidthPackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateCommonBandwidthPackageResult::CreateCommonBandwidthPackageResult() :
ServiceResult()
{}
CreateCommonBandwidthPackageResult::CreateCommonBandwidthPackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateCommonBandwidthPackageResult::~CreateCommonBandwidthPackageResult()
{}
void CreateCommonBandwidthPackageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
bandwidthPackageId_ = value["BandwidthPackageId"].asString();
}
std::string CreateCommonBandwidthPackageResult::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
void CreateCommonBandwidthPackageResult::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
}

View File

@@ -0,0 +1,127 @@
/*
* 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/CreateCustomerGatewayRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateCustomerGatewayRequest::CreateCustomerGatewayRequest() :
VpcRequest("CreateCustomerGateway")
{}
CreateCustomerGatewayRequest::~CreateCustomerGatewayRequest()
{}
std::string CreateCustomerGatewayRequest::getIpAddress()const
{
return ipAddress_;
}
void CreateCustomerGatewayRequest::setIpAddress(const std::string& ipAddress)
{
ipAddress_ = ipAddress;
setParameter("IpAddress", ipAddress);
}
long CreateCustomerGatewayRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateCustomerGatewayRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateCustomerGatewayRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateCustomerGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateCustomerGatewayRequest::getRegionId()const
{
return regionId_;
}
void CreateCustomerGatewayRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateCustomerGatewayRequest::getClientToken()const
{
return clientToken_;
}
void CreateCustomerGatewayRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateCustomerGatewayRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateCustomerGatewayRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateCustomerGatewayRequest::getName()const
{
return name_;
}
void CreateCustomerGatewayRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateCustomerGatewayRequest::getDescription()const
{
return description_;
}
void CreateCustomerGatewayRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateCustomerGatewayRequest::getOwnerId()const
{
return ownerId_;
}
void CreateCustomerGatewayRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,100 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/CreateCustomerGatewayResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateCustomerGatewayResult::CreateCustomerGatewayResult() :
ServiceResult()
{}
CreateCustomerGatewayResult::CreateCustomerGatewayResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateCustomerGatewayResult::~CreateCustomerGatewayResult()
{}
void CreateCustomerGatewayResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
customerGatewayId_ = value["CustomerGatewayId"].asString();
ipAddress_ = value["IpAddress"].asString();
name_ = value["Name"].asString();
description_ = value["Description"].asString();
createTime_ = std::stol(value["CreateTime"].asString());
}
std::string CreateCustomerGatewayResult::getDescription()const
{
return description_;
}
void CreateCustomerGatewayResult::setDescription(const std::string& description)
{
description_ = description;
}
std::string CreateCustomerGatewayResult::getCustomerGatewayId()const
{
return customerGatewayId_;
}
void CreateCustomerGatewayResult::setCustomerGatewayId(const std::string& customerGatewayId)
{
customerGatewayId_ = customerGatewayId;
}
long CreateCustomerGatewayResult::getCreateTime()const
{
return createTime_;
}
void CreateCustomerGatewayResult::setCreateTime(long createTime)
{
createTime_ = createTime;
}
std::string CreateCustomerGatewayResult::getIpAddress()const
{
return ipAddress_;
}
void CreateCustomerGatewayResult::setIpAddress(const std::string& ipAddress)
{
ipAddress_ = ipAddress;
}
std::string CreateCustomerGatewayResult::getName()const
{
return name_;
}
void CreateCustomerGatewayResult::setName(const std::string& name)
{
name_ = name;
}

View File

@@ -0,0 +1,149 @@
/*
* 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/CreateForwardEntryRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateForwardEntryRequest::CreateForwardEntryRequest() :
VpcRequest("CreateForwardEntry")
{}
CreateForwardEntryRequest::~CreateForwardEntryRequest()
{}
long CreateForwardEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateForwardEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateForwardEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateForwardEntryRequest::getRegionId()const
{
return regionId_;
}
void CreateForwardEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateForwardEntryRequest::getIpProtocol()const
{
return ipProtocol_;
}
void CreateForwardEntryRequest::setIpProtocol(const std::string& ipProtocol)
{
ipProtocol_ = ipProtocol;
setParameter("IpProtocol", ipProtocol);
}
std::string CreateForwardEntryRequest::getInternalPort()const
{
return internalPort_;
}
void CreateForwardEntryRequest::setInternalPort(const std::string& internalPort)
{
internalPort_ = internalPort;
setParameter("InternalPort", internalPort);
}
std::string CreateForwardEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateForwardEntryRequest::getForwardTableId()const
{
return forwardTableId_;
}
void CreateForwardEntryRequest::setForwardTableId(const std::string& forwardTableId)
{
forwardTableId_ = forwardTableId;
setParameter("ForwardTableId", forwardTableId);
}
long CreateForwardEntryRequest::getOwnerId()const
{
return ownerId_;
}
void CreateForwardEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateForwardEntryRequest::getExternalIp()const
{
return externalIp_;
}
void CreateForwardEntryRequest::setExternalIp(const std::string& externalIp)
{
externalIp_ = externalIp;
setParameter("ExternalIp", externalIp);
}
std::string CreateForwardEntryRequest::getExternalPort()const
{
return externalPort_;
}
void CreateForwardEntryRequest::setExternalPort(const std::string& externalPort)
{
externalPort_ = externalPort;
setParameter("ExternalPort", externalPort);
}
std::string CreateForwardEntryRequest::getInternalIp()const
{
return internalIp_;
}
void CreateForwardEntryRequest::setInternalIp(const std::string& internalIp)
{
internalIp_ = internalIp;
setParameter("InternalIp", internalIp);
}

View File

@@ -0,0 +1,56 @@
/*
* 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/CreateForwardEntryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateForwardEntryResult::CreateForwardEntryResult() :
ServiceResult()
{}
CreateForwardEntryResult::CreateForwardEntryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateForwardEntryResult::~CreateForwardEntryResult()
{}
void CreateForwardEntryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
forwardEntryId_ = value["ForwardEntryId"].asString();
}
std::string CreateForwardEntryResult::getForwardEntryId()const
{
return forwardEntryId_;
}
void CreateForwardEntryResult::setForwardEntryId(const std::string& forwardEntryId)
{
forwardEntryId_ = forwardEntryId;
}

View File

@@ -0,0 +1,160 @@
/*
* 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/CreateGlobalAccelerationInstanceRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateGlobalAccelerationInstanceRequest::CreateGlobalAccelerationInstanceRequest() :
VpcRequest("CreateGlobalAccelerationInstance")
{}
CreateGlobalAccelerationInstanceRequest::~CreateGlobalAccelerationInstanceRequest()
{}
long CreateGlobalAccelerationInstanceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateGlobalAccelerationInstanceRequest::getBandwidthType()const
{
return bandwidthType_;
}
void CreateGlobalAccelerationInstanceRequest::setBandwidthType(const std::string& bandwidthType)
{
bandwidthType_ = bandwidthType;
setParameter("BandwidthType", bandwidthType);
}
std::string CreateGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateGlobalAccelerationInstanceRequest::getServiceLocation()const
{
return serviceLocation_;
}
void CreateGlobalAccelerationInstanceRequest::setServiceLocation(const std::string& serviceLocation)
{
serviceLocation_ = serviceLocation;
setParameter("ServiceLocation", serviceLocation);
}
std::string CreateGlobalAccelerationInstanceRequest::getBandwidth()const
{
return bandwidth_;
}
void CreateGlobalAccelerationInstanceRequest::setBandwidth(const std::string& bandwidth)
{
bandwidth_ = bandwidth;
setParameter("Bandwidth", bandwidth);
}
std::string CreateGlobalAccelerationInstanceRequest::getClientToken()const
{
return clientToken_;
}
void CreateGlobalAccelerationInstanceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateGlobalAccelerationInstanceRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateGlobalAccelerationInstanceRequest::getDescription()const
{
return description_;
}
void CreateGlobalAccelerationInstanceRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateGlobalAccelerationInstanceRequest::getOwnerId()const
{
return ownerId_;
}
void CreateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateGlobalAccelerationInstanceRequest::getRegionId()const
{
return regionId_;
}
void CreateGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateGlobalAccelerationInstanceRequest::getInternetChargeType()const
{
return internetChargeType_;
}
void CreateGlobalAccelerationInstanceRequest::setInternetChargeType(const std::string& internetChargeType)
{
internetChargeType_ = internetChargeType;
setParameter("InternetChargeType", internetChargeType);
}
std::string CreateGlobalAccelerationInstanceRequest::getName()const
{
return name_;
}
void CreateGlobalAccelerationInstanceRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,67 @@
/*
* 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/CreateGlobalAccelerationInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateGlobalAccelerationInstanceResult::CreateGlobalAccelerationInstanceResult() :
ServiceResult()
{}
CreateGlobalAccelerationInstanceResult::CreateGlobalAccelerationInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateGlobalAccelerationInstanceResult::~CreateGlobalAccelerationInstanceResult()
{}
void CreateGlobalAccelerationInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
globalAccelerationInstanceId_ = value["GlobalAccelerationInstanceId"].asString();
ipAddress_ = value["IpAddress"].asString();
}
std::string CreateGlobalAccelerationInstanceResult::getIpAddress()const
{
return ipAddress_;
}
void CreateGlobalAccelerationInstanceResult::setIpAddress(const std::string& ipAddress)
{
ipAddress_ = ipAddress;
}
std::string CreateGlobalAccelerationInstanceResult::getGlobalAccelerationInstanceId()const
{
return globalAccelerationInstanceId_;
}
void CreateGlobalAccelerationInstanceResult::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId)
{
globalAccelerationInstanceId_ = globalAccelerationInstanceId;
}

View File

@@ -0,0 +1,127 @@
/*
* 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/CreateHaVipRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateHaVipRequest::CreateHaVipRequest() :
VpcRequest("CreateHaVip")
{}
CreateHaVipRequest::~CreateHaVipRequest()
{}
std::string CreateHaVipRequest::getVSwitchId()const
{
return vSwitchId_;
}
void CreateHaVipRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
std::string CreateHaVipRequest::getIpAddress()const
{
return ipAddress_;
}
void CreateHaVipRequest::setIpAddress(const std::string& ipAddress)
{
ipAddress_ = ipAddress;
setParameter("IpAddress", ipAddress);
}
long CreateHaVipRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateHaVipRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateHaVipRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateHaVipRequest::getClientToken()const
{
return clientToken_;
}
void CreateHaVipRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateHaVipRequest::getRegionId()const
{
return regionId_;
}
void CreateHaVipRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateHaVipRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateHaVipRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateHaVipRequest::getDescription()const
{
return description_;
}
void CreateHaVipRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateHaVipRequest::getOwnerId()const
{
return ownerId_;
}
void CreateHaVipRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,56 @@
/*
* 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/CreateHaVipResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateHaVipResult::CreateHaVipResult() :
ServiceResult()
{}
CreateHaVipResult::CreateHaVipResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateHaVipResult::~CreateHaVipResult()
{}
void CreateHaVipResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
haVipId_ = value["HaVipId"].asString();
}
std::string CreateHaVipResult::getHaVipId()const
{
return haVipId_;
}
void CreateHaVipResult::setHaVipId(const std::string& haVipId)
{
haVipId_ = haVipId;
}

View File

@@ -0,0 +1,158 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/CreateNatGatewayRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateNatGatewayRequest::CreateNatGatewayRequest() :
VpcRequest("CreateNatGateway")
{}
CreateNatGatewayRequest::~CreateNatGatewayRequest()
{}
long CreateNatGatewayRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateNatGatewayRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateNatGatewayRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateNatGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateNatGatewayRequest::getRegionId()const
{
return regionId_;
}
void CreateNatGatewayRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateNatGatewayRequest::getClientToken()const
{
return clientToken_;
}
void CreateNatGatewayRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateNatGatewayRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateNatGatewayRequest::getVpcId()const
{
return vpcId_;
}
void CreateNatGatewayRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}
std::string CreateNatGatewayRequest::getName()const
{
return name_;
}
void CreateNatGatewayRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateNatGatewayRequest::getDescription()const
{
return description_;
}
void CreateNatGatewayRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateNatGatewayRequest::getOwnerId()const
{
return ownerId_;
}
void CreateNatGatewayRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::vector<CreateNatGatewayRequest::BandwidthPackage> CreateNatGatewayRequest::getBandwidthPackage()const
{
return bandwidthPackage_;
}
void CreateNatGatewayRequest::setBandwidthPackage(const std::vector<BandwidthPackage>& bandwidthPackage)
{
bandwidthPackage_ = bandwidthPackage;
int i = 0;
for(int i = 0; i!= bandwidthPackage.size(); i++) {
auto obj = bandwidthPackage.at(i);
std::string str ="BandwidthPackage."+ std::to_string(i);
setParameter(str + ".IpCount", std::to_string(obj.ipCount));
setParameter(str + ".Bandwidth", std::to_string(obj.bandwidth));
setParameter(str + ".Zone", obj.zone);
setParameter(str + ".ISP", obj.iSP);
setParameter(str + ".InternetChargeType", obj.internetChargeType);
}
}
std::string CreateNatGatewayRequest::getSpec()const
{
return spec_;
}
void CreateNatGatewayRequest::setSpec(const std::string& spec)
{
spec_ = spec;
setParameter("Spec", spec);
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/CreateNatGatewayResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateNatGatewayResult::CreateNatGatewayResult() :
ServiceResult()
{}
CreateNatGatewayResult::CreateNatGatewayResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNatGatewayResult::~CreateNatGatewayResult()
{}
void CreateNatGatewayResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"];
for (const auto &item : allForwardTableIds)
forwardTableIds_.push_back(item.asString());
auto allSnatTableIds = value["SnatTableIds"]["SnatTableId"];
for (const auto &item : allSnatTableIds)
snatTableIds_.push_back(item.asString());
auto allBandwidthPackageIds = value["BandwidthPackageIds"]["BandwidthPackageId"];
for (const auto &item : allBandwidthPackageIds)
bandwidthPackageIds_.push_back(item.asString());
natGatewayId_ = value["NatGatewayId"].asString();
}
std::vector<std::string> CreateNatGatewayResult::getSnatTableIds()const
{
return snatTableIds_;
}
void CreateNatGatewayResult::setSnatTableIds(const std::vector<std::string>& snatTableIds)
{
snatTableIds_ = snatTableIds;
}
std::vector<std::string> CreateNatGatewayResult::getForwardTableIds()const
{
return forwardTableIds_;
}
void CreateNatGatewayResult::setForwardTableIds(const std::vector<std::string>& forwardTableIds)
{
forwardTableIds_ = forwardTableIds;
}
std::vector<std::string> CreateNatGatewayResult::getBandwidthPackageIds()const
{
return bandwidthPackageIds_;
}
void CreateNatGatewayResult::setBandwidthPackageIds(const std::vector<std::string>& bandwidthPackageIds)
{
bandwidthPackageIds_ = bandwidthPackageIds;
}
std::string CreateNatGatewayResult::getNatGatewayId()const
{
return natGatewayId_;
}
void CreateNatGatewayResult::setNatGatewayId(const std::string& natGatewayId)
{
natGatewayId_ = natGatewayId;
}

View File

@@ -0,0 +1,116 @@
/*
* 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/CreateNqaRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateNqaRequest::CreateNqaRequest() :
VpcRequest("CreateNqa")
{}
CreateNqaRequest::~CreateNqaRequest()
{}
std::string CreateNqaRequest::getDestinationIp()const
{
return destinationIp_;
}
void CreateNqaRequest::setDestinationIp(const std::string& destinationIp)
{
destinationIp_ = destinationIp;
setParameter("DestinationIp", destinationIp);
}
long CreateNqaRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateNqaRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateNqaRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateNqaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateNqaRequest::getRegionId()const
{
return regionId_;
}
void CreateNqaRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateNqaRequest::getClientToken()const
{
return clientToken_;
}
void CreateNqaRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateNqaRequest::getRouterId()const
{
return routerId_;
}
void CreateNqaRequest::setRouterId(const std::string& routerId)
{
routerId_ = routerId;
setParameter("RouterId", routerId);
}
std::string CreateNqaRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateNqaRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long CreateNqaRequest::getOwnerId()const
{
return ownerId_;
}
void CreateNqaRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,56 @@
/*
* 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/CreateNqaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateNqaResult::CreateNqaResult() :
ServiceResult()
{}
CreateNqaResult::CreateNqaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNqaResult::~CreateNqaResult()
{}
void CreateNqaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
nqaId_ = value["NqaId"].asString();
}
std::string CreateNqaResult::getNqaId()const
{
return nqaId_;
}
void CreateNqaResult::setNqaId(const std::string& nqaId)
{
nqaId_ = nqaId;
}

View File

@@ -0,0 +1,226 @@
/*
* 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/CreatePhysicalConnectionNewRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreatePhysicalConnectionNewRequest::CreatePhysicalConnectionNewRequest() :
VpcRequest("CreatePhysicalConnectionNew")
{}
CreatePhysicalConnectionNewRequest::~CreatePhysicalConnectionNewRequest()
{}
std::string CreatePhysicalConnectionNewRequest::getAccessPointId()const
{
return accessPointId_;
}
void CreatePhysicalConnectionNewRequest::setAccessPointId(const std::string& accessPointId)
{
accessPointId_ = accessPointId;
setParameter("AccessPointId", accessPointId);
}
std::string CreatePhysicalConnectionNewRequest::getRedundantPhysicalConnectionId()const
{
return redundantPhysicalConnectionId_;
}
void CreatePhysicalConnectionNewRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId)
{
redundantPhysicalConnectionId_ = redundantPhysicalConnectionId;
setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId);
}
std::string CreatePhysicalConnectionNewRequest::getPeerLocation()const
{
return peerLocation_;
}
void CreatePhysicalConnectionNewRequest::setPeerLocation(const std::string& peerLocation)
{
peerLocation_ = peerLocation;
setParameter("PeerLocation", peerLocation);
}
long CreatePhysicalConnectionNewRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreatePhysicalConnectionNewRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreatePhysicalConnectionNewRequest::getPortType()const
{
return portType_;
}
void CreatePhysicalConnectionNewRequest::setPortType(const std::string& portType)
{
portType_ = portType;
setParameter("PortType", portType);
}
std::string CreatePhysicalConnectionNewRequest::getCircuitCode()const
{
return circuitCode_;
}
void CreatePhysicalConnectionNewRequest::setCircuitCode(const std::string& circuitCode)
{
circuitCode_ = circuitCode;
setParameter("CircuitCode", circuitCode);
}
int CreatePhysicalConnectionNewRequest::getBandwidth()const
{
return bandwidth_;
}
void CreatePhysicalConnectionNewRequest::setBandwidth(int bandwidth)
{
bandwidth_ = bandwidth;
setParameter("Bandwidth", std::to_string(bandwidth));
}
std::string CreatePhysicalConnectionNewRequest::getClientToken()const
{
return clientToken_;
}
void CreatePhysicalConnectionNewRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreatePhysicalConnectionNewRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreatePhysicalConnectionNewRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreatePhysicalConnectionNewRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreatePhysicalConnectionNewRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreatePhysicalConnectionNewRequest::getDescription()const
{
return description_;
}
void CreatePhysicalConnectionNewRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreatePhysicalConnectionNewRequest::getInterfaceName()const
{
return interfaceName_;
}
void CreatePhysicalConnectionNewRequest::setInterfaceName(const std::string& interfaceName)
{
interfaceName_ = interfaceName;
setParameter("InterfaceName", interfaceName);
}
std::string CreatePhysicalConnectionNewRequest::getType()const
{
return type_;
}
void CreatePhysicalConnectionNewRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
long CreatePhysicalConnectionNewRequest::getOwnerId()const
{
return ownerId_;
}
void CreatePhysicalConnectionNewRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreatePhysicalConnectionNewRequest::getLineOperator()const
{
return lineOperator_;
}
void CreatePhysicalConnectionNewRequest::setLineOperator(const std::string& lineOperator)
{
lineOperator_ = lineOperator;
setParameter("LineOperator", lineOperator);
}
std::string CreatePhysicalConnectionNewRequest::getRegionId()const
{
return regionId_;
}
void CreatePhysicalConnectionNewRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreatePhysicalConnectionNewRequest::getName()const
{
return name_;
}
void CreatePhysicalConnectionNewRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreatePhysicalConnectionNewRequest::getDeviceName()const
{
return deviceName_;
}
void CreatePhysicalConnectionNewRequest::setDeviceName(const std::string& deviceName)
{
deviceName_ = deviceName;
setParameter("DeviceName", deviceName);
}

View File

@@ -0,0 +1,56 @@
/*
* 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/CreatePhysicalConnectionNewResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreatePhysicalConnectionNewResult::CreatePhysicalConnectionNewResult() :
ServiceResult()
{}
CreatePhysicalConnectionNewResult::CreatePhysicalConnectionNewResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreatePhysicalConnectionNewResult::~CreatePhysicalConnectionNewResult()
{}
void CreatePhysicalConnectionNewResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
physicalConnectionId_ = value["PhysicalConnectionId"].asString();
}
std::string CreatePhysicalConnectionNewResult::getPhysicalConnectionId()const
{
return physicalConnectionId_;
}
void CreatePhysicalConnectionNewResult::setPhysicalConnectionId(const std::string& physicalConnectionId)
{
physicalConnectionId_ = physicalConnectionId;
}

View File

@@ -0,0 +1,204 @@
/*
* 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/CreatePhysicalConnectionRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreatePhysicalConnectionRequest::CreatePhysicalConnectionRequest() :
VpcRequest("CreatePhysicalConnection")
{}
CreatePhysicalConnectionRequest::~CreatePhysicalConnectionRequest()
{}
std::string CreatePhysicalConnectionRequest::getAccessPointId()const
{
return accessPointId_;
}
void CreatePhysicalConnectionRequest::setAccessPointId(const std::string& accessPointId)
{
accessPointId_ = accessPointId;
setParameter("AccessPointId", accessPointId);
}
std::string CreatePhysicalConnectionRequest::getRedundantPhysicalConnectionId()const
{
return redundantPhysicalConnectionId_;
}
void CreatePhysicalConnectionRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId)
{
redundantPhysicalConnectionId_ = redundantPhysicalConnectionId;
setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId);
}
std::string CreatePhysicalConnectionRequest::getPeerLocation()const
{
return peerLocation_;
}
void CreatePhysicalConnectionRequest::setPeerLocation(const std::string& peerLocation)
{
peerLocation_ = peerLocation;
setParameter("PeerLocation", peerLocation);
}
long CreatePhysicalConnectionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreatePhysicalConnectionRequest::getPortType()const
{
return portType_;
}
void CreatePhysicalConnectionRequest::setPortType(const std::string& portType)
{
portType_ = portType;
setParameter("PortType", portType);
}
std::string CreatePhysicalConnectionRequest::getCircuitCode()const
{
return circuitCode_;
}
void CreatePhysicalConnectionRequest::setCircuitCode(const std::string& circuitCode)
{
circuitCode_ = circuitCode;
setParameter("CircuitCode", circuitCode);
}
int CreatePhysicalConnectionRequest::getBandwidth()const
{
return bandwidth_;
}
void CreatePhysicalConnectionRequest::setBandwidth(int bandwidth)
{
bandwidth_ = bandwidth;
setParameter("Bandwidth", std::to_string(bandwidth));
}
std::string CreatePhysicalConnectionRequest::getClientToken()const
{
return clientToken_;
}
void CreatePhysicalConnectionRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreatePhysicalConnectionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreatePhysicalConnectionRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreatePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreatePhysicalConnectionRequest::getDescription()const
{
return description_;
}
void CreatePhysicalConnectionRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreatePhysicalConnectionRequest::getType()const
{
return type_;
}
void CreatePhysicalConnectionRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
long CreatePhysicalConnectionRequest::getOwnerId()const
{
return ownerId_;
}
void CreatePhysicalConnectionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreatePhysicalConnectionRequest::getLineOperator()const
{
return lineOperator_;
}
void CreatePhysicalConnectionRequest::setLineOperator(const std::string& lineOperator)
{
lineOperator_ = lineOperator;
setParameter("LineOperator", lineOperator);
}
std::string CreatePhysicalConnectionRequest::getRegionId()const
{
return regionId_;
}
void CreatePhysicalConnectionRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreatePhysicalConnectionRequest::getName()const
{
return name_;
}
void CreatePhysicalConnectionRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,56 @@
/*
* 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/CreatePhysicalConnectionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreatePhysicalConnectionResult::CreatePhysicalConnectionResult() :
ServiceResult()
{}
CreatePhysicalConnectionResult::CreatePhysicalConnectionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreatePhysicalConnectionResult::~CreatePhysicalConnectionResult()
{}
void CreatePhysicalConnectionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
physicalConnectionId_ = value["PhysicalConnectionId"].asString();
}
std::string CreatePhysicalConnectionResult::getPhysicalConnectionId()const
{
return physicalConnectionId_;
}
void CreatePhysicalConnectionResult::setPhysicalConnectionId(const std::string& physicalConnectionId)
{
physicalConnectionId_ = physicalConnectionId;
}

View File

@@ -0,0 +1,156 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/CreateRouteEntryRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateRouteEntryRequest::CreateRouteEntryRequest() :
VpcRequest("CreateRouteEntry")
{}
CreateRouteEntryRequest::~CreateRouteEntryRequest()
{}
long CreateRouteEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateRouteEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateRouteEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateRouteEntryRequest::getRegionId()const
{
return regionId_;
}
void CreateRouteEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateRouteEntryRequest::getClientToken()const
{
return clientToken_;
}
void CreateRouteEntryRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateRouteEntryRequest::getDestinationCidrBlock()const
{
return destinationCidrBlock_;
}
void CreateRouteEntryRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock)
{
destinationCidrBlock_ = destinationCidrBlock;
setParameter("DestinationCidrBlock", destinationCidrBlock);
}
std::string CreateRouteEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateRouteEntryRequest::getNextHopId()const
{
return nextHopId_;
}
void CreateRouteEntryRequest::setNextHopId(const std::string& nextHopId)
{
nextHopId_ = nextHopId;
setParameter("NextHopId", nextHopId);
}
long CreateRouteEntryRequest::getOwnerId()const
{
return ownerId_;
}
void CreateRouteEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateRouteEntryRequest::getNextHopType()const
{
return nextHopType_;
}
void CreateRouteEntryRequest::setNextHopType(const std::string& nextHopType)
{
nextHopType_ = nextHopType;
setParameter("NextHopType", nextHopType);
}
std::vector<CreateRouteEntryRequest::NextHopList> CreateRouteEntryRequest::getNextHopList()const
{
return nextHopList_;
}
void CreateRouteEntryRequest::setNextHopList(const std::vector<NextHopList>& nextHopList)
{
nextHopList_ = nextHopList;
int i = 0;
for(int i = 0; i!= nextHopList.size(); i++) {
auto obj = nextHopList.at(i);
std::string str ="NextHopList."+ std::to_string(i);
setParameter(str + ".NextHopType", obj.nextHopType);
setParameter(str + ".NextHopId", obj.nextHopId);
setParameter(str + ".Weight", std::to_string(obj.weight));
}
}
std::string CreateRouteEntryRequest::getRouteTableId()const
{
return routeTableId_;
}
void CreateRouteEntryRequest::setRouteTableId(const std::string& routeTableId)
{
routeTableId_ = routeTableId;
setParameter("RouteTableId", routeTableId);
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/CreateRouteEntryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateRouteEntryResult::CreateRouteEntryResult() :
ServiceResult()
{}
CreateRouteEntryResult::CreateRouteEntryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRouteEntryResult::~CreateRouteEntryResult()
{}
void CreateRouteEntryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,259 @@
/*
* 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/CreateRouterInterfaceRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() :
VpcRequest("CreateRouterInterface")
{}
CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest()
{}
std::string CreateRouterInterfaceRequest::getAccessPointId()const
{
return accessPointId_;
}
void CreateRouterInterfaceRequest::setAccessPointId(const std::string& accessPointId)
{
accessPointId_ = accessPointId;
setParameter("AccessPointId", accessPointId);
}
std::string CreateRouterInterfaceRequest::getOppositeRouterId()const
{
return oppositeRouterId_;
}
void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string& oppositeRouterId)
{
oppositeRouterId_ = oppositeRouterId;
setParameter("OppositeRouterId", oppositeRouterId);
}
std::string CreateRouterInterfaceRequest::getOppositeAccessPointId()const
{
return oppositeAccessPointId_;
}
void CreateRouterInterfaceRequest::setOppositeAccessPointId(const std::string& oppositeAccessPointId)
{
oppositeAccessPointId_ = oppositeAccessPointId;
setParameter("OppositeAccessPointId", oppositeAccessPointId);
}
long CreateRouterInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateRouterInterfaceRequest::getRole()const
{
return role_;
}
void CreateRouterInterfaceRequest::setRole(const std::string& role)
{
role_ = role;
setParameter("Role", role);
}
std::string CreateRouterInterfaceRequest::getClientToken()const
{
return clientToken_;
}
void CreateRouterInterfaceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateRouterInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateRouterInterfaceRequest::getOppositeRegionId()const
{
return oppositeRegionId_;
}
void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string& oppositeRegionId)
{
oppositeRegionId_ = oppositeRegionId;
setParameter("OppositeRegionId", oppositeRegionId);
}
std::string CreateRouterInterfaceRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const
{
return healthCheckTargetIp_;
}
void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp)
{
healthCheckTargetIp_ = healthCheckTargetIp;
setParameter("HealthCheckTargetIp", healthCheckTargetIp);
}
std::string CreateRouterInterfaceRequest::getDescription()const
{
return description_;
}
void CreateRouterInterfaceRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateRouterInterfaceRequest::getOwnerId()const
{
return ownerId_;
}
void CreateRouterInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateRouterInterfaceRequest::getSpec()const
{
return spec_;
}
void CreateRouterInterfaceRequest::setSpec(const std::string& spec)
{
spec_ = spec;
setParameter("Spec", spec);
}
std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId()const
{
return oppositeInterfaceOwnerId_;
}
void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId)
{
oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId;
setParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId);
}
std::string CreateRouterInterfaceRequest::getRouterType()const
{
return routerType_;
}
void CreateRouterInterfaceRequest::setRouterType(const std::string& routerType)
{
routerType_ = routerType;
setParameter("RouterType", routerType);
}
std::string CreateRouterInterfaceRequest::getRegionId()const
{
return regionId_;
}
void CreateRouterInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp()const
{
return healthCheckSourceIp_;
}
void CreateRouterInterfaceRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp)
{
healthCheckSourceIp_ = healthCheckSourceIp;
setParameter("HealthCheckSourceIp", healthCheckSourceIp);
}
std::string CreateRouterInterfaceRequest::getRouterId()const
{
return routerId_;
}
void CreateRouterInterfaceRequest::setRouterId(const std::string& routerId)
{
routerId_ = routerId;
setParameter("RouterId", routerId);
}
std::string CreateRouterInterfaceRequest::getOppositeRouterType()const
{
return oppositeRouterType_;
}
void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string& oppositeRouterType)
{
oppositeRouterType_ = oppositeRouterType;
setParameter("OppositeRouterType", oppositeRouterType);
}
std::string CreateRouterInterfaceRequest::getName()const
{
return name_;
}
void CreateRouterInterfaceRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const
{
return oppositeInterfaceId_;
}
void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId)
{
oppositeInterfaceId_ = oppositeInterfaceId;
setParameter("OppositeInterfaceId", oppositeInterfaceId);
}

View File

@@ -0,0 +1,56 @@
/*
* 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/CreateRouterInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateRouterInterfaceResult::CreateRouterInterfaceResult() :
ServiceResult()
{}
CreateRouterInterfaceResult::CreateRouterInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRouterInterfaceResult::~CreateRouterInterfaceResult()
{}
void CreateRouterInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
routerInterfaceId_ = value["RouterInterfaceId"].asString();
}
std::string CreateRouterInterfaceResult::getRouterInterfaceId()const
{
return routerInterfaceId_;
}
void CreateRouterInterfaceResult::setRouterInterfaceId(const std::string& routerInterfaceId)
{
routerInterfaceId_ = routerInterfaceId;
}

View File

@@ -0,0 +1,127 @@
/*
* 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/CreateSnatEntryRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateSnatEntryRequest::CreateSnatEntryRequest() :
VpcRequest("CreateSnatEntry")
{}
CreateSnatEntryRequest::~CreateSnatEntryRequest()
{}
long CreateSnatEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateSnatEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateSnatEntryRequest::getSourceVSwitchId()const
{
return sourceVSwitchId_;
}
void CreateSnatEntryRequest::setSourceVSwitchId(const std::string& sourceVSwitchId)
{
sourceVSwitchId_ = sourceVSwitchId;
setParameter("SourceVSwitchId", sourceVSwitchId);
}
std::string CreateSnatEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateSnatEntryRequest::getRegionId()const
{
return regionId_;
}
void CreateSnatEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateSnatEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateSnatEntryRequest::getSourceCIDR()const
{
return sourceCIDR_;
}
void CreateSnatEntryRequest::setSourceCIDR(const std::string& sourceCIDR)
{
sourceCIDR_ = sourceCIDR;
setParameter("SourceCIDR", sourceCIDR);
}
std::string CreateSnatEntryRequest::getSnatTableId()const
{
return snatTableId_;
}
void CreateSnatEntryRequest::setSnatTableId(const std::string& snatTableId)
{
snatTableId_ = snatTableId;
setParameter("SnatTableId", snatTableId);
}
long CreateSnatEntryRequest::getOwnerId()const
{
return ownerId_;
}
void CreateSnatEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateSnatEntryRequest::getSnatIp()const
{
return snatIp_;
}
void CreateSnatEntryRequest::setSnatIp(const std::string& snatIp)
{
snatIp_ = snatIp;
setParameter("SnatIp", snatIp);
}

View File

@@ -0,0 +1,56 @@
/*
* 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/CreateSnatEntryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateSnatEntryResult::CreateSnatEntryResult() :
ServiceResult()
{}
CreateSnatEntryResult::CreateSnatEntryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSnatEntryResult::~CreateSnatEntryResult()
{}
void CreateSnatEntryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
snatEntryId_ = value["SnatEntryId"].asString();
}
std::string CreateSnatEntryResult::getSnatEntryId()const
{
return snatEntryId_;
}
void CreateSnatEntryResult::setSnatEntryId(const std::string& snatEntryId)
{
snatEntryId_ = snatEntryId;
}

View File

@@ -0,0 +1,138 @@
/*
* 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/CreateVSwitchRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateVSwitchRequest::CreateVSwitchRequest() :
VpcRequest("CreateVSwitch")
{}
CreateVSwitchRequest::~CreateVSwitchRequest()
{}
long CreateVSwitchRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateVSwitchRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateVSwitchRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateVSwitchRequest::getClientToken()const
{
return clientToken_;
}
void CreateVSwitchRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateVSwitchRequest::getVpcId()const
{
return vpcId_;
}
void CreateVSwitchRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}
std::string CreateVSwitchRequest::getVSwitchName()const
{
return vSwitchName_;
}
void CreateVSwitchRequest::setVSwitchName(const std::string& vSwitchName)
{
vSwitchName_ = vSwitchName;
setParameter("VSwitchName", vSwitchName);
}
std::string CreateVSwitchRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateVSwitchRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateVSwitchRequest::getCidrBlock()const
{
return cidrBlock_;
}
void CreateVSwitchRequest::setCidrBlock(const std::string& cidrBlock)
{
cidrBlock_ = cidrBlock;
setParameter("CidrBlock", cidrBlock);
}
std::string CreateVSwitchRequest::getZoneId()const
{
return zoneId_;
}
void CreateVSwitchRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string CreateVSwitchRequest::getDescription()const
{
return description_;
}
void CreateVSwitchRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateVSwitchRequest::getOwnerId()const
{
return ownerId_;
}
void CreateVSwitchRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,56 @@
/*
* 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/CreateVSwitchResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateVSwitchResult::CreateVSwitchResult() :
ServiceResult()
{}
CreateVSwitchResult::CreateVSwitchResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateVSwitchResult::~CreateVSwitchResult()
{}
void CreateVSwitchResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
vSwitchId_ = value["VSwitchId"].asString();
}
std::string CreateVSwitchResult::getVSwitchId()const
{
return vSwitchId_;
}
void CreateVSwitchResult::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
}

View File

@@ -0,0 +1,193 @@
/*
* 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/CreateVirtualBorderRouterRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateVirtualBorderRouterRequest::CreateVirtualBorderRouterRequest() :
VpcRequest("CreateVirtualBorderRouter")
{}
CreateVirtualBorderRouterRequest::~CreateVirtualBorderRouterRequest()
{}
long CreateVirtualBorderRouterRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateVirtualBorderRouterRequest::getCircuitCode()const
{
return circuitCode_;
}
void CreateVirtualBorderRouterRequest::setCircuitCode(const std::string& circuitCode)
{
circuitCode_ = circuitCode;
setParameter("CircuitCode", circuitCode);
}
int CreateVirtualBorderRouterRequest::getVlanId()const
{
return vlanId_;
}
void CreateVirtualBorderRouterRequest::setVlanId(int vlanId)
{
vlanId_ = vlanId;
setParameter("VlanId", std::to_string(vlanId));
}
std::string CreateVirtualBorderRouterRequest::getClientToken()const
{
return clientToken_;
}
void CreateVirtualBorderRouterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateVirtualBorderRouterRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateVirtualBorderRouterRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateVirtualBorderRouterRequest::getDescription()const
{
return description_;
}
void CreateVirtualBorderRouterRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateVirtualBorderRouterRequest::getOwnerId()const
{
return ownerId_;
}
void CreateVirtualBorderRouterRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateVirtualBorderRouterRequest::getPeerGatewayIp()const
{
return peerGatewayIp_;
}
void CreateVirtualBorderRouterRequest::setPeerGatewayIp(const std::string& peerGatewayIp)
{
peerGatewayIp_ = peerGatewayIp;
setParameter("PeerGatewayIp", peerGatewayIp);
}
std::string CreateVirtualBorderRouterRequest::getPeeringSubnetMask()const
{
return peeringSubnetMask_;
}
void CreateVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask)
{
peeringSubnetMask_ = peeringSubnetMask;
setParameter("PeeringSubnetMask", peeringSubnetMask);
}
std::string CreateVirtualBorderRouterRequest::getRegionId()const
{
return regionId_;
}
void CreateVirtualBorderRouterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateVirtualBorderRouterRequest::getPhysicalConnectionId()const
{
return physicalConnectionId_;
}
void CreateVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId)
{
physicalConnectionId_ = physicalConnectionId;
setParameter("PhysicalConnectionId", physicalConnectionId);
}
std::string CreateVirtualBorderRouterRequest::getName()const
{
return name_;
}
void CreateVirtualBorderRouterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateVirtualBorderRouterRequest::getLocalGatewayIp()const
{
return localGatewayIp_;
}
void CreateVirtualBorderRouterRequest::setLocalGatewayIp(const std::string& localGatewayIp)
{
localGatewayIp_ = localGatewayIp;
setParameter("LocalGatewayIp", localGatewayIp);
}
long CreateVirtualBorderRouterRequest::getVbrOwnerId()const
{
return vbrOwnerId_;
}
void CreateVirtualBorderRouterRequest::setVbrOwnerId(long vbrOwnerId)
{
vbrOwnerId_ = vbrOwnerId;
setParameter("VbrOwnerId", std::to_string(vbrOwnerId));
}

View File

@@ -0,0 +1,56 @@
/*
* 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/CreateVirtualBorderRouterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateVirtualBorderRouterResult::CreateVirtualBorderRouterResult() :
ServiceResult()
{}
CreateVirtualBorderRouterResult::CreateVirtualBorderRouterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateVirtualBorderRouterResult::~CreateVirtualBorderRouterResult()
{}
void CreateVirtualBorderRouterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
vbrId_ = value["VbrId"].asString();
}
std::string CreateVirtualBorderRouterResult::getVbrId()const
{
return vbrId_;
}
void CreateVirtualBorderRouterResult::setVbrId(const std::string& vbrId)
{
vbrId_ = vbrId;
}

View File

@@ -0,0 +1,138 @@
/*
* 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/CreateVpcRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateVpcRequest::CreateVpcRequest() :
VpcRequest("CreateVpc")
{}
CreateVpcRequest::~CreateVpcRequest()
{}
std::string CreateVpcRequest::getVpcName()const
{
return vpcName_;
}
void CreateVpcRequest::setVpcName(const std::string& vpcName)
{
vpcName_ = vpcName;
setParameter("VpcName", vpcName);
}
long CreateVpcRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateVpcRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateVpcRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateVpcRequest::getRegionId()const
{
return regionId_;
}
void CreateVpcRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateVpcRequest::getClientToken()const
{
return clientToken_;
}
void CreateVpcRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateVpcRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateVpcRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateVpcRequest::getCidrBlock()const
{
return cidrBlock_;
}
void CreateVpcRequest::setCidrBlock(const std::string& cidrBlock)
{
cidrBlock_ = cidrBlock;
setParameter("CidrBlock", cidrBlock);
}
std::string CreateVpcRequest::getDescription()const
{
return description_;
}
void CreateVpcRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateVpcRequest::getUserCidr()const
{
return userCidr_;
}
void CreateVpcRequest::setUserCidr(const std::string& userCidr)
{
userCidr_ = userCidr;
setParameter("UserCidr", userCidr);
}
long CreateVpcRequest::getOwnerId()const
{
return ownerId_;
}
void CreateVpcRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,78 @@
/*
* 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/CreateVpcResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateVpcResult::CreateVpcResult() :
ServiceResult()
{}
CreateVpcResult::CreateVpcResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateVpcResult::~CreateVpcResult()
{}
void CreateVpcResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
vpcId_ = value["VpcId"].asString();
vRouterId_ = value["VRouterId"].asString();
routeTableId_ = value["RouteTableId"].asString();
}
std::string CreateVpcResult::getVRouterId()const
{
return vRouterId_;
}
void CreateVpcResult::setVRouterId(const std::string& vRouterId)
{
vRouterId_ = vRouterId;
}
std::string CreateVpcResult::getRouteTableId()const
{
return routeTableId_;
}
void CreateVpcResult::setRouteTableId(const std::string& routeTableId)
{
routeTableId_ = routeTableId;
}
std::string CreateVpcResult::getVpcId()const
{
return vpcId_;
}
void CreateVpcResult::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
}

View File

@@ -0,0 +1,182 @@
/*
* 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/CreateVpnConnectionRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateVpnConnectionRequest::CreateVpnConnectionRequest() :
VpcRequest("CreateVpnConnection")
{}
CreateVpnConnectionRequest::~CreateVpnConnectionRequest()
{}
std::string CreateVpnConnectionRequest::getIkeConfig()const
{
return ikeConfig_;
}
void CreateVpnConnectionRequest::setIkeConfig(const std::string& ikeConfig)
{
ikeConfig_ = ikeConfig;
setParameter("IkeConfig", ikeConfig);
}
long CreateVpnConnectionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateVpnConnectionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateVpnConnectionRequest::getRemoteSubnet()const
{
return remoteSubnet_;
}
void CreateVpnConnectionRequest::setRemoteSubnet(const std::string& remoteSubnet)
{
remoteSubnet_ = remoteSubnet;
setParameter("RemoteSubnet", remoteSubnet);
}
bool CreateVpnConnectionRequest::getEffectImmediately()const
{
return effectImmediately_;
}
void CreateVpnConnectionRequest::setEffectImmediately(bool effectImmediately)
{
effectImmediately_ = effectImmediately;
setParameter("EffectImmediately", std::to_string(effectImmediately));
}
std::string CreateVpnConnectionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateVpnConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateVpnConnectionRequest::getClientToken()const
{
return clientToken_;
}
void CreateVpnConnectionRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateVpnConnectionRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateVpnConnectionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateVpnConnectionRequest::getIpsecConfig()const
{
return ipsecConfig_;
}
void CreateVpnConnectionRequest::setIpsecConfig(const std::string& ipsecConfig)
{
ipsecConfig_ = ipsecConfig;
setParameter("IpsecConfig", ipsecConfig);
}
std::string CreateVpnConnectionRequest::getVpnGatewayId()const
{
return vpnGatewayId_;
}
void CreateVpnConnectionRequest::setVpnGatewayId(const std::string& vpnGatewayId)
{
vpnGatewayId_ = vpnGatewayId;
setParameter("VpnGatewayId", vpnGatewayId);
}
long CreateVpnConnectionRequest::getOwnerId()const
{
return ownerId_;
}
void CreateVpnConnectionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateVpnConnectionRequest::getCustomerGatewayId()const
{
return customerGatewayId_;
}
void CreateVpnConnectionRequest::setCustomerGatewayId(const std::string& customerGatewayId)
{
customerGatewayId_ = customerGatewayId;
setParameter("CustomerGatewayId", customerGatewayId);
}
std::string CreateVpnConnectionRequest::getLocalSubnet()const
{
return localSubnet_;
}
void CreateVpnConnectionRequest::setLocalSubnet(const std::string& localSubnet)
{
localSubnet_ = localSubnet;
setParameter("LocalSubnet", localSubnet);
}
std::string CreateVpnConnectionRequest::getRegionId()const
{
return regionId_;
}
void CreateVpnConnectionRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateVpnConnectionRequest::getName()const
{
return name_;
}
void CreateVpnConnectionRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,78 @@
/*
* 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/CreateVpnConnectionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
CreateVpnConnectionResult::CreateVpnConnectionResult() :
ServiceResult()
{}
CreateVpnConnectionResult::CreateVpnConnectionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateVpnConnectionResult::~CreateVpnConnectionResult()
{}
void CreateVpnConnectionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
vpnConnectionId_ = value["VpnConnectionId"].asString();
name_ = value["Name"].asString();
createTime_ = std::stol(value["CreateTime"].asString());
}
long CreateVpnConnectionResult::getCreateTime()const
{
return createTime_;
}
void CreateVpnConnectionResult::setCreateTime(long createTime)
{
createTime_ = createTime;
}
std::string CreateVpnConnectionResult::getVpnConnectionId()const
{
return vpnConnectionId_;
}
void CreateVpnConnectionResult::setVpnConnectionId(const std::string& vpnConnectionId)
{
vpnConnectionId_ = vpnConnectionId;
}
std::string CreateVpnConnectionResult::getName()const
{
return name_;
}
void CreateVpnConnectionResult::setName(const std::string& name)
{
name_ = name;
}

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeactivateRouterInterfaceRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeactivateRouterInterfaceRequest::DeactivateRouterInterfaceRequest() :
VpcRequest("DeactivateRouterInterface")
{}
DeactivateRouterInterfaceRequest::~DeactivateRouterInterfaceRequest()
{}
long DeactivateRouterInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeactivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeactivateRouterInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeactivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeactivateRouterInterfaceRequest::getRegionId()const
{
return regionId_;
}
void DeactivateRouterInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
long DeactivateRouterInterfaceRequest::getOwnerId()const
{
return ownerId_;
}
void DeactivateRouterInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeactivateRouterInterfaceRequest::getRouterInterfaceId()const
{
return routerInterfaceId_;
}
void DeactivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId)
{
routerInterfaceId_ = routerInterfaceId;
setParameter("RouterInterfaceId", routerInterfaceId);
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeactivateRouterInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeactivateRouterInterfaceResult::DeactivateRouterInterfaceResult() :
ServiceResult()
{}
DeactivateRouterInterfaceResult::DeactivateRouterInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeactivateRouterInterfaceResult::~DeactivateRouterInterfaceResult()
{}
void DeactivateRouterInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,105 @@
/*
* 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/DeleteBandwidthPackageRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteBandwidthPackageRequest::DeleteBandwidthPackageRequest() :
VpcRequest("DeleteBandwidthPackage")
{}
DeleteBandwidthPackageRequest::~DeleteBandwidthPackageRequest()
{}
long DeleteBandwidthPackageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteBandwidthPackageRequest::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
void DeleteBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
setParameter("BandwidthPackageId", bandwidthPackageId);
}
std::string DeleteBandwidthPackageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteBandwidthPackageRequest::getRegionId()const
{
return regionId_;
}
void DeleteBandwidthPackageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteBandwidthPackageRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
bool DeleteBandwidthPackageRequest::getForce()const
{
return force_;
}
void DeleteBandwidthPackageRequest::setForce(bool force)
{
force_ = force;
setParameter("Force", std::to_string(force));
}
long DeleteBandwidthPackageRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteBandwidthPackageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteBandwidthPackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteBandwidthPackageResult::DeleteBandwidthPackageResult() :
ServiceResult()
{}
DeleteBandwidthPackageResult::DeleteBandwidthPackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteBandwidthPackageResult::~DeleteBandwidthPackageResult()
{}
void DeleteBandwidthPackageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,105 @@
/*
* 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/DeleteBgpGroupRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteBgpGroupRequest::DeleteBgpGroupRequest() :
VpcRequest("DeleteBgpGroup")
{}
DeleteBgpGroupRequest::~DeleteBgpGroupRequest()
{}
long DeleteBgpGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteBgpGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteBgpGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteBgpGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteBgpGroupRequest::getRegionId()const
{
return regionId_;
}
void DeleteBgpGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteBgpGroupRequest::getClientToken()const
{
return clientToken_;
}
void DeleteBgpGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteBgpGroupRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteBgpGroupRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteBgpGroupRequest::getBgpGroupId()const
{
return bgpGroupId_;
}
void DeleteBgpGroupRequest::setBgpGroupId(const std::string& bgpGroupId)
{
bgpGroupId_ = bgpGroupId;
setParameter("BgpGroupId", bgpGroupId);
}
long DeleteBgpGroupRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteBgpGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteBgpGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteBgpGroupResult::DeleteBgpGroupResult() :
ServiceResult()
{}
DeleteBgpGroupResult::DeleteBgpGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteBgpGroupResult::~DeleteBgpGroupResult()
{}
void DeleteBgpGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,116 @@
/*
* 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/DeleteBgpNetworkRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteBgpNetworkRequest::DeleteBgpNetworkRequest() :
VpcRequest("DeleteBgpNetwork")
{}
DeleteBgpNetworkRequest::~DeleteBgpNetworkRequest()
{}
long DeleteBgpNetworkRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteBgpNetworkRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteBgpNetworkRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteBgpNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteBgpNetworkRequest::getRegionId()const
{
return regionId_;
}
void DeleteBgpNetworkRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteBgpNetworkRequest::getClientToken()const
{
return clientToken_;
}
void DeleteBgpNetworkRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteBgpNetworkRequest::getRouterId()const
{
return routerId_;
}
void DeleteBgpNetworkRequest::setRouterId(const std::string& routerId)
{
routerId_ = routerId;
setParameter("RouterId", routerId);
}
std::string DeleteBgpNetworkRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteBgpNetworkRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteBgpNetworkRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteBgpNetworkRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteBgpNetworkRequest::getDstCidrBlock()const
{
return dstCidrBlock_;
}
void DeleteBgpNetworkRequest::setDstCidrBlock(const std::string& dstCidrBlock)
{
dstCidrBlock_ = dstCidrBlock;
setParameter("DstCidrBlock", dstCidrBlock);
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteBgpNetworkResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteBgpNetworkResult::DeleteBgpNetworkResult() :
ServiceResult()
{}
DeleteBgpNetworkResult::DeleteBgpNetworkResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteBgpNetworkResult::~DeleteBgpNetworkResult()
{}
void DeleteBgpNetworkResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,105 @@
/*
* 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/DeleteBgpPeerRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteBgpPeerRequest::DeleteBgpPeerRequest() :
VpcRequest("DeleteBgpPeer")
{}
DeleteBgpPeerRequest::~DeleteBgpPeerRequest()
{}
long DeleteBgpPeerRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteBgpPeerRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteBgpPeerRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteBgpPeerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteBgpPeerRequest::getRegionId()const
{
return regionId_;
}
void DeleteBgpPeerRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteBgpPeerRequest::getClientToken()const
{
return clientToken_;
}
void DeleteBgpPeerRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteBgpPeerRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteBgpPeerRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteBgpPeerRequest::getBgpPeerId()const
{
return bgpPeerId_;
}
void DeleteBgpPeerRequest::setBgpPeerId(const std::string& bgpPeerId)
{
bgpPeerId_ = bgpPeerId;
setParameter("BgpPeerId", bgpPeerId);
}
long DeleteBgpPeerRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteBgpPeerRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteBgpPeerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteBgpPeerResult::DeleteBgpPeerResult() :
ServiceResult()
{}
DeleteBgpPeerResult::DeleteBgpPeerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteBgpPeerResult::~DeleteBgpPeerResult()
{}
void DeleteBgpPeerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,105 @@
/*
* 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/DeleteCommonBandwidthPackageRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteCommonBandwidthPackageRequest::DeleteCommonBandwidthPackageRequest() :
VpcRequest("DeleteCommonBandwidthPackage")
{}
DeleteCommonBandwidthPackageRequest::~DeleteCommonBandwidthPackageRequest()
{}
long DeleteCommonBandwidthPackageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteCommonBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteCommonBandwidthPackageRequest::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
void DeleteCommonBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
setParameter("BandwidthPackageId", bandwidthPackageId);
}
std::string DeleteCommonBandwidthPackageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteCommonBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteCommonBandwidthPackageRequest::getRegionId()const
{
return regionId_;
}
void DeleteCommonBandwidthPackageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteCommonBandwidthPackageRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteCommonBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteCommonBandwidthPackageRequest::getForce()const
{
return force_;
}
void DeleteCommonBandwidthPackageRequest::setForce(const std::string& force)
{
force_ = force;
setParameter("Force", force);
}
long DeleteCommonBandwidthPackageRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteCommonBandwidthPackageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteCommonBandwidthPackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteCommonBandwidthPackageResult::DeleteCommonBandwidthPackageResult() :
ServiceResult()
{}
DeleteCommonBandwidthPackageResult::DeleteCommonBandwidthPackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteCommonBandwidthPackageResult::~DeleteCommonBandwidthPackageResult()
{}
void DeleteCommonBandwidthPackageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,105 @@
/*
* 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/DeleteCustomerGatewayRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteCustomerGatewayRequest::DeleteCustomerGatewayRequest() :
VpcRequest("DeleteCustomerGateway")
{}
DeleteCustomerGatewayRequest::~DeleteCustomerGatewayRequest()
{}
long DeleteCustomerGatewayRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteCustomerGatewayRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteCustomerGatewayRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteCustomerGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteCustomerGatewayRequest::getRegionId()const
{
return regionId_;
}
void DeleteCustomerGatewayRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteCustomerGatewayRequest::getClientToken()const
{
return clientToken_;
}
void DeleteCustomerGatewayRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteCustomerGatewayRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteCustomerGatewayRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteCustomerGatewayRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteCustomerGatewayRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteCustomerGatewayRequest::getCustomerGatewayId()const
{
return customerGatewayId_;
}
void DeleteCustomerGatewayRequest::setCustomerGatewayId(const std::string& customerGatewayId)
{
customerGatewayId_ = customerGatewayId;
setParameter("CustomerGatewayId", customerGatewayId);
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteCustomerGatewayResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteCustomerGatewayResult::DeleteCustomerGatewayResult() :
ServiceResult()
{}
DeleteCustomerGatewayResult::DeleteCustomerGatewayResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteCustomerGatewayResult::~DeleteCustomerGatewayResult()
{}
void DeleteCustomerGatewayResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,105 @@
/*
* 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/DeleteForwardEntryRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteForwardEntryRequest::DeleteForwardEntryRequest() :
VpcRequest("DeleteForwardEntry")
{}
DeleteForwardEntryRequest::~DeleteForwardEntryRequest()
{}
long DeleteForwardEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteForwardEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteForwardEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteForwardEntryRequest::getRegionId()const
{
return regionId_;
}
void DeleteForwardEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteForwardEntryRequest::getForwardEntryId()const
{
return forwardEntryId_;
}
void DeleteForwardEntryRequest::setForwardEntryId(const std::string& forwardEntryId)
{
forwardEntryId_ = forwardEntryId;
setParameter("ForwardEntryId", forwardEntryId);
}
std::string DeleteForwardEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteForwardEntryRequest::getForwardTableId()const
{
return forwardTableId_;
}
void DeleteForwardEntryRequest::setForwardTableId(const std::string& forwardTableId)
{
forwardTableId_ = forwardTableId;
setParameter("ForwardTableId", forwardTableId);
}
long DeleteForwardEntryRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteForwardEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteForwardEntryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteForwardEntryResult::DeleteForwardEntryResult() :
ServiceResult()
{}
DeleteForwardEntryResult::DeleteForwardEntryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteForwardEntryResult::~DeleteForwardEntryResult()
{}
void DeleteForwardEntryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,94 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteGlobalAccelerationInstanceRequest::DeleteGlobalAccelerationInstanceRequest() :
VpcRequest("DeleteGlobalAccelerationInstance")
{}
DeleteGlobalAccelerationInstanceRequest::~DeleteGlobalAccelerationInstanceRequest()
{}
long DeleteGlobalAccelerationInstanceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteGlobalAccelerationInstanceRequest::getRegionId()const
{
return regionId_;
}
void DeleteGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteGlobalAccelerationInstanceRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteGlobalAccelerationInstanceRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteGlobalAccelerationInstanceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId()const
{
return globalAccelerationInstanceId_;
}
void DeleteGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId)
{
globalAccelerationInstanceId_ = globalAccelerationInstanceId;
setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId);
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteGlobalAccelerationInstanceResult::DeleteGlobalAccelerationInstanceResult() :
ServiceResult()
{}
DeleteGlobalAccelerationInstanceResult::DeleteGlobalAccelerationInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteGlobalAccelerationInstanceResult::~DeleteGlobalAccelerationInstanceResult()
{}
void DeleteGlobalAccelerationInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,105 @@
/*
* 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/DeleteHaVipRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteHaVipRequest::DeleteHaVipRequest() :
VpcRequest("DeleteHaVip")
{}
DeleteHaVipRequest::~DeleteHaVipRequest()
{}
std::string DeleteHaVipRequest::getHaVipId()const
{
return haVipId_;
}
void DeleteHaVipRequest::setHaVipId(const std::string& haVipId)
{
haVipId_ = haVipId;
setParameter("HaVipId", haVipId);
}
long DeleteHaVipRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteHaVipRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteHaVipRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteHaVipRequest::getClientToken()const
{
return clientToken_;
}
void DeleteHaVipRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteHaVipRequest::getRegionId()const
{
return regionId_;
}
void DeleteHaVipRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteHaVipRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteHaVipRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteHaVipRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteHaVipRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteHaVipResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteHaVipResult::DeleteHaVipResult() :
ServiceResult()
{}
DeleteHaVipResult::DeleteHaVipResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteHaVipResult::~DeleteHaVipResult()
{}
void DeleteHaVipResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,105 @@
/*
* 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/DeleteNatGatewayRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteNatGatewayRequest::DeleteNatGatewayRequest() :
VpcRequest("DeleteNatGateway")
{}
DeleteNatGatewayRequest::~DeleteNatGatewayRequest()
{}
long DeleteNatGatewayRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteNatGatewayRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteNatGatewayRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteNatGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteNatGatewayRequest::getRegionId()const
{
return regionId_;
}
void DeleteNatGatewayRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteNatGatewayRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
bool DeleteNatGatewayRequest::getForce()const
{
return force_;
}
void DeleteNatGatewayRequest::setForce(bool force)
{
force_ = force;
setParameter("Force", std::to_string(force));
}
std::string DeleteNatGatewayRequest::getNatGatewayId()const
{
return natGatewayId_;
}
void DeleteNatGatewayRequest::setNatGatewayId(const std::string& natGatewayId)
{
natGatewayId_ = natGatewayId;
setParameter("NatGatewayId", natGatewayId);
}
long DeleteNatGatewayRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteNatGatewayRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteNatGatewayResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteNatGatewayResult::DeleteNatGatewayResult() :
ServiceResult()
{}
DeleteNatGatewayResult::DeleteNatGatewayResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteNatGatewayResult::~DeleteNatGatewayResult()
{}
void DeleteNatGatewayResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,105 @@
/*
* 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/DeleteNqaRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteNqaRequest::DeleteNqaRequest() :
VpcRequest("DeleteNqa")
{}
DeleteNqaRequest::~DeleteNqaRequest()
{}
long DeleteNqaRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteNqaRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteNqaRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteNqaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteNqaRequest::getRegionId()const
{
return regionId_;
}
void DeleteNqaRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteNqaRequest::getClientToken()const
{
return clientToken_;
}
void DeleteNqaRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteNqaRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteNqaRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteNqaRequest::getNqaId()const
{
return nqaId_;
}
void DeleteNqaRequest::setNqaId(const std::string& nqaId)
{
nqaId_ = nqaId;
setParameter("NqaId", nqaId);
}
long DeleteNqaRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteNqaRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteNqaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteNqaResult::DeleteNqaResult() :
ServiceResult()
{}
DeleteNqaResult::DeleteNqaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteNqaResult::~DeleteNqaResult()
{}
void DeleteNqaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,116 @@
/*
* 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/DeletePhysicalConnectionRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeletePhysicalConnectionRequest::DeletePhysicalConnectionRequest() :
VpcRequest("DeletePhysicalConnection")
{}
DeletePhysicalConnectionRequest::~DeletePhysicalConnectionRequest()
{}
long DeletePhysicalConnectionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeletePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeletePhysicalConnectionRequest::getRegionId()const
{
return regionId_;
}
void DeletePhysicalConnectionRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeletePhysicalConnectionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeletePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeletePhysicalConnectionRequest::getClientToken()const
{
return clientToken_;
}
void DeletePhysicalConnectionRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeletePhysicalConnectionRequest::getPhysicalConnectionId()const
{
return physicalConnectionId_;
}
void DeletePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId)
{
physicalConnectionId_ = physicalConnectionId;
setParameter("PhysicalConnectionId", physicalConnectionId);
}
std::string DeletePhysicalConnectionRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeletePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeletePhysicalConnectionRequest::getUserCidr()const
{
return userCidr_;
}
void DeletePhysicalConnectionRequest::setUserCidr(const std::string& userCidr)
{
userCidr_ = userCidr;
setParameter("UserCidr", userCidr);
}
long DeletePhysicalConnectionRequest::getOwnerId()const
{
return ownerId_;
}
void DeletePhysicalConnectionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeletePhysicalConnectionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeletePhysicalConnectionResult::DeletePhysicalConnectionResult() :
ServiceResult()
{}
DeletePhysicalConnectionResult::DeletePhysicalConnectionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeletePhysicalConnectionResult::~DeletePhysicalConnectionResult()
{}
void DeletePhysicalConnectionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,133 @@
/*
* 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/DeleteRouteEntryRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteRouteEntryRequest::DeleteRouteEntryRequest() :
VpcRequest("DeleteRouteEntry")
{}
DeleteRouteEntryRequest::~DeleteRouteEntryRequest()
{}
long DeleteRouteEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteRouteEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteRouteEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteRouteEntryRequest::getRegionId()const
{
return regionId_;
}
void DeleteRouteEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteRouteEntryRequest::getDestinationCidrBlock()const
{
return destinationCidrBlock_;
}
void DeleteRouteEntryRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock)
{
destinationCidrBlock_ = destinationCidrBlock;
setParameter("DestinationCidrBlock", destinationCidrBlock);
}
std::string DeleteRouteEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteRouteEntryRequest::getNextHopId()const
{
return nextHopId_;
}
void DeleteRouteEntryRequest::setNextHopId(const std::string& nextHopId)
{
nextHopId_ = nextHopId;
setParameter("NextHopId", nextHopId);
}
long DeleteRouteEntryRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteRouteEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::vector<DeleteRouteEntryRequest::NextHopList> DeleteRouteEntryRequest::getNextHopList()const
{
return nextHopList_;
}
void DeleteRouteEntryRequest::setNextHopList(const std::vector<NextHopList>& nextHopList)
{
nextHopList_ = nextHopList;
int i = 0;
for(int i = 0; i!= nextHopList.size(); i++) {
auto obj = nextHopList.at(i);
std::string str ="NextHopList."+ std::to_string(i);
setParameter(str + ".NextHopType", obj.nextHopType);
setParameter(str + ".NextHopId", obj.nextHopId);
}
}
std::string DeleteRouteEntryRequest::getRouteTableId()const
{
return routeTableId_;
}
void DeleteRouteEntryRequest::setRouteTableId(const std::string& routeTableId)
{
routeTableId_ = routeTableId;
setParameter("RouteTableId", routeTableId);
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteRouteEntryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteRouteEntryResult::DeleteRouteEntryResult() :
ServiceResult()
{}
DeleteRouteEntryResult::DeleteRouteEntryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteRouteEntryResult::~DeleteRouteEntryResult()
{}
void DeleteRouteEntryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,105 @@
/*
* 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/DeleteRouterInterfaceRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteRouterInterfaceRequest::DeleteRouterInterfaceRequest() :
VpcRequest("DeleteRouterInterface")
{}
DeleteRouterInterfaceRequest::~DeleteRouterInterfaceRequest()
{}
long DeleteRouterInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteRouterInterfaceRequest::getRegionId()const
{
return regionId_;
}
void DeleteRouterInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteRouterInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteRouterInterfaceRequest::getClientToken()const
{
return clientToken_;
}
void DeleteRouterInterfaceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteRouterInterfaceRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteRouterInterfaceRequest::getRouterInterfaceId()const
{
return routerInterfaceId_;
}
void DeleteRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId)
{
routerInterfaceId_ = routerInterfaceId;
setParameter("RouterInterfaceId", routerInterfaceId);
}
long DeleteRouterInterfaceRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteRouterInterfaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteRouterInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteRouterInterfaceResult::DeleteRouterInterfaceResult() :
ServiceResult()
{}
DeleteRouterInterfaceResult::DeleteRouterInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteRouterInterfaceResult::~DeleteRouterInterfaceResult()
{}
void DeleteRouterInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,105 @@
/*
* 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/DeleteSnatEntryRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteSnatEntryRequest::DeleteSnatEntryRequest() :
VpcRequest("DeleteSnatEntry")
{}
DeleteSnatEntryRequest::~DeleteSnatEntryRequest()
{}
long DeleteSnatEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteSnatEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteSnatEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteSnatEntryRequest::getRegionId()const
{
return regionId_;
}
void DeleteSnatEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteSnatEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteSnatEntryRequest::getSnatTableId()const
{
return snatTableId_;
}
void DeleteSnatEntryRequest::setSnatTableId(const std::string& snatTableId)
{
snatTableId_ = snatTableId;
setParameter("SnatTableId", snatTableId);
}
std::string DeleteSnatEntryRequest::getSnatEntryId()const
{
return snatEntryId_;
}
void DeleteSnatEntryRequest::setSnatEntryId(const std::string& snatEntryId)
{
snatEntryId_ = snatEntryId;
setParameter("SnatEntryId", snatEntryId);
}
long DeleteSnatEntryRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteSnatEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteSnatEntryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteSnatEntryResult::DeleteSnatEntryResult() :
ServiceResult()
{}
DeleteSnatEntryResult::DeleteSnatEntryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteSnatEntryResult::~DeleteSnatEntryResult()
{}
void DeleteSnatEntryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteVSwitchRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteVSwitchRequest::DeleteVSwitchRequest() :
VpcRequest("DeleteVSwitch")
{}
DeleteVSwitchRequest::~DeleteVSwitchRequest()
{}
std::string DeleteVSwitchRequest::getVSwitchId()const
{
return vSwitchId_;
}
void DeleteVSwitchRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
long DeleteVSwitchRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteVSwitchRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteVSwitchRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteVSwitchRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteVSwitchRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteVSwitchRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteVSwitchRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteVSwitchResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteVSwitchResult::DeleteVSwitchResult() :
ServiceResult()
{}
DeleteVSwitchResult::DeleteVSwitchResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteVSwitchResult::~DeleteVSwitchResult()
{}
void DeleteVSwitchResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,105 @@
/*
* 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/DeleteVirtualBorderRouterRequest.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteVirtualBorderRouterRequest::DeleteVirtualBorderRouterRequest() :
VpcRequest("DeleteVirtualBorderRouter")
{}
DeleteVirtualBorderRouterRequest::~DeleteVirtualBorderRouterRequest()
{}
long DeleteVirtualBorderRouterRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteVirtualBorderRouterRequest::getRegionId()const
{
return regionId_;
}
void DeleteVirtualBorderRouterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteVirtualBorderRouterRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteVirtualBorderRouterRequest::getClientToken()const
{
return clientToken_;
}
void DeleteVirtualBorderRouterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteVirtualBorderRouterRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteVirtualBorderRouterRequest::getVbrId()const
{
return vbrId_;
}
void DeleteVirtualBorderRouterRequest::setVbrId(const std::string& vbrId)
{
vbrId_ = vbrId;
setParameter("VbrId", vbrId);
}
long DeleteVirtualBorderRouterRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteVirtualBorderRouterRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vpc/model/DeleteVirtualBorderRouterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vpc;
using namespace AlibabaCloud::Vpc::Model;
DeleteVirtualBorderRouterResult::DeleteVirtualBorderRouterResult() :
ServiceResult()
{}
DeleteVirtualBorderRouterResult::DeleteVirtualBorderRouterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteVirtualBorderRouterResult::~DeleteVirtualBorderRouterResult()
{}
void DeleteVirtualBorderRouterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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