Support CEN Qos Apis.

This commit is contained in:
sdk-team
2021-11-26 10:17:07 +00:00
parent 353bb56a9b
commit d85d6f6494
93 changed files with 6527 additions and 78 deletions

View File

@@ -0,0 +1,132 @@
/*
* 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/AddTraficMatchRuleToTrafficMarkingPolicyRequest.h>
using AlibabaCloud::Cbn::Model::AddTraficMatchRuleToTrafficMarkingPolicyRequest;
AddTraficMatchRuleToTrafficMarkingPolicyRequest::AddTraficMatchRuleToTrafficMarkingPolicyRequest() :
RpcServiceRequest("cbn", "2017-09-12", "AddTraficMatchRuleToTrafficMarkingPolicy")
{
setMethod(HttpRequest::Method::Post);
}
AddTraficMatchRuleToTrafficMarkingPolicyRequest::~AddTraficMatchRuleToTrafficMarkingPolicyRequest()
{}
long AddTraficMatchRuleToTrafficMarkingPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddTraficMatchRuleToTrafficMarkingPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddTraficMatchRuleToTrafficMarkingPolicyRequest::getClientToken()const
{
return clientToken_;
}
void AddTraficMatchRuleToTrafficMarkingPolicyRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string AddTraficMatchRuleToTrafficMarkingPolicyRequest::getTrafficMarkingPolicyId()const
{
return trafficMarkingPolicyId_;
}
void AddTraficMatchRuleToTrafficMarkingPolicyRequest::setTrafficMarkingPolicyId(const std::string& trafficMarkingPolicyId)
{
trafficMarkingPolicyId_ = trafficMarkingPolicyId;
setParameter("TrafficMarkingPolicyId", trafficMarkingPolicyId);
}
bool AddTraficMatchRuleToTrafficMarkingPolicyRequest::getDryRun()const
{
return dryRun_;
}
void AddTraficMatchRuleToTrafficMarkingPolicyRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::vector<AddTraficMatchRuleToTrafficMarkingPolicyRequest::TrafficMatchRules> AddTraficMatchRuleToTrafficMarkingPolicyRequest::getTrafficMatchRules()const
{
return trafficMatchRules_;
}
void AddTraficMatchRuleToTrafficMarkingPolicyRequest::setTrafficMatchRules(const std::vector<TrafficMatchRules>& trafficMatchRules)
{
trafficMatchRules_ = trafficMatchRules;
for(int dep1 = 0; dep1!= trafficMatchRules.size(); dep1++) {
auto trafficMatchRulesObj = trafficMatchRules.at(dep1);
std::string trafficMatchRulesObjStr = "TrafficMatchRules." + std::to_string(dep1 + 1);
for(int dep2 = 0; dep2!= trafficMatchRulesObj.dstPortRange.size(); dep2++) {
setParameter(trafficMatchRulesObjStr + ".DstPortRange."+ std::to_string(dep2), std::to_string(trafficMatchRulesObj.dstPortRange.at(dep2)));
}
setParameter(trafficMatchRulesObjStr + ".MatchDscp", std::to_string(trafficMatchRulesObj.matchDscp));
setParameter(trafficMatchRulesObjStr + ".Protocol", trafficMatchRulesObj.protocol);
setParameter(trafficMatchRulesObjStr + ".TrafficMatchRuleDescription", trafficMatchRulesObj.trafficMatchRuleDescription);
for(int dep2 = 0; dep2!= trafficMatchRulesObj.srcPortRange.size(); dep2++) {
setParameter(trafficMatchRulesObjStr + ".SrcPortRange."+ std::to_string(dep2), std::to_string(trafficMatchRulesObj.srcPortRange.at(dep2)));
}
setParameter(trafficMatchRulesObjStr + ".DstCidr", trafficMatchRulesObj.dstCidr);
setParameter(trafficMatchRulesObjStr + ".TrafficMatchRuleName", trafficMatchRulesObj.trafficMatchRuleName);
setParameter(trafficMatchRulesObjStr + ".SrcCidr", trafficMatchRulesObj.srcCidr);
}
}
std::string AddTraficMatchRuleToTrafficMarkingPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddTraficMatchRuleToTrafficMarkingPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddTraficMatchRuleToTrafficMarkingPolicyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddTraficMatchRuleToTrafficMarkingPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AddTraficMatchRuleToTrafficMarkingPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void AddTraficMatchRuleToTrafficMarkingPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View 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/AddTraficMatchRuleToTrafficMarkingPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
AddTraficMatchRuleToTrafficMarkingPolicyResult::AddTraficMatchRuleToTrafficMarkingPolicyResult() :
ServiceResult()
{}
AddTraficMatchRuleToTrafficMarkingPolicyResult::AddTraficMatchRuleToTrafficMarkingPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddTraficMatchRuleToTrafficMarkingPolicyResult::~AddTraficMatchRuleToTrafficMarkingPolicyResult()
{}
void AddTraficMatchRuleToTrafficMarkingPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,84 @@
/*
* 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/CheckTransitRouterServiceRequest.h>
using AlibabaCloud::Cbn::Model::CheckTransitRouterServiceRequest;
CheckTransitRouterServiceRequest::CheckTransitRouterServiceRequest() :
RpcServiceRequest("cbn", "2017-09-12", "CheckTransitRouterService")
{
setMethod(HttpRequest::Method::Post);
}
CheckTransitRouterServiceRequest::~CheckTransitRouterServiceRequest()
{}
long CheckTransitRouterServiceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CheckTransitRouterServiceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CheckTransitRouterServiceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CheckTransitRouterServiceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CheckTransitRouterServiceRequest::getClientToken()const
{
return clientToken_;
}
void CheckTransitRouterServiceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CheckTransitRouterServiceRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CheckTransitRouterServiceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long CheckTransitRouterServiceRequest::getOwnerId()const
{
return ownerId_;
}
void CheckTransitRouterServiceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View 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/CheckTransitRouterServiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
CheckTransitRouterServiceResult::CheckTransitRouterServiceResult() :
ServiceResult()
{}
CheckTransitRouterServiceResult::CheckTransitRouterServiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckTransitRouterServiceResult::~CheckTransitRouterServiceResult()
{}
void CheckTransitRouterServiceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Enabled"].isNull())
enabled_ = value["Enabled"].asString();
}
std::string CheckTransitRouterServiceResult::getEnabled()const
{
return enabled_;
}

View File

@@ -0,0 +1,139 @@
/*
* 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/CreateCenChildInstanceRouteEntryToAttachmentRequest.h>
using AlibabaCloud::Cbn::Model::CreateCenChildInstanceRouteEntryToAttachmentRequest;
CreateCenChildInstanceRouteEntryToAttachmentRequest::CreateCenChildInstanceRouteEntryToAttachmentRequest() :
RpcServiceRequest("cbn", "2017-09-12", "CreateCenChildInstanceRouteEntryToAttachment")
{
setMethod(HttpRequest::Method::Post);
}
CreateCenChildInstanceRouteEntryToAttachmentRequest::~CreateCenChildInstanceRouteEntryToAttachmentRequest()
{}
long CreateCenChildInstanceRouteEntryToAttachmentRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateCenChildInstanceRouteEntryToAttachmentRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateCenChildInstanceRouteEntryToAttachmentRequest::getClientToken()const
{
return clientToken_;
}
void CreateCenChildInstanceRouteEntryToAttachmentRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateCenChildInstanceRouteEntryToAttachmentRequest::getCenId()const
{
return cenId_;
}
void CreateCenChildInstanceRouteEntryToAttachmentRequest::setCenId(const std::string& cenId)
{
cenId_ = cenId;
setParameter("CenId", cenId);
}
std::string CreateCenChildInstanceRouteEntryToAttachmentRequest::getRouteTableId()const
{
return routeTableId_;
}
void CreateCenChildInstanceRouteEntryToAttachmentRequest::setRouteTableId(const std::string& routeTableId)
{
routeTableId_ = routeTableId;
setParameter("RouteTableId", routeTableId);
}
bool CreateCenChildInstanceRouteEntryToAttachmentRequest::getDryRun()const
{
return dryRun_;
}
void CreateCenChildInstanceRouteEntryToAttachmentRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string CreateCenChildInstanceRouteEntryToAttachmentRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateCenChildInstanceRouteEntryToAttachmentRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateCenChildInstanceRouteEntryToAttachmentRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateCenChildInstanceRouteEntryToAttachmentRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateCenChildInstanceRouteEntryToAttachmentRequest::getDestinationCidrBlock()const
{
return destinationCidrBlock_;
}
void CreateCenChildInstanceRouteEntryToAttachmentRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock)
{
destinationCidrBlock_ = destinationCidrBlock;
setParameter("DestinationCidrBlock", destinationCidrBlock);
}
long CreateCenChildInstanceRouteEntryToAttachmentRequest::getOwnerId()const
{
return ownerId_;
}
void CreateCenChildInstanceRouteEntryToAttachmentRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateCenChildInstanceRouteEntryToAttachmentRequest::getTransitRouterAttachmentId()const
{
return transitRouterAttachmentId_;
}
void CreateCenChildInstanceRouteEntryToAttachmentRequest::setTransitRouterAttachmentId(const std::string& transitRouterAttachmentId)
{
transitRouterAttachmentId_ = transitRouterAttachmentId;
setParameter("TransitRouterAttachmentId", transitRouterAttachmentId);
}

View 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/CreateCenChildInstanceRouteEntryToAttachmentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
CreateCenChildInstanceRouteEntryToAttachmentResult::CreateCenChildInstanceRouteEntryToAttachmentResult() :
ServiceResult()
{}
CreateCenChildInstanceRouteEntryToAttachmentResult::CreateCenChildInstanceRouteEntryToAttachmentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateCenChildInstanceRouteEntryToAttachmentResult::~CreateCenChildInstanceRouteEntryToAttachmentResult()
{}
void CreateCenChildInstanceRouteEntryToAttachmentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,159 @@
/*
* 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/CreateCenInterRegionTrafficQosPolicyRequest.h>
using AlibabaCloud::Cbn::Model::CreateCenInterRegionTrafficQosPolicyRequest;
CreateCenInterRegionTrafficQosPolicyRequest::CreateCenInterRegionTrafficQosPolicyRequest() :
RpcServiceRequest("cbn", "2017-09-12", "CreateCenInterRegionTrafficQosPolicy")
{
setMethod(HttpRequest::Method::Post);
}
CreateCenInterRegionTrafficQosPolicyRequest::~CreateCenInterRegionTrafficQosPolicyRequest()
{}
long CreateCenInterRegionTrafficQosPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateCenInterRegionTrafficQosPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateCenInterRegionTrafficQosPolicyRequest::getClientToken()const
{
return clientToken_;
}
void CreateCenInterRegionTrafficQosPolicyRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::vector<CreateCenInterRegionTrafficQosPolicyRequest::TrafficQosQueues> CreateCenInterRegionTrafficQosPolicyRequest::getTrafficQosQueues()const
{
return trafficQosQueues_;
}
void CreateCenInterRegionTrafficQosPolicyRequest::setTrafficQosQueues(const std::vector<TrafficQosQueues>& trafficQosQueues)
{
trafficQosQueues_ = trafficQosQueues;
for(int dep1 = 0; dep1!= trafficQosQueues.size(); dep1++) {
auto trafficQosQueuesObj = trafficQosQueues.at(dep1);
std::string trafficQosQueuesObjStr = "TrafficQosQueues." + std::to_string(dep1 + 1);
for(int dep2 = 0; dep2!= trafficQosQueuesObj.dscps.size(); dep2++) {
setParameter(trafficQosQueuesObjStr + ".Dscps."+ std::to_string(dep2), std::to_string(trafficQosQueuesObj.dscps.at(dep2)));
}
setParameter(trafficQosQueuesObjStr + ".QosQueueName", trafficQosQueuesObj.qosQueueName);
setParameter(trafficQosQueuesObjStr + ".RemainBandwidthPercent", trafficQosQueuesObj.remainBandwidthPercent);
setParameter(trafficQosQueuesObjStr + ".QosQueueDescription", trafficQosQueuesObj.qosQueueDescription);
}
}
std::string CreateCenInterRegionTrafficQosPolicyRequest::getTrafficQosPolicyName()const
{
return trafficQosPolicyName_;
}
void CreateCenInterRegionTrafficQosPolicyRequest::setTrafficQosPolicyName(const std::string& trafficQosPolicyName)
{
trafficQosPolicyName_ = trafficQosPolicyName;
setParameter("TrafficQosPolicyName", trafficQosPolicyName);
}
bool CreateCenInterRegionTrafficQosPolicyRequest::getDryRun()const
{
return dryRun_;
}
void CreateCenInterRegionTrafficQosPolicyRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string CreateCenInterRegionTrafficQosPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateCenInterRegionTrafficQosPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateCenInterRegionTrafficQosPolicyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateCenInterRegionTrafficQosPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateCenInterRegionTrafficQosPolicyRequest::getTrafficQosPolicyDescription()const
{
return trafficQosPolicyDescription_;
}
void CreateCenInterRegionTrafficQosPolicyRequest::setTrafficQosPolicyDescription(const std::string& trafficQosPolicyDescription)
{
trafficQosPolicyDescription_ = trafficQosPolicyDescription;
setParameter("TrafficQosPolicyDescription", trafficQosPolicyDescription);
}
long CreateCenInterRegionTrafficQosPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void CreateCenInterRegionTrafficQosPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateCenInterRegionTrafficQosPolicyRequest::getTransitRouterId()const
{
return transitRouterId_;
}
void CreateCenInterRegionTrafficQosPolicyRequest::setTransitRouterId(const std::string& transitRouterId)
{
transitRouterId_ = transitRouterId;
setParameter("TransitRouterId", transitRouterId);
}
std::string CreateCenInterRegionTrafficQosPolicyRequest::getTransitRouterAttachmentId()const
{
return transitRouterAttachmentId_;
}
void CreateCenInterRegionTrafficQosPolicyRequest::setTransitRouterAttachmentId(const std::string& transitRouterAttachmentId)
{
transitRouterAttachmentId_ = transitRouterAttachmentId;
setParameter("TransitRouterAttachmentId", transitRouterAttachmentId);
}

View 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/CreateCenInterRegionTrafficQosPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
CreateCenInterRegionTrafficQosPolicyResult::CreateCenInterRegionTrafficQosPolicyResult() :
ServiceResult()
{}
CreateCenInterRegionTrafficQosPolicyResult::CreateCenInterRegionTrafficQosPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateCenInterRegionTrafficQosPolicyResult::~CreateCenInterRegionTrafficQosPolicyResult()
{}
void CreateCenInterRegionTrafficQosPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TrafficQosPolicyId"].isNull())
trafficQosPolicyId_ = value["TrafficQosPolicyId"].asString();
}
std::string CreateCenInterRegionTrafficQosPolicyResult::getTrafficQosPolicyId()const
{
return trafficQosPolicyId_;
}

View File

@@ -137,6 +137,28 @@ void CreateFlowlogRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateFlowlogRequest::getTransitRouterAttachmentId()const
{
return transitRouterAttachmentId_;
}
void CreateFlowlogRequest::setTransitRouterAttachmentId(const std::string& transitRouterAttachmentId)
{
transitRouterAttachmentId_ = transitRouterAttachmentId;
setParameter("TransitRouterAttachmentId", transitRouterAttachmentId);
}
long CreateFlowlogRequest::getInterval()const
{
return interval_;
}
void CreateFlowlogRequest::setInterval(long interval)
{
interval_ = interval;
setParameter("Interval", std::to_string(interval));
}
std::string CreateFlowlogRequest::getFlowLogName()const
{
return flowLogName_;

View File

@@ -0,0 +1,176 @@
/*
* 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/CreateTrafficMarkingPolicyRequest.h>
using AlibabaCloud::Cbn::Model::CreateTrafficMarkingPolicyRequest;
CreateTrafficMarkingPolicyRequest::CreateTrafficMarkingPolicyRequest() :
RpcServiceRequest("cbn", "2017-09-12", "CreateTrafficMarkingPolicy")
{
setMethod(HttpRequest::Method::Post);
}
CreateTrafficMarkingPolicyRequest::~CreateTrafficMarkingPolicyRequest()
{}
long CreateTrafficMarkingPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateTrafficMarkingPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateTrafficMarkingPolicyRequest::getClientToken()const
{
return clientToken_;
}
void CreateTrafficMarkingPolicyRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateTrafficMarkingPolicyRequest::getTrafficMarkingPolicyDescription()const
{
return trafficMarkingPolicyDescription_;
}
void CreateTrafficMarkingPolicyRequest::setTrafficMarkingPolicyDescription(const std::string& trafficMarkingPolicyDescription)
{
trafficMarkingPolicyDescription_ = trafficMarkingPolicyDescription;
setParameter("TrafficMarkingPolicyDescription", trafficMarkingPolicyDescription);
}
std::string CreateTrafficMarkingPolicyRequest::getTrafficMarkingPolicyName()const
{
return trafficMarkingPolicyName_;
}
void CreateTrafficMarkingPolicyRequest::setTrafficMarkingPolicyName(const std::string& trafficMarkingPolicyName)
{
trafficMarkingPolicyName_ = trafficMarkingPolicyName;
setParameter("TrafficMarkingPolicyName", trafficMarkingPolicyName);
}
bool CreateTrafficMarkingPolicyRequest::getDryRun()const
{
return dryRun_;
}
void CreateTrafficMarkingPolicyRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::vector<CreateTrafficMarkingPolicyRequest::TrafficMatchRules> CreateTrafficMarkingPolicyRequest::getTrafficMatchRules()const
{
return trafficMatchRules_;
}
void CreateTrafficMarkingPolicyRequest::setTrafficMatchRules(const std::vector<TrafficMatchRules>& trafficMatchRules)
{
trafficMatchRules_ = trafficMatchRules;
for(int dep1 = 0; dep1!= trafficMatchRules.size(); dep1++) {
auto trafficMatchRulesObj = trafficMatchRules.at(dep1);
std::string trafficMatchRulesObjStr = "TrafficMatchRules." + std::to_string(dep1 + 1);
for(int dep2 = 0; dep2!= trafficMatchRulesObj.dstPortRange.size(); dep2++) {
setParameter(trafficMatchRulesObjStr + ".DstPortRange."+ std::to_string(dep2), std::to_string(trafficMatchRulesObj.dstPortRange.at(dep2)));
}
setParameter(trafficMatchRulesObjStr + ".MatchDscp", std::to_string(trafficMatchRulesObj.matchDscp));
setParameter(trafficMatchRulesObjStr + ".Protocol", trafficMatchRulesObj.protocol);
setParameter(trafficMatchRulesObjStr + ".TrafficMatchRuleDescription", trafficMatchRulesObj.trafficMatchRuleDescription);
for(int dep2 = 0; dep2!= trafficMatchRulesObj.srcPortRange.size(); dep2++) {
setParameter(trafficMatchRulesObjStr + ".SrcPortRange."+ std::to_string(dep2), std::to_string(trafficMatchRulesObj.srcPortRange.at(dep2)));
}
setParameter(trafficMatchRulesObjStr + ".DstCidr", trafficMatchRulesObj.dstCidr);
setParameter(trafficMatchRulesObjStr + ".TrafficMatchRuleName", trafficMatchRulesObj.trafficMatchRuleName);
setParameter(trafficMatchRulesObjStr + ".SrcCidr", trafficMatchRulesObj.srcCidr);
}
}
std::string CreateTrafficMarkingPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateTrafficMarkingPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateTrafficMarkingPolicyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateTrafficMarkingPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long CreateTrafficMarkingPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void CreateTrafficMarkingPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateTrafficMarkingPolicyRequest::getTransitRouterId()const
{
return transitRouterId_;
}
void CreateTrafficMarkingPolicyRequest::setTransitRouterId(const std::string& transitRouterId)
{
transitRouterId_ = transitRouterId;
setParameter("TransitRouterId", transitRouterId);
}
int CreateTrafficMarkingPolicyRequest::getPriority()const
{
return priority_;
}
void CreateTrafficMarkingPolicyRequest::setPriority(int priority)
{
priority_ = priority;
setParameter("Priority", std::to_string(priority));
}
int CreateTrafficMarkingPolicyRequest::getMarkingDscp()const
{
return markingDscp_;
}
void CreateTrafficMarkingPolicyRequest::setMarkingDscp(int markingDscp)
{
markingDscp_ = markingDscp;
setParameter("MarkingDscp", std::to_string(markingDscp));
}

View 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/CreateTrafficMarkingPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
CreateTrafficMarkingPolicyResult::CreateTrafficMarkingPolicyResult() :
ServiceResult()
{}
CreateTrafficMarkingPolicyResult::CreateTrafficMarkingPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateTrafficMarkingPolicyResult::~CreateTrafficMarkingPolicyResult()
{}
void CreateTrafficMarkingPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TrafficMarkingPolicyId"].isNull())
trafficMarkingPolicyId_ = value["TrafficMarkingPolicyId"].asString();
}
std::string CreateTrafficMarkingPolicyResult::getTrafficMarkingPolicyId()const
{
return trafficMarkingPolicyId_;
}

View File

@@ -38,6 +38,17 @@ void CreateTransitRouterPeerAttachmentRequest::setResourceOwnerId(long resourceO
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateTransitRouterPeerAttachmentRequest::getBandwidthType()const
{
return bandwidthType_;
}
void CreateTransitRouterPeerAttachmentRequest::setBandwidthType(const std::string& bandwidthType)
{
bandwidthType_ = bandwidthType;
setParameter("BandwidthType", bandwidthType);
}
std::string CreateTransitRouterPeerAttachmentRequest::getClientToken()const
{
return clientToken_;

View File

@@ -0,0 +1,139 @@
/*
* 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/DeleteCenChildInstanceRouteEntryToAttachmentRequest.h>
using AlibabaCloud::Cbn::Model::DeleteCenChildInstanceRouteEntryToAttachmentRequest;
DeleteCenChildInstanceRouteEntryToAttachmentRequest::DeleteCenChildInstanceRouteEntryToAttachmentRequest() :
RpcServiceRequest("cbn", "2017-09-12", "DeleteCenChildInstanceRouteEntryToAttachment")
{
setMethod(HttpRequest::Method::Post);
}
DeleteCenChildInstanceRouteEntryToAttachmentRequest::~DeleteCenChildInstanceRouteEntryToAttachmentRequest()
{}
long DeleteCenChildInstanceRouteEntryToAttachmentRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteCenChildInstanceRouteEntryToAttachmentRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteCenChildInstanceRouteEntryToAttachmentRequest::getClientToken()const
{
return clientToken_;
}
void DeleteCenChildInstanceRouteEntryToAttachmentRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteCenChildInstanceRouteEntryToAttachmentRequest::getCenId()const
{
return cenId_;
}
void DeleteCenChildInstanceRouteEntryToAttachmentRequest::setCenId(const std::string& cenId)
{
cenId_ = cenId;
setParameter("CenId", cenId);
}
std::string DeleteCenChildInstanceRouteEntryToAttachmentRequest::getRouteTableId()const
{
return routeTableId_;
}
void DeleteCenChildInstanceRouteEntryToAttachmentRequest::setRouteTableId(const std::string& routeTableId)
{
routeTableId_ = routeTableId;
setParameter("RouteTableId", routeTableId);
}
bool DeleteCenChildInstanceRouteEntryToAttachmentRequest::getDryRun()const
{
return dryRun_;
}
void DeleteCenChildInstanceRouteEntryToAttachmentRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string DeleteCenChildInstanceRouteEntryToAttachmentRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteCenChildInstanceRouteEntryToAttachmentRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteCenChildInstanceRouteEntryToAttachmentRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteCenChildInstanceRouteEntryToAttachmentRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteCenChildInstanceRouteEntryToAttachmentRequest::getDestinationCidrBlock()const
{
return destinationCidrBlock_;
}
void DeleteCenChildInstanceRouteEntryToAttachmentRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock)
{
destinationCidrBlock_ = destinationCidrBlock;
setParameter("DestinationCidrBlock", destinationCidrBlock);
}
long DeleteCenChildInstanceRouteEntryToAttachmentRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteCenChildInstanceRouteEntryToAttachmentRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteCenChildInstanceRouteEntryToAttachmentRequest::getTransitRouterAttachmentId()const
{
return transitRouterAttachmentId_;
}
void DeleteCenChildInstanceRouteEntryToAttachmentRequest::setTransitRouterAttachmentId(const std::string& transitRouterAttachmentId)
{
transitRouterAttachmentId_ = transitRouterAttachmentId;
setParameter("TransitRouterAttachmentId", transitRouterAttachmentId);
}

View 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/DeleteCenChildInstanceRouteEntryToAttachmentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
DeleteCenChildInstanceRouteEntryToAttachmentResult::DeleteCenChildInstanceRouteEntryToAttachmentResult() :
ServiceResult()
{}
DeleteCenChildInstanceRouteEntryToAttachmentResult::DeleteCenChildInstanceRouteEntryToAttachmentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteCenChildInstanceRouteEntryToAttachmentResult::~DeleteCenChildInstanceRouteEntryToAttachmentResult()
{}
void DeleteCenChildInstanceRouteEntryToAttachmentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,106 @@
/*
* 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/DeleteCenInterRegionTrafficQosPolicyRequest.h>
using AlibabaCloud::Cbn::Model::DeleteCenInterRegionTrafficQosPolicyRequest;
DeleteCenInterRegionTrafficQosPolicyRequest::DeleteCenInterRegionTrafficQosPolicyRequest() :
RpcServiceRequest("cbn", "2017-09-12", "DeleteCenInterRegionTrafficQosPolicy")
{
setMethod(HttpRequest::Method::Post);
}
DeleteCenInterRegionTrafficQosPolicyRequest::~DeleteCenInterRegionTrafficQosPolicyRequest()
{}
long DeleteCenInterRegionTrafficQosPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteCenInterRegionTrafficQosPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteCenInterRegionTrafficQosPolicyRequest::getClientToken()const
{
return clientToken_;
}
void DeleteCenInterRegionTrafficQosPolicyRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
bool DeleteCenInterRegionTrafficQosPolicyRequest::getDryRun()const
{
return dryRun_;
}
void DeleteCenInterRegionTrafficQosPolicyRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string DeleteCenInterRegionTrafficQosPolicyRequest::getTrafficQosPolicyId()const
{
return trafficQosPolicyId_;
}
void DeleteCenInterRegionTrafficQosPolicyRequest::setTrafficQosPolicyId(const std::string& trafficQosPolicyId)
{
trafficQosPolicyId_ = trafficQosPolicyId;
setParameter("TrafficQosPolicyId", trafficQosPolicyId);
}
std::string DeleteCenInterRegionTrafficQosPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteCenInterRegionTrafficQosPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteCenInterRegionTrafficQosPolicyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteCenInterRegionTrafficQosPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteCenInterRegionTrafficQosPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteCenInterRegionTrafficQosPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View 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/DeleteCenInterRegionTrafficQosPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
DeleteCenInterRegionTrafficQosPolicyResult::DeleteCenInterRegionTrafficQosPolicyResult() :
ServiceResult()
{}
DeleteCenInterRegionTrafficQosPolicyResult::DeleteCenInterRegionTrafficQosPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteCenInterRegionTrafficQosPolicyResult::~DeleteCenInterRegionTrafficQosPolicyResult()
{}
void DeleteCenInterRegionTrafficQosPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,106 @@
/*
* 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/DeleteCenInterRegionTrafficQosQueueRequest.h>
using AlibabaCloud::Cbn::Model::DeleteCenInterRegionTrafficQosQueueRequest;
DeleteCenInterRegionTrafficQosQueueRequest::DeleteCenInterRegionTrafficQosQueueRequest() :
RpcServiceRequest("cbn", "2017-09-12", "DeleteCenInterRegionTrafficQosQueue")
{
setMethod(HttpRequest::Method::Post);
}
DeleteCenInterRegionTrafficQosQueueRequest::~DeleteCenInterRegionTrafficQosQueueRequest()
{}
long DeleteCenInterRegionTrafficQosQueueRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteCenInterRegionTrafficQosQueueRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteCenInterRegionTrafficQosQueueRequest::getClientToken()const
{
return clientToken_;
}
void DeleteCenInterRegionTrafficQosQueueRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
bool DeleteCenInterRegionTrafficQosQueueRequest::getDryRun()const
{
return dryRun_;
}
void DeleteCenInterRegionTrafficQosQueueRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string DeleteCenInterRegionTrafficQosQueueRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteCenInterRegionTrafficQosQueueRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteCenInterRegionTrafficQosQueueRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteCenInterRegionTrafficQosQueueRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteCenInterRegionTrafficQosQueueRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteCenInterRegionTrafficQosQueueRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteCenInterRegionTrafficQosQueueRequest::getQosQueueId()const
{
return qosQueueId_;
}
void DeleteCenInterRegionTrafficQosQueueRequest::setQosQueueId(const std::string& qosQueueId)
{
qosQueueId_ = qosQueueId;
setParameter("QosQueueId", qosQueueId);
}

View 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/DeleteCenInterRegionTrafficQosQueueResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
DeleteCenInterRegionTrafficQosQueueResult::DeleteCenInterRegionTrafficQosQueueResult() :
ServiceResult()
{}
DeleteCenInterRegionTrafficQosQueueResult::DeleteCenInterRegionTrafficQosQueueResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteCenInterRegionTrafficQosQueueResult::~DeleteCenInterRegionTrafficQosQueueResult()
{}
void DeleteCenInterRegionTrafficQosQueueResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,106 @@
/*
* 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/DeleteTrafficMarkingPolicyRequest.h>
using AlibabaCloud::Cbn::Model::DeleteTrafficMarkingPolicyRequest;
DeleteTrafficMarkingPolicyRequest::DeleteTrafficMarkingPolicyRequest() :
RpcServiceRequest("cbn", "2017-09-12", "DeleteTrafficMarkingPolicy")
{
setMethod(HttpRequest::Method::Post);
}
DeleteTrafficMarkingPolicyRequest::~DeleteTrafficMarkingPolicyRequest()
{}
long DeleteTrafficMarkingPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteTrafficMarkingPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteTrafficMarkingPolicyRequest::getClientToken()const
{
return clientToken_;
}
void DeleteTrafficMarkingPolicyRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteTrafficMarkingPolicyRequest::getTrafficMarkingPolicyId()const
{
return trafficMarkingPolicyId_;
}
void DeleteTrafficMarkingPolicyRequest::setTrafficMarkingPolicyId(const std::string& trafficMarkingPolicyId)
{
trafficMarkingPolicyId_ = trafficMarkingPolicyId;
setParameter("TrafficMarkingPolicyId", trafficMarkingPolicyId);
}
bool DeleteTrafficMarkingPolicyRequest::getDryRun()const
{
return dryRun_;
}
void DeleteTrafficMarkingPolicyRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string DeleteTrafficMarkingPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteTrafficMarkingPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteTrafficMarkingPolicyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteTrafficMarkingPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteTrafficMarkingPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteTrafficMarkingPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View 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/DeleteTrafficMarkingPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
DeleteTrafficMarkingPolicyResult::DeleteTrafficMarkingPolicyResult() :
ServiceResult()
{}
DeleteTrafficMarkingPolicyResult::DeleteTrafficMarkingPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteTrafficMarkingPolicyResult::~DeleteTrafficMarkingPolicyResult()
{}
void DeleteTrafficMarkingPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -43,60 +43,60 @@ void DescribeCenBandwidthPackagesResult::parse(const std::string &payload)
for (auto valueCenBandwidthPackagesCenBandwidthPackage : allCenBandwidthPackagesNode)
{
CenBandwidthPackage cenBandwidthPackagesObject;
if(!valueCenBandwidthPackagesCenBandwidthPackage["CenBandwidthPackageId"].isNull())
cenBandwidthPackagesObject.cenBandwidthPackageId = valueCenBandwidthPackagesCenBandwidthPackage["CenBandwidthPackageId"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["Name"].isNull())
cenBandwidthPackagesObject.name = valueCenBandwidthPackagesCenBandwidthPackage["Name"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["Description"].isNull())
cenBandwidthPackagesObject.description = valueCenBandwidthPackagesCenBandwidthPackage["Description"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["Bandwidth"].isNull())
cenBandwidthPackagesObject.bandwidth = std::stol(valueCenBandwidthPackagesCenBandwidthPackage["Bandwidth"].asString());
if(!valueCenBandwidthPackagesCenBandwidthPackage["BandwidthPackageChargeType"].isNull())
cenBandwidthPackagesObject.bandwidthPackageChargeType = valueCenBandwidthPackagesCenBandwidthPackage["BandwidthPackageChargeType"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["GeographicRegionAId"].isNull())
cenBandwidthPackagesObject.geographicRegionAId = valueCenBandwidthPackagesCenBandwidthPackage["GeographicRegionAId"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["GeographicRegionBId"].isNull())
cenBandwidthPackagesObject.geographicRegionBId = valueCenBandwidthPackagesCenBandwidthPackage["GeographicRegionBId"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["GeographicSpanId"].isNull())
cenBandwidthPackagesObject.geographicSpanId = valueCenBandwidthPackagesCenBandwidthPackage["GeographicSpanId"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["BusinessStatus"].isNull())
cenBandwidthPackagesObject.businessStatus = valueCenBandwidthPackagesCenBandwidthPackage["BusinessStatus"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["CreationTime"].isNull())
cenBandwidthPackagesObject.creationTime = valueCenBandwidthPackagesCenBandwidthPackage["CreationTime"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["ExpiredTime"].isNull())
cenBandwidthPackagesObject.expiredTime = valueCenBandwidthPackagesCenBandwidthPackage["ExpiredTime"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["Status"].isNull())
cenBandwidthPackagesObject.status = valueCenBandwidthPackagesCenBandwidthPackage["Status"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["IsCrossBorder"].isNull())
cenBandwidthPackagesObject.isCrossBorder = valueCenBandwidthPackagesCenBandwidthPackage["IsCrossBorder"].asString() == "true";
if(!valueCenBandwidthPackagesCenBandwidthPackage["TypeFor95"].isNull())
cenBandwidthPackagesObject.typeFor95 = valueCenBandwidthPackagesCenBandwidthPackage["TypeFor95"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["Ratio"].isNull())
cenBandwidthPackagesObject.ratio = valueCenBandwidthPackagesCenBandwidthPackage["Ratio"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["HasReservationData"].isNull())
cenBandwidthPackagesObject.hasReservationData = valueCenBandwidthPackagesCenBandwidthPackage["HasReservationData"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["ReservationBandwidth"].isNull())
cenBandwidthPackagesObject.reservationBandwidth = valueCenBandwidthPackagesCenBandwidthPackage["ReservationBandwidth"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["ReservationInternetChargeType"].isNull())
cenBandwidthPackagesObject.reservationInternetChargeType = valueCenBandwidthPackagesCenBandwidthPackage["ReservationInternetChargeType"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["ReservationActiveTime"].isNull())
cenBandwidthPackagesObject.reservationActiveTime = valueCenBandwidthPackagesCenBandwidthPackage["ReservationActiveTime"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["Status"].isNull())
cenBandwidthPackagesObject.status = valueCenBandwidthPackagesCenBandwidthPackage["Status"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["CreationTime"].isNull())
cenBandwidthPackagesObject.creationTime = valueCenBandwidthPackagesCenBandwidthPackage["CreationTime"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["ReservationOrderType"].isNull())
cenBandwidthPackagesObject.reservationOrderType = valueCenBandwidthPackagesCenBandwidthPackage["ReservationOrderType"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["BandwidthPackageChargeType"].isNull())
cenBandwidthPackagesObject.bandwidthPackageChargeType = valueCenBandwidthPackagesCenBandwidthPackage["BandwidthPackageChargeType"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["CenBandwidthPackageId"].isNull())
cenBandwidthPackagesObject.cenBandwidthPackageId = valueCenBandwidthPackagesCenBandwidthPackage["CenBandwidthPackageId"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["ReservationInternetChargeType"].isNull())
cenBandwidthPackagesObject.reservationInternetChargeType = valueCenBandwidthPackagesCenBandwidthPackage["ReservationInternetChargeType"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["Ratio"].isNull())
cenBandwidthPackagesObject.ratio = valueCenBandwidthPackagesCenBandwidthPackage["Ratio"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["GeographicRegionAId"].isNull())
cenBandwidthPackagesObject.geographicRegionAId = valueCenBandwidthPackagesCenBandwidthPackage["GeographicRegionAId"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["TypeFor95"].isNull())
cenBandwidthPackagesObject.typeFor95 = valueCenBandwidthPackagesCenBandwidthPackage["TypeFor95"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["Bandwidth"].isNull())
cenBandwidthPackagesObject.bandwidth = std::stol(valueCenBandwidthPackagesCenBandwidthPackage["Bandwidth"].asString());
if(!valueCenBandwidthPackagesCenBandwidthPackage["Description"].isNull())
cenBandwidthPackagesObject.description = valueCenBandwidthPackagesCenBandwidthPackage["Description"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["ExpiredTime"].isNull())
cenBandwidthPackagesObject.expiredTime = valueCenBandwidthPackagesCenBandwidthPackage["ExpiredTime"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["ReservationBandwidth"].isNull())
cenBandwidthPackagesObject.reservationBandwidth = valueCenBandwidthPackagesCenBandwidthPackage["ReservationBandwidth"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["GeographicSpanId"].isNull())
cenBandwidthPackagesObject.geographicSpanId = valueCenBandwidthPackagesCenBandwidthPackage["GeographicSpanId"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["GeographicRegionBId"].isNull())
cenBandwidthPackagesObject.geographicRegionBId = valueCenBandwidthPackagesCenBandwidthPackage["GeographicRegionBId"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["ResourceGroupId"].isNull())
cenBandwidthPackagesObject.resourceGroupId = valueCenBandwidthPackagesCenBandwidthPackage["ResourceGroupId"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["IsCrossBorder"].isNull())
cenBandwidthPackagesObject.isCrossBorder = valueCenBandwidthPackagesCenBandwidthPackage["IsCrossBorder"].asString() == "true";
if(!valueCenBandwidthPackagesCenBandwidthPackage["BusinessStatus"].isNull())
cenBandwidthPackagesObject.businessStatus = valueCenBandwidthPackagesCenBandwidthPackage["BusinessStatus"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["Name"].isNull())
cenBandwidthPackagesObject.name = valueCenBandwidthPackagesCenBandwidthPackage["Name"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackage["HasReservationData"].isNull())
cenBandwidthPackagesObject.hasReservationData = valueCenBandwidthPackagesCenBandwidthPackage["HasReservationData"].asString();
auto allOrginInterRegionBandwidthLimitsNode = valueCenBandwidthPackagesCenBandwidthPackage["OrginInterRegionBandwidthLimits"]["OrginInterRegionBandwidthLimit"];
for (auto valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit : allOrginInterRegionBandwidthLimitsNode)
{
CenBandwidthPackage::OrginInterRegionBandwidthLimit orginInterRegionBandwidthLimitsObject;
if(!valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["LocalRegionId"].isNull())
orginInterRegionBandwidthLimitsObject.localRegionId = valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["LocalRegionId"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["BandwidthLimit"].isNull())
orginInterRegionBandwidthLimitsObject.bandwidthLimit = valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["BandwidthLimit"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["OppositeRegionId"].isNull())
orginInterRegionBandwidthLimitsObject.oppositeRegionId = valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["OppositeRegionId"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["GeographicSpanId"].isNull())
orginInterRegionBandwidthLimitsObject.geographicSpanId = valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["GeographicSpanId"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["BandwidthLimit"].isNull())
orginInterRegionBandwidthLimitsObject.bandwidthLimit = valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["BandwidthLimit"].asString();
if(!valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["LocalRegionId"].isNull())
orginInterRegionBandwidthLimitsObject.localRegionId = valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["LocalRegionId"].asString();
cenBandwidthPackagesObject.orginInterRegionBandwidthLimits.push_back(orginInterRegionBandwidthLimitsObject);
}
auto allTagsNode = valueCenBandwidthPackagesCenBandwidthPackage["Tags"]["Tag"];
@@ -114,12 +114,12 @@ void DescribeCenBandwidthPackagesResult::parse(const std::string &payload)
cenBandwidthPackagesObject.cenIds.push_back(value.asString());
cenBandwidthPackages_.push_back(cenBandwidthPackagesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}

View File

@@ -43,34 +43,40 @@ void DescribeFlowlogsResult::parse(const std::string &payload)
for (auto valueFlowLogsFlowLog : allFlowLogsNode)
{
FlowLog flowLogsObject;
if(!valueFlowLogsFlowLog["FlowLogId"].isNull())
flowLogsObject.flowLogId = valueFlowLogsFlowLog["FlowLogId"].asString();
if(!valueFlowLogsFlowLog["Status"].isNull())
flowLogsObject.status = valueFlowLogsFlowLog["Status"].asString();
if(!valueFlowLogsFlowLog["CreationTime"].isNull())
flowLogsObject.creationTime = valueFlowLogsFlowLog["CreationTime"].asString();
if(!valueFlowLogsFlowLog["FlowLogName"].isNull())
flowLogsObject.flowLogName = valueFlowLogsFlowLog["FlowLogName"].asString();
if(!valueFlowLogsFlowLog["Description"].isNull())
flowLogsObject.description = valueFlowLogsFlowLog["Description"].asString();
if(!valueFlowLogsFlowLog["CreationTime"].isNull())
flowLogsObject.creationTime = valueFlowLogsFlowLog["CreationTime"].asString();
if(!valueFlowLogsFlowLog["CenId"].isNull())
flowLogsObject.cenId = valueFlowLogsFlowLog["CenId"].asString();
if(!valueFlowLogsFlowLog["ProjectName"].isNull())
flowLogsObject.projectName = valueFlowLogsFlowLog["ProjectName"].asString();
if(!valueFlowLogsFlowLog["CenId"].isNull())
flowLogsObject.cenId = valueFlowLogsFlowLog["CenId"].asString();
if(!valueFlowLogsFlowLog["LogStoreName"].isNull())
flowLogsObject.logStoreName = valueFlowLogsFlowLog["LogStoreName"].asString();
if(!valueFlowLogsFlowLog["Status"].isNull())
flowLogsObject.status = valueFlowLogsFlowLog["Status"].asString();
if(!valueFlowLogsFlowLog["RegionId"].isNull())
flowLogsObject.regionId = valueFlowLogsFlowLog["RegionId"].asString();
if(!valueFlowLogsFlowLog["FlowLogId"].isNull())
flowLogsObject.flowLogId = valueFlowLogsFlowLog["FlowLogId"].asString();
if(!valueFlowLogsFlowLog["PeerRegionId"].isNull())
flowLogsObject.peerRegionId = valueFlowLogsFlowLog["PeerRegionId"].asString();
if(!valueFlowLogsFlowLog["TransitRouterAttachmentId"].isNull())
flowLogsObject.transitRouterAttachmentId = valueFlowLogsFlowLog["TransitRouterAttachmentId"].asString();
if(!valueFlowLogsFlowLog["Interval"].isNull())
flowLogsObject.interval = std::stol(valueFlowLogsFlowLog["Interval"].asString());
flowLogs_.push_back(flowLogsObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = value["TotalCount"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = value["PageNumber"].asString();
if(!value["PageSize"].isNull())
pageSize_ = value["PageSize"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = value["PageNumber"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = value["TotalCount"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString();
}

View File

@@ -43,33 +43,33 @@ void DescribeRouteServicesInCenResult::parse(const std::string &payload)
for (auto valueRouteServiceEntriesRouteServiceEntry : allRouteServiceEntriesNode)
{
RouteServiceEntry routeServiceEntriesObject;
if(!valueRouteServiceEntriesRouteServiceEntry["CenId"].isNull())
routeServiceEntriesObject.cenId = valueRouteServiceEntriesRouteServiceEntry["CenId"].asString();
if(!valueRouteServiceEntriesRouteServiceEntry["Host"].isNull())
routeServiceEntriesObject.host = valueRouteServiceEntriesRouteServiceEntry["Host"].asString();
if(!valueRouteServiceEntriesRouteServiceEntry["HostRegionId"].isNull())
routeServiceEntriesObject.hostRegionId = valueRouteServiceEntriesRouteServiceEntry["HostRegionId"].asString();
if(!valueRouteServiceEntriesRouteServiceEntry["AccessRegionId"].isNull())
routeServiceEntriesObject.accessRegionId = valueRouteServiceEntriesRouteServiceEntry["AccessRegionId"].asString();
if(!valueRouteServiceEntriesRouteServiceEntry["UpdateInterval"].isNull())
routeServiceEntriesObject.updateInterval = valueRouteServiceEntriesRouteServiceEntry["UpdateInterval"].asString();
if(!valueRouteServiceEntriesRouteServiceEntry["Status"].isNull())
routeServiceEntriesObject.status = valueRouteServiceEntriesRouteServiceEntry["Status"].asString();
if(!valueRouteServiceEntriesRouteServiceEntry["HostVpcId"].isNull())
routeServiceEntriesObject.hostVpcId = valueRouteServiceEntriesRouteServiceEntry["HostVpcId"].asString();
if(!valueRouteServiceEntriesRouteServiceEntry["Host"].isNull())
routeServiceEntriesObject.host = valueRouteServiceEntriesRouteServiceEntry["Host"].asString();
if(!valueRouteServiceEntriesRouteServiceEntry["Description"].isNull())
routeServiceEntriesObject.description = valueRouteServiceEntriesRouteServiceEntry["Description"].asString();
if(!valueRouteServiceEntriesRouteServiceEntry["HostVpcId"].isNull())
routeServiceEntriesObject.hostVpcId = valueRouteServiceEntriesRouteServiceEntry["HostVpcId"].asString();
if(!valueRouteServiceEntriesRouteServiceEntry["CenId"].isNull())
routeServiceEntriesObject.cenId = valueRouteServiceEntriesRouteServiceEntry["CenId"].asString();
if(!valueRouteServiceEntriesRouteServiceEntry["AccessRegionId"].isNull())
routeServiceEntriesObject.accessRegionId = valueRouteServiceEntriesRouteServiceEntry["AccessRegionId"].asString();
if(!valueRouteServiceEntriesRouteServiceEntry["HostRegionId"].isNull())
routeServiceEntriesObject.hostRegionId = valueRouteServiceEntriesRouteServiceEntry["HostRegionId"].asString();
if(!valueRouteServiceEntriesRouteServiceEntry["UpdateInterval"].isNull())
routeServiceEntriesObject.updateInterval = valueRouteServiceEntriesRouteServiceEntry["UpdateInterval"].asString();
auto allCidrs = value["Cidrs"]["Cidr"];
for (auto value : allCidrs)
routeServiceEntriesObject.cidrs.push_back(value.asString());
routeServiceEntries_.push_back(routeServiceEntriesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}

View File

@@ -0,0 +1,150 @@
/*
* 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/ListCenInterRegionTrafficQosPoliciesRequest.h>
using AlibabaCloud::Cbn::Model::ListCenInterRegionTrafficQosPoliciesRequest;
ListCenInterRegionTrafficQosPoliciesRequest::ListCenInterRegionTrafficQosPoliciesRequest() :
RpcServiceRequest("cbn", "2017-09-12", "ListCenInterRegionTrafficQosPolicies")
{
setMethod(HttpRequest::Method::Post);
}
ListCenInterRegionTrafficQosPoliciesRequest::~ListCenInterRegionTrafficQosPoliciesRequest()
{}
long ListCenInterRegionTrafficQosPoliciesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListCenInterRegionTrafficQosPoliciesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ListCenInterRegionTrafficQosPoliciesRequest::getNextToken()const
{
return nextToken_;
}
void ListCenInterRegionTrafficQosPoliciesRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
std::string ListCenInterRegionTrafficQosPoliciesRequest::getTrafficQosPolicyName()const
{
return trafficQosPolicyName_;
}
void ListCenInterRegionTrafficQosPoliciesRequest::setTrafficQosPolicyName(const std::string& trafficQosPolicyName)
{
trafficQosPolicyName_ = trafficQosPolicyName;
setParameter("TrafficQosPolicyName", trafficQosPolicyName);
}
std::string ListCenInterRegionTrafficQosPoliciesRequest::getTrafficQosPolicyId()const
{
return trafficQosPolicyId_;
}
void ListCenInterRegionTrafficQosPoliciesRequest::setTrafficQosPolicyId(const std::string& trafficQosPolicyId)
{
trafficQosPolicyId_ = trafficQosPolicyId;
setParameter("TrafficQosPolicyId", trafficQosPolicyId);
}
std::string ListCenInterRegionTrafficQosPoliciesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListCenInterRegionTrafficQosPoliciesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ListCenInterRegionTrafficQosPoliciesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ListCenInterRegionTrafficQosPoliciesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string ListCenInterRegionTrafficQosPoliciesRequest::getTrafficQosPolicyDescription()const
{
return trafficQosPolicyDescription_;
}
void ListCenInterRegionTrafficQosPoliciesRequest::setTrafficQosPolicyDescription(const std::string& trafficQosPolicyDescription)
{
trafficQosPolicyDescription_ = trafficQosPolicyDescription;
setParameter("TrafficQosPolicyDescription", trafficQosPolicyDescription);
}
long ListCenInterRegionTrafficQosPoliciesRequest::getOwnerId()const
{
return ownerId_;
}
void ListCenInterRegionTrafficQosPoliciesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ListCenInterRegionTrafficQosPoliciesRequest::getTransitRouterId()const
{
return transitRouterId_;
}
void ListCenInterRegionTrafficQosPoliciesRequest::setTransitRouterId(const std::string& transitRouterId)
{
transitRouterId_ = transitRouterId;
setParameter("TransitRouterId", transitRouterId);
}
std::string ListCenInterRegionTrafficQosPoliciesRequest::getTransitRouterAttachmentId()const
{
return transitRouterAttachmentId_;
}
void ListCenInterRegionTrafficQosPoliciesRequest::setTransitRouterAttachmentId(const std::string& transitRouterAttachmentId)
{
transitRouterAttachmentId_ = transitRouterAttachmentId;
setParameter("TransitRouterAttachmentId", transitRouterAttachmentId);
}
int ListCenInterRegionTrafficQosPoliciesRequest::getMaxResults()const
{
return maxResults_;
}
void ListCenInterRegionTrafficQosPoliciesRequest::setMaxResults(int maxResults)
{
maxResults_ = maxResults;
setParameter("MaxResults", std::to_string(maxResults));
}

View File

@@ -0,0 +1,101 @@
/*
* 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/ListCenInterRegionTrafficQosPoliciesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
ListCenInterRegionTrafficQosPoliciesResult::ListCenInterRegionTrafficQosPoliciesResult() :
ServiceResult()
{}
ListCenInterRegionTrafficQosPoliciesResult::ListCenInterRegionTrafficQosPoliciesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCenInterRegionTrafficQosPoliciesResult::~ListCenInterRegionTrafficQosPoliciesResult()
{}
void ListCenInterRegionTrafficQosPoliciesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTrafficQosPoliciesNode = value["TrafficQosPolicies"]["TrafficQosPolicy"];
for (auto valueTrafficQosPoliciesTrafficQosPolicy : allTrafficQosPoliciesNode)
{
TrafficQosPolicy trafficQosPoliciesObject;
if(!valueTrafficQosPoliciesTrafficQosPolicy["TrafficQosPolicyName"].isNull())
trafficQosPoliciesObject.trafficQosPolicyName = valueTrafficQosPoliciesTrafficQosPolicy["TrafficQosPolicyName"].asString();
if(!valueTrafficQosPoliciesTrafficQosPolicy["TrafficQosPolicyStatus"].isNull())
trafficQosPoliciesObject.trafficQosPolicyStatus = valueTrafficQosPoliciesTrafficQosPolicy["TrafficQosPolicyStatus"].asString();
if(!valueTrafficQosPoliciesTrafficQosPolicy["TrafficQosPolicyId"].isNull())
trafficQosPoliciesObject.trafficQosPolicyId = valueTrafficQosPoliciesTrafficQosPolicy["TrafficQosPolicyId"].asString();
if(!valueTrafficQosPoliciesTrafficQosPolicy["TrafficQosPolicyDescription"].isNull())
trafficQosPoliciesObject.trafficQosPolicyDescription = valueTrafficQosPoliciesTrafficQosPolicy["TrafficQosPolicyDescription"].asString();
auto allTrafficQosQueuesNode = valueTrafficQosPoliciesTrafficQosPolicy["TrafficQosQueues"]["TrafficQosQueue"];
for (auto valueTrafficQosPoliciesTrafficQosPolicyTrafficQosQueuesTrafficQosQueue : allTrafficQosQueuesNode)
{
TrafficQosPolicy::TrafficQosQueue trafficQosQueuesObject;
if(!valueTrafficQosPoliciesTrafficQosPolicyTrafficQosQueuesTrafficQosQueue["QosQueueName"].isNull())
trafficQosQueuesObject.qosQueueName = valueTrafficQosPoliciesTrafficQosPolicyTrafficQosQueuesTrafficQosQueue["QosQueueName"].asString();
if(!valueTrafficQosPoliciesTrafficQosPolicyTrafficQosQueuesTrafficQosQueue["RemainBandwidthPercent"].isNull())
trafficQosQueuesObject.remainBandwidthPercent = std::stoi(valueTrafficQosPoliciesTrafficQosPolicyTrafficQosQueuesTrafficQosQueue["RemainBandwidthPercent"].asString());
if(!valueTrafficQosPoliciesTrafficQosPolicyTrafficQosQueuesTrafficQosQueue["QosQueueId"].isNull())
trafficQosQueuesObject.qosQueueId = valueTrafficQosPoliciesTrafficQosPolicyTrafficQosQueuesTrafficQosQueue["QosQueueId"].asString();
if(!valueTrafficQosPoliciesTrafficQosPolicyTrafficQosQueuesTrafficQosQueue["QosQueueDescription"].isNull())
trafficQosQueuesObject.qosQueueDescription = valueTrafficQosPoliciesTrafficQosPolicyTrafficQosQueuesTrafficQosQueue["QosQueueDescription"].asString();
auto allDscps = value["Dscps"]["Dscp"];
for (auto value : allDscps)
trafficQosQueuesObject.dscps.push_back(value.asString());
trafficQosPoliciesObject.trafficQosQueues.push_back(trafficQosQueuesObject);
}
trafficQosPolicies_.push_back(trafficQosPoliciesObject);
}
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());
}
std::vector<ListCenInterRegionTrafficQosPoliciesResult::TrafficQosPolicy> ListCenInterRegionTrafficQosPoliciesResult::getTrafficQosPolicies()const
{
return trafficQosPolicies_;
}
int ListCenInterRegionTrafficQosPoliciesResult::getTotalCount()const
{
return totalCount_;
}
std::string ListCenInterRegionTrafficQosPoliciesResult::getNextToken()const
{
return nextToken_;
}
int ListCenInterRegionTrafficQosPoliciesResult::getMaxResults()const
{
return maxResults_;
}

View File

@@ -0,0 +1,139 @@
/*
* 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/ListTrafficMarkingPoliciesRequest.h>
using AlibabaCloud::Cbn::Model::ListTrafficMarkingPoliciesRequest;
ListTrafficMarkingPoliciesRequest::ListTrafficMarkingPoliciesRequest() :
RpcServiceRequest("cbn", "2017-09-12", "ListTrafficMarkingPolicies")
{
setMethod(HttpRequest::Method::Post);
}
ListTrafficMarkingPoliciesRequest::~ListTrafficMarkingPoliciesRequest()
{}
long ListTrafficMarkingPoliciesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListTrafficMarkingPoliciesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ListTrafficMarkingPoliciesRequest::getTrafficMarkingPolicyDescription()const
{
return trafficMarkingPolicyDescription_;
}
void ListTrafficMarkingPoliciesRequest::setTrafficMarkingPolicyDescription(const std::string& trafficMarkingPolicyDescription)
{
trafficMarkingPolicyDescription_ = trafficMarkingPolicyDescription;
setParameter("TrafficMarkingPolicyDescription", trafficMarkingPolicyDescription);
}
std::string ListTrafficMarkingPoliciesRequest::getTrafficMarkingPolicyId()const
{
return trafficMarkingPolicyId_;
}
void ListTrafficMarkingPoliciesRequest::setTrafficMarkingPolicyId(const std::string& trafficMarkingPolicyId)
{
trafficMarkingPolicyId_ = trafficMarkingPolicyId;
setParameter("TrafficMarkingPolicyId", trafficMarkingPolicyId);
}
std::string ListTrafficMarkingPoliciesRequest::getNextToken()const
{
return nextToken_;
}
void ListTrafficMarkingPoliciesRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
std::string ListTrafficMarkingPoliciesRequest::getTrafficMarkingPolicyName()const
{
return trafficMarkingPolicyName_;
}
void ListTrafficMarkingPoliciesRequest::setTrafficMarkingPolicyName(const std::string& trafficMarkingPolicyName)
{
trafficMarkingPolicyName_ = trafficMarkingPolicyName;
setParameter("TrafficMarkingPolicyName", trafficMarkingPolicyName);
}
std::string ListTrafficMarkingPoliciesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListTrafficMarkingPoliciesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ListTrafficMarkingPoliciesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ListTrafficMarkingPoliciesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long ListTrafficMarkingPoliciesRequest::getOwnerId()const
{
return ownerId_;
}
void ListTrafficMarkingPoliciesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ListTrafficMarkingPoliciesRequest::getTransitRouterId()const
{
return transitRouterId_;
}
void ListTrafficMarkingPoliciesRequest::setTransitRouterId(const std::string& transitRouterId)
{
transitRouterId_ = transitRouterId;
setParameter("TransitRouterId", transitRouterId);
}
int ListTrafficMarkingPoliciesRequest::getMaxResults()const
{
return maxResults_;
}
void ListTrafficMarkingPoliciesRequest::setMaxResults(int maxResults)
{
maxResults_ = maxResults;
setParameter("MaxResults", std::to_string(maxResults));
}

View File

@@ -0,0 +1,116 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cbn/model/ListTrafficMarkingPoliciesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
ListTrafficMarkingPoliciesResult::ListTrafficMarkingPoliciesResult() :
ServiceResult()
{}
ListTrafficMarkingPoliciesResult::ListTrafficMarkingPoliciesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListTrafficMarkingPoliciesResult::~ListTrafficMarkingPoliciesResult()
{}
void ListTrafficMarkingPoliciesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTrafficMarkingPoliciesNode = value["TrafficMarkingPolicies"]["TrafficMarkingPolicy"];
for (auto valueTrafficMarkingPoliciesTrafficMarkingPolicy : allTrafficMarkingPoliciesNode)
{
TrafficMarkingPolicy trafficMarkingPoliciesObject;
if(!valueTrafficMarkingPoliciesTrafficMarkingPolicy["TrafficMarkingPolicyStatus"].isNull())
trafficMarkingPoliciesObject.trafficMarkingPolicyStatus = valueTrafficMarkingPoliciesTrafficMarkingPolicy["TrafficMarkingPolicyStatus"].asString();
if(!valueTrafficMarkingPoliciesTrafficMarkingPolicy["TrafficMarkingPolicyId"].isNull())
trafficMarkingPoliciesObject.trafficMarkingPolicyId = valueTrafficMarkingPoliciesTrafficMarkingPolicy["TrafficMarkingPolicyId"].asString();
if(!valueTrafficMarkingPoliciesTrafficMarkingPolicy["MarkingDscp"].isNull())
trafficMarkingPoliciesObject.markingDscp = std::stoi(valueTrafficMarkingPoliciesTrafficMarkingPolicy["MarkingDscp"].asString());
if(!valueTrafficMarkingPoliciesTrafficMarkingPolicy["TrafficMarkingPolicyName"].isNull())
trafficMarkingPoliciesObject.trafficMarkingPolicyName = valueTrafficMarkingPoliciesTrafficMarkingPolicy["TrafficMarkingPolicyName"].asString();
if(!valueTrafficMarkingPoliciesTrafficMarkingPolicy["Priority"].isNull())
trafficMarkingPoliciesObject.priority = std::stoi(valueTrafficMarkingPoliciesTrafficMarkingPolicy["Priority"].asString());
if(!valueTrafficMarkingPoliciesTrafficMarkingPolicy["TrafficMarkingPolicyDescription"].isNull())
trafficMarkingPoliciesObject.trafficMarkingPolicyDescription = valueTrafficMarkingPoliciesTrafficMarkingPolicy["TrafficMarkingPolicyDescription"].asString();
auto allTrafficMatchRulesNode = valueTrafficMarkingPoliciesTrafficMarkingPolicy["TrafficMatchRules"]["TrafficMatchRule"];
for (auto valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule : allTrafficMatchRulesNode)
{
TrafficMarkingPolicy::TrafficMatchRule trafficMatchRulesObject;
if(!valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["MatchDscp"].isNull())
trafficMatchRulesObject.matchDscp = std::stoi(valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["MatchDscp"].asString());
if(!valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["DstCidr"].isNull())
trafficMatchRulesObject.dstCidr = valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["DstCidr"].asString();
if(!valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["TrafficMatchRuleDescription"].isNull())
trafficMatchRulesObject.trafficMatchRuleDescription = valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["TrafficMatchRuleDescription"].asString();
if(!valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["Protocol"].isNull())
trafficMatchRulesObject.protocol = valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["Protocol"].asString();
if(!valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["TrafficMatchRuleId"].isNull())
trafficMatchRulesObject.trafficMatchRuleId = valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["TrafficMatchRuleId"].asString();
if(!valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["SrcCidr"].isNull())
trafficMatchRulesObject.srcCidr = valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["SrcCidr"].asString();
if(!valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["TrafficMatchRuleName"].isNull())
trafficMatchRulesObject.trafficMatchRuleName = valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["TrafficMatchRuleName"].asString();
if(!valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["TrafficMatchRuleStatus"].isNull())
trafficMatchRulesObject.trafficMatchRuleStatus = valueTrafficMarkingPoliciesTrafficMarkingPolicyTrafficMatchRulesTrafficMatchRule["TrafficMatchRuleStatus"].asString();
auto allDstPortRange = value["DstPortRange"]["DstPortRange"];
for (auto value : allDstPortRange)
trafficMatchRulesObject.dstPortRange.push_back(value.asString());
auto allSrcPortRange = value["SrcPortRange"]["SrcPortRange"];
for (auto value : allSrcPortRange)
trafficMatchRulesObject.srcPortRange.push_back(value.asString());
trafficMarkingPoliciesObject.trafficMatchRules.push_back(trafficMatchRulesObject);
}
trafficMarkingPolicies_.push_back(trafficMarkingPoliciesObject);
}
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 ListTrafficMarkingPoliciesResult::getTotalCount()const
{
return totalCount_;
}
std::string ListTrafficMarkingPoliciesResult::getNextToken()const
{
return nextToken_;
}
int ListTrafficMarkingPoliciesResult::getMaxResults()const
{
return maxResults_;
}
std::vector<ListTrafficMarkingPoliciesResult::TrafficMarkingPolicy> ListTrafficMarkingPoliciesResult::getTrafficMarkingPolicies()const
{
return trafficMarkingPolicies_;
}

View File

@@ -75,6 +75,8 @@ void ListTransitRouterPeerAttachmentsResult::parse(const std::string &payload)
transitRouterAttachmentsObject.geographicSpanId = valueTransitRouterAttachmentsTransitRouterAttachment["GeographicSpanId"].asString();
if(!valueTransitRouterAttachmentsTransitRouterAttachment["CenBandwidthPackageId"].isNull())
transitRouterAttachmentsObject.cenBandwidthPackageId = valueTransitRouterAttachmentsTransitRouterAttachment["CenBandwidthPackageId"].asString();
if(!valueTransitRouterAttachmentsTransitRouterAttachment["BandwidthType"].isNull())
transitRouterAttachmentsObject.bandwidthType = valueTransitRouterAttachmentsTransitRouterAttachment["BandwidthType"].asString();
transitRouterAttachments_.push_back(transitRouterAttachmentsObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -115,6 +115,17 @@ void ModifyFlowLogAttributeRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
long ModifyFlowLogAttributeRequest::getInterval()const
{
return interval_;
}
void ModifyFlowLogAttributeRequest::setInterval(long interval)
{
interval_ = interval;
setParameter("Interval", std::to_string(interval));
}
std::string ModifyFlowLogAttributeRequest::getFlowLogId()const
{
return flowLogId_;

View File

@@ -0,0 +1,128 @@
/*
* 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/MoveResourceGroupRequest.h>
using AlibabaCloud::Cbn::Model::MoveResourceGroupRequest;
MoveResourceGroupRequest::MoveResourceGroupRequest() :
RpcServiceRequest("cbn", "2017-09-12", "MoveResourceGroup")
{
setMethod(HttpRequest::Method::Post);
}
MoveResourceGroupRequest::~MoveResourceGroupRequest()
{}
long MoveResourceGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void MoveResourceGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string MoveResourceGroupRequest::getClientToken()const
{
return clientToken_;
}
void MoveResourceGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string MoveResourceGroupRequest::getResourceId()const
{
return resourceId_;
}
void MoveResourceGroupRequest::setResourceId(const std::string& resourceId)
{
resourceId_ = resourceId;
setParameter("ResourceId", resourceId);
}
bool MoveResourceGroupRequest::getDryRun()const
{
return dryRun_;
}
void MoveResourceGroupRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string MoveResourceGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void MoveResourceGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string MoveResourceGroupRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void MoveResourceGroupRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long MoveResourceGroupRequest::getOwnerId()const
{
return ownerId_;
}
void MoveResourceGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string MoveResourceGroupRequest::getResourceType()const
{
return resourceType_;
}
void MoveResourceGroupRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
}
std::string MoveResourceGroupRequest::getNewResourceGroupId()const
{
return newResourceGroupId_;
}
void MoveResourceGroupRequest::setNewResourceGroupId(const std::string& newResourceGroupId)
{
newResourceGroupId_ = newResourceGroupId;
setParameter("NewResourceGroupId", newResourceGroupId);
}

View 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/MoveResourceGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
MoveResourceGroupResult::MoveResourceGroupResult() :
ServiceResult()
{}
MoveResourceGroupResult::MoveResourceGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
MoveResourceGroupResult::~MoveResourceGroupResult()
{}
void MoveResourceGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,84 @@
/*
* 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/OpenTransitRouterServiceRequest.h>
using AlibabaCloud::Cbn::Model::OpenTransitRouterServiceRequest;
OpenTransitRouterServiceRequest::OpenTransitRouterServiceRequest() :
RpcServiceRequest("cbn", "2017-09-12", "OpenTransitRouterService")
{
setMethod(HttpRequest::Method::Post);
}
OpenTransitRouterServiceRequest::~OpenTransitRouterServiceRequest()
{}
long OpenTransitRouterServiceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void OpenTransitRouterServiceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string OpenTransitRouterServiceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void OpenTransitRouterServiceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string OpenTransitRouterServiceRequest::getClientToken()const
{
return clientToken_;
}
void OpenTransitRouterServiceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string OpenTransitRouterServiceRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void OpenTransitRouterServiceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long OpenTransitRouterServiceRequest::getOwnerId()const
{
return ownerId_;
}
void OpenTransitRouterServiceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View 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/OpenTransitRouterServiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
OpenTransitRouterServiceResult::OpenTransitRouterServiceResult() :
ServiceResult()
{}
OpenTransitRouterServiceResult::OpenTransitRouterServiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
OpenTransitRouterServiceResult::~OpenTransitRouterServiceResult()
{}
void OpenTransitRouterServiceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
}
std::string OpenTransitRouterServiceResult::getOrderId()const
{
return orderId_;
}

View File

@@ -0,0 +1,119 @@
/*
* 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/RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest.h>
using AlibabaCloud::Cbn::Model::RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest;
RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest() :
RpcServiceRequest("cbn", "2017-09-12", "RemoveTraficMatchRuleFromTrafficMarkingPolicy")
{
setMethod(HttpRequest::Method::Post);
}
RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::~RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest()
{}
long RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::getClientToken()const
{
return clientToken_;
}
void RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::getTrafficMarkingPolicyId()const
{
return trafficMarkingPolicyId_;
}
void RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::setTrafficMarkingPolicyId(const std::string& trafficMarkingPolicyId)
{
trafficMarkingPolicyId_ = trafficMarkingPolicyId;
setParameter("TrafficMarkingPolicyId", trafficMarkingPolicyId);
}
bool RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::getDryRun()const
{
return dryRun_;
}
void RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::vector<std::string> RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::getTrafficMarkRuleIds()const
{
return trafficMarkRuleIds_;
}
void RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::setTrafficMarkRuleIds(const std::vector<std::string>& trafficMarkRuleIds)
{
trafficMarkRuleIds_ = trafficMarkRuleIds;
for(int dep1 = 0; dep1!= trafficMarkRuleIds.size(); dep1++) {
setParameter("TrafficMarkRuleIds."+ std::to_string(dep1), trafficMarkRuleIds.at(dep1));
}
}
long RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View 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/RemoveTraficMatchRuleFromTrafficMarkingPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
RemoveTraficMatchRuleFromTrafficMarkingPolicyResult::RemoveTraficMatchRuleFromTrafficMarkingPolicyResult() :
ServiceResult()
{}
RemoveTraficMatchRuleFromTrafficMarkingPolicyResult::RemoveTraficMatchRuleFromTrafficMarkingPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RemoveTraficMatchRuleFromTrafficMarkingPolicyResult::~RemoveTraficMatchRuleFromTrafficMarkingPolicyResult()
{}
void RemoveTraficMatchRuleFromTrafficMarkingPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/ReplaceTransitRouterRouteTableAssociationRequest.h>
using AlibabaCloud::Cbn::Model::ReplaceTransitRouterRouteTableAssociationRequest;
ReplaceTransitRouterRouteTableAssociationRequest::ReplaceTransitRouterRouteTableAssociationRequest() :
RpcServiceRequest("cbn", "2017-09-12", "ReplaceTransitRouterRouteTableAssociation")
{
setMethod(HttpRequest::Method::Post);
}
ReplaceTransitRouterRouteTableAssociationRequest::~ReplaceTransitRouterRouteTableAssociationRequest()
{}
long ReplaceTransitRouterRouteTableAssociationRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ReplaceTransitRouterRouteTableAssociationRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ReplaceTransitRouterRouteTableAssociationRequest::getClientToken()const
{
return clientToken_;
}
void ReplaceTransitRouterRouteTableAssociationRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string ReplaceTransitRouterRouteTableAssociationRequest::getTransitRouterRouteTableId()const
{
return transitRouterRouteTableId_;
}
void ReplaceTransitRouterRouteTableAssociationRequest::setTransitRouterRouteTableId(const std::string& transitRouterRouteTableId)
{
transitRouterRouteTableId_ = transitRouterRouteTableId;
setParameter("TransitRouterRouteTableId", transitRouterRouteTableId);
}
bool ReplaceTransitRouterRouteTableAssociationRequest::getDryRun()const
{
return dryRun_;
}
void ReplaceTransitRouterRouteTableAssociationRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string ReplaceTransitRouterRouteTableAssociationRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ReplaceTransitRouterRouteTableAssociationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ReplaceTransitRouterRouteTableAssociationRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ReplaceTransitRouterRouteTableAssociationRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long ReplaceTransitRouterRouteTableAssociationRequest::getOwnerId()const
{
return ownerId_;
}
void ReplaceTransitRouterRouteTableAssociationRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ReplaceTransitRouterRouteTableAssociationRequest::getTransitRouterAttachmentId()const
{
return transitRouterAttachmentId_;
}
void ReplaceTransitRouterRouteTableAssociationRequest::setTransitRouterAttachmentId(const std::string& transitRouterAttachmentId)
{
transitRouterAttachmentId_ = transitRouterAttachmentId;
setParameter("TransitRouterAttachmentId", transitRouterAttachmentId);
}

View 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/ReplaceTransitRouterRouteTableAssociationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
ReplaceTransitRouterRouteTableAssociationResult::ReplaceTransitRouterRouteTableAssociationResult() :
ServiceResult()
{}
ReplaceTransitRouterRouteTableAssociationResult::ReplaceTransitRouterRouteTableAssociationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ReplaceTransitRouterRouteTableAssociationResult::~ReplaceTransitRouterRouteTableAssociationResult()
{}
void ReplaceTransitRouterRouteTableAssociationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,128 @@
/*
* 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/UpdateCenInterRegionTrafficQosPolicyAttributeRequest.h>
using AlibabaCloud::Cbn::Model::UpdateCenInterRegionTrafficQosPolicyAttributeRequest;
UpdateCenInterRegionTrafficQosPolicyAttributeRequest::UpdateCenInterRegionTrafficQosPolicyAttributeRequest() :
RpcServiceRequest("cbn", "2017-09-12", "UpdateCenInterRegionTrafficQosPolicyAttribute")
{
setMethod(HttpRequest::Method::Post);
}
UpdateCenInterRegionTrafficQosPolicyAttributeRequest::~UpdateCenInterRegionTrafficQosPolicyAttributeRequest()
{}
long UpdateCenInterRegionTrafficQosPolicyAttributeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void UpdateCenInterRegionTrafficQosPolicyAttributeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string UpdateCenInterRegionTrafficQosPolicyAttributeRequest::getClientToken()const
{
return clientToken_;
}
void UpdateCenInterRegionTrafficQosPolicyAttributeRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string UpdateCenInterRegionTrafficQosPolicyAttributeRequest::getTrafficQosPolicyName()const
{
return trafficQosPolicyName_;
}
void UpdateCenInterRegionTrafficQosPolicyAttributeRequest::setTrafficQosPolicyName(const std::string& trafficQosPolicyName)
{
trafficQosPolicyName_ = trafficQosPolicyName;
setParameter("TrafficQosPolicyName", trafficQosPolicyName);
}
bool UpdateCenInterRegionTrafficQosPolicyAttributeRequest::getDryRun()const
{
return dryRun_;
}
void UpdateCenInterRegionTrafficQosPolicyAttributeRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string UpdateCenInterRegionTrafficQosPolicyAttributeRequest::getTrafficQosPolicyId()const
{
return trafficQosPolicyId_;
}
void UpdateCenInterRegionTrafficQosPolicyAttributeRequest::setTrafficQosPolicyId(const std::string& trafficQosPolicyId)
{
trafficQosPolicyId_ = trafficQosPolicyId;
setParameter("TrafficQosPolicyId", trafficQosPolicyId);
}
std::string UpdateCenInterRegionTrafficQosPolicyAttributeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void UpdateCenInterRegionTrafficQosPolicyAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string UpdateCenInterRegionTrafficQosPolicyAttributeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void UpdateCenInterRegionTrafficQosPolicyAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string UpdateCenInterRegionTrafficQosPolicyAttributeRequest::getTrafficQosPolicyDescription()const
{
return trafficQosPolicyDescription_;
}
void UpdateCenInterRegionTrafficQosPolicyAttributeRequest::setTrafficQosPolicyDescription(const std::string& trafficQosPolicyDescription)
{
trafficQosPolicyDescription_ = trafficQosPolicyDescription;
setParameter("TrafficQosPolicyDescription", trafficQosPolicyDescription);
}
long UpdateCenInterRegionTrafficQosPolicyAttributeRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateCenInterRegionTrafficQosPolicyAttributeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View 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/UpdateCenInterRegionTrafficQosPolicyAttributeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
UpdateCenInterRegionTrafficQosPolicyAttributeResult::UpdateCenInterRegionTrafficQosPolicyAttributeResult() :
ServiceResult()
{}
UpdateCenInterRegionTrafficQosPolicyAttributeResult::UpdateCenInterRegionTrafficQosPolicyAttributeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateCenInterRegionTrafficQosPolicyAttributeResult::~UpdateCenInterRegionTrafficQosPolicyAttributeResult()
{}
void UpdateCenInterRegionTrafficQosPolicyAttributeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,152 @@
/*
* 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/UpdateCenInterRegionTrafficQosQueueAttributeRequest.h>
using AlibabaCloud::Cbn::Model::UpdateCenInterRegionTrafficQosQueueAttributeRequest;
UpdateCenInterRegionTrafficQosQueueAttributeRequest::UpdateCenInterRegionTrafficQosQueueAttributeRequest() :
RpcServiceRequest("cbn", "2017-09-12", "UpdateCenInterRegionTrafficQosQueueAttribute")
{
setMethod(HttpRequest::Method::Post);
}
UpdateCenInterRegionTrafficQosQueueAttributeRequest::~UpdateCenInterRegionTrafficQosQueueAttributeRequest()
{}
std::vector<int> UpdateCenInterRegionTrafficQosQueueAttributeRequest::getDscps()const
{
return dscps_;
}
void UpdateCenInterRegionTrafficQosQueueAttributeRequest::setDscps(const std::vector<int>& dscps)
{
dscps_ = dscps;
for(int dep1 = 0; dep1!= dscps.size(); dep1++) {
setParameter("Dscps."+ std::to_string(dep1), std::to_string(dscps.at(dep1)));
}
}
long UpdateCenInterRegionTrafficQosQueueAttributeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void UpdateCenInterRegionTrafficQosQueueAttributeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string UpdateCenInterRegionTrafficQosQueueAttributeRequest::getClientToken()const
{
return clientToken_;
}
void UpdateCenInterRegionTrafficQosQueueAttributeRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string UpdateCenInterRegionTrafficQosQueueAttributeRequest::getQosQueueName()const
{
return qosQueueName_;
}
void UpdateCenInterRegionTrafficQosQueueAttributeRequest::setQosQueueName(const std::string& qosQueueName)
{
qosQueueName_ = qosQueueName;
setParameter("QosQueueName", qosQueueName);
}
std::string UpdateCenInterRegionTrafficQosQueueAttributeRequest::getRemainBandwidthPercent()const
{
return remainBandwidthPercent_;
}
void UpdateCenInterRegionTrafficQosQueueAttributeRequest::setRemainBandwidthPercent(const std::string& remainBandwidthPercent)
{
remainBandwidthPercent_ = remainBandwidthPercent;
setParameter("RemainBandwidthPercent", remainBandwidthPercent);
}
bool UpdateCenInterRegionTrafficQosQueueAttributeRequest::getDryRun()const
{
return dryRun_;
}
void UpdateCenInterRegionTrafficQosQueueAttributeRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string UpdateCenInterRegionTrafficQosQueueAttributeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void UpdateCenInterRegionTrafficQosQueueAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string UpdateCenInterRegionTrafficQosQueueAttributeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void UpdateCenInterRegionTrafficQosQueueAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long UpdateCenInterRegionTrafficQosQueueAttributeRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateCenInterRegionTrafficQosQueueAttributeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string UpdateCenInterRegionTrafficQosQueueAttributeRequest::getQosQueueId()const
{
return qosQueueId_;
}
void UpdateCenInterRegionTrafficQosQueueAttributeRequest::setQosQueueId(const std::string& qosQueueId)
{
qosQueueId_ = qosQueueId;
setParameter("QosQueueId", qosQueueId);
}
std::string UpdateCenInterRegionTrafficQosQueueAttributeRequest::getQosQueueDescription()const
{
return qosQueueDescription_;
}
void UpdateCenInterRegionTrafficQosQueueAttributeRequest::setQosQueueDescription(const std::string& qosQueueDescription)
{
qosQueueDescription_ = qosQueueDescription;
setParameter("QosQueueDescription", qosQueueDescription);
}

View 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/UpdateCenInterRegionTrafficQosQueueAttributeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
UpdateCenInterRegionTrafficQosQueueAttributeResult::UpdateCenInterRegionTrafficQosQueueAttributeResult() :
ServiceResult()
{}
UpdateCenInterRegionTrafficQosQueueAttributeResult::UpdateCenInterRegionTrafficQosQueueAttributeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateCenInterRegionTrafficQosQueueAttributeResult::~UpdateCenInterRegionTrafficQosQueueAttributeResult()
{}
void UpdateCenInterRegionTrafficQosQueueAttributeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,128 @@
/*
* 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/UpdateTrafficMarkingPolicyAttributeRequest.h>
using AlibabaCloud::Cbn::Model::UpdateTrafficMarkingPolicyAttributeRequest;
UpdateTrafficMarkingPolicyAttributeRequest::UpdateTrafficMarkingPolicyAttributeRequest() :
RpcServiceRequest("cbn", "2017-09-12", "UpdateTrafficMarkingPolicyAttribute")
{
setMethod(HttpRequest::Method::Post);
}
UpdateTrafficMarkingPolicyAttributeRequest::~UpdateTrafficMarkingPolicyAttributeRequest()
{}
long UpdateTrafficMarkingPolicyAttributeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void UpdateTrafficMarkingPolicyAttributeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string UpdateTrafficMarkingPolicyAttributeRequest::getClientToken()const
{
return clientToken_;
}
void UpdateTrafficMarkingPolicyAttributeRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string UpdateTrafficMarkingPolicyAttributeRequest::getTrafficMarkingPolicyDescription()const
{
return trafficMarkingPolicyDescription_;
}
void UpdateTrafficMarkingPolicyAttributeRequest::setTrafficMarkingPolicyDescription(const std::string& trafficMarkingPolicyDescription)
{
trafficMarkingPolicyDescription_ = trafficMarkingPolicyDescription;
setParameter("TrafficMarkingPolicyDescription", trafficMarkingPolicyDescription);
}
std::string UpdateTrafficMarkingPolicyAttributeRequest::getTrafficMarkingPolicyId()const
{
return trafficMarkingPolicyId_;
}
void UpdateTrafficMarkingPolicyAttributeRequest::setTrafficMarkingPolicyId(const std::string& trafficMarkingPolicyId)
{
trafficMarkingPolicyId_ = trafficMarkingPolicyId;
setParameter("TrafficMarkingPolicyId", trafficMarkingPolicyId);
}
std::string UpdateTrafficMarkingPolicyAttributeRequest::getTrafficMarkingPolicyName()const
{
return trafficMarkingPolicyName_;
}
void UpdateTrafficMarkingPolicyAttributeRequest::setTrafficMarkingPolicyName(const std::string& trafficMarkingPolicyName)
{
trafficMarkingPolicyName_ = trafficMarkingPolicyName;
setParameter("TrafficMarkingPolicyName", trafficMarkingPolicyName);
}
bool UpdateTrafficMarkingPolicyAttributeRequest::getDryRun()const
{
return dryRun_;
}
void UpdateTrafficMarkingPolicyAttributeRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string UpdateTrafficMarkingPolicyAttributeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void UpdateTrafficMarkingPolicyAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string UpdateTrafficMarkingPolicyAttributeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void UpdateTrafficMarkingPolicyAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long UpdateTrafficMarkingPolicyAttributeRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateTrafficMarkingPolicyAttributeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View 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/UpdateTrafficMarkingPolicyAttributeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cbn;
using namespace AlibabaCloud::Cbn::Model;
UpdateTrafficMarkingPolicyAttributeResult::UpdateTrafficMarkingPolicyAttributeResult() :
ServiceResult()
{}
UpdateTrafficMarkingPolicyAttributeResult::UpdateTrafficMarkingPolicyAttributeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateTrafficMarkingPolicyAttributeResult::~UpdateTrafficMarkingPolicyAttributeResult()
{}
void UpdateTrafficMarkingPolicyAttributeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -38,6 +38,17 @@ void UpdateTransitRouterPeerAttachmentAttributeRequest::setResourceOwnerId(long
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string UpdateTransitRouterPeerAttachmentAttributeRequest::getBandwidthType()const
{
return bandwidthType_;
}
void UpdateTransitRouterPeerAttachmentAttributeRequest::setBandwidthType(const std::string& bandwidthType)
{
bandwidthType_ = bandwidthType;
setParameter("BandwidthType", bandwidthType);
}
std::string UpdateTransitRouterPeerAttachmentAttributeRequest::getClientToken()const
{
return clientToken_;