Update ListTransitRouterMulticastGroups offline parameter ConnectPeerId.
This commit is contained in:
@@ -79,6 +79,20 @@ void CreateCenBandwidthPackageRequest::setResourceGroupId(const std::string &res
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::vector<CreateCenBandwidthPackageRequest::Tag> CreateCenBandwidthPackageRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateCenBandwidthPackageRequest::setTag(const std::vector<CreateCenBandwidthPackageRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getGeographicRegionBId() const {
|
||||
return geographicRegionBId_;
|
||||
}
|
||||
|
||||
@@ -70,6 +70,20 @@ void CreateCenRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::vector<CreateCenRequest::Tag> CreateCenRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateCenRequest::setTag(const std::vector<CreateCenRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateCenRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -70,6 +70,20 @@ void CreateFlowlogRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<CreateFlowlogRequest::Tag> CreateFlowlogRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateFlowlogRequest::setTag(const std::vector<CreateFlowlogRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateFlowlogRequest::getProjectName() const {
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
@@ -88,6 +88,20 @@ void CreateTransitRouterMulticastDomainRequest::setTransitRouterMulticastDomainN
|
||||
setParameter(std::string("TransitRouterMulticastDomainName"), transitRouterMulticastDomainName);
|
||||
}
|
||||
|
||||
std::vector<CreateTransitRouterMulticastDomainRequest::Tag> CreateTransitRouterMulticastDomainRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterMulticastDomainRequest::setTag(const std::vector<CreateTransitRouterMulticastDomainRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
bool CreateTransitRouterMulticastDomainRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
@@ -88,6 +88,20 @@ void CreateTransitRouterPeerAttachmentRequest::setRegionId(const std::string &re
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<CreateTransitRouterPeerAttachmentRequest::Tag> CreateTransitRouterPeerAttachmentRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPeerAttachmentRequest::setTag(const std::vector<CreateTransitRouterPeerAttachmentRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
bool CreateTransitRouterPeerAttachmentRequest::getAutoPublishRouteEnabled() const {
|
||||
return autoPublishRouteEnabled_;
|
||||
}
|
||||
|
||||
@@ -102,6 +102,20 @@ void CreateTransitRouterRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<CreateTransitRouterRequest::Tag> CreateTransitRouterRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterRequest::setTag(const std::vector<CreateTransitRouterRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
bool CreateTransitRouterRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,20 @@ void CreateTransitRouterRouteTableRequest::setTransitRouterRouteTableDescription
|
||||
setParameter(std::string("TransitRouterRouteTableDescription"), transitRouterRouteTableDescription);
|
||||
}
|
||||
|
||||
std::vector<CreateTransitRouterRouteTableRequest::Tag> CreateTransitRouterRouteTableRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterRouteTableRequest::setTag(const std::vector<CreateTransitRouterRouteTableRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
bool CreateTransitRouterRouteTableRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
@@ -88,6 +88,20 @@ void CreateTransitRouterVbrAttachmentRequest::setRegionId(const std::string ®
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<CreateTransitRouterVbrAttachmentRequest::Tag> CreateTransitRouterVbrAttachmentRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVbrAttachmentRequest::setTag(const std::vector<CreateTransitRouterVbrAttachmentRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
bool CreateTransitRouterVbrAttachmentRequest::getAutoPublishRouteEnabled() const {
|
||||
return autoPublishRouteEnabled_;
|
||||
}
|
||||
|
||||
@@ -97,6 +97,20 @@ void CreateTransitRouterVpcAttachmentRequest::setRegionId(const std::string ®
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<CreateTransitRouterVpcAttachmentRequest::Tag> CreateTransitRouterVpcAttachmentRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpcAttachmentRequest::setTag(const std::vector<CreateTransitRouterVpcAttachmentRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
bool CreateTransitRouterVpcAttachmentRequest::getAutoCreateVpcRoute() const {
|
||||
return autoCreateVpcRoute_;
|
||||
}
|
||||
|
||||
@@ -92,6 +92,20 @@ void CreateTransitRouterVpnAttachmentRequest::setZone(const std::vector<CreateTr
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<CreateTransitRouterVpnAttachmentRequest::Tag> CreateTransitRouterVpnAttachmentRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpnAttachmentRequest::setTag(const std::vector<CreateTransitRouterVpnAttachmentRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
bool CreateTransitRouterVpnAttachmentRequest::getAutoPublishRouteEnabled() const {
|
||||
return autoPublishRouteEnabled_;
|
||||
}
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenVpcFlowStatisticSwitchRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeCenVpcFlowStatisticSwitchRequest;
|
||||
|
||||
DescribeCenVpcFlowStatisticSwitchRequest::DescribeCenVpcFlowStatisticSwitchRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "DescribeCenVpcFlowStatisticSwitch") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCenVpcFlowStatisticSwitchRequest::~DescribeCenVpcFlowStatisticSwitchRequest() {}
|
||||
|
||||
long DescribeCenVpcFlowStatisticSwitchRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCenVpcFlowStatisticSwitchRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchRequest::getCenId() const {
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DescribeCenVpcFlowStatisticSwitchRequest::setCenId(const std::string &cenId) {
|
||||
cenId_ = cenId;
|
||||
setParameter(std::string("CenId"), cenId);
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeCenVpcFlowStatisticSwitchRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenVpcFlowStatisticSwitchRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenVpcFlowStatisticSwitchRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeCenVpcFlowStatisticSwitchRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCenVpcFlowStatisticSwitchRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DescribeCenVpcFlowStatisticSwitchResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeCenVpcFlowStatisticSwitchResult::DescribeCenVpcFlowStatisticSwitchResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCenVpcFlowStatisticSwitchResult::DescribeCenVpcFlowStatisticSwitchResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCenVpcFlowStatisticSwitchResult::~DescribeCenVpcFlowStatisticSwitchResult()
|
||||
{}
|
||||
|
||||
void DescribeCenVpcFlowStatisticSwitchResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["InvalidDate"].isNull())
|
||||
invalidDate_ = value["InvalidDate"].asString();
|
||||
if(!value["State"].isNull())
|
||||
state_ = value["State"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["CenId"].isNull())
|
||||
cenId_ = value["CenId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchResult::getState()const
|
||||
{
|
||||
return state_;
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchResult::getInvalidDate()const
|
||||
{
|
||||
return invalidDate_;
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchResult::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
std::string DescribeCenVpcFlowStatisticSwitchResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -88,6 +88,20 @@ void DescribeFlowlogsRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<DescribeFlowlogsRequest::Tag> DescribeFlowlogsRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setTag(const std::vector<DescribeFlowlogsRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsRequest::getProjectName() const {
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
@@ -67,6 +67,16 @@ void DescribeFlowlogsResult::parse(const std::string &payload)
|
||||
flowLogsObject.transitRouterAttachmentId = valueFlowLogsFlowLog["TransitRouterAttachmentId"].asString();
|
||||
if(!valueFlowLogsFlowLog["Interval"].isNull())
|
||||
flowLogsObject.interval = std::stol(valueFlowLogsFlowLog["Interval"].asString());
|
||||
auto allTagsNode = valueFlowLogsFlowLog["Tags"]["Tag"];
|
||||
for (auto valueFlowLogsFlowLogTagsTag : allTagsNode)
|
||||
{
|
||||
FlowLog::Tag tagsObject;
|
||||
if(!valueFlowLogsFlowLogTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueFlowLogsFlowLogTagsTag["Key"].asString();
|
||||
if(!valueFlowLogsFlowLogTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueFlowLogsFlowLogTagsTag["Value"].asString();
|
||||
flowLogsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
flowLogs_.push_back(flowLogsObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DisableCenVpcFlowStatisticRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DisableCenVpcFlowStatisticRequest;
|
||||
|
||||
DisableCenVpcFlowStatisticRequest::DisableCenVpcFlowStatisticRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "DisableCenVpcFlowStatistic") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableCenVpcFlowStatisticRequest::~DisableCenVpcFlowStatisticRequest() {}
|
||||
|
||||
long DisableCenVpcFlowStatisticRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DisableCenVpcFlowStatisticRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DisableCenVpcFlowStatisticRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DisableCenVpcFlowStatisticRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DisableCenVpcFlowStatisticRequest::getCenId() const {
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DisableCenVpcFlowStatisticRequest::setCenId(const std::string &cenId) {
|
||||
cenId_ = cenId;
|
||||
setParameter(std::string("CenId"), cenId);
|
||||
}
|
||||
|
||||
std::string DisableCenVpcFlowStatisticRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DisableCenVpcFlowStatisticRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DisableCenVpcFlowStatisticRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DisableCenVpcFlowStatisticRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DisableCenVpcFlowStatisticRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DisableCenVpcFlowStatisticRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DisableCenVpcFlowStatisticRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DisableCenVpcFlowStatisticRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DisableCenVpcFlowStatisticResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DisableCenVpcFlowStatisticResult::DisableCenVpcFlowStatisticResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableCenVpcFlowStatisticResult::DisableCenVpcFlowStatisticResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableCenVpcFlowStatisticResult::~DisableCenVpcFlowStatisticResult()
|
||||
{}
|
||||
|
||||
void DisableCenVpcFlowStatisticResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,99 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/EnableCenVpcFlowStatisticRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::EnableCenVpcFlowStatisticRequest;
|
||||
|
||||
EnableCenVpcFlowStatisticRequest::EnableCenVpcFlowStatisticRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "EnableCenVpcFlowStatistic") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableCenVpcFlowStatisticRequest::~EnableCenVpcFlowStatisticRequest() {}
|
||||
|
||||
long EnableCenVpcFlowStatisticRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string EnableCenVpcFlowStatisticRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string EnableCenVpcFlowStatisticRequest::getCenId() const {
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setCenId(const std::string &cenId) {
|
||||
cenId_ = cenId;
|
||||
setParameter(std::string("CenId"), cenId);
|
||||
}
|
||||
|
||||
std::string EnableCenVpcFlowStatisticRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string EnableCenVpcFlowStatisticRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string EnableCenVpcFlowStatisticRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long EnableCenVpcFlowStatisticRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int EnableCenVpcFlowStatisticRequest::getDays() const {
|
||||
return days_;
|
||||
}
|
||||
|
||||
void EnableCenVpcFlowStatisticRequest::setDays(int days) {
|
||||
days_ = days;
|
||||
setParameter(std::string("Days"), std::to_string(days));
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/EnableCenVpcFlowStatisticResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
EnableCenVpcFlowStatisticResult::EnableCenVpcFlowStatisticResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableCenVpcFlowStatisticResult::EnableCenVpcFlowStatisticResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableCenVpcFlowStatisticResult::~EnableCenVpcFlowStatisticResult()
|
||||
{}
|
||||
|
||||
void EnableCenVpcFlowStatisticResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void ListTagResourcesRequest::setNextToken(const std::string &nextToken) {
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int ListTagResourcesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
@@ -79,6 +79,20 @@ void ListTransitRouterMulticastDomainsRequest::setNextToken(const std::string &n
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::vector<ListTransitRouterMulticastDomainsRequest::Tag> ListTransitRouterMulticastDomainsRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTransitRouterMulticastDomainsRequest::setTag(const std::vector<ListTransitRouterMulticastDomainsRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListTransitRouterMulticastDomainsRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -51,6 +51,16 @@ void ListTransitRouterMulticastDomainsResult::parse(const std::string &payload)
|
||||
transitRouterMulticastDomainsObject.transitRouterMulticastDomainDescription = valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["TransitRouterMulticastDomainDescription"].asString();
|
||||
if(!valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["Status"].isNull())
|
||||
transitRouterMulticastDomainsObject.status = valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["Status"].asString();
|
||||
auto allTagsNode = valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["Tags"]["Tag"];
|
||||
for (auto valueTransitRouterMulticastDomainsTransitRouterMulticastDomainTagsTag : allTagsNode)
|
||||
{
|
||||
TransitRouterMulticastDomain::Tag tagsObject;
|
||||
if(!valueTransitRouterMulticastDomainsTransitRouterMulticastDomainTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueTransitRouterMulticastDomainsTransitRouterMulticastDomainTagsTag["Key"].asString();
|
||||
if(!valueTransitRouterMulticastDomainsTransitRouterMulticastDomainTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueTransitRouterMulticastDomainsTransitRouterMulticastDomainTagsTag["Value"].asString();
|
||||
transitRouterMulticastDomainsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
transitRouterMulticastDomains_.push_back(transitRouterMulticastDomainsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -61,6 +61,20 @@ void ListTransitRouterPeerAttachmentsRequest::setNextToken(const std::string &ne
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::vector<ListTransitRouterPeerAttachmentsRequest::Tag> ListTransitRouterPeerAttachmentsRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPeerAttachmentsRequest::setTag(const std::vector<ListTransitRouterPeerAttachmentsRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListTransitRouterPeerAttachmentsRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -77,6 +77,16 @@ void ListTransitRouterPeerAttachmentsResult::parse(const std::string &payload)
|
||||
transitRouterAttachmentsObject.autoPublishRouteEnabled = valueTransitRouterAttachmentsTransitRouterAttachment["AutoPublishRouteEnabled"].asString() == "true";
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentName"].isNull())
|
||||
transitRouterAttachmentsObject.transitRouterAttachmentName = valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentName"].asString();
|
||||
auto allTagsNode = valueTransitRouterAttachmentsTransitRouterAttachment["Tags"]["Tag"];
|
||||
for (auto valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag : allTagsNode)
|
||||
{
|
||||
TransitRouterAttachment::Tag tagsObject;
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Key"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Value"].asString();
|
||||
transitRouterAttachmentsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
transitRouterAttachments_.push_back(transitRouterAttachmentsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -77,6 +77,20 @@ void ListTransitRouterRouteTablesRequest::setNextToken(const std::string &nextTo
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::vector<ListTransitRouterRouteTablesRequest::Tag> ListTransitRouterRouteTablesRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTransitRouterRouteTablesRequest::setTag(const std::vector<ListTransitRouterRouteTablesRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListTransitRouterRouteTablesRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -55,6 +55,16 @@ void ListTransitRouterRouteTablesResult::parse(const std::string &payload)
|
||||
transitRouterRouteTablesObject.transitRouterRouteTableName = valueTransitRouterRouteTablesTransitRouterRouteTable["TransitRouterRouteTableName"].asString();
|
||||
if(!valueTransitRouterRouteTablesTransitRouterRouteTable["TransitRouterRouteTableDescription"].isNull())
|
||||
transitRouterRouteTablesObject.transitRouterRouteTableDescription = valueTransitRouterRouteTablesTransitRouterRouteTable["TransitRouterRouteTableDescription"].asString();
|
||||
auto allTagsNode = valueTransitRouterRouteTablesTransitRouterRouteTable["Tags"]["Tag"];
|
||||
for (auto valueTransitRouterRouteTablesTransitRouterRouteTableTagsTag : allTagsNode)
|
||||
{
|
||||
TransitRouterRouteTable::Tag tagsObject;
|
||||
if(!valueTransitRouterRouteTablesTransitRouterRouteTableTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueTransitRouterRouteTablesTransitRouterRouteTableTagsTag["Key"].asString();
|
||||
if(!valueTransitRouterRouteTablesTransitRouterRouteTableTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueTransitRouterRouteTablesTransitRouterRouteTableTagsTag["Value"].asString();
|
||||
transitRouterRouteTablesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
transitRouterRouteTables_.push_back(transitRouterRouteTablesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -61,6 +61,20 @@ void ListTransitRouterVbrAttachmentsRequest::setNextToken(const std::string &nex
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::vector<ListTransitRouterVbrAttachmentsRequest::Tag> ListTransitRouterVbrAttachmentsRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTransitRouterVbrAttachmentsRequest::setTag(const std::vector<ListTransitRouterVbrAttachmentsRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListTransitRouterVbrAttachmentsRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -65,6 +65,16 @@ void ListTransitRouterVbrAttachmentsResult::parse(const std::string &payload)
|
||||
transitRouterAttachmentsObject.vbrId = valueTransitRouterAttachmentsTransitRouterAttachment["VbrId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentName"].isNull())
|
||||
transitRouterAttachmentsObject.transitRouterAttachmentName = valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentName"].asString();
|
||||
auto allTagsNode = valueTransitRouterAttachmentsTransitRouterAttachment["Tags"]["Tag"];
|
||||
for (auto valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag : allTagsNode)
|
||||
{
|
||||
TransitRouterAttachment::Tag tagsObject;
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Key"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Value"].asString();
|
||||
transitRouterAttachmentsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
transitRouterAttachments_.push_back(transitRouterAttachmentsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -61,6 +61,20 @@ void ListTransitRouterVpcAttachmentsRequest::setNextToken(const std::string &nex
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::vector<ListTransitRouterVpcAttachmentsRequest::Tag> ListTransitRouterVpcAttachmentsRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTransitRouterVpcAttachmentsRequest::setTag(const std::vector<ListTransitRouterVpcAttachmentsRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListTransitRouterVpcAttachmentsRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -81,6 +81,16 @@ void ListTransitRouterVpcAttachmentsResult::parse(const std::string &payload)
|
||||
zoneMappingsObject.networkInterfaceId = valueTransitRouterAttachmentsTransitRouterAttachmentZoneMappingsZoneMapping["NetworkInterfaceId"].asString();
|
||||
transitRouterAttachmentsObject.zoneMappings.push_back(zoneMappingsObject);
|
||||
}
|
||||
auto allTagsNode = valueTransitRouterAttachmentsTransitRouterAttachment["Tags"]["Tag"];
|
||||
for (auto valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag : allTagsNode)
|
||||
{
|
||||
TransitRouterAttachment::Tag tagsObject;
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Key"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Value"].asString();
|
||||
transitRouterAttachmentsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
transitRouterAttachments_.push_back(transitRouterAttachmentsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -61,6 +61,20 @@ void ListTransitRouterVpnAttachmentsRequest::setNextToken(const std::string &nex
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::vector<ListTransitRouterVpnAttachmentsRequest::Tag> ListTransitRouterVpnAttachmentsRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTransitRouterVpnAttachmentsRequest::setTag(const std::vector<ListTransitRouterVpnAttachmentsRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListTransitRouterVpnAttachmentsRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -73,6 +73,16 @@ void ListTransitRouterVpnAttachmentsResult::parse(const std::string &payload)
|
||||
zonesObject.zoneId = valueTransitRouterAttachmentsTransitRouterAttachmentZonesZoneMapping["ZoneId"].asString();
|
||||
transitRouterAttachmentsObject.zones.push_back(zonesObject);
|
||||
}
|
||||
auto allTagsNode = valueTransitRouterAttachmentsTransitRouterAttachment["Tags"]["Tag"];
|
||||
for (auto valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag : allTagsNode)
|
||||
{
|
||||
TransitRouterAttachment::Tag tagsObject;
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Key"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag["Value"].asString();
|
||||
transitRouterAttachmentsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
transitRouterAttachments_.push_back(transitRouterAttachmentsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -78,6 +78,20 @@ void ListTransitRoutersRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<ListTransitRoutersRequest::Tag> ListTransitRoutersRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTransitRoutersRequest::setTag(const std::vector<ListTransitRoutersRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListTransitRoutersRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -81,6 +81,16 @@ void ListTransitRoutersResult::parse(const std::string &payload)
|
||||
transitRouterCidrListObject.publishCidrRoute = valueTransitRoutersTransitRouterTransitRouterCidrListTransitRouterCidrListItem["PublishCidrRoute"].asString() == "true";
|
||||
transitRoutersObject.transitRouterCidrList.push_back(transitRouterCidrListObject);
|
||||
}
|
||||
auto allTagsNode = valueTransitRoutersTransitRouter["Tags"]["Tag"];
|
||||
for (auto valueTransitRoutersTransitRouterTagsTag : allTagsNode)
|
||||
{
|
||||
TransitRouter::Tag tagsObject;
|
||||
if(!valueTransitRoutersTransitRouterTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueTransitRoutersTransitRouterTagsTag["Key"].asString();
|
||||
if(!valueTransitRoutersTransitRouterTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueTransitRoutersTransitRouterTagsTag["Value"].asString();
|
||||
transitRoutersObject.tags.push_back(tagsObject);
|
||||
}
|
||||
transitRouters_.push_back(transitRoutersObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
|
||||
@@ -34,6 +34,15 @@ void TagResourcesRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
bool UntagResourcesRequest::getAll() const {
|
||||
return all_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user