Supported ECR Attachment.
This commit is contained in:
212
cbn/src/model/CreateTransitRouterEcrAttachmentRequest.cc
Normal file
212
cbn/src/model/CreateTransitRouterEcrAttachmentRequest.cc
Normal file
@@ -0,0 +1,212 @@
|
||||
/*
|
||||
* 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/CreateTransitRouterEcrAttachmentRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::CreateTransitRouterEcrAttachmentRequest;
|
||||
|
||||
CreateTransitRouterEcrAttachmentRequest::CreateTransitRouterEcrAttachmentRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "CreateTransitRouterEcrAttachment") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTransitRouterEcrAttachmentRequest::~CreateTransitRouterEcrAttachmentRequest() {}
|
||||
|
||||
long CreateTransitRouterEcrAttachmentRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterEcrAttachmentRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterEcrAttachmentRequest::getCenId() const {
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setCenId(const std::string &cenId) {
|
||||
cenId_ = cenId;
|
||||
setParameter(std::string("CenId"), cenId);
|
||||
}
|
||||
|
||||
bool CreateTransitRouterEcrAttachmentRequest::getRouteTableAssociationEnabled() const {
|
||||
return routeTableAssociationEnabled_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setRouteTableAssociationEnabled(bool routeTableAssociationEnabled) {
|
||||
routeTableAssociationEnabled_ = routeTableAssociationEnabled;
|
||||
setParameter(std::string("RouteTableAssociationEnabled"), routeTableAssociationEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterEcrAttachmentRequest::getTransitRouterAttachmentName() const {
|
||||
return transitRouterAttachmentName_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setTransitRouterAttachmentName(const std::string &transitRouterAttachmentName) {
|
||||
transitRouterAttachmentName_ = transitRouterAttachmentName;
|
||||
setParameter(std::string("TransitRouterAttachmentName"), transitRouterAttachmentName);
|
||||
}
|
||||
|
||||
bool CreateTransitRouterEcrAttachmentRequest::getFastLink() const {
|
||||
return fastLink_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setFastLink(bool fastLink) {
|
||||
fastLink_ = fastLink;
|
||||
setParameter(std::string("FastLink"), fastLink ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterEcrAttachmentRequest::getEcrId() const {
|
||||
return ecrId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setEcrId(const std::string &ecrId) {
|
||||
ecrId_ = ecrId;
|
||||
setParameter(std::string("EcrId"), ecrId);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterEcrAttachmentRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<CreateTransitRouterEcrAttachmentRequest::Tag> CreateTransitRouterEcrAttachmentRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setTag(const std::vector<CreateTransitRouterEcrAttachmentRequest::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 CreateTransitRouterEcrAttachmentRequest::getAutoPublishRouteEnabled() const {
|
||||
return autoPublishRouteEnabled_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setAutoPublishRouteEnabled(bool autoPublishRouteEnabled) {
|
||||
autoPublishRouteEnabled_ = autoPublishRouteEnabled;
|
||||
setParameter(std::string("AutoPublishRouteEnabled"), autoPublishRouteEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTransitRouterEcrAttachmentRequest::getRouteTablePropagationEnabled() const {
|
||||
return routeTablePropagationEnabled_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setRouteTablePropagationEnabled(bool routeTablePropagationEnabled) {
|
||||
routeTablePropagationEnabled_ = routeTablePropagationEnabled;
|
||||
setParameter(std::string("RouteTablePropagationEnabled"), routeTablePropagationEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
long CreateTransitRouterEcrAttachmentRequest::getEcrOwnerId() const {
|
||||
return ecrOwnerId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setEcrOwnerId(long ecrOwnerId) {
|
||||
ecrOwnerId_ = ecrOwnerId;
|
||||
setParameter(std::string("EcrOwnerId"), std::to_string(ecrOwnerId));
|
||||
}
|
||||
|
||||
bool CreateTransitRouterEcrAttachmentRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterEcrAttachmentRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterEcrAttachmentRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long CreateTransitRouterEcrAttachmentRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterEcrAttachmentRequest::getTransitRouterId() const {
|
||||
return transitRouterId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setTransitRouterId(const std::string &transitRouterId) {
|
||||
transitRouterId_ = transitRouterId;
|
||||
setParameter(std::string("TransitRouterId"), transitRouterId);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterEcrAttachmentRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterEcrAttachmentRequest::getVersion() const {
|
||||
return version_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setVersion(const std::string &version) {
|
||||
version_ = version;
|
||||
setParameter(std::string("Version"), version);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterEcrAttachmentRequest::getTransitRouterAttachmentDescription() const {
|
||||
return transitRouterAttachmentDescription_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentRequest::setTransitRouterAttachmentDescription(const std::string &transitRouterAttachmentDescription) {
|
||||
transitRouterAttachmentDescription_ = transitRouterAttachmentDescription;
|
||||
setParameter(std::string("TransitRouterAttachmentDescription"), transitRouterAttachmentDescription);
|
||||
}
|
||||
|
||||
51
cbn/src/model/CreateTransitRouterEcrAttachmentResult.cc
Normal file
51
cbn/src/model/CreateTransitRouterEcrAttachmentResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/CreateTransitRouterEcrAttachmentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
CreateTransitRouterEcrAttachmentResult::CreateTransitRouterEcrAttachmentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTransitRouterEcrAttachmentResult::CreateTransitRouterEcrAttachmentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTransitRouterEcrAttachmentResult::~CreateTransitRouterEcrAttachmentResult()
|
||||
{}
|
||||
|
||||
void CreateTransitRouterEcrAttachmentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TransitRouterAttachmentId"].isNull())
|
||||
transitRouterAttachmentId_ = value["TransitRouterAttachmentId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterEcrAttachmentResult::getTransitRouterAttachmentId()const
|
||||
{
|
||||
return transitRouterAttachmentId_;
|
||||
}
|
||||
|
||||
@@ -79,6 +79,15 @@ void CreateTransitRouterPeerAttachmentRequest::setTransitRouterAttachmentName(co
|
||||
setParameter(std::string("TransitRouterAttachmentName"), transitRouterAttachmentName);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPeerAttachmentRequest::getDefaultLinkType() const {
|
||||
return defaultLinkType_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPeerAttachmentRequest::setDefaultLinkType(const std::string &defaultLinkType) {
|
||||
defaultLinkType_ = defaultLinkType;
|
||||
setParameter(std::string("DefaultLinkType"), defaultLinkType);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPeerAttachmentRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
117
cbn/src/model/DeleteTransitRouterEcrAttachmentRequest.cc
Normal file
117
cbn/src/model/DeleteTransitRouterEcrAttachmentRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DeleteTransitRouterEcrAttachmentRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DeleteTransitRouterEcrAttachmentRequest;
|
||||
|
||||
DeleteTransitRouterEcrAttachmentRequest::DeleteTransitRouterEcrAttachmentRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "DeleteTransitRouterEcrAttachment") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTransitRouterEcrAttachmentRequest::~DeleteTransitRouterEcrAttachmentRequest() {}
|
||||
|
||||
long DeleteTransitRouterEcrAttachmentRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterEcrAttachmentRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterEcrAttachmentRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterEcrAttachmentRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool DeleteTransitRouterEcrAttachmentRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterEcrAttachmentRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterEcrAttachmentRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterEcrAttachmentRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterEcrAttachmentRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterEcrAttachmentRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteTransitRouterEcrAttachmentRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterEcrAttachmentRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterEcrAttachmentRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterEcrAttachmentRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterEcrAttachmentRequest::getVersion() const {
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterEcrAttachmentRequest::setVersion(const std::string &version) {
|
||||
version_ = version;
|
||||
setParameter(std::string("Version"), version);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterEcrAttachmentRequest::getTransitRouterAttachmentId() const {
|
||||
return transitRouterAttachmentId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterEcrAttachmentRequest::setTransitRouterAttachmentId(const std::string &transitRouterAttachmentId) {
|
||||
transitRouterAttachmentId_ = transitRouterAttachmentId;
|
||||
setParameter(std::string("TransitRouterAttachmentId"), transitRouterAttachmentId);
|
||||
}
|
||||
|
||||
bool DeleteTransitRouterEcrAttachmentRequest::getForce() const {
|
||||
return force_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterEcrAttachmentRequest::setForce(bool force) {
|
||||
force_ = force;
|
||||
setParameter(std::string("Force"), force ? "true" : "false");
|
||||
}
|
||||
|
||||
44
cbn/src/model/DeleteTransitRouterEcrAttachmentResult.cc
Normal file
44
cbn/src/model/DeleteTransitRouterEcrAttachmentResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DeleteTransitRouterEcrAttachmentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DeleteTransitRouterEcrAttachmentResult::DeleteTransitRouterEcrAttachmentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTransitRouterEcrAttachmentResult::DeleteTransitRouterEcrAttachmentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTransitRouterEcrAttachmentResult::~DeleteTransitRouterEcrAttachmentResult()
|
||||
{}
|
||||
|
||||
void DeleteTransitRouterEcrAttachmentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -65,6 +65,8 @@ void DescribeCenVbrHealthCheckResult::parse(const std::string &payload)
|
||||
vbrHealthChecksObject.packetLoss = std::stol(valueVbrHealthChecksVbrHealthCheck["PacketLoss"].asString());
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["HealthCheckOnly"].isNull())
|
||||
vbrHealthChecksObject.healthCheckOnly = valueVbrHealthChecksVbrHealthCheck["HealthCheckOnly"].asString() == "true";
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["Description"].isNull())
|
||||
vbrHealthChecksObject.description = valueVbrHealthChecksVbrHealthCheck["Description"].asString();
|
||||
vbrHealthChecks_.push_back(vbrHealthChecksObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
|
||||
@@ -57,6 +57,8 @@ void DescribeGrantRulesToCenResult::parse(const std::string &payload)
|
||||
grantRulesObject.orderType = valueGrantRulesGrantRule["OrderType"].asString();
|
||||
if(!valueGrantRulesGrantRule["CenOwnerId"].isNull())
|
||||
grantRulesObject.cenOwnerId = std::stol(valueGrantRulesGrantRule["CenOwnerId"].asString());
|
||||
if(!valueGrantRulesGrantRule["CreateTime"].isNull())
|
||||
grantRulesObject.createTime = std::stol(valueGrantRulesGrantRule["CreateTime"].asString());
|
||||
grantRules_.push_back(grantRulesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -49,6 +49,8 @@ void DescribeGrantRulesToResourceResult::parse(const std::string &payload)
|
||||
grantRulesObject.orderType = valueGrantRulesGrantRule["OrderType"].asString();
|
||||
if(!valueGrantRulesGrantRule["CenId"].isNull())
|
||||
grantRulesObject.cenId = valueGrantRulesGrantRule["CenId"].asString();
|
||||
if(!valueGrantRulesGrantRule["CreateTime"].isNull())
|
||||
grantRulesObject.createTime = valueGrantRulesGrantRule["CreateTime"].asString();
|
||||
grantRules_.push_back(grantRulesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -52,6 +52,15 @@ void EnableCenVbrHealthCheckRequest::setHealthCheckTargetIp(const std::string &h
|
||||
setParameter(std::string("HealthCheckTargetIp"), healthCheckTargetIp);
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void EnableCenVbrHealthCheckRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
int EnableCenVbrHealthCheckRequest::getHealthyThreshold() const {
|
||||
return healthyThreshold_;
|
||||
}
|
||||
|
||||
149
cbn/src/model/ListTransitRouterEcrAttachmentsRequest.cc
Normal file
149
cbn/src/model/ListTransitRouterEcrAttachmentsRequest.cc
Normal 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/cbn/model/ListTransitRouterEcrAttachmentsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::ListTransitRouterEcrAttachmentsRequest;
|
||||
|
||||
ListTransitRouterEcrAttachmentsRequest::ListTransitRouterEcrAttachmentsRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "ListTransitRouterEcrAttachments") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTransitRouterEcrAttachmentsRequest::~ListTransitRouterEcrAttachmentsRequest() {}
|
||||
|
||||
long ListTransitRouterEcrAttachmentsRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterEcrAttachmentsRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ListTransitRouterEcrAttachmentsRequest::getCenId() const {
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterEcrAttachmentsRequest::setCenId(const std::string &cenId) {
|
||||
cenId_ = cenId;
|
||||
setParameter(std::string("CenId"), cenId);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterEcrAttachmentsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterEcrAttachmentsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterEcrAttachmentsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTransitRouterEcrAttachmentsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::vector<ListTransitRouterEcrAttachmentsRequest::Tag> ListTransitRouterEcrAttachmentsRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTransitRouterEcrAttachmentsRequest::setTag(const std::vector<ListTransitRouterEcrAttachmentsRequest::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 ListTransitRouterEcrAttachmentsRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ListTransitRouterEcrAttachmentsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterEcrAttachmentsRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ListTransitRouterEcrAttachmentsRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long ListTransitRouterEcrAttachmentsRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterEcrAttachmentsRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ListTransitRouterEcrAttachmentsRequest::getTransitRouterId() const {
|
||||
return transitRouterId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterEcrAttachmentsRequest::setTransitRouterId(const std::string &transitRouterId) {
|
||||
transitRouterId_ = transitRouterId;
|
||||
setParameter(std::string("TransitRouterId"), transitRouterId);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterEcrAttachmentsRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ListTransitRouterEcrAttachmentsRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterEcrAttachmentsRequest::getVersion() const {
|
||||
return version_;
|
||||
}
|
||||
|
||||
void ListTransitRouterEcrAttachmentsRequest::setVersion(const std::string &version) {
|
||||
version_ = version;
|
||||
setParameter(std::string("Version"), version);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterEcrAttachmentsRequest::getTransitRouterAttachmentId() const {
|
||||
return transitRouterAttachmentId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterEcrAttachmentsRequest::setTransitRouterAttachmentId(const std::string &transitRouterAttachmentId) {
|
||||
transitRouterAttachmentId_ = transitRouterAttachmentId;
|
||||
setParameter(std::string("TransitRouterAttachmentId"), transitRouterAttachmentId);
|
||||
}
|
||||
|
||||
int ListTransitRouterEcrAttachmentsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListTransitRouterEcrAttachmentsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
112
cbn/src/model/ListTransitRouterEcrAttachmentsResult.cc
Normal file
112
cbn/src/model/ListTransitRouterEcrAttachmentsResult.cc
Normal file
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* 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/ListTransitRouterEcrAttachmentsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
ListTransitRouterEcrAttachmentsResult::ListTransitRouterEcrAttachmentsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTransitRouterEcrAttachmentsResult::ListTransitRouterEcrAttachmentsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTransitRouterEcrAttachmentsResult::~ListTransitRouterEcrAttachmentsResult()
|
||||
{}
|
||||
|
||||
void ListTransitRouterEcrAttachmentsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTransitRouterAttachmentsNode = value["TransitRouterAttachments"]["TransitRouterAttachment"];
|
||||
for (auto valueTransitRouterAttachmentsTransitRouterAttachment : allTransitRouterAttachmentsNode)
|
||||
{
|
||||
TransitRouterAttachment transitRouterAttachmentsObject;
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["CreationTime"].isNull())
|
||||
transitRouterAttachmentsObject.creationTime = valueTransitRouterAttachmentsTransitRouterAttachment["CreationTime"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["Status"].isNull())
|
||||
transitRouterAttachmentsObject.status = valueTransitRouterAttachmentsTransitRouterAttachment["Status"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentId"].isNull())
|
||||
transitRouterAttachmentsObject.transitRouterAttachmentId = valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterId"].isNull())
|
||||
transitRouterAttachmentsObject.transitRouterId = valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["ResourceType"].isNull())
|
||||
transitRouterAttachmentsObject.resourceType = valueTransitRouterAttachmentsTransitRouterAttachment["ResourceType"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterRegionId"].isNull())
|
||||
transitRouterAttachmentsObject.transitRouterRegionId = valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterRegionId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentDescription"].isNull())
|
||||
transitRouterAttachmentsObject.transitRouterAttachmentDescription = valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentDescription"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["EcrOwnerId"].isNull())
|
||||
transitRouterAttachmentsObject.ecrOwnerId = std::stol(valueTransitRouterAttachmentsTransitRouterAttachment["EcrOwnerId"].asString());
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["AutoPublishRouteEnabled"].isNull())
|
||||
transitRouterAttachmentsObject.autoPublishRouteEnabled = valueTransitRouterAttachmentsTransitRouterAttachment["AutoPublishRouteEnabled"].asString() == "true";
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["EcrId"].isNull())
|
||||
transitRouterAttachmentsObject.ecrId = valueTransitRouterAttachmentsTransitRouterAttachment["EcrId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentName"].isNull())
|
||||
transitRouterAttachmentsObject.transitRouterAttachmentName = valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentName"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["CenId"].isNull())
|
||||
transitRouterAttachmentsObject.cenId = valueTransitRouterAttachmentsTransitRouterAttachment["CenId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["OrderType"].isNull())
|
||||
transitRouterAttachmentsObject.orderType = valueTransitRouterAttachmentsTransitRouterAttachment["OrderType"].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())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListTransitRouterEcrAttachmentsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListTransitRouterEcrAttachmentsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListTransitRouterEcrAttachmentsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::vector<ListTransitRouterEcrAttachmentsResult::TransitRouterAttachment> ListTransitRouterEcrAttachmentsResult::getTransitRouterAttachments()const
|
||||
{
|
||||
return transitRouterAttachments_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void ListTransitRouterPeerAttachmentsRequest::setCenId(const std::string &cenId)
|
||||
setParameter(std::string("CenId"), cenId);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterPeerAttachmentsRequest::getDefaultLinkType() const {
|
||||
return defaultLinkType_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPeerAttachmentsRequest::setDefaultLinkType(const std::string &defaultLinkType) {
|
||||
defaultLinkType_ = defaultLinkType;
|
||||
setParameter(std::string("DefaultLinkType"), defaultLinkType);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterPeerAttachmentsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -79,6 +79,8 @@ void ListTransitRouterPeerAttachmentsResult::parse(const std::string &payload)
|
||||
transitRouterAttachmentsObject.transitRouterAttachmentName = valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentName"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["CenId"].isNull())
|
||||
transitRouterAttachmentsObject.cenId = valueTransitRouterAttachmentsTransitRouterAttachment["CenId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["DefaultLinkType"].isNull())
|
||||
transitRouterAttachmentsObject.defaultLinkType = valueTransitRouterAttachmentsTransitRouterAttachment["DefaultLinkType"].asString();
|
||||
auto allTagsNode = valueTransitRouterAttachmentsTransitRouterAttachment["Tags"]["Tag"];
|
||||
for (auto valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -67,6 +67,8 @@ void ListTransitRouterVbrAttachmentsResult::parse(const std::string &payload)
|
||||
transitRouterAttachmentsObject.transitRouterAttachmentName = valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentName"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["CenId"].isNull())
|
||||
transitRouterAttachmentsObject.cenId = valueTransitRouterAttachmentsTransitRouterAttachment["CenId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["OrderType"].isNull())
|
||||
transitRouterAttachmentsObject.orderType = valueTransitRouterAttachmentsTransitRouterAttachment["OrderType"].asString();
|
||||
auto allTagsNode = valueTransitRouterAttachmentsTransitRouterAttachment["Tags"]["Tag"];
|
||||
for (auto valueTransitRouterAttachmentsTransitRouterAttachmentTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -52,6 +52,15 @@ void ListTransitRoutersRequest::setCenId(const std::string &cenId) {
|
||||
setParameter(std::string("CenId"), cenId);
|
||||
}
|
||||
|
||||
bool ListTransitRoutersRequest::getGetPrimaryStandbyZoneInfo() const {
|
||||
return getPrimaryStandbyZoneInfo_;
|
||||
}
|
||||
|
||||
void ListTransitRoutersRequest::setGetPrimaryStandbyZoneInfo(bool getPrimaryStandbyZoneInfo) {
|
||||
getPrimaryStandbyZoneInfo_ = getPrimaryStandbyZoneInfo;
|
||||
setParameter(std::string("GetPrimaryStandbyZoneInfo"), getPrimaryStandbyZoneInfo ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<ListTransitRoutersRequest::FeatureFilter> ListTransitRoutersRequest::getFeatureFilter() const {
|
||||
return featureFilter_;
|
||||
}
|
||||
|
||||
@@ -91,6 +91,16 @@ void ListTransitRoutersResult::parse(const std::string &payload)
|
||||
tagsObject.value = valueTransitRoutersTransitRouterTagsTag["Value"].asString();
|
||||
transitRoutersObject.tags.push_back(tagsObject);
|
||||
}
|
||||
auto allTransitRouterPrimaryStandbyZoneInfoListNode = valueTransitRoutersTransitRouter["TransitRouterPrimaryStandbyZoneInfoList"]["TransitRouterPrimaryStandbyZoneInfoListItem"];
|
||||
for (auto valueTransitRoutersTransitRouterTransitRouterPrimaryStandbyZoneInfoListTransitRouterPrimaryStandbyZoneInfoListItem : allTransitRouterPrimaryStandbyZoneInfoListNode)
|
||||
{
|
||||
TransitRouter::TransitRouterPrimaryStandbyZoneInfoListItem transitRouterPrimaryStandbyZoneInfoListObject;
|
||||
if(!valueTransitRoutersTransitRouterTransitRouterPrimaryStandbyZoneInfoListTransitRouterPrimaryStandbyZoneInfoListItem["ZoneId"].isNull())
|
||||
transitRouterPrimaryStandbyZoneInfoListObject.zoneId = valueTransitRoutersTransitRouterTransitRouterPrimaryStandbyZoneInfoListTransitRouterPrimaryStandbyZoneInfoListItem["ZoneId"].asString();
|
||||
if(!valueTransitRoutersTransitRouterTransitRouterPrimaryStandbyZoneInfoListTransitRouterPrimaryStandbyZoneInfoListItem["Role"].isNull())
|
||||
transitRouterPrimaryStandbyZoneInfoListObject.role = valueTransitRoutersTransitRouterTransitRouterPrimaryStandbyZoneInfoListTransitRouterPrimaryStandbyZoneInfoListItem["Role"].asString();
|
||||
transitRoutersObject.transitRouterPrimaryStandbyZoneInfoList.push_back(transitRouterPrimaryStandbyZoneInfoListObject);
|
||||
}
|
||||
transitRouters_.push_back(transitRoutersObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/UpdateTransitRouterEcrAttachmentAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::UpdateTransitRouterEcrAttachmentAttributeRequest;
|
||||
|
||||
UpdateTransitRouterEcrAttachmentAttributeRequest::UpdateTransitRouterEcrAttachmentAttributeRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "UpdateTransitRouterEcrAttachmentAttribute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateTransitRouterEcrAttachmentAttributeRequest::~UpdateTransitRouterEcrAttachmentAttributeRequest() {}
|
||||
|
||||
long UpdateTransitRouterEcrAttachmentAttributeRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterEcrAttachmentAttributeRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterEcrAttachmentAttributeRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterEcrAttachmentAttributeRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterEcrAttachmentAttributeRequest::getTransitRouterAttachmentName() const {
|
||||
return transitRouterAttachmentName_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterEcrAttachmentAttributeRequest::setTransitRouterAttachmentName(const std::string &transitRouterAttachmentName) {
|
||||
transitRouterAttachmentName_ = transitRouterAttachmentName;
|
||||
setParameter(std::string("TransitRouterAttachmentName"), transitRouterAttachmentName);
|
||||
}
|
||||
|
||||
bool UpdateTransitRouterEcrAttachmentAttributeRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterEcrAttachmentAttributeRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterEcrAttachmentAttributeRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterEcrAttachmentAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterEcrAttachmentAttributeRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterEcrAttachmentAttributeRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long UpdateTransitRouterEcrAttachmentAttributeRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterEcrAttachmentAttributeRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterEcrAttachmentAttributeRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterEcrAttachmentAttributeRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterEcrAttachmentAttributeRequest::getVersion() const {
|
||||
return version_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterEcrAttachmentAttributeRequest::setVersion(const std::string &version) {
|
||||
version_ = version;
|
||||
setParameter(std::string("Version"), version);
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterEcrAttachmentAttributeRequest::getTransitRouterAttachmentId() const {
|
||||
return transitRouterAttachmentId_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterEcrAttachmentAttributeRequest::setTransitRouterAttachmentId(const std::string &transitRouterAttachmentId) {
|
||||
transitRouterAttachmentId_ = transitRouterAttachmentId;
|
||||
setParameter(std::string("TransitRouterAttachmentId"), transitRouterAttachmentId);
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterEcrAttachmentAttributeRequest::getTransitRouterAttachmentDescription() const {
|
||||
return transitRouterAttachmentDescription_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterEcrAttachmentAttributeRequest::setTransitRouterAttachmentDescription(const std::string &transitRouterAttachmentDescription) {
|
||||
transitRouterAttachmentDescription_ = transitRouterAttachmentDescription;
|
||||
setParameter(std::string("TransitRouterAttachmentDescription"), transitRouterAttachmentDescription);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/UpdateTransitRouterEcrAttachmentAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
UpdateTransitRouterEcrAttachmentAttributeResult::UpdateTransitRouterEcrAttachmentAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateTransitRouterEcrAttachmentAttributeResult::UpdateTransitRouterEcrAttachmentAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateTransitRouterEcrAttachmentAttributeResult::~UpdateTransitRouterEcrAttachmentAttributeResult()
|
||||
{}
|
||||
|
||||
void UpdateTransitRouterEcrAttachmentAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -61,6 +61,15 @@ void UpdateTransitRouterPeerAttachmentAttributeRequest::setTransitRouterAttachme
|
||||
setParameter(std::string("TransitRouterAttachmentName"), transitRouterAttachmentName);
|
||||
}
|
||||
|
||||
std::string UpdateTransitRouterPeerAttachmentAttributeRequest::getDefaultLinkType() const {
|
||||
return defaultLinkType_;
|
||||
}
|
||||
|
||||
void UpdateTransitRouterPeerAttachmentAttributeRequest::setDefaultLinkType(const std::string &defaultLinkType) {
|
||||
defaultLinkType_ = defaultLinkType;
|
||||
setParameter(std::string("DefaultLinkType"), defaultLinkType);
|
||||
}
|
||||
|
||||
bool UpdateTransitRouterPeerAttachmentAttributeRequest::getAutoPublishRouteEnabled() const {
|
||||
return autoPublishRouteEnabled_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user