Support CEN Qos Apis.
This commit is contained in:
@@ -87,6 +87,42 @@ CbnClient::ActiveFlowLogOutcomeCallable CbnClient::activeFlowLogCallable(const A
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::AddTraficMatchRuleToTrafficMarkingPolicyOutcome CbnClient::addTraficMatchRuleToTrafficMarkingPolicy(const AddTraficMatchRuleToTrafficMarkingPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddTraficMatchRuleToTrafficMarkingPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddTraficMatchRuleToTrafficMarkingPolicyOutcome(AddTraficMatchRuleToTrafficMarkingPolicyResult(outcome.result()));
|
||||
else
|
||||
return AddTraficMatchRuleToTrafficMarkingPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::addTraficMatchRuleToTrafficMarkingPolicyAsync(const AddTraficMatchRuleToTrafficMarkingPolicyRequest& request, const AddTraficMatchRuleToTrafficMarkingPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addTraficMatchRuleToTrafficMarkingPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::AddTraficMatchRuleToTrafficMarkingPolicyOutcomeCallable CbnClient::addTraficMatchRuleToTrafficMarkingPolicyCallable(const AddTraficMatchRuleToTrafficMarkingPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddTraficMatchRuleToTrafficMarkingPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addTraficMatchRuleToTrafficMarkingPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::AssociateCenBandwidthPackageOutcome CbnClient::associateCenBandwidthPackage(const AssociateCenBandwidthPackageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,6 +231,42 @@ CbnClient::AttachCenChildInstanceOutcomeCallable CbnClient::attachCenChildInstan
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::CheckTransitRouterServiceOutcome CbnClient::checkTransitRouterService(const CheckTransitRouterServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckTransitRouterServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckTransitRouterServiceOutcome(CheckTransitRouterServiceResult(outcome.result()));
|
||||
else
|
||||
return CheckTransitRouterServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::checkTransitRouterServiceAsync(const CheckTransitRouterServiceRequest& request, const CheckTransitRouterServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkTransitRouterService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::CheckTransitRouterServiceOutcomeCallable CbnClient::checkTransitRouterServiceCallable(const CheckTransitRouterServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckTransitRouterServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkTransitRouterService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::CreateCenOutcome CbnClient::createCen(const CreateCenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -267,6 +339,42 @@ CbnClient::CreateCenBandwidthPackageOutcomeCallable CbnClient::createCenBandwidt
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::CreateCenChildInstanceRouteEntryToAttachmentOutcome CbnClient::createCenChildInstanceRouteEntryToAttachment(const CreateCenChildInstanceRouteEntryToAttachmentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateCenChildInstanceRouteEntryToAttachmentOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateCenChildInstanceRouteEntryToAttachmentOutcome(CreateCenChildInstanceRouteEntryToAttachmentResult(outcome.result()));
|
||||
else
|
||||
return CreateCenChildInstanceRouteEntryToAttachmentOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::createCenChildInstanceRouteEntryToAttachmentAsync(const CreateCenChildInstanceRouteEntryToAttachmentRequest& request, const CreateCenChildInstanceRouteEntryToAttachmentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createCenChildInstanceRouteEntryToAttachment(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::CreateCenChildInstanceRouteEntryToAttachmentOutcomeCallable CbnClient::createCenChildInstanceRouteEntryToAttachmentCallable(const CreateCenChildInstanceRouteEntryToAttachmentRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateCenChildInstanceRouteEntryToAttachmentOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createCenChildInstanceRouteEntryToAttachment(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::CreateCenChildInstanceRouteEntryToCenOutcome CbnClient::createCenChildInstanceRouteEntryToCen(const CreateCenChildInstanceRouteEntryToCenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -303,6 +411,42 @@ CbnClient::CreateCenChildInstanceRouteEntryToCenOutcomeCallable CbnClient::creat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::CreateCenInterRegionTrafficQosPolicyOutcome CbnClient::createCenInterRegionTrafficQosPolicy(const CreateCenInterRegionTrafficQosPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateCenInterRegionTrafficQosPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateCenInterRegionTrafficQosPolicyOutcome(CreateCenInterRegionTrafficQosPolicyResult(outcome.result()));
|
||||
else
|
||||
return CreateCenInterRegionTrafficQosPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::createCenInterRegionTrafficQosPolicyAsync(const CreateCenInterRegionTrafficQosPolicyRequest& request, const CreateCenInterRegionTrafficQosPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createCenInterRegionTrafficQosPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::CreateCenInterRegionTrafficQosPolicyOutcomeCallable CbnClient::createCenInterRegionTrafficQosPolicyCallable(const CreateCenInterRegionTrafficQosPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateCenInterRegionTrafficQosPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createCenInterRegionTrafficQosPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::CreateCenRouteMapOutcome CbnClient::createCenRouteMap(const CreateCenRouteMapRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,6 +519,42 @@ CbnClient::CreateFlowlogOutcomeCallable CbnClient::createFlowlogCallable(const C
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::CreateTrafficMarkingPolicyOutcome CbnClient::createTrafficMarkingPolicy(const CreateTrafficMarkingPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateTrafficMarkingPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateTrafficMarkingPolicyOutcome(CreateTrafficMarkingPolicyResult(outcome.result()));
|
||||
else
|
||||
return CreateTrafficMarkingPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::createTrafficMarkingPolicyAsync(const CreateTrafficMarkingPolicyRequest& request, const CreateTrafficMarkingPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createTrafficMarkingPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::CreateTrafficMarkingPolicyOutcomeCallable CbnClient::createTrafficMarkingPolicyCallable(const CreateTrafficMarkingPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateTrafficMarkingPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createTrafficMarkingPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::CreateTransitRouterOutcome CbnClient::createTransitRouter(const CreateTransitRouterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,6 +879,42 @@ CbnClient::DeleteCenBandwidthPackageOutcomeCallable CbnClient::deleteCenBandwidt
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteCenChildInstanceRouteEntryToAttachmentOutcome CbnClient::deleteCenChildInstanceRouteEntryToAttachment(const DeleteCenChildInstanceRouteEntryToAttachmentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteCenChildInstanceRouteEntryToAttachmentOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteCenChildInstanceRouteEntryToAttachmentOutcome(DeleteCenChildInstanceRouteEntryToAttachmentResult(outcome.result()));
|
||||
else
|
||||
return DeleteCenChildInstanceRouteEntryToAttachmentOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::deleteCenChildInstanceRouteEntryToAttachmentAsync(const DeleteCenChildInstanceRouteEntryToAttachmentRequest& request, const DeleteCenChildInstanceRouteEntryToAttachmentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteCenChildInstanceRouteEntryToAttachment(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DeleteCenChildInstanceRouteEntryToAttachmentOutcomeCallable CbnClient::deleteCenChildInstanceRouteEntryToAttachmentCallable(const DeleteCenChildInstanceRouteEntryToAttachmentRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteCenChildInstanceRouteEntryToAttachmentOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteCenChildInstanceRouteEntryToAttachment(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteCenChildInstanceRouteEntryToCenOutcome CbnClient::deleteCenChildInstanceRouteEntryToCen(const DeleteCenChildInstanceRouteEntryToCenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -735,6 +951,78 @@ CbnClient::DeleteCenChildInstanceRouteEntryToCenOutcomeCallable CbnClient::delet
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteCenInterRegionTrafficQosPolicyOutcome CbnClient::deleteCenInterRegionTrafficQosPolicy(const DeleteCenInterRegionTrafficQosPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteCenInterRegionTrafficQosPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteCenInterRegionTrafficQosPolicyOutcome(DeleteCenInterRegionTrafficQosPolicyResult(outcome.result()));
|
||||
else
|
||||
return DeleteCenInterRegionTrafficQosPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::deleteCenInterRegionTrafficQosPolicyAsync(const DeleteCenInterRegionTrafficQosPolicyRequest& request, const DeleteCenInterRegionTrafficQosPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteCenInterRegionTrafficQosPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DeleteCenInterRegionTrafficQosPolicyOutcomeCallable CbnClient::deleteCenInterRegionTrafficQosPolicyCallable(const DeleteCenInterRegionTrafficQosPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteCenInterRegionTrafficQosPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteCenInterRegionTrafficQosPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteCenInterRegionTrafficQosQueueOutcome CbnClient::deleteCenInterRegionTrafficQosQueue(const DeleteCenInterRegionTrafficQosQueueRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteCenInterRegionTrafficQosQueueOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteCenInterRegionTrafficQosQueueOutcome(DeleteCenInterRegionTrafficQosQueueResult(outcome.result()));
|
||||
else
|
||||
return DeleteCenInterRegionTrafficQosQueueOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::deleteCenInterRegionTrafficQosQueueAsync(const DeleteCenInterRegionTrafficQosQueueRequest& request, const DeleteCenInterRegionTrafficQosQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteCenInterRegionTrafficQosQueue(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DeleteCenInterRegionTrafficQosQueueOutcomeCallable CbnClient::deleteCenInterRegionTrafficQosQueueCallable(const DeleteCenInterRegionTrafficQosQueueRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteCenInterRegionTrafficQosQueueOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteCenInterRegionTrafficQosQueue(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteCenRouteMapOutcome CbnClient::deleteCenRouteMap(const DeleteCenRouteMapRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -843,6 +1131,42 @@ CbnClient::DeleteRouteServiceInCenOutcomeCallable CbnClient::deleteRouteServiceI
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteTrafficMarkingPolicyOutcome CbnClient::deleteTrafficMarkingPolicy(const DeleteTrafficMarkingPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteTrafficMarkingPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteTrafficMarkingPolicyOutcome(DeleteTrafficMarkingPolicyResult(outcome.result()));
|
||||
else
|
||||
return DeleteTrafficMarkingPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::deleteTrafficMarkingPolicyAsync(const DeleteTrafficMarkingPolicyRequest& request, const DeleteTrafficMarkingPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteTrafficMarkingPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DeleteTrafficMarkingPolicyOutcomeCallable CbnClient::deleteTrafficMarkingPolicyCallable(const DeleteTrafficMarkingPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteTrafficMarkingPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteTrafficMarkingPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteTransitRouterPeerAttachmentOutcome CbnClient::deleteTransitRouterPeerAttachment(const DeleteTransitRouterPeerAttachmentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1923,6 +2247,42 @@ CbnClient::EnableTransitRouterRouteTablePropagationOutcomeCallable CbnClient::en
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::ListCenInterRegionTrafficQosPoliciesOutcome CbnClient::listCenInterRegionTrafficQosPolicies(const ListCenInterRegionTrafficQosPoliciesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListCenInterRegionTrafficQosPoliciesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListCenInterRegionTrafficQosPoliciesOutcome(ListCenInterRegionTrafficQosPoliciesResult(outcome.result()));
|
||||
else
|
||||
return ListCenInterRegionTrafficQosPoliciesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::listCenInterRegionTrafficQosPoliciesAsync(const ListCenInterRegionTrafficQosPoliciesRequest& request, const ListCenInterRegionTrafficQosPoliciesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listCenInterRegionTrafficQosPolicies(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::ListCenInterRegionTrafficQosPoliciesOutcomeCallable CbnClient::listCenInterRegionTrafficQosPoliciesCallable(const ListCenInterRegionTrafficQosPoliciesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListCenInterRegionTrafficQosPoliciesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listCenInterRegionTrafficQosPolicies(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::ListTagResourcesOutcome CbnClient::listTagResources(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1959,6 +2319,42 @@ CbnClient::ListTagResourcesOutcomeCallable CbnClient::listTagResourcesCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::ListTrafficMarkingPoliciesOutcome CbnClient::listTrafficMarkingPolicies(const ListTrafficMarkingPoliciesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTrafficMarkingPoliciesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTrafficMarkingPoliciesOutcome(ListTrafficMarkingPoliciesResult(outcome.result()));
|
||||
else
|
||||
return ListTrafficMarkingPoliciesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::listTrafficMarkingPoliciesAsync(const ListTrafficMarkingPoliciesRequest& request, const ListTrafficMarkingPoliciesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTrafficMarkingPolicies(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::ListTrafficMarkingPoliciesOutcomeCallable CbnClient::listTrafficMarkingPoliciesCallable(const ListTrafficMarkingPoliciesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTrafficMarkingPoliciesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTrafficMarkingPolicies(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::ListTransitRouterAvailableResourceOutcome CbnClient::listTransitRouterAvailableResource(const ListTransitRouterAvailableResourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2463,6 +2859,78 @@ CbnClient::ModifyFlowLogAttributeOutcomeCallable CbnClient::modifyFlowLogAttribu
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::MoveResourceGroupOutcome CbnClient::moveResourceGroup(const MoveResourceGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MoveResourceGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MoveResourceGroupOutcome(MoveResourceGroupResult(outcome.result()));
|
||||
else
|
||||
return MoveResourceGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::moveResourceGroupAsync(const MoveResourceGroupRequest& request, const MoveResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, moveResourceGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::MoveResourceGroupOutcomeCallable CbnClient::moveResourceGroupCallable(const MoveResourceGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MoveResourceGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->moveResourceGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::OpenTransitRouterServiceOutcome CbnClient::openTransitRouterService(const OpenTransitRouterServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OpenTransitRouterServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OpenTransitRouterServiceOutcome(OpenTransitRouterServiceResult(outcome.result()));
|
||||
else
|
||||
return OpenTransitRouterServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::openTransitRouterServiceAsync(const OpenTransitRouterServiceRequest& request, const OpenTransitRouterServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, openTransitRouterService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::OpenTransitRouterServiceOutcomeCallable CbnClient::openTransitRouterServiceCallable(const OpenTransitRouterServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OpenTransitRouterServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->openTransitRouterService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::PublishRouteEntriesOutcome CbnClient::publishRouteEntries(const PublishRouteEntriesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2499,6 +2967,78 @@ CbnClient::PublishRouteEntriesOutcomeCallable CbnClient::publishRouteEntriesCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::RemoveTraficMatchRuleFromTrafficMarkingPolicyOutcome CbnClient::removeTraficMatchRuleFromTrafficMarkingPolicy(const RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemoveTraficMatchRuleFromTrafficMarkingPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RemoveTraficMatchRuleFromTrafficMarkingPolicyOutcome(RemoveTraficMatchRuleFromTrafficMarkingPolicyResult(outcome.result()));
|
||||
else
|
||||
return RemoveTraficMatchRuleFromTrafficMarkingPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::removeTraficMatchRuleFromTrafficMarkingPolicyAsync(const RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest& request, const RemoveTraficMatchRuleFromTrafficMarkingPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, removeTraficMatchRuleFromTrafficMarkingPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::RemoveTraficMatchRuleFromTrafficMarkingPolicyOutcomeCallable CbnClient::removeTraficMatchRuleFromTrafficMarkingPolicyCallable(const RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RemoveTraficMatchRuleFromTrafficMarkingPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->removeTraficMatchRuleFromTrafficMarkingPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::ReplaceTransitRouterRouteTableAssociationOutcome CbnClient::replaceTransitRouterRouteTableAssociation(const ReplaceTransitRouterRouteTableAssociationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ReplaceTransitRouterRouteTableAssociationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ReplaceTransitRouterRouteTableAssociationOutcome(ReplaceTransitRouterRouteTableAssociationResult(outcome.result()));
|
||||
else
|
||||
return ReplaceTransitRouterRouteTableAssociationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::replaceTransitRouterRouteTableAssociationAsync(const ReplaceTransitRouterRouteTableAssociationRequest& request, const ReplaceTransitRouterRouteTableAssociationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, replaceTransitRouterRouteTableAssociation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::ReplaceTransitRouterRouteTableAssociationOutcomeCallable CbnClient::replaceTransitRouterRouteTableAssociationCallable(const ReplaceTransitRouterRouteTableAssociationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ReplaceTransitRouterRouteTableAssociationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->replaceTransitRouterRouteTableAssociation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::ResolveAndRouteServiceInCenOutcome CbnClient::resolveAndRouteServiceInCen(const ResolveAndRouteServiceInCenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2787,6 +3327,114 @@ CbnClient::UntagResourcesOutcomeCallable CbnClient::untagResourcesCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::UpdateCenInterRegionTrafficQosPolicyAttributeOutcome CbnClient::updateCenInterRegionTrafficQosPolicyAttribute(const UpdateCenInterRegionTrafficQosPolicyAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateCenInterRegionTrafficQosPolicyAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateCenInterRegionTrafficQosPolicyAttributeOutcome(UpdateCenInterRegionTrafficQosPolicyAttributeResult(outcome.result()));
|
||||
else
|
||||
return UpdateCenInterRegionTrafficQosPolicyAttributeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::updateCenInterRegionTrafficQosPolicyAttributeAsync(const UpdateCenInterRegionTrafficQosPolicyAttributeRequest& request, const UpdateCenInterRegionTrafficQosPolicyAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateCenInterRegionTrafficQosPolicyAttribute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::UpdateCenInterRegionTrafficQosPolicyAttributeOutcomeCallable CbnClient::updateCenInterRegionTrafficQosPolicyAttributeCallable(const UpdateCenInterRegionTrafficQosPolicyAttributeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateCenInterRegionTrafficQosPolicyAttributeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateCenInterRegionTrafficQosPolicyAttribute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::UpdateCenInterRegionTrafficQosQueueAttributeOutcome CbnClient::updateCenInterRegionTrafficQosQueueAttribute(const UpdateCenInterRegionTrafficQosQueueAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateCenInterRegionTrafficQosQueueAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateCenInterRegionTrafficQosQueueAttributeOutcome(UpdateCenInterRegionTrafficQosQueueAttributeResult(outcome.result()));
|
||||
else
|
||||
return UpdateCenInterRegionTrafficQosQueueAttributeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::updateCenInterRegionTrafficQosQueueAttributeAsync(const UpdateCenInterRegionTrafficQosQueueAttributeRequest& request, const UpdateCenInterRegionTrafficQosQueueAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateCenInterRegionTrafficQosQueueAttribute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::UpdateCenInterRegionTrafficQosQueueAttributeOutcomeCallable CbnClient::updateCenInterRegionTrafficQosQueueAttributeCallable(const UpdateCenInterRegionTrafficQosQueueAttributeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateCenInterRegionTrafficQosQueueAttributeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateCenInterRegionTrafficQosQueueAttribute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::UpdateTrafficMarkingPolicyAttributeOutcome CbnClient::updateTrafficMarkingPolicyAttribute(const UpdateTrafficMarkingPolicyAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateTrafficMarkingPolicyAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateTrafficMarkingPolicyAttributeOutcome(UpdateTrafficMarkingPolicyAttributeResult(outcome.result()));
|
||||
else
|
||||
return UpdateTrafficMarkingPolicyAttributeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::updateTrafficMarkingPolicyAttributeAsync(const UpdateTrafficMarkingPolicyAttributeRequest& request, const UpdateTrafficMarkingPolicyAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateTrafficMarkingPolicyAttribute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::UpdateTrafficMarkingPolicyAttributeOutcomeCallable CbnClient::updateTrafficMarkingPolicyAttributeCallable(const UpdateTrafficMarkingPolicyAttributeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateTrafficMarkingPolicyAttributeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateTrafficMarkingPolicyAttribute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::UpdateTransitRouterOutcome CbnClient::updateTransitRouter(const UpdateTransitRouterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
132
cbn/src/model/AddTraficMatchRuleToTrafficMarkingPolicyRequest.cc
Normal file
132
cbn/src/model/AddTraficMatchRuleToTrafficMarkingPolicyRequest.cc
Normal 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));
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
84
cbn/src/model/CheckTransitRouterServiceRequest.cc
Normal file
84
cbn/src/model/CheckTransitRouterServiceRequest.cc
Normal 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));
|
||||
}
|
||||
|
||||
51
cbn/src/model/CheckTransitRouterServiceResult.cc
Normal file
51
cbn/src/model/CheckTransitRouterServiceResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/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_;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
159
cbn/src/model/CreateCenInterRegionTrafficQosPolicyRequest.cc
Normal file
159
cbn/src/model/CreateCenInterRegionTrafficQosPolicyRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
51
cbn/src/model/CreateCenInterRegionTrafficQosPolicyResult.cc
Normal file
51
cbn/src/model/CreateCenInterRegionTrafficQosPolicyResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/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_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
|
||||
176
cbn/src/model/CreateTrafficMarkingPolicyRequest.cc
Normal file
176
cbn/src/model/CreateTrafficMarkingPolicyRequest.cc
Normal 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));
|
||||
}
|
||||
|
||||
51
cbn/src/model/CreateTrafficMarkingPolicyResult.cc
Normal file
51
cbn/src/model/CreateTrafficMarkingPolicyResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/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_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
106
cbn/src/model/DeleteCenInterRegionTrafficQosPolicyRequest.cc
Normal file
106
cbn/src/model/DeleteCenInterRegionTrafficQosPolicyRequest.cc
Normal 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));
|
||||
}
|
||||
|
||||
44
cbn/src/model/DeleteCenInterRegionTrafficQosPolicyResult.cc
Normal file
44
cbn/src/model/DeleteCenInterRegionTrafficQosPolicyResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/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());
|
||||
|
||||
}
|
||||
|
||||
106
cbn/src/model/DeleteCenInterRegionTrafficQosQueueRequest.cc
Normal file
106
cbn/src/model/DeleteCenInterRegionTrafficQosQueueRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
44
cbn/src/model/DeleteCenInterRegionTrafficQosQueueResult.cc
Normal file
44
cbn/src/model/DeleteCenInterRegionTrafficQosQueueResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/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());
|
||||
|
||||
}
|
||||
|
||||
106
cbn/src/model/DeleteTrafficMarkingPolicyRequest.cc
Normal file
106
cbn/src/model/DeleteTrafficMarkingPolicyRequest.cc
Normal 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));
|
||||
}
|
||||
|
||||
44
cbn/src/model/DeleteTrafficMarkingPolicyResult.cc
Normal file
44
cbn/src/model/DeleteTrafficMarkingPolicyResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/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());
|
||||
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
|
||||
150
cbn/src/model/ListCenInterRegionTrafficQosPoliciesRequest.cc
Normal file
150
cbn/src/model/ListCenInterRegionTrafficQosPoliciesRequest.cc
Normal 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));
|
||||
}
|
||||
|
||||
101
cbn/src/model/ListCenInterRegionTrafficQosPoliciesResult.cc
Normal file
101
cbn/src/model/ListCenInterRegionTrafficQosPoliciesResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
139
cbn/src/model/ListTrafficMarkingPoliciesRequest.cc
Normal file
139
cbn/src/model/ListTrafficMarkingPoliciesRequest.cc
Normal 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));
|
||||
}
|
||||
|
||||
116
cbn/src/model/ListTrafficMarkingPoliciesResult.cc
Normal file
116
cbn/src/model/ListTrafficMarkingPoliciesResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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_;
|
||||
|
||||
128
cbn/src/model/MoveResourceGroupRequest.cc
Normal file
128
cbn/src/model/MoveResourceGroupRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
44
cbn/src/model/MoveResourceGroupResult.cc
Normal file
44
cbn/src/model/MoveResourceGroupResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/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());
|
||||
|
||||
}
|
||||
|
||||
84
cbn/src/model/OpenTransitRouterServiceRequest.cc
Normal file
84
cbn/src/model/OpenTransitRouterServiceRequest.cc
Normal 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));
|
||||
}
|
||||
|
||||
51
cbn/src/model/OpenTransitRouterServiceResult.cc
Normal file
51
cbn/src/model/OpenTransitRouterServiceResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/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_;
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
128
cbn/src/model/UpdateTrafficMarkingPolicyAttributeRequest.cc
Normal file
128
cbn/src/model/UpdateTrafficMarkingPolicyAttributeRequest.cc
Normal 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));
|
||||
}
|
||||
|
||||
44
cbn/src/model/UpdateTrafficMarkingPolicyAttributeResult.cc
Normal file
44
cbn/src/model/UpdateTrafficMarkingPolicyAttributeResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/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());
|
||||
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user