Support MatchAddressType in RouteMap API.
This commit is contained in:
144
cbn/src/model/CreateTransitRouterPrefixListAssociationRequest.cc
Normal file
144
cbn/src/model/CreateTransitRouterPrefixListAssociationRequest.cc
Normal file
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* 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/CreateTransitRouterPrefixListAssociationRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::CreateTransitRouterPrefixListAssociationRequest;
|
||||
|
||||
CreateTransitRouterPrefixListAssociationRequest::CreateTransitRouterPrefixListAssociationRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "CreateTransitRouterPrefixListAssociation") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTransitRouterPrefixListAssociationRequest::~CreateTransitRouterPrefixListAssociationRequest() {}
|
||||
|
||||
long CreateTransitRouterPrefixListAssociationRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getPrefixListId() const {
|
||||
return prefixListId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setPrefixListId(const std::string &prefixListId) {
|
||||
prefixListId_ = prefixListId;
|
||||
setParameter(std::string("PrefixListId"), prefixListId);
|
||||
}
|
||||
|
||||
long CreateTransitRouterPrefixListAssociationRequest::getOwnerUid() const {
|
||||
return ownerUid_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setOwnerUid(long ownerUid) {
|
||||
ownerUid_ = ownerUid;
|
||||
setParameter(std::string("OwnerUid"), std::to_string(ownerUid));
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getNextHopType() const {
|
||||
return nextHopType_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setNextHopType(const std::string &nextHopType) {
|
||||
nextHopType_ = nextHopType;
|
||||
setParameter(std::string("NextHopType"), nextHopType);
|
||||
}
|
||||
|
||||
bool CreateTransitRouterPrefixListAssociationRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long CreateTransitRouterPrefixListAssociationRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getTransitRouterId() const {
|
||||
return transitRouterId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setTransitRouterId(const std::string &transitRouterId) {
|
||||
transitRouterId_ = transitRouterId;
|
||||
setParameter(std::string("TransitRouterId"), transitRouterId);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getTransitRouterTableId() const {
|
||||
return transitRouterTableId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setTransitRouterTableId(const std::string &transitRouterTableId) {
|
||||
transitRouterTableId_ = transitRouterTableId;
|
||||
setParameter(std::string("TransitRouterTableId"), transitRouterTableId);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getNextHop() const {
|
||||
return nextHop_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setNextHop(const std::string &nextHop) {
|
||||
nextHop_ = nextHop;
|
||||
setParameter(std::string("NextHop"), nextHop);
|
||||
}
|
||||
|
||||
@@ -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/CreateTransitRouterPrefixListAssociationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
CreateTransitRouterPrefixListAssociationResult::CreateTransitRouterPrefixListAssociationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTransitRouterPrefixListAssociationResult::CreateTransitRouterPrefixListAssociationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTransitRouterPrefixListAssociationResult::~CreateTransitRouterPrefixListAssociationResult()
|
||||
{}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
135
cbn/src/model/DeleteTransitRouterPrefixListAssociationRequest.cc
Normal file
135
cbn/src/model/DeleteTransitRouterPrefixListAssociationRequest.cc
Normal file
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* 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/DeleteTransitRouterPrefixListAssociationRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DeleteTransitRouterPrefixListAssociationRequest;
|
||||
|
||||
DeleteTransitRouterPrefixListAssociationRequest::DeleteTransitRouterPrefixListAssociationRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "DeleteTransitRouterPrefixListAssociation") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTransitRouterPrefixListAssociationRequest::~DeleteTransitRouterPrefixListAssociationRequest() {}
|
||||
|
||||
long DeleteTransitRouterPrefixListAssociationRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getPrefixListId() const {
|
||||
return prefixListId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setPrefixListId(const std::string &prefixListId) {
|
||||
prefixListId_ = prefixListId;
|
||||
setParameter(std::string("PrefixListId"), prefixListId);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getNextHopType() const {
|
||||
return nextHopType_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setNextHopType(const std::string &nextHopType) {
|
||||
nextHopType_ = nextHopType;
|
||||
setParameter(std::string("NextHopType"), nextHopType);
|
||||
}
|
||||
|
||||
bool DeleteTransitRouterPrefixListAssociationRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteTransitRouterPrefixListAssociationRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getTransitRouterId() const {
|
||||
return transitRouterId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setTransitRouterId(const std::string &transitRouterId) {
|
||||
transitRouterId_ = transitRouterId;
|
||||
setParameter(std::string("TransitRouterId"), transitRouterId);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getTransitRouterTableId() const {
|
||||
return transitRouterTableId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setTransitRouterTableId(const std::string &transitRouterTableId) {
|
||||
transitRouterTableId_ = transitRouterTableId;
|
||||
setParameter(std::string("TransitRouterTableId"), transitRouterTableId);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getNextHop() const {
|
||||
return nextHop_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setNextHop(const std::string &nextHop) {
|
||||
nextHop_ = nextHop;
|
||||
setParameter(std::string("NextHop"), nextHop);
|
||||
}
|
||||
|
||||
@@ -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/DeleteTransitRouterPrefixListAssociationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DeleteTransitRouterPrefixListAssociationResult::DeleteTransitRouterPrefixListAssociationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTransitRouterPrefixListAssociationResult::DeleteTransitRouterPrefixListAssociationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTransitRouterPrefixListAssociationResult::~DeleteTransitRouterPrefixListAssociationResult()
|
||||
{}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
126
cbn/src/model/ListTransitRouterPrefixListAssociationRequest.cc
Normal file
126
cbn/src/model/ListTransitRouterPrefixListAssociationRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/ListTransitRouterPrefixListAssociationRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::ListTransitRouterPrefixListAssociationRequest;
|
||||
|
||||
ListTransitRouterPrefixListAssociationRequest::ListTransitRouterPrefixListAssociationRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "ListTransitRouterPrefixListAssociation") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTransitRouterPrefixListAssociationRequest::~ListTransitRouterPrefixListAssociationRequest() {}
|
||||
|
||||
long ListTransitRouterPrefixListAssociationRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int ListTransitRouterPrefixListAssociationRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListTransitRouterPrefixListAssociationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterPrefixListAssociationRequest::getPrefixListId() const {
|
||||
return prefixListId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setPrefixListId(const std::string &prefixListId) {
|
||||
prefixListId_ = prefixListId;
|
||||
setParameter(std::string("PrefixListId"), prefixListId);
|
||||
}
|
||||
|
||||
int ListTransitRouterPrefixListAssociationRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListTransitRouterPrefixListAssociationRequest::getOwnerUid() const {
|
||||
return ownerUid_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setOwnerUid(long ownerUid) {
|
||||
ownerUid_ = ownerUid;
|
||||
setParameter(std::string("OwnerUid"), std::to_string(ownerUid));
|
||||
}
|
||||
|
||||
std::string ListTransitRouterPrefixListAssociationRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterPrefixListAssociationRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long ListTransitRouterPrefixListAssociationRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ListTransitRouterPrefixListAssociationRequest::getTransitRouterId() const {
|
||||
return transitRouterId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setTransitRouterId(const std::string &transitRouterId) {
|
||||
transitRouterId_ = transitRouterId;
|
||||
setParameter(std::string("TransitRouterId"), transitRouterId);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterPrefixListAssociationRequest::getTransitRouterTableId() const {
|
||||
return transitRouterTableId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setTransitRouterTableId(const std::string &transitRouterTableId) {
|
||||
transitRouterTableId_ = transitRouterTableId;
|
||||
setParameter(std::string("TransitRouterTableId"), transitRouterTableId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/ListTransitRouterPrefixListAssociationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
ListTransitRouterPrefixListAssociationResult::ListTransitRouterPrefixListAssociationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTransitRouterPrefixListAssociationResult::ListTransitRouterPrefixListAssociationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTransitRouterPrefixListAssociationResult::~ListTransitRouterPrefixListAssociationResult()
|
||||
{}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPrefixListsNode = value["PrefixLists"]["PrefixList"];
|
||||
for (auto valuePrefixListsPrefixList : allPrefixListsNode)
|
||||
{
|
||||
PrefixList prefixListsObject;
|
||||
if(!valuePrefixListsPrefixList["PrefixListId"].isNull())
|
||||
prefixListsObject.prefixListId = valuePrefixListsPrefixList["PrefixListId"].asString();
|
||||
if(!valuePrefixListsPrefixList["OwnerUid"].isNull())
|
||||
prefixListsObject.ownerUid = std::stol(valuePrefixListsPrefixList["OwnerUid"].asString());
|
||||
if(!valuePrefixListsPrefixList["Status"].isNull())
|
||||
prefixListsObject.status = valuePrefixListsPrefixList["Status"].asString();
|
||||
if(!valuePrefixListsPrefixList["NextHop"].isNull())
|
||||
prefixListsObject.nextHop = valuePrefixListsPrefixList["NextHop"].asString();
|
||||
if(!valuePrefixListsPrefixList["NextHopInstanceId"].isNull())
|
||||
prefixListsObject.nextHopInstanceId = valuePrefixListsPrefixList["NextHopInstanceId"].asString();
|
||||
if(!valuePrefixListsPrefixList["NextHopType"].isNull())
|
||||
prefixListsObject.nextHopType = valuePrefixListsPrefixList["NextHopType"].asString();
|
||||
if(!valuePrefixListsPrefixList["TransitRouterTableId"].isNull())
|
||||
prefixListsObject.transitRouterTableId = valuePrefixListsPrefixList["TransitRouterTableId"].asString();
|
||||
prefixLists_.push_back(prefixListsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListTransitRouterPrefixListAssociationResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListTransitRouterPrefixListAssociationResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListTransitRouterPrefixListAssociationResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListTransitRouterPrefixListAssociationResult::PrefixList> ListTransitRouterPrefixListAssociationResult::getPrefixLists()const
|
||||
{
|
||||
return prefixLists_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user