@@ -123,6 +123,78 @@ CbnClient::CreateCenBandwidthPackageOutcomeCallable CbnClient::createCenBandwidt
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::ModifyFlowLogAttributeOutcome CbnClient::modifyFlowLogAttribute(const ModifyFlowLogAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyFlowLogAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyFlowLogAttributeOutcome(ModifyFlowLogAttributeResult(outcome.result()));
|
||||
else
|
||||
return ModifyFlowLogAttributeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::modifyFlowLogAttributeAsync(const ModifyFlowLogAttributeRequest& request, const ModifyFlowLogAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyFlowLogAttribute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::ModifyFlowLogAttributeOutcomeCallable CbnClient::modifyFlowLogAttributeCallable(const ModifyFlowLogAttributeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyFlowLogAttributeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyFlowLogAttribute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DescribeGrantRulesToCenOutcome CbnClient::describeGrantRulesToCen(const DescribeGrantRulesToCenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeGrantRulesToCenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeGrantRulesToCenOutcome(DescribeGrantRulesToCenResult(outcome.result()));
|
||||
else
|
||||
return DescribeGrantRulesToCenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::describeGrantRulesToCenAsync(const DescribeGrantRulesToCenRequest& request, const DescribeGrantRulesToCenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeGrantRulesToCen(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DescribeGrantRulesToCenOutcomeCallable CbnClient::describeGrantRulesToCenCallable(const DescribeGrantRulesToCenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeGrantRulesToCenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeGrantRulesToCen(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::WithdrawPublishedRouteEntriesOutcome CbnClient::withdrawPublishedRouteEntries(const WithdrawPublishedRouteEntriesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,42 +267,6 @@ CbnClient::DescribePublishedRouteEntriesOutcomeCallable CbnClient::describePubli
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DescribeGrantRulesToCenOutcome CbnClient::describeGrantRulesToCen(const DescribeGrantRulesToCenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeGrantRulesToCenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeGrantRulesToCenOutcome(DescribeGrantRulesToCenResult(outcome.result()));
|
||||
else
|
||||
return DescribeGrantRulesToCenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::describeGrantRulesToCenAsync(const DescribeGrantRulesToCenRequest& request, const DescribeGrantRulesToCenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeGrantRulesToCen(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DescribeGrantRulesToCenOutcomeCallable CbnClient::describeGrantRulesToCenCallable(const DescribeGrantRulesToCenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeGrantRulesToCenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeGrantRulesToCen(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DescribeCenPrivateZoneRoutesOutcome CbnClient::describeCenPrivateZoneRoutes(const DescribeCenPrivateZoneRoutesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -267,42 +303,6 @@ CbnClient::DescribeCenPrivateZoneRoutesOutcomeCallable CbnClient::describeCenPri
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::ModifyCenBandwidthPackageAttributeOutcome CbnClient::modifyCenBandwidthPackageAttribute(const ModifyCenBandwidthPackageAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyCenBandwidthPackageAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyCenBandwidthPackageAttributeOutcome(ModifyCenBandwidthPackageAttributeResult(outcome.result()));
|
||||
else
|
||||
return ModifyCenBandwidthPackageAttributeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::modifyCenBandwidthPackageAttributeAsync(const ModifyCenBandwidthPackageAttributeRequest& request, const ModifyCenBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyCenBandwidthPackageAttribute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::ModifyCenBandwidthPackageAttributeOutcomeCallable CbnClient::modifyCenBandwidthPackageAttributeCallable(const ModifyCenBandwidthPackageAttributeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyCenBandwidthPackageAttributeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyCenBandwidthPackageAttribute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::UntagResourcesOutcome CbnClient::untagResources(const UntagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +339,42 @@ CbnClient::UntagResourcesOutcomeCallable CbnClient::untagResourcesCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::ModifyCenBandwidthPackageAttributeOutcome CbnClient::modifyCenBandwidthPackageAttribute(const ModifyCenBandwidthPackageAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyCenBandwidthPackageAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyCenBandwidthPackageAttributeOutcome(ModifyCenBandwidthPackageAttributeResult(outcome.result()));
|
||||
else
|
||||
return ModifyCenBandwidthPackageAttributeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::modifyCenBandwidthPackageAttributeAsync(const ModifyCenBandwidthPackageAttributeRequest& request, const ModifyCenBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyCenBandwidthPackageAttribute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::ModifyCenBandwidthPackageAttributeOutcomeCallable CbnClient::modifyCenBandwidthPackageAttributeCallable(const ModifyCenBandwidthPackageAttributeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyCenBandwidthPackageAttributeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyCenBandwidthPackageAttribute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DisableCenVbrHealthCheckOutcome CbnClient::disableCenVbrHealthCheck(const DisableCenVbrHealthCheckRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,42 +411,6 @@ CbnClient::DisableCenVbrHealthCheckOutcomeCallable CbnClient::disableCenVbrHealt
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::UnroutePrivateZoneInCenToVpcOutcome CbnClient::unroutePrivateZoneInCenToVpc(const UnroutePrivateZoneInCenToVpcRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UnroutePrivateZoneInCenToVpcOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UnroutePrivateZoneInCenToVpcOutcome(UnroutePrivateZoneInCenToVpcResult(outcome.result()));
|
||||
else
|
||||
return UnroutePrivateZoneInCenToVpcOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::unroutePrivateZoneInCenToVpcAsync(const UnroutePrivateZoneInCenToVpcRequest& request, const UnroutePrivateZoneInCenToVpcAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, unroutePrivateZoneInCenToVpc(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::UnroutePrivateZoneInCenToVpcOutcomeCallable CbnClient::unroutePrivateZoneInCenToVpcCallable(const UnroutePrivateZoneInCenToVpcRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UnroutePrivateZoneInCenToVpcOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->unroutePrivateZoneInCenToVpc(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::CreateCenOutcome CbnClient::createCen(const CreateCenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -447,6 +447,42 @@ CbnClient::CreateCenOutcomeCallable CbnClient::createCenCallable(const CreateCen
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::UnroutePrivateZoneInCenToVpcOutcome CbnClient::unroutePrivateZoneInCenToVpc(const UnroutePrivateZoneInCenToVpcRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UnroutePrivateZoneInCenToVpcOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UnroutePrivateZoneInCenToVpcOutcome(UnroutePrivateZoneInCenToVpcResult(outcome.result()));
|
||||
else
|
||||
return UnroutePrivateZoneInCenToVpcOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::unroutePrivateZoneInCenToVpcAsync(const UnroutePrivateZoneInCenToVpcRequest& request, const UnroutePrivateZoneInCenToVpcAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, unroutePrivateZoneInCenToVpc(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::UnroutePrivateZoneInCenToVpcOutcomeCallable CbnClient::unroutePrivateZoneInCenToVpcCallable(const UnroutePrivateZoneInCenToVpcRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UnroutePrivateZoneInCenToVpcOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->unroutePrivateZoneInCenToVpc(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DescribeCenVbrHealthCheckOutcome CbnClient::describeCenVbrHealthCheck(const DescribeCenVbrHealthCheckRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,6 +555,42 @@ CbnClient::RoutePrivateZoneInCenToVpcOutcomeCallable CbnClient::routePrivateZone
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteFlowlogOutcome CbnClient::deleteFlowlog(const DeleteFlowlogRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteFlowlogOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteFlowlogOutcome(DeleteFlowlogResult(outcome.result()));
|
||||
else
|
||||
return DeleteFlowlogOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::deleteFlowlogAsync(const DeleteFlowlogRequest& request, const DeleteFlowlogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteFlowlog(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DeleteFlowlogOutcomeCallable CbnClient::deleteFlowlogCallable(const DeleteFlowlogRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteFlowlogOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteFlowlog(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DescribeCenGeographicSpansOutcome CbnClient::describeCenGeographicSpans(const DescribeCenGeographicSpansRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,42 +627,6 @@ CbnClient::DescribeCenGeographicSpansOutcomeCallable CbnClient::describeCenGeogr
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DescribeCensOutcome CbnClient::describeCens(const DescribeCensRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCensOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCensOutcome(DescribeCensResult(outcome.result()));
|
||||
else
|
||||
return DescribeCensOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::describeCensAsync(const DescribeCensRequest& request, const DescribeCensAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCens(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DescribeCensOutcomeCallable CbnClient::describeCensCallable(const DescribeCensRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCensOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCens(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::EnableCenVbrHealthCheckOutcome CbnClient::enableCenVbrHealthCheck(const EnableCenVbrHealthCheckRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -627,6 +663,42 @@ CbnClient::EnableCenVbrHealthCheckOutcomeCallable CbnClient::enableCenVbrHealthC
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DescribeCensOutcome CbnClient::describeCens(const DescribeCensRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCensOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCensOutcome(DescribeCensResult(outcome.result()));
|
||||
else
|
||||
return DescribeCensOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::describeCensAsync(const DescribeCensRequest& request, const DescribeCensAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCens(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DescribeCensOutcomeCallable CbnClient::describeCensCallable(const DescribeCensRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCensOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCens(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteCenOutcome CbnClient::deleteCen(const DeleteCenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -735,6 +807,78 @@ CbnClient::UnassociateCenBandwidthPackageOutcomeCallable CbnClient::unassociateC
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DescribeFlowlogsOutcome CbnClient::describeFlowlogs(const DescribeFlowlogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeFlowlogsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeFlowlogsOutcome(DescribeFlowlogsResult(outcome.result()));
|
||||
else
|
||||
return DescribeFlowlogsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::describeFlowlogsAsync(const DescribeFlowlogsRequest& request, const DescribeFlowlogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeFlowlogs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DescribeFlowlogsOutcomeCallable CbnClient::describeFlowlogsCallable(const DescribeFlowlogsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeFlowlogsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeFlowlogs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeactiveFlowLogOutcome CbnClient::deactiveFlowLog(const DeactiveFlowLogRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeactiveFlowLogOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeactiveFlowLogOutcome(DeactiveFlowLogResult(outcome.result()));
|
||||
else
|
||||
return DeactiveFlowLogOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::deactiveFlowLogAsync(const DeactiveFlowLogRequest& request, const DeactiveFlowLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deactiveFlowLog(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DeactiveFlowLogOutcomeCallable CbnClient::deactiveFlowLogCallable(const DeactiveFlowLogRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeactiveFlowLogOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deactiveFlowLog(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DescribeChildInstanceRegionsOutcome CbnClient::describeChildInstanceRegions(const DescribeChildInstanceRegionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -771,6 +915,78 @@ CbnClient::DescribeChildInstanceRegionsOutcomeCallable CbnClient::describeChildI
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::ActiveFlowLogOutcome CbnClient::activeFlowLog(const ActiveFlowLogRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ActiveFlowLogOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ActiveFlowLogOutcome(ActiveFlowLogResult(outcome.result()));
|
||||
else
|
||||
return ActiveFlowLogOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::activeFlowLogAsync(const ActiveFlowLogRequest& request, const ActiveFlowLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, activeFlowLog(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::ActiveFlowLogOutcomeCallable CbnClient::activeFlowLogCallable(const ActiveFlowLogRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ActiveFlowLogOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->activeFlowLog(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::ModifyCenRouteMapOutcome CbnClient::modifyCenRouteMap(const ModifyCenRouteMapRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyCenRouteMapOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyCenRouteMapOutcome(ModifyCenRouteMapResult(outcome.result()));
|
||||
else
|
||||
return ModifyCenRouteMapOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::modifyCenRouteMapAsync(const ModifyCenRouteMapRequest& request, const ModifyCenRouteMapAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyCenRouteMap(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::ModifyCenRouteMapOutcomeCallable CbnClient::modifyCenRouteMapCallable(const ModifyCenRouteMapRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyCenRouteMapOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyCenRouteMap(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DetachCenChildInstanceOutcome CbnClient::detachCenChildInstance(const DetachCenChildInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -843,6 +1059,42 @@ CbnClient::AttachCenChildInstanceOutcomeCallable CbnClient::attachCenChildInstan
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::CreateCenRouteMapOutcome CbnClient::createCenRouteMap(const CreateCenRouteMapRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateCenRouteMapOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateCenRouteMapOutcome(CreateCenRouteMapResult(outcome.result()));
|
||||
else
|
||||
return CreateCenRouteMapOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::createCenRouteMapAsync(const CreateCenRouteMapRequest& request, const CreateCenRouteMapAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createCenRouteMap(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::CreateCenRouteMapOutcomeCallable CbnClient::createCenRouteMapCallable(const CreateCenRouteMapRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateCenRouteMapOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createCenRouteMap(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::SetCenInterRegionBandwidthLimitOutcome CbnClient::setCenInterRegionBandwidthLimit(const SetCenInterRegionBandwidthLimitRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1167,6 +1419,42 @@ CbnClient::DescribeCenAttachedChildInstancesOutcomeCallable CbnClient::describeC
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteCenRouteMapOutcome CbnClient::deleteCenRouteMap(const DeleteCenRouteMapRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteCenRouteMapOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteCenRouteMapOutcome(DeleteCenRouteMapResult(outcome.result()));
|
||||
else
|
||||
return DeleteCenRouteMapOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::deleteCenRouteMapAsync(const DeleteCenRouteMapRequest& request, const DeleteCenRouteMapAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteCenRouteMap(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DeleteCenRouteMapOutcomeCallable CbnClient::deleteCenRouteMapCallable(const DeleteCenRouteMapRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteCenRouteMapOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteCenRouteMap(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DescribeCenAttachedChildInstanceAttributeOutcome CbnClient::describeCenAttachedChildInstanceAttribute(const DescribeCenAttachedChildInstanceAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1239,6 +1527,78 @@ CbnClient::ModifyCenBandwidthPackageSpecOutcomeCallable CbnClient::modifyCenBand
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DescribeCenRouteMapsOutcome CbnClient::describeCenRouteMaps(const DescribeCenRouteMapsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCenRouteMapsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCenRouteMapsOutcome(DescribeCenRouteMapsResult(outcome.result()));
|
||||
else
|
||||
return DescribeCenRouteMapsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::describeCenRouteMapsAsync(const DescribeCenRouteMapsRequest& request, const DescribeCenRouteMapsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCenRouteMaps(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DescribeCenRouteMapsOutcomeCallable CbnClient::describeCenRouteMapsCallable(const DescribeCenRouteMapsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCenRouteMapsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCenRouteMaps(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DescribeCenChildInstanceRouteEntriesOutcome CbnClient::describeCenChildInstanceRouteEntries(const DescribeCenChildInstanceRouteEntriesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCenChildInstanceRouteEntriesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCenChildInstanceRouteEntriesOutcome(DescribeCenChildInstanceRouteEntriesResult(outcome.result()));
|
||||
else
|
||||
return DescribeCenChildInstanceRouteEntriesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::describeCenChildInstanceRouteEntriesAsync(const DescribeCenChildInstanceRouteEntriesRequest& request, const DescribeCenChildInstanceRouteEntriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCenChildInstanceRouteEntries(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DescribeCenChildInstanceRouteEntriesOutcomeCallable CbnClient::describeCenChildInstanceRouteEntriesCallable(const DescribeCenChildInstanceRouteEntriesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCenChildInstanceRouteEntriesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCenChildInstanceRouteEntries(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DescribeCenBandwidthPackagesOutcome CbnClient::describeCenBandwidthPackages(const DescribeCenBandwidthPackagesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1275,6 +1635,42 @@ CbnClient::DescribeCenBandwidthPackagesOutcomeCallable CbnClient::describeCenBan
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::CreateFlowlogOutcome CbnClient::createFlowlog(const CreateFlowlogRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateFlowlogOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateFlowlogOutcome(CreateFlowlogResult(outcome.result()));
|
||||
else
|
||||
return CreateFlowlogOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::createFlowlogAsync(const CreateFlowlogRequest& request, const CreateFlowlogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createFlowlog(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::CreateFlowlogOutcomeCallable CbnClient::createFlowlogCallable(const CreateFlowlogRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateFlowlogOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createFlowlog(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DescribeCenGeographicSpanRemainingBandwidthOutcome CbnClient::describeCenGeographicSpanRemainingBandwidth(const DescribeCenGeographicSpanRemainingBandwidthRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
115
cbn/src/model/ActiveFlowLogRequest.cc
Normal file
115
cbn/src/model/ActiveFlowLogRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/ActiveFlowLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::ActiveFlowLogRequest;
|
||||
|
||||
ActiveFlowLogRequest::ActiveFlowLogRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "ActiveFlowLog")
|
||||
{}
|
||||
|
||||
ActiveFlowLogRequest::~ActiveFlowLogRequest()
|
||||
{}
|
||||
|
||||
long ActiveFlowLogRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ActiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ActiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ActiveFlowLogRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ActiveFlowLogRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void ActiveFlowLogRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ActiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ActiveFlowLogRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ActiveFlowLogRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogRequest::getFlowLogId()const
|
||||
{
|
||||
return flowLogId_;
|
||||
}
|
||||
|
||||
void ActiveFlowLogRequest::setFlowLogId(const std::string& flowLogId)
|
||||
{
|
||||
flowLogId_ = flowLogId;
|
||||
setCoreParameter("FlowLogId", flowLogId);
|
||||
}
|
||||
|
||||
55
cbn/src/model/ActiveFlowLogResult.cc
Normal file
55
cbn/src/model/ActiveFlowLogResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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/ActiveFlowLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
ActiveFlowLogResult::ActiveFlowLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ActiveFlowLogResult::ActiveFlowLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ActiveFlowLogResult::~ActiveFlowLogResult()
|
||||
{}
|
||||
|
||||
void ActiveFlowLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ActiveFlowLogResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long AssociateCenBandwidthPackageRequest::getResourceOwnerId()const
|
||||
void AssociateCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AssociateCenBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string AssociateCenBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
void AssociateCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AssociateCenBandwidthPackageRequest::getCenId()const
|
||||
@@ -55,7 +55,7 @@ std::string AssociateCenBandwidthPackageRequest::getCenId()const
|
||||
void AssociateCenBandwidthPackageRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string AssociateCenBandwidthPackageRequest::getCenBandwidthPackageId()const
|
||||
@@ -66,7 +66,7 @@ std::string AssociateCenBandwidthPackageRequest::getCenBandwidthPackageId()const
|
||||
void AssociateCenBandwidthPackageRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId)
|
||||
{
|
||||
cenBandwidthPackageId_ = cenBandwidthPackageId;
|
||||
setParameter("CenBandwidthPackageId", cenBandwidthPackageId);
|
||||
setCoreParameter("CenBandwidthPackageId", cenBandwidthPackageId);
|
||||
}
|
||||
|
||||
std::string AssociateCenBandwidthPackageRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string AssociateCenBandwidthPackageRequest::getOwnerAccount()const
|
||||
void AssociateCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long AssociateCenBandwidthPackageRequest::getOwnerId()const
|
||||
@@ -88,6 +88,6 @@ long AssociateCenBandwidthPackageRequest::getOwnerId()const
|
||||
void AssociateCenBandwidthPackageRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AssociateCenBandwidthPackageResult::~AssociateCenBandwidthPackageResult()
|
||||
|
||||
void AssociateCenBandwidthPackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string AttachCenChildInstanceRequest::getChildInstanceId()const
|
||||
void AttachCenChildInstanceRequest::setChildInstanceId(const std::string& childInstanceId)
|
||||
{
|
||||
childInstanceId_ = childInstanceId;
|
||||
setParameter("ChildInstanceId", childInstanceId);
|
||||
setCoreParameter("ChildInstanceId", childInstanceId);
|
||||
}
|
||||
|
||||
long AttachCenChildInstanceRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long AttachCenChildInstanceRequest::getResourceOwnerId()const
|
||||
void AttachCenChildInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AttachCenChildInstanceRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string AttachCenChildInstanceRequest::getResourceOwnerAccount()const
|
||||
void AttachCenChildInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AttachCenChildInstanceRequest::getCenId()const
|
||||
@@ -66,7 +66,7 @@ std::string AttachCenChildInstanceRequest::getCenId()const
|
||||
void AttachCenChildInstanceRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string AttachCenChildInstanceRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string AttachCenChildInstanceRequest::getOwnerAccount()const
|
||||
void AttachCenChildInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long AttachCenChildInstanceRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long AttachCenChildInstanceRequest::getOwnerId()const
|
||||
void AttachCenChildInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AttachCenChildInstanceRequest::getChildInstanceType()const
|
||||
@@ -99,7 +99,7 @@ std::string AttachCenChildInstanceRequest::getChildInstanceType()const
|
||||
void AttachCenChildInstanceRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
setCoreParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
long AttachCenChildInstanceRequest::getChildInstanceOwnerId()const
|
||||
@@ -110,7 +110,7 @@ long AttachCenChildInstanceRequest::getChildInstanceOwnerId()const
|
||||
void AttachCenChildInstanceRequest::setChildInstanceOwnerId(long childInstanceOwnerId)
|
||||
{
|
||||
childInstanceOwnerId_ = childInstanceOwnerId;
|
||||
setParameter("ChildInstanceOwnerId", std::to_string(childInstanceOwnerId));
|
||||
setCoreParameter("ChildInstanceOwnerId", std::to_string(childInstanceOwnerId));
|
||||
}
|
||||
|
||||
std::string AttachCenChildInstanceRequest::getChildInstanceRegionId()const
|
||||
@@ -121,6 +121,6 @@ std::string AttachCenChildInstanceRequest::getChildInstanceRegionId()const
|
||||
void AttachCenChildInstanceRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
setCoreParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AttachCenChildInstanceResult::~AttachCenChildInstanceResult()
|
||||
|
||||
void AttachCenChildInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateCenBandwidthPackageRequest::getGeographicRegionBId()const
|
||||
void CreateCenBandwidthPackageRequest::setGeographicRegionBId(const std::string& geographicRegionBId)
|
||||
{
|
||||
geographicRegionBId_ = geographicRegionBId;
|
||||
setParameter("GeographicRegionBId", geographicRegionBId);
|
||||
setCoreParameter("GeographicRegionBId", geographicRegionBId);
|
||||
}
|
||||
|
||||
long CreateCenBandwidthPackageRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long CreateCenBandwidthPackageRequest::getResourceOwnerId()const
|
||||
void CreateCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CreateCenBandwidthPackageRequest::getPeriod()const
|
||||
@@ -55,7 +55,7 @@ int CreateCenBandwidthPackageRequest::getPeriod()const
|
||||
void CreateCenBandwidthPackageRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
setCoreParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getGeographicRegionAId()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateCenBandwidthPackageRequest::getGeographicRegionAId()const
|
||||
void CreateCenBandwidthPackageRequest::setGeographicRegionAId(const std::string& geographicRegionAId)
|
||||
{
|
||||
geographicRegionAId_ = geographicRegionAId;
|
||||
setParameter("GeographicRegionAId", geographicRegionAId);
|
||||
setCoreParameter("GeographicRegionAId", geographicRegionAId);
|
||||
}
|
||||
|
||||
bool CreateCenBandwidthPackageRequest::getAutoPay()const
|
||||
@@ -77,7 +77,7 @@ bool CreateCenBandwidthPackageRequest::getAutoPay()const
|
||||
void CreateCenBandwidthPackageRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setParameter("AutoPay", std::to_string(autoPay));
|
||||
setCoreParameter("AutoPay", autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateCenBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
void CreateCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getClientToken()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateCenBandwidthPackageRequest::getClientToken()const
|
||||
void CreateCenBandwidthPackageRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int CreateCenBandwidthPackageRequest::getBandwidth()const
|
||||
@@ -110,7 +110,7 @@ int CreateCenBandwidthPackageRequest::getBandwidth()const
|
||||
void CreateCenBandwidthPackageRequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
setCoreParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getOwnerAccount()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateCenBandwidthPackageRequest::getOwnerAccount()const
|
||||
void CreateCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getDescription()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateCenBandwidthPackageRequest::getDescription()const
|
||||
void CreateCenBandwidthPackageRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateCenBandwidthPackageRequest::getOwnerId()const
|
||||
@@ -143,7 +143,7 @@ long CreateCenBandwidthPackageRequest::getOwnerId()const
|
||||
void CreateCenBandwidthPackageRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getBandwidthPackageChargeType()const
|
||||
@@ -154,7 +154,7 @@ std::string CreateCenBandwidthPackageRequest::getBandwidthPackageChargeType()con
|
||||
void CreateCenBandwidthPackageRequest::setBandwidthPackageChargeType(const std::string& bandwidthPackageChargeType)
|
||||
{
|
||||
bandwidthPackageChargeType_ = bandwidthPackageChargeType;
|
||||
setParameter("BandwidthPackageChargeType", bandwidthPackageChargeType);
|
||||
setCoreParameter("BandwidthPackageChargeType", bandwidthPackageChargeType);
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getName()const
|
||||
@@ -165,7 +165,7 @@ std::string CreateCenBandwidthPackageRequest::getName()const
|
||||
void CreateCenBandwidthPackageRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateCenBandwidthPackageRequest::getPricingCycle()const
|
||||
@@ -176,6 +176,6 @@ std::string CreateCenBandwidthPackageRequest::getPricingCycle()const
|
||||
void CreateCenBandwidthPackageRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
{
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter("PricingCycle", pricingCycle);
|
||||
setCoreParameter("PricingCycle", pricingCycle);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateCenBandwidthPackageResult::~CreateCenBandwidthPackageResult()
|
||||
|
||||
void CreateCenBandwidthPackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CenBandwidthPackageId"].isNull())
|
||||
cenBandwidthPackageId_ = value["CenBandwidthPackageId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateCenRequest::getProtectionLevel()const
|
||||
void CreateCenRequest::setProtectionLevel(const std::string& protectionLevel)
|
||||
{
|
||||
protectionLevel_ = protectionLevel;
|
||||
setParameter("ProtectionLevel", protectionLevel);
|
||||
setCoreParameter("ProtectionLevel", protectionLevel);
|
||||
}
|
||||
|
||||
long CreateCenRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long CreateCenRequest::getResourceOwnerId()const
|
||||
void CreateCenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateCenRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateCenRequest::getResourceOwnerAccount()const
|
||||
void CreateCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateCenRequest::getClientToken()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateCenRequest::getClientToken()const
|
||||
void CreateCenRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateCenRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateCenRequest::getOwnerAccount()const
|
||||
void CreateCenRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateCenRequest::getName()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateCenRequest::getName()const
|
||||
void CreateCenRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateCenRequest::getDescription()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateCenRequest::getDescription()const
|
||||
void CreateCenRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateCenRequest::getOwnerId()const
|
||||
@@ -110,6 +110,6 @@ long CreateCenRequest::getOwnerId()const
|
||||
void CreateCenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateCenResult::~CreateCenResult()
|
||||
|
||||
void CreateCenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CenId"].isNull())
|
||||
cenId_ = value["CenId"].asString();
|
||||
|
||||
380
cbn/src/model/CreateCenRouteMapRequest.cc
Normal file
380
cbn/src/model/CreateCenRouteMapRequest.cc
Normal file
@@ -0,0 +1,380 @@
|
||||
/*
|
||||
* 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/CreateCenRouteMapRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::CreateCenRouteMapRequest;
|
||||
|
||||
CreateCenRouteMapRequest::CreateCenRouteMapRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "CreateCenRouteMap")
|
||||
{}
|
||||
|
||||
CreateCenRouteMapRequest::~CreateCenRouteMapRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> CreateCenRouteMapRequest::getRouteTypes()const
|
||||
{
|
||||
return routeTypes_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setRouteTypes(const std::vector<std::string>& routeTypes)
|
||||
{
|
||||
routeTypes_ = routeTypes;
|
||||
for(int i = 0; i!= routeTypes.size(); i++)
|
||||
setCoreParameter("RouteTypes."+ std::to_string(i), routeTypes.at(i));
|
||||
}
|
||||
|
||||
long CreateCenRouteMapRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateCenRouteMapRequest::getCidrMatchMode()const
|
||||
{
|
||||
return cidrMatchMode_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setCidrMatchMode(const std::string& cidrMatchMode)
|
||||
{
|
||||
cidrMatchMode_ = cidrMatchMode;
|
||||
setCoreParameter("CidrMatchMode", cidrMatchMode);
|
||||
}
|
||||
|
||||
std::string CreateCenRouteMapRequest::getCommunityMatchMode()const
|
||||
{
|
||||
return communityMatchMode_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setCommunityMatchMode(const std::string& communityMatchMode)
|
||||
{
|
||||
communityMatchMode_ = communityMatchMode;
|
||||
setCoreParameter("CommunityMatchMode", communityMatchMode);
|
||||
}
|
||||
|
||||
std::string CreateCenRouteMapRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string CreateCenRouteMapRequest::getMapResult()const
|
||||
{
|
||||
return mapResult_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setMapResult(const std::string& mapResult)
|
||||
{
|
||||
mapResult_ = mapResult;
|
||||
setCoreParameter("MapResult", mapResult);
|
||||
}
|
||||
|
||||
int CreateCenRouteMapRequest::getAsPathLength()const
|
||||
{
|
||||
return asPathLength_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setAsPathLength(int asPathLength)
|
||||
{
|
||||
asPathLength_ = asPathLength;
|
||||
setCoreParameter("AsPathLength", std::to_string(asPathLength));
|
||||
}
|
||||
|
||||
std::string CreateCenRouteMapRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
bool CreateCenRouteMapRequest::getSourceInstanceIdsReverseMatch()const
|
||||
{
|
||||
return sourceInstanceIdsReverseMatch_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setSourceInstanceIdsReverseMatch(bool sourceInstanceIdsReverseMatch)
|
||||
{
|
||||
sourceInstanceIdsReverseMatch_ = sourceInstanceIdsReverseMatch;
|
||||
setCoreParameter("SourceInstanceIdsReverseMatch", sourceInstanceIdsReverseMatch ? "true" : "false");
|
||||
}
|
||||
|
||||
int CreateCenRouteMapRequest::getNextPriority()const
|
||||
{
|
||||
return nextPriority_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setNextPriority(int nextPriority)
|
||||
{
|
||||
nextPriority_ = nextPriority;
|
||||
setCoreParameter("NextPriority", std::to_string(nextPriority));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateCenRouteMapRequest::getDestinationCidrBlocks()const
|
||||
{
|
||||
return destinationCidrBlocks_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setDestinationCidrBlocks(const std::vector<std::string>& destinationCidrBlocks)
|
||||
{
|
||||
destinationCidrBlocks_ = destinationCidrBlocks;
|
||||
for(int i = 0; i!= destinationCidrBlocks.size(); i++)
|
||||
setCoreParameter("DestinationCidrBlocks."+ std::to_string(i), destinationCidrBlocks.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateCenRouteMapRequest::getDestinationRouteTableIds()const
|
||||
{
|
||||
return destinationRouteTableIds_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setDestinationRouteTableIds(const std::vector<std::string>& destinationRouteTableIds)
|
||||
{
|
||||
destinationRouteTableIds_ = destinationRouteTableIds;
|
||||
for(int i = 0; i!= destinationRouteTableIds.size(); i++)
|
||||
setCoreParameter("DestinationRouteTableIds."+ std::to_string(i), destinationRouteTableIds.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateCenRouteMapRequest::getSourceInstanceIds()const
|
||||
{
|
||||
return sourceInstanceIds_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setSourceInstanceIds(const std::vector<std::string>& sourceInstanceIds)
|
||||
{
|
||||
sourceInstanceIds_ = sourceInstanceIds;
|
||||
for(int i = 0; i!= sourceInstanceIds.size(); i++)
|
||||
setCoreParameter("SourceInstanceIds."+ std::to_string(i), sourceInstanceIds.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateCenRouteMapRequest::getSourceRegionIds()const
|
||||
{
|
||||
return sourceRegionIds_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setSourceRegionIds(const std::vector<std::string>& sourceRegionIds)
|
||||
{
|
||||
sourceRegionIds_ = sourceRegionIds;
|
||||
for(int i = 0; i!= sourceRegionIds.size(); i++)
|
||||
setCoreParameter("SourceRegionIds."+ std::to_string(i), sourceRegionIds.at(i));
|
||||
}
|
||||
|
||||
std::string CreateCenRouteMapRequest::getTransmitDirection()const
|
||||
{
|
||||
return transmitDirection_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setTransmitDirection(const std::string& transmitDirection)
|
||||
{
|
||||
transmitDirection_ = transmitDirection;
|
||||
setCoreParameter("TransmitDirection", transmitDirection);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateCenRouteMapRequest::getDestinationInstanceIds()const
|
||||
{
|
||||
return destinationInstanceIds_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setDestinationInstanceIds(const std::vector<std::string>& destinationInstanceIds)
|
||||
{
|
||||
destinationInstanceIds_ = destinationInstanceIds;
|
||||
for(int i = 0; i!= destinationInstanceIds.size(); i++)
|
||||
setCoreParameter("DestinationInstanceIds."+ std::to_string(i), destinationInstanceIds.at(i));
|
||||
}
|
||||
|
||||
std::vector<long> CreateCenRouteMapRequest::getMatchAsns()const
|
||||
{
|
||||
return matchAsns_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setMatchAsns(const std::vector<long>& matchAsns)
|
||||
{
|
||||
matchAsns_ = matchAsns;
|
||||
for(int i = 0; i!= matchAsns.size(); i++)
|
||||
setCoreParameter("MatchAsns."+ std::to_string(i), std::to_string(matchAsns.at(i)));
|
||||
}
|
||||
|
||||
std::string CreateCenRouteMapRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateCenRouteMapRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int CreateCenRouteMapRequest::getPreference()const
|
||||
{
|
||||
return preference_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setPreference(int preference)
|
||||
{
|
||||
preference_ = preference;
|
||||
setCoreParameter("Preference", std::to_string(preference));
|
||||
}
|
||||
|
||||
bool CreateCenRouteMapRequest::getDestinationInstanceIdsReverseMatch()const
|
||||
{
|
||||
return destinationInstanceIdsReverseMatch_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setDestinationInstanceIdsReverseMatch(bool destinationInstanceIdsReverseMatch)
|
||||
{
|
||||
destinationInstanceIdsReverseMatch_ = destinationInstanceIdsReverseMatch;
|
||||
setCoreParameter("DestinationInstanceIdsReverseMatch", destinationInstanceIdsReverseMatch ? "true" : "false");
|
||||
}
|
||||
|
||||
long CreateCenRouteMapRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int CreateCenRouteMapRequest::getPriority()const
|
||||
{
|
||||
return priority_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setPriority(int priority)
|
||||
{
|
||||
priority_ = priority;
|
||||
setCoreParameter("Priority", std::to_string(priority));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateCenRouteMapRequest::getDestinationChildInstanceTypes()const
|
||||
{
|
||||
return destinationChildInstanceTypes_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setDestinationChildInstanceTypes(const std::vector<std::string>& destinationChildInstanceTypes)
|
||||
{
|
||||
destinationChildInstanceTypes_ = destinationChildInstanceTypes;
|
||||
for(int i = 0; i!= destinationChildInstanceTypes.size(); i++)
|
||||
setCoreParameter("DestinationChildInstanceTypes."+ std::to_string(i), destinationChildInstanceTypes.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateCenRouteMapRequest::getSourceRouteTableIds()const
|
||||
{
|
||||
return sourceRouteTableIds_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setSourceRouteTableIds(const std::vector<std::string>& sourceRouteTableIds)
|
||||
{
|
||||
sourceRouteTableIds_ = sourceRouteTableIds;
|
||||
for(int i = 0; i!= sourceRouteTableIds.size(); i++)
|
||||
setCoreParameter("SourceRouteTableIds."+ std::to_string(i), sourceRouteTableIds.at(i));
|
||||
}
|
||||
|
||||
std::string CreateCenRouteMapRequest::getAsPathMatchMode()const
|
||||
{
|
||||
return asPathMatchMode_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setAsPathMatchMode(const std::string& asPathMatchMode)
|
||||
{
|
||||
asPathMatchMode_ = asPathMatchMode;
|
||||
setCoreParameter("AsPathMatchMode", asPathMatchMode);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateCenRouteMapRequest::getSourceChildInstanceTypes()const
|
||||
{
|
||||
return sourceChildInstanceTypes_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setSourceChildInstanceTypes(const std::vector<std::string>& sourceChildInstanceTypes)
|
||||
{
|
||||
sourceChildInstanceTypes_ = sourceChildInstanceTypes;
|
||||
for(int i = 0; i!= sourceChildInstanceTypes.size(); i++)
|
||||
setCoreParameter("SourceChildInstanceTypes."+ std::to_string(i), sourceChildInstanceTypes.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateCenRouteMapRequest::getMatchCommunitySet()const
|
||||
{
|
||||
return matchCommunitySet_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setMatchCommunitySet(const std::vector<std::string>& matchCommunitySet)
|
||||
{
|
||||
matchCommunitySet_ = matchCommunitySet;
|
||||
for(int i = 0; i!= matchCommunitySet.size(); i++)
|
||||
setCoreParameter("MatchCommunitySet."+ std::to_string(i), matchCommunitySet.at(i));
|
||||
}
|
||||
|
||||
std::string CreateCenRouteMapRequest::getCommunityOperateMode()const
|
||||
{
|
||||
return communityOperateMode_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setCommunityOperateMode(const std::string& communityOperateMode)
|
||||
{
|
||||
communityOperateMode_ = communityOperateMode;
|
||||
setCoreParameter("CommunityOperateMode", communityOperateMode);
|
||||
}
|
||||
|
||||
std::string CreateCenRouteMapRequest::getCenRegionId()const
|
||||
{
|
||||
return cenRegionId_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setCenRegionId(const std::string& cenRegionId)
|
||||
{
|
||||
cenRegionId_ = cenRegionId;
|
||||
setCoreParameter("CenRegionId", cenRegionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateCenRouteMapRequest::getOperateCommunitySet()const
|
||||
{
|
||||
return operateCommunitySet_;
|
||||
}
|
||||
|
||||
void CreateCenRouteMapRequest::setOperateCommunitySet(const std::vector<std::string>& operateCommunitySet)
|
||||
{
|
||||
operateCommunitySet_ = operateCommunitySet;
|
||||
for(int i = 0; i!= operateCommunitySet.size(); i++)
|
||||
setCoreParameter("OperateCommunitySet."+ std::to_string(i), operateCommunitySet.at(i));
|
||||
}
|
||||
|
||||
55
cbn/src/model/CreateCenRouteMapResult.cc
Normal file
55
cbn/src/model/CreateCenRouteMapResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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/CreateCenRouteMapResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
CreateCenRouteMapResult::CreateCenRouteMapResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCenRouteMapResult::CreateCenRouteMapResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCenRouteMapResult::~CreateCenRouteMapResult()
|
||||
{}
|
||||
|
||||
void CreateCenRouteMapResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RouteMapId"].isNull())
|
||||
routeMapId_ = value["RouteMapId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCenRouteMapResult::getRouteMapId()const
|
||||
{
|
||||
return routeMapId_;
|
||||
}
|
||||
|
||||
148
cbn/src/model/CreateFlowlogRequest.cc
Normal file
148
cbn/src/model/CreateFlowlogRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/CreateFlowlogRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::CreateFlowlogRequest;
|
||||
|
||||
CreateFlowlogRequest::CreateFlowlogRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "CreateFlowlog")
|
||||
{}
|
||||
|
||||
CreateFlowlogRequest::~CreateFlowlogRequest()
|
||||
{}
|
||||
|
||||
long CreateFlowlogRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateFlowlogRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateFlowlogRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void CreateFlowlogRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string CreateFlowlogRequest::getLogStoreName()const
|
||||
{
|
||||
return logStoreName_;
|
||||
}
|
||||
|
||||
void CreateFlowlogRequest::setLogStoreName(const std::string& logStoreName)
|
||||
{
|
||||
logStoreName_ = logStoreName;
|
||||
setCoreParameter("LogStoreName", logStoreName);
|
||||
}
|
||||
|
||||
std::string CreateFlowlogRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateFlowlogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateFlowlogRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateFlowlogRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateFlowlogRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateFlowlogRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateFlowlogRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void CreateFlowlogRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string CreateFlowlogRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateFlowlogRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateFlowlogRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateFlowlogRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateFlowlogRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateFlowlogRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateFlowlogRequest::getFlowLogName()const
|
||||
{
|
||||
return flowLogName_;
|
||||
}
|
||||
|
||||
void CreateFlowlogRequest::setFlowLogName(const std::string& flowLogName)
|
||||
{
|
||||
flowLogName_ = flowLogName;
|
||||
setCoreParameter("FlowLogName", flowLogName);
|
||||
}
|
||||
|
||||
62
cbn/src/model/CreateFlowlogResult.cc
Normal file
62
cbn/src/model/CreateFlowlogResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/CreateFlowlogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
CreateFlowlogResult::CreateFlowlogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFlowlogResult::CreateFlowlogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFlowlogResult::~CreateFlowlogResult()
|
||||
{}
|
||||
|
||||
void CreateFlowlogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["FlowLogId"].isNull())
|
||||
flowLogId_ = value["FlowLogId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateFlowlogResult::getFlowLogId()const
|
||||
{
|
||||
return flowLogId_;
|
||||
}
|
||||
|
||||
std::string CreateFlowlogResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
115
cbn/src/model/DeactiveFlowLogRequest.cc
Normal file
115
cbn/src/model/DeactiveFlowLogRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/DeactiveFlowLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DeactiveFlowLogRequest;
|
||||
|
||||
DeactiveFlowLogRequest::DeactiveFlowLogRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DeactiveFlowLog")
|
||||
{}
|
||||
|
||||
DeactiveFlowLogRequest::~DeactiveFlowLogRequest()
|
||||
{}
|
||||
|
||||
long DeactiveFlowLogRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeactiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeactiveFlowLogRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeactiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeactiveFlowLogRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeactiveFlowLogRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DeactiveFlowLogRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeactiveFlowLogRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeactiveFlowLogRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DeactiveFlowLogRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DeactiveFlowLogRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeactiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DeactiveFlowLogRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeactiveFlowLogRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeactiveFlowLogRequest::getFlowLogId()const
|
||||
{
|
||||
return flowLogId_;
|
||||
}
|
||||
|
||||
void DeactiveFlowLogRequest::setFlowLogId(const std::string& flowLogId)
|
||||
{
|
||||
flowLogId_ = flowLogId;
|
||||
setCoreParameter("FlowLogId", flowLogId);
|
||||
}
|
||||
|
||||
55
cbn/src/model/DeactiveFlowLogResult.cc
Normal file
55
cbn/src/model/DeactiveFlowLogResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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/DeactiveFlowLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DeactiveFlowLogResult::DeactiveFlowLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeactiveFlowLogResult::DeactiveFlowLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeactiveFlowLogResult::~DeactiveFlowLogResult()
|
||||
{}
|
||||
|
||||
void DeactiveFlowLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeactiveFlowLogResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long DeleteCenBandwidthPackageRequest::getResourceOwnerId()const
|
||||
void DeleteCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteCenBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string DeleteCenBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
void DeleteCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteCenBandwidthPackageRequest::getCenBandwidthPackageId()const
|
||||
@@ -55,7 +55,7 @@ std::string DeleteCenBandwidthPackageRequest::getCenBandwidthPackageId()const
|
||||
void DeleteCenBandwidthPackageRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId)
|
||||
{
|
||||
cenBandwidthPackageId_ = cenBandwidthPackageId;
|
||||
setParameter("CenBandwidthPackageId", cenBandwidthPackageId);
|
||||
setCoreParameter("CenBandwidthPackageId", cenBandwidthPackageId);
|
||||
}
|
||||
|
||||
std::string DeleteCenBandwidthPackageRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string DeleteCenBandwidthPackageRequest::getOwnerAccount()const
|
||||
void DeleteCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteCenBandwidthPackageRequest::getOwnerId()const
|
||||
@@ -77,6 +77,6 @@ long DeleteCenBandwidthPackageRequest::getOwnerId()const
|
||||
void DeleteCenBandwidthPackageRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteCenBandwidthPackageResult::~DeleteCenBandwidthPackageResult()
|
||||
|
||||
void DeleteCenBandwidthPackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long DeleteCenRequest::getResourceOwnerId()const
|
||||
void DeleteCenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteCenRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string DeleteCenRequest::getResourceOwnerAccount()const
|
||||
void DeleteCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteCenRequest::getCenId()const
|
||||
@@ -55,7 +55,7 @@ std::string DeleteCenRequest::getCenId()const
|
||||
void DeleteCenRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DeleteCenRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string DeleteCenRequest::getOwnerAccount()const
|
||||
void DeleteCenRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteCenRequest::getOwnerId()const
|
||||
@@ -77,6 +77,6 @@ long DeleteCenRequest::getOwnerId()const
|
||||
void DeleteCenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteCenResult::~DeleteCenResult()
|
||||
|
||||
void DeleteCenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
104
cbn/src/model/DeleteCenRouteMapRequest.cc
Normal file
104
cbn/src/model/DeleteCenRouteMapRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/DeleteCenRouteMapRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DeleteCenRouteMapRequest;
|
||||
|
||||
DeleteCenRouteMapRequest::DeleteCenRouteMapRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DeleteCenRouteMap")
|
||||
{}
|
||||
|
||||
DeleteCenRouteMapRequest::~DeleteCenRouteMapRequest()
|
||||
{}
|
||||
|
||||
long DeleteCenRouteMapRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteCenRouteMapRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteCenRouteMapRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteCenRouteMapRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteCenRouteMapRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DeleteCenRouteMapRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DeleteCenRouteMapRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteCenRouteMapRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteCenRouteMapRequest::getCenRegionId()const
|
||||
{
|
||||
return cenRegionId_;
|
||||
}
|
||||
|
||||
void DeleteCenRouteMapRequest::setCenRegionId(const std::string& cenRegionId)
|
||||
{
|
||||
cenRegionId_ = cenRegionId;
|
||||
setCoreParameter("CenRegionId", cenRegionId);
|
||||
}
|
||||
|
||||
std::string DeleteCenRouteMapRequest::getRouteMapId()const
|
||||
{
|
||||
return routeMapId_;
|
||||
}
|
||||
|
||||
void DeleteCenRouteMapRequest::setRouteMapId(const std::string& routeMapId)
|
||||
{
|
||||
routeMapId_ = routeMapId;
|
||||
setCoreParameter("RouteMapId", routeMapId);
|
||||
}
|
||||
|
||||
long DeleteCenRouteMapRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteCenRouteMapRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
48
cbn/src/model/DeleteCenRouteMapResult.cc
Normal file
48
cbn/src/model/DeleteCenRouteMapResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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/DeleteCenRouteMapResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DeleteCenRouteMapResult::DeleteCenRouteMapResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteCenRouteMapResult::DeleteCenRouteMapResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteCenRouteMapResult::~DeleteCenRouteMapResult()
|
||||
{}
|
||||
|
||||
void DeleteCenRouteMapResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
115
cbn/src/model/DeleteFlowlogRequest.cc
Normal file
115
cbn/src/model/DeleteFlowlogRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/DeleteFlowlogRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DeleteFlowlogRequest;
|
||||
|
||||
DeleteFlowlogRequest::DeleteFlowlogRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DeleteFlowlog")
|
||||
{}
|
||||
|
||||
DeleteFlowlogRequest::~DeleteFlowlogRequest()
|
||||
{}
|
||||
|
||||
long DeleteFlowlogRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteFlowlogRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteFlowlogRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteFlowlogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteFlowlogRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteFlowlogRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteFlowlogRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteFlowlogRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteFlowlogRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DeleteFlowlogRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DeleteFlowlogRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteFlowlogRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteFlowlogRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteFlowlogRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteFlowlogRequest::getFlowLogId()const
|
||||
{
|
||||
return flowLogId_;
|
||||
}
|
||||
|
||||
void DeleteFlowlogRequest::setFlowLogId(const std::string& flowLogId)
|
||||
{
|
||||
flowLogId_ = flowLogId;
|
||||
setCoreParameter("FlowLogId", flowLogId);
|
||||
}
|
||||
|
||||
55
cbn/src/model/DeleteFlowlogResult.cc
Normal file
55
cbn/src/model/DeleteFlowlogResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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/DeleteFlowlogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DeleteFlowlogResult::DeleteFlowlogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteFlowlogResult::DeleteFlowlogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteFlowlogResult::~DeleteFlowlogResult()
|
||||
{}
|
||||
|
||||
void DeleteFlowlogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteFlowlogResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long DeleteRouteServiceInCenRequest::getResourceOwnerId()const
|
||||
void DeleteRouteServiceInCenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteRouteServiceInCenRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string DeleteRouteServiceInCenRequest::getResourceOwnerAccount()const
|
||||
void DeleteRouteServiceInCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteRouteServiceInCenRequest::getCenId()const
|
||||
@@ -55,7 +55,7 @@ std::string DeleteRouteServiceInCenRequest::getCenId()const
|
||||
void DeleteRouteServiceInCenRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DeleteRouteServiceInCenRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string DeleteRouteServiceInCenRequest::getOwnerAccount()const
|
||||
void DeleteRouteServiceInCenRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteRouteServiceInCenRequest::getHost()const
|
||||
@@ -77,7 +77,7 @@ std::string DeleteRouteServiceInCenRequest::getHost()const
|
||||
void DeleteRouteServiceInCenRequest::setHost(const std::string& host)
|
||||
{
|
||||
host_ = host;
|
||||
setParameter("Host", host);
|
||||
setCoreParameter("Host", host);
|
||||
}
|
||||
|
||||
std::string DeleteRouteServiceInCenRequest::getHostRegionId()const
|
||||
@@ -88,7 +88,7 @@ std::string DeleteRouteServiceInCenRequest::getHostRegionId()const
|
||||
void DeleteRouteServiceInCenRequest::setHostRegionId(const std::string& hostRegionId)
|
||||
{
|
||||
hostRegionId_ = hostRegionId;
|
||||
setParameter("HostRegionId", hostRegionId);
|
||||
setCoreParameter("HostRegionId", hostRegionId);
|
||||
}
|
||||
|
||||
std::string DeleteRouteServiceInCenRequest::getAccessRegionId()const
|
||||
@@ -99,7 +99,7 @@ std::string DeleteRouteServiceInCenRequest::getAccessRegionId()const
|
||||
void DeleteRouteServiceInCenRequest::setAccessRegionId(const std::string& accessRegionId)
|
||||
{
|
||||
accessRegionId_ = accessRegionId;
|
||||
setParameter("AccessRegionId", accessRegionId);
|
||||
setCoreParameter("AccessRegionId", accessRegionId);
|
||||
}
|
||||
|
||||
long DeleteRouteServiceInCenRequest::getOwnerId()const
|
||||
@@ -110,6 +110,6 @@ long DeleteRouteServiceInCenRequest::getOwnerId()const
|
||||
void DeleteRouteServiceInCenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteRouteServiceInCenResult::~DeleteRouteServiceInCenResult()
|
||||
|
||||
void DeleteRouteServiceInCenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceId
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setChildInstanceId(const std::string& childInstanceId)
|
||||
{
|
||||
childInstanceId_ = childInstanceId;
|
||||
setParameter("ChildInstanceId", childInstanceId);
|
||||
setCoreParameter("ChildInstanceId", childInstanceId);
|
||||
}
|
||||
|
||||
long DescribeCenAttachedChildInstanceAttributeRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long DescribeCenAttachedChildInstanceAttributeRequest::getResourceOwnerId()const
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeCenAttachedChildInstanceAttributeRequest::getResourceOwnerAc
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeRequest::getCenId()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeCenAttachedChildInstanceAttributeRequest::getCenId()const
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeCenAttachedChildInstanceAttributeRequest::getOwnerAccount()c
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeCenAttachedChildInstanceAttributeRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long DescribeCenAttachedChildInstanceAttributeRequest::getOwnerId()const
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceType()const
|
||||
@@ -99,7 +99,7 @@ std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceTy
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
setCoreParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceRegionId()const
|
||||
@@ -110,6 +110,6 @@ std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceRe
|
||||
void DescribeCenAttachedChildInstanceAttributeRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
setCoreParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeCenAttachedChildInstanceAttributeResult::~DescribeCenAttachedChildInstan
|
||||
|
||||
void DescribeCenAttachedChildInstanceAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CenId"].isNull())
|
||||
cenId_ = value["CenId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long DescribeCenAttachedChildInstancesRequest::getResourceOwnerId()const
|
||||
void DescribeCenAttachedChildInstancesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstancesRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeCenAttachedChildInstancesRequest::getResourceOwnerAccount()c
|
||||
void DescribeCenAttachedChildInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstancesRequest::getCenId()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeCenAttachedChildInstancesRequest::getCenId()const
|
||||
void DescribeCenAttachedChildInstancesRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstancesRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeCenAttachedChildInstancesRequest::getOwnerAccount()const
|
||||
void DescribeCenAttachedChildInstancesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeCenAttachedChildInstancesRequest::getPageSize()const
|
||||
@@ -77,7 +77,7 @@ int DescribeCenAttachedChildInstancesRequest::getPageSize()const
|
||||
void DescribeCenAttachedChildInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCenAttachedChildInstancesRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long DescribeCenAttachedChildInstancesRequest::getOwnerId()const
|
||||
void DescribeCenAttachedChildInstancesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstancesRequest::getChildInstanceType()const
|
||||
@@ -99,7 +99,7 @@ std::string DescribeCenAttachedChildInstancesRequest::getChildInstanceType()cons
|
||||
void DescribeCenAttachedChildInstancesRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
setCoreParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
int DescribeCenAttachedChildInstancesRequest::getPageNumber()const
|
||||
@@ -110,7 +110,7 @@ int DescribeCenAttachedChildInstancesRequest::getPageNumber()const
|
||||
void DescribeCenAttachedChildInstancesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeCenAttachedChildInstancesRequest::getChildInstanceRegionId()const
|
||||
@@ -121,6 +121,6 @@ std::string DescribeCenAttachedChildInstancesRequest::getChildInstanceRegionId()
|
||||
void DescribeCenAttachedChildInstancesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
setCoreParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeCenAttachedChildInstancesResult::~DescribeCenAttachedChildInstancesResul
|
||||
|
||||
void DescribeCenAttachedChildInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allChildInstances = value["ChildInstances"]["ChildInstance"];
|
||||
for (auto value : allChildInstances)
|
||||
|
||||
@@ -37,8 +37,8 @@ void DescribeCenBandwidthPackagesRequest::setFilter(const std::vector<Filter>& f
|
||||
for(int i = 0; i!= filter.size(); i++) {
|
||||
auto obj = filter.at(i);
|
||||
std::string str ="Filter."+ std::to_string(i);
|
||||
for(int i = 0; i!= obj.value.size(); i++)
|
||||
setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i));
|
||||
for(int i = 0; i!= obj.value.size(); i++)
|
||||
setCoreParameter(str + ".Value."+ std::to_string(i), obj.value.at(i));
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
@@ -50,7 +50,7 @@ long DescribeCenBandwidthPackagesRequest::getResourceOwnerId()const
|
||||
|
||||
void DescribeCenBandwidthPackagesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ std::string DescribeCenBandwidthPackagesRequest::getResourceOwnerAccount()const
|
||||
|
||||
void DescribeCenBandwidthPackagesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ std::string DescribeCenBandwidthPackagesRequest::getOwnerAccount()const
|
||||
|
||||
void DescribeCenBandwidthPackagesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ int DescribeCenBandwidthPackagesRequest::getPageSize()const
|
||||
|
||||
void DescribeCenBandwidthPackagesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ long DescribeCenBandwidthPackagesRequest::getOwnerId()const
|
||||
|
||||
void DescribeCenBandwidthPackagesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ int DescribeCenBandwidthPackagesRequest::getPageNumber()const
|
||||
|
||||
void DescribeCenBandwidthPackagesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
@@ -116,6 +116,6 @@ bool DescribeCenBandwidthPackagesRequest::getIsOrKey()const
|
||||
|
||||
void DescribeCenBandwidthPackagesRequest::setIsOrKey(bool isOrKey)
|
||||
{
|
||||
isOrKey_ = isOrKey;
|
||||
isOrKey_ = isOrKey;
|
||||
setCoreParameter("IsOrKey", isOrKey ? "true" : "false");
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeCenBandwidthPackagesResult::~DescribeCenBandwidthPackagesResult()
|
||||
|
||||
void DescribeCenBandwidthPackagesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCenBandwidthPackages = value["CenBandwidthPackages"]["CenBandwidthPackage"];
|
||||
for (auto value : allCenBandwidthPackages)
|
||||
@@ -70,6 +73,10 @@ void DescribeCenBandwidthPackagesResult::parse(const std::string &payload)
|
||||
cenBandwidthPackagesObject.status = value["Status"].asString();
|
||||
if(!value["IsCrossBorder"].isNull())
|
||||
cenBandwidthPackagesObject.isCrossBorder = value["IsCrossBorder"].asString() == "true";
|
||||
if(!value["TypeFor95"].isNull())
|
||||
cenBandwidthPackagesObject.typeFor95 = value["TypeFor95"].asString();
|
||||
if(!value["Ratio"].isNull())
|
||||
cenBandwidthPackagesObject.ratio = value["Ratio"].asString();
|
||||
auto allCenIds = value["CenIds"]["CenId"];
|
||||
for (auto value : allCenIds)
|
||||
cenBandwidthPackagesObject.cenIds.push_back(value.asString());
|
||||
|
||||
148
cbn/src/model/DescribeCenChildInstanceRouteEntriesRequest.cc
Normal file
148
cbn/src/model/DescribeCenChildInstanceRouteEntriesRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/DescribeCenChildInstanceRouteEntriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeCenChildInstanceRouteEntriesRequest;
|
||||
|
||||
DescribeCenChildInstanceRouteEntriesRequest::DescribeCenChildInstanceRouteEntriesRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeCenChildInstanceRouteEntries")
|
||||
{}
|
||||
|
||||
DescribeCenChildInstanceRouteEntriesRequest::~DescribeCenChildInstanceRouteEntriesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCenChildInstanceRouteEntriesRequest::getChildInstanceId()const
|
||||
{
|
||||
return childInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeCenChildInstanceRouteEntriesRequest::setChildInstanceId(const std::string& childInstanceId)
|
||||
{
|
||||
childInstanceId_ = childInstanceId;
|
||||
setCoreParameter("ChildInstanceId", childInstanceId);
|
||||
}
|
||||
|
||||
long DescribeCenChildInstanceRouteEntriesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCenChildInstanceRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenChildInstanceRouteEntriesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenChildInstanceRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenChildInstanceRouteEntriesRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DescribeCenChildInstanceRouteEntriesRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeCenChildInstanceRouteEntriesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenChildInstanceRouteEntriesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeCenChildInstanceRouteEntriesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCenChildInstanceRouteEntriesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCenChildInstanceRouteEntriesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCenChildInstanceRouteEntriesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenChildInstanceRouteEntriesRequest::getChildInstanceType()const
|
||||
{
|
||||
return childInstanceType_;
|
||||
}
|
||||
|
||||
void DescribeCenChildInstanceRouteEntriesRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setCoreParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
int DescribeCenChildInstanceRouteEntriesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCenChildInstanceRouteEntriesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeCenChildInstanceRouteEntriesRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeCenChildInstanceRouteEntriesRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
std::string DescribeCenChildInstanceRouteEntriesRequest::getChildInstanceRegionId()const
|
||||
{
|
||||
return childInstanceRegionId_;
|
||||
}
|
||||
|
||||
void DescribeCenChildInstanceRouteEntriesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setCoreParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
130
cbn/src/model/DescribeCenChildInstanceRouteEntriesResult.cc
Normal file
130
cbn/src/model/DescribeCenChildInstanceRouteEntriesResult.cc
Normal file
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* 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/DescribeCenChildInstanceRouteEntriesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeCenChildInstanceRouteEntriesResult::DescribeCenChildInstanceRouteEntriesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCenChildInstanceRouteEntriesResult::DescribeCenChildInstanceRouteEntriesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCenChildInstanceRouteEntriesResult::~DescribeCenChildInstanceRouteEntriesResult()
|
||||
{}
|
||||
|
||||
void DescribeCenChildInstanceRouteEntriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCenRouteEntries = value["CenRouteEntries"]["CenRouteEntry"];
|
||||
for (auto value : allCenRouteEntries)
|
||||
{
|
||||
CenRouteEntry cenRouteEntriesObject;
|
||||
if(!value["DestinationCidrBlock"].isNull())
|
||||
cenRouteEntriesObject.destinationCidrBlock = value["DestinationCidrBlock"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
cenRouteEntriesObject.type = value["Type"].asString();
|
||||
if(!value["NextHopInstanceId"].isNull())
|
||||
cenRouteEntriesObject.nextHopInstanceId = value["NextHopInstanceId"].asString();
|
||||
if(!value["NextHopType"].isNull())
|
||||
cenRouteEntriesObject.nextHopType = value["NextHopType"].asString();
|
||||
if(!value["NextHopRegionId"].isNull())
|
||||
cenRouteEntriesObject.nextHopRegionId = value["NextHopRegionId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
cenRouteEntriesObject.status = value["Status"].asString();
|
||||
if(!value["OperationalMode"].isNull())
|
||||
cenRouteEntriesObject.operationalMode = value["OperationalMode"].asString() == "true";
|
||||
if(!value["PublishStatus"].isNull())
|
||||
cenRouteEntriesObject.publishStatus = value["PublishStatus"].asString();
|
||||
if(!value["RouteTableId"].isNull())
|
||||
cenRouteEntriesObject.routeTableId = value["RouteTableId"].asString();
|
||||
auto allCenRouteMapRecords = value["CenRouteMapRecords"]["CenRouteMapRecord"];
|
||||
for (auto value : allCenRouteMapRecords)
|
||||
{
|
||||
CenRouteEntry::CenRouteMapRecord cenRouteMapRecordsObject;
|
||||
if(!value["RegionId"].isNull())
|
||||
cenRouteMapRecordsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["RouteMapId"].isNull())
|
||||
cenRouteMapRecordsObject.routeMapId = value["RouteMapId"].asString();
|
||||
cenRouteEntriesObject.cenRouteMapRecords.push_back(cenRouteMapRecordsObject);
|
||||
}
|
||||
auto allConflicts = value["Conflicts"]["Conflict"];
|
||||
for (auto value : allConflicts)
|
||||
{
|
||||
CenRouteEntry::Conflict conflictsObject;
|
||||
if(!value["DestinationCidrBlock"].isNull())
|
||||
conflictsObject.destinationCidrBlock = value["DestinationCidrBlock"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
conflictsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
conflictsObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["InstanceType"].isNull())
|
||||
conflictsObject.instanceType = value["InstanceType"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
conflictsObject.status = value["Status"].asString();
|
||||
cenRouteEntriesObject.conflicts.push_back(conflictsObject);
|
||||
}
|
||||
auto allAsPaths = value["AsPaths"]["AsPath"];
|
||||
for (auto value : allAsPaths)
|
||||
cenRouteEntriesObject.asPaths.push_back(value.asString());
|
||||
auto allCommunities = value["Communities"]["Community"];
|
||||
for (auto value : allCommunities)
|
||||
cenRouteEntriesObject.communities.push_back(value.asString());
|
||||
cenRouteEntries_.push_back(cenRouteEntriesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCenChildInstanceRouteEntriesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCenChildInstanceRouteEntriesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCenChildInstanceRouteEntriesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCenChildInstanceRouteEntriesResult::CenRouteEntry> DescribeCenChildInstanceRouteEntriesResult::getCenRouteEntries()const
|
||||
{
|
||||
return cenRouteEntries_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getGeographicReg
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setGeographicRegionBId(const std::string& geographicRegionBId)
|
||||
{
|
||||
geographicRegionBId_ = geographicRegionBId;
|
||||
setParameter("GeographicRegionBId", geographicRegionBId);
|
||||
setCoreParameter("GeographicRegionBId", geographicRegionBId);
|
||||
}
|
||||
|
||||
long DescribeCenGeographicSpanRemainingBandwidthRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long DescribeCenGeographicSpanRemainingBandwidthRequest::getResourceOwnerId()con
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getGeographicRegionAId()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getGeographicReg
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setGeographicRegionAId(const std::string& geographicRegionAId)
|
||||
{
|
||||
geographicRegionAId_ = geographicRegionAId;
|
||||
setParameter("GeographicRegionAId", geographicRegionAId);
|
||||
setCoreParameter("GeographicRegionAId", geographicRegionAId);
|
||||
}
|
||||
|
||||
std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getResourceOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getResourceOwner
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getCenId()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getCenId()const
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getOwnerAccount()const
|
||||
@@ -88,7 +88,7 @@ std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getOwnerAccount(
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeCenGeographicSpanRemainingBandwidthRequest::getPageSize()const
|
||||
@@ -99,7 +99,7 @@ int DescribeCenGeographicSpanRemainingBandwidthRequest::getPageSize()const
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCenGeographicSpanRemainingBandwidthRequest::getOwnerId()const
|
||||
@@ -110,7 +110,7 @@ long DescribeCenGeographicSpanRemainingBandwidthRequest::getOwnerId()const
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeCenGeographicSpanRemainingBandwidthRequest::getPageNumber()const
|
||||
@@ -121,6 +121,6 @@ int DescribeCenGeographicSpanRemainingBandwidthRequest::getPageNumber()const
|
||||
void DescribeCenGeographicSpanRemainingBandwidthRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeCenGeographicSpanRemainingBandwidthResult::~DescribeCenGeographicSpanRem
|
||||
|
||||
void DescribeCenGeographicSpanRemainingBandwidthResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RemainingBandwidth"].isNull())
|
||||
remainingBandwidth_ = std::stol(value["RemainingBandwidth"].asString());
|
||||
|
||||
@@ -33,7 +33,7 @@ long DescribeCenGeographicSpansRequest::getResourceOwnerId()const
|
||||
void DescribeCenGeographicSpansRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenGeographicSpansRequest::getGeographicSpanId()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeCenGeographicSpansRequest::getGeographicSpanId()const
|
||||
void DescribeCenGeographicSpansRequest::setGeographicSpanId(const std::string& geographicSpanId)
|
||||
{
|
||||
geographicSpanId_ = geographicSpanId;
|
||||
setParameter("GeographicSpanId", geographicSpanId);
|
||||
setCoreParameter("GeographicSpanId", geographicSpanId);
|
||||
}
|
||||
|
||||
std::string DescribeCenGeographicSpansRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeCenGeographicSpansRequest::getResourceOwnerAccount()const
|
||||
void DescribeCenGeographicSpansRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenGeographicSpansRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeCenGeographicSpansRequest::getOwnerAccount()const
|
||||
void DescribeCenGeographicSpansRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeCenGeographicSpansRequest::getPageSize()const
|
||||
@@ -77,7 +77,7 @@ int DescribeCenGeographicSpansRequest::getPageSize()const
|
||||
void DescribeCenGeographicSpansRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCenGeographicSpansRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long DescribeCenGeographicSpansRequest::getOwnerId()const
|
||||
void DescribeCenGeographicSpansRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeCenGeographicSpansRequest::getPageNumber()const
|
||||
@@ -99,6 +99,6 @@ int DescribeCenGeographicSpansRequest::getPageNumber()const
|
||||
void DescribeCenGeographicSpansRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeCenGeographicSpansResult::~DescribeCenGeographicSpansResult()
|
||||
|
||||
void DescribeCenGeographicSpansResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allGeographicSpanModels = value["GeographicSpanModels"]["GeographicSpanModel"];
|
||||
for (auto value : allGeographicSpanModels)
|
||||
|
||||
@@ -33,7 +33,7 @@ long DescribeCenInterRegionBandwidthLimitsRequest::getResourceOwnerId()const
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenInterRegionBandwidthLimitsRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeCenInterRegionBandwidthLimitsRequest::getResourceOwnerAccoun
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenInterRegionBandwidthLimitsRequest::getCenId()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeCenInterRegionBandwidthLimitsRequest::getCenId()const
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeCenInterRegionBandwidthLimitsRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeCenInterRegionBandwidthLimitsRequest::getOwnerAccount()const
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeCenInterRegionBandwidthLimitsRequest::getPageSize()const
|
||||
@@ -77,7 +77,7 @@ int DescribeCenInterRegionBandwidthLimitsRequest::getPageSize()const
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCenInterRegionBandwidthLimitsRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long DescribeCenInterRegionBandwidthLimitsRequest::getOwnerId()const
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeCenInterRegionBandwidthLimitsRequest::getPageNumber()const
|
||||
@@ -99,6 +99,6 @@ int DescribeCenInterRegionBandwidthLimitsRequest::getPageNumber()const
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeCenInterRegionBandwidthLimitsResult::~DescribeCenInterRegionBandwidthLim
|
||||
|
||||
void DescribeCenInterRegionBandwidthLimitsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCenInterRegionBandwidthLimits = value["CenInterRegionBandwidthLimits"]["CenInterRegionBandwidthLimit"];
|
||||
for (auto value : allCenInterRegionBandwidthLimits)
|
||||
|
||||
@@ -33,7 +33,7 @@ long DescribeCenPrivateZoneRoutesRequest::getResourceOwnerId()const
|
||||
void DescribeCenPrivateZoneRoutesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenPrivateZoneRoutesRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeCenPrivateZoneRoutesRequest::getResourceOwnerAccount()const
|
||||
void DescribeCenPrivateZoneRoutesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenPrivateZoneRoutesRequest::getCenId()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeCenPrivateZoneRoutesRequest::getCenId()const
|
||||
void DescribeCenPrivateZoneRoutesRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
int DescribeCenPrivateZoneRoutesRequest::getPageSize()const
|
||||
@@ -66,7 +66,7 @@ int DescribeCenPrivateZoneRoutesRequest::getPageSize()const
|
||||
void DescribeCenPrivateZoneRoutesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeCenPrivateZoneRoutesRequest::getHostRegionId()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeCenPrivateZoneRoutesRequest::getHostRegionId()const
|
||||
void DescribeCenPrivateZoneRoutesRequest::setHostRegionId(const std::string& hostRegionId)
|
||||
{
|
||||
hostRegionId_ = hostRegionId;
|
||||
setParameter("HostRegionId", hostRegionId);
|
||||
setCoreParameter("HostRegionId", hostRegionId);
|
||||
}
|
||||
|
||||
std::string DescribeCenPrivateZoneRoutesRequest::getAccessRegionId()const
|
||||
@@ -88,7 +88,7 @@ std::string DescribeCenPrivateZoneRoutesRequest::getAccessRegionId()const
|
||||
void DescribeCenPrivateZoneRoutesRequest::setAccessRegionId(const std::string& accessRegionId)
|
||||
{
|
||||
accessRegionId_ = accessRegionId;
|
||||
setParameter("AccessRegionId", accessRegionId);
|
||||
setCoreParameter("AccessRegionId", accessRegionId);
|
||||
}
|
||||
|
||||
int DescribeCenPrivateZoneRoutesRequest::getPageNumber()const
|
||||
@@ -99,6 +99,6 @@ int DescribeCenPrivateZoneRoutesRequest::getPageNumber()const
|
||||
void DescribeCenPrivateZoneRoutesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeCenPrivateZoneRoutesResult::~DescribeCenPrivateZoneRoutesResult()
|
||||
|
||||
void DescribeCenPrivateZoneRoutesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPrivateZoneInfos = value["PrivateZoneInfos"]["PrivateZoneInfo"];
|
||||
for (auto value : allPrivateZoneInfos)
|
||||
|
||||
@@ -33,7 +33,7 @@ long DescribeCenRegionDomainRouteEntriesRequest::getResourceOwnerId()const
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenRegionDomainRouteEntriesRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeCenRegionDomainRouteEntriesRequest::getResourceOwnerAccount(
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenRegionDomainRouteEntriesRequest::getCenId()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeCenRegionDomainRouteEntriesRequest::getCenId()const
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeCenRegionDomainRouteEntriesRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeCenRegionDomainRouteEntriesRequest::getOwnerAccount()const
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenRegionDomainRouteEntriesRequest::getCenRegionId()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeCenRegionDomainRouteEntriesRequest::getCenRegionId()const
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setCenRegionId(const std::string& cenRegionId)
|
||||
{
|
||||
cenRegionId_ = cenRegionId;
|
||||
setParameter("CenRegionId", cenRegionId);
|
||||
setCoreParameter("CenRegionId", cenRegionId);
|
||||
}
|
||||
|
||||
int DescribeCenRegionDomainRouteEntriesRequest::getPageSize()const
|
||||
@@ -88,7 +88,7 @@ int DescribeCenRegionDomainRouteEntriesRequest::getPageSize()const
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCenRegionDomainRouteEntriesRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long DescribeCenRegionDomainRouteEntriesRequest::getOwnerId()const
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeCenRegionDomainRouteEntriesRequest::getPageNumber()const
|
||||
@@ -110,6 +110,17 @@ int DescribeCenRegionDomainRouteEntriesRequest::getPageNumber()const
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeCenRegionDomainRouteEntriesRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeCenRegionDomainRouteEntriesRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeCenRegionDomainRouteEntriesResult::~DescribeCenRegionDomainRouteEntriesR
|
||||
|
||||
void DescribeCenRegionDomainRouteEntriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCenRouteEntries = value["CenRouteEntries"]["CenRouteEntry"];
|
||||
for (auto value : allCenRouteEntries)
|
||||
@@ -54,6 +57,38 @@ void DescribeCenRegionDomainRouteEntriesResult::parse(const std::string &payload
|
||||
cenRouteEntriesObject.nextHopType = value["NextHopType"].asString();
|
||||
if(!value["NextHopRegionId"].isNull())
|
||||
cenRouteEntriesObject.nextHopRegionId = value["NextHopRegionId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
cenRouteEntriesObject.status = value["Status"].asString();
|
||||
if(!value["ToOtherRegionStatus"].isNull())
|
||||
cenRouteEntriesObject.toOtherRegionStatus = value["ToOtherRegionStatus"].asString();
|
||||
if(!value["Preference"].isNull())
|
||||
cenRouteEntriesObject.preference = std::stoi(value["Preference"].asString());
|
||||
auto allCenRouteMapRecords = value["CenRouteMapRecords"]["CenRouteMapRecord"];
|
||||
for (auto value : allCenRouteMapRecords)
|
||||
{
|
||||
CenRouteEntry::CenRouteMapRecord cenRouteMapRecordsObject;
|
||||
if(!value["RegionId"].isNull())
|
||||
cenRouteMapRecordsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["RouteMapId"].isNull())
|
||||
cenRouteMapRecordsObject.routeMapId = value["RouteMapId"].asString();
|
||||
cenRouteEntriesObject.cenRouteMapRecords.push_back(cenRouteMapRecordsObject);
|
||||
}
|
||||
auto allCenOutRouteMapRecords = value["CenOutRouteMapRecords"]["CenOutRouteMapRecord"];
|
||||
for (auto value : allCenOutRouteMapRecords)
|
||||
{
|
||||
CenRouteEntry::CenOutRouteMapRecord cenOutRouteMapRecordsObject;
|
||||
if(!value["RegionId"].isNull())
|
||||
cenOutRouteMapRecordsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["RouteMapId"].isNull())
|
||||
cenOutRouteMapRecordsObject.routeMapId = value["RouteMapId"].asString();
|
||||
cenRouteEntriesObject.cenOutRouteMapRecords.push_back(cenOutRouteMapRecordsObject);
|
||||
}
|
||||
auto allAsPaths = value["AsPaths"]["AsPath"];
|
||||
for (auto value : allAsPaths)
|
||||
cenRouteEntriesObject.asPaths.push_back(value.asString());
|
||||
auto allCommunities = value["Communities"]["Community"];
|
||||
for (auto value : allCommunities)
|
||||
cenRouteEntriesObject.communities.push_back(value.asString());
|
||||
cenRouteEntries_.push_back(cenRouteEntriesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
|
||||
137
cbn/src/model/DescribeCenRouteMapsRequest.cc
Normal file
137
cbn/src/model/DescribeCenRouteMapsRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* 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/DescribeCenRouteMapsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeCenRouteMapsRequest;
|
||||
|
||||
DescribeCenRouteMapsRequest::DescribeCenRouteMapsRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeCenRouteMaps")
|
||||
{}
|
||||
|
||||
DescribeCenRouteMapsRequest::~DescribeCenRouteMapsRequest()
|
||||
{}
|
||||
|
||||
long DescribeCenRouteMapsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCenRouteMapsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenRouteMapsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenRouteMapsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenRouteMapsRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DescribeCenRouteMapsRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeCenRouteMapsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCenRouteMapsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenRouteMapsRequest::getCenRegionId()const
|
||||
{
|
||||
return cenRegionId_;
|
||||
}
|
||||
|
||||
void DescribeCenRouteMapsRequest::setCenRegionId(const std::string& cenRegionId)
|
||||
{
|
||||
cenRegionId_ = cenRegionId;
|
||||
setCoreParameter("CenRegionId", cenRegionId);
|
||||
}
|
||||
|
||||
int DescribeCenRouteMapsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCenRouteMapsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeCenRouteMapsRequest::getRouteMapId()const
|
||||
{
|
||||
return routeMapId_;
|
||||
}
|
||||
|
||||
void DescribeCenRouteMapsRequest::setRouteMapId(const std::string& routeMapId)
|
||||
{
|
||||
routeMapId_ = routeMapId;
|
||||
setCoreParameter("RouteMapId", routeMapId);
|
||||
}
|
||||
|
||||
long DescribeCenRouteMapsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCenRouteMapsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeCenRouteMapsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCenRouteMapsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeCenRouteMapsRequest::getTransmitDirection()const
|
||||
{
|
||||
return transmitDirection_;
|
||||
}
|
||||
|
||||
void DescribeCenRouteMapsRequest::setTransmitDirection(const std::string& transmitDirection)
|
||||
{
|
||||
transmitDirection_ = transmitDirection;
|
||||
setCoreParameter("TransmitDirection", transmitDirection);
|
||||
}
|
||||
|
||||
150
cbn/src/model/DescribeCenRouteMapsResult.cc
Normal file
150
cbn/src/model/DescribeCenRouteMapsResult.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/DescribeCenRouteMapsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeCenRouteMapsResult::DescribeCenRouteMapsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCenRouteMapsResult::DescribeCenRouteMapsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCenRouteMapsResult::~DescribeCenRouteMapsResult()
|
||||
{}
|
||||
|
||||
void DescribeCenRouteMapsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRouteMaps = value["RouteMaps"]["RouteMap"];
|
||||
for (auto value : allRouteMaps)
|
||||
{
|
||||
RouteMap routeMapsObject;
|
||||
if(!value["Status"].isNull())
|
||||
routeMapsObject.status = value["Status"].asString();
|
||||
if(!value["RouteMapId"].isNull())
|
||||
routeMapsObject.routeMapId = value["RouteMapId"].asString();
|
||||
if(!value["CenId"].isNull())
|
||||
routeMapsObject.cenId = value["CenId"].asString();
|
||||
if(!value["CenRegionId"].isNull())
|
||||
routeMapsObject.cenRegionId = value["CenRegionId"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
routeMapsObject.description = value["Description"].asString();
|
||||
if(!value["MapResult"].isNull())
|
||||
routeMapsObject.mapResult = value["MapResult"].asString();
|
||||
if(!value["Priority"].isNull())
|
||||
routeMapsObject.priority = std::stoi(value["Priority"].asString());
|
||||
if(!value["NextPriority"].isNull())
|
||||
routeMapsObject.nextPriority = std::stoi(value["NextPriority"].asString());
|
||||
if(!value["CidrMatchMode"].isNull())
|
||||
routeMapsObject.cidrMatchMode = value["CidrMatchMode"].asString();
|
||||
if(!value["AsPathMatchMode"].isNull())
|
||||
routeMapsObject.asPathMatchMode = value["AsPathMatchMode"].asString();
|
||||
if(!value["AsPathLength"].isNull())
|
||||
routeMapsObject.asPathLength = std::stoi(value["AsPathLength"].asString());
|
||||
if(!value["CommunityMatchMode"].isNull())
|
||||
routeMapsObject.communityMatchMode = value["CommunityMatchMode"].asString();
|
||||
if(!value["CommunityOperateMode"].isNull())
|
||||
routeMapsObject.communityOperateMode = value["CommunityOperateMode"].asString();
|
||||
if(!value["Preference"].isNull())
|
||||
routeMapsObject.preference = std::stoi(value["Preference"].asString());
|
||||
if(!value["TransmitDirection"].isNull())
|
||||
routeMapsObject.transmitDirection = value["TransmitDirection"].asString();
|
||||
if(!value["SourceInstanceIdsReverseMatch"].isNull())
|
||||
routeMapsObject.sourceInstanceIdsReverseMatch = value["SourceInstanceIdsReverseMatch"].asString() == "true";
|
||||
if(!value["DestinationInstanceIdsReverseMatch"].isNull())
|
||||
routeMapsObject.destinationInstanceIdsReverseMatch = value["DestinationInstanceIdsReverseMatch"].asString() == "true";
|
||||
auto allSourceInstanceIds = value["SourceInstanceIds"]["SourceInstanceId"];
|
||||
for (auto value : allSourceInstanceIds)
|
||||
routeMapsObject.sourceInstanceIds.push_back(value.asString());
|
||||
auto allDestinationInstanceIds = value["DestinationInstanceIds"]["DestinationInstanceId"];
|
||||
for (auto value : allDestinationInstanceIds)
|
||||
routeMapsObject.destinationInstanceIds.push_back(value.asString());
|
||||
auto allSourceRouteTableIds = value["SourceRouteTableIds"]["SourceRouteTableId"];
|
||||
for (auto value : allSourceRouteTableIds)
|
||||
routeMapsObject.sourceRouteTableIds.push_back(value.asString());
|
||||
auto allDestinationRouteTableIds = value["DestinationRouteTableIds"]["DestinationRouteTableId"];
|
||||
for (auto value : allDestinationRouteTableIds)
|
||||
routeMapsObject.destinationRouteTableIds.push_back(value.asString());
|
||||
auto allSourceRegionIds = value["SourceRegionIds"]["SourceRegionId"];
|
||||
for (auto value : allSourceRegionIds)
|
||||
routeMapsObject.sourceRegionIds.push_back(value.asString());
|
||||
auto allSourceChildInstanceTypes = value["SourceChildInstanceTypes"]["SourceChildInstanceType"];
|
||||
for (auto value : allSourceChildInstanceTypes)
|
||||
routeMapsObject.sourceChildInstanceTypes.push_back(value.asString());
|
||||
auto allDestinationChildInstanceTypes = value["DestinationChildInstanceTypes"]["DestinationChildInstanceType"];
|
||||
for (auto value : allDestinationChildInstanceTypes)
|
||||
routeMapsObject.destinationChildInstanceTypes.push_back(value.asString());
|
||||
auto allDestinationCidrBlocks = value["DestinationCidrBlocks"]["DestinationCidrBlock"];
|
||||
for (auto value : allDestinationCidrBlocks)
|
||||
routeMapsObject.destinationCidrBlocks.push_back(value.asString());
|
||||
auto allRouteTypes = value["RouteTypes"]["RouteType"];
|
||||
for (auto value : allRouteTypes)
|
||||
routeMapsObject.routeTypes.push_back(value.asString());
|
||||
auto allMatchAsns = value["MatchAsns"]["MatchAsn"];
|
||||
for (auto value : allMatchAsns)
|
||||
routeMapsObject.matchAsns.push_back(value.asString());
|
||||
auto allMatchCommunitySet = value["MatchCommunitySet"]["MatchCommunity"];
|
||||
for (auto value : allMatchCommunitySet)
|
||||
routeMapsObject.matchCommunitySet.push_back(value.asString());
|
||||
auto allOperateCommunitySet = value["OperateCommunitySet"]["OperateCommunity"];
|
||||
for (auto value : allOperateCommunitySet)
|
||||
routeMapsObject.operateCommunitySet.push_back(value.asString());
|
||||
routeMaps_.push_back(routeMapsObject);
|
||||
}
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCenRouteMapsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCenRouteMapsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCenRouteMapsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCenRouteMapsResult::RouteMap> DescribeCenRouteMapsResult::getRouteMaps()const
|
||||
{
|
||||
return routeMaps_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long DescribeCenVbrHealthCheckRequest::getResourceOwnerId()const
|
||||
void DescribeCenVbrHealthCheckRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenVbrHealthCheckRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeCenVbrHealthCheckRequest::getResourceOwnerAccount()const
|
||||
void DescribeCenVbrHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenVbrHealthCheckRequest::getCenId()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeCenVbrHealthCheckRequest::getCenId()const
|
||||
void DescribeCenVbrHealthCheckRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
long DescribeCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long DescribeCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const
|
||||
void DescribeCenVbrHealthCheckRequest::setVbrInstanceOwnerId(long vbrInstanceOwnerId)
|
||||
{
|
||||
vbrInstanceOwnerId_ = vbrInstanceOwnerId;
|
||||
setParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId));
|
||||
setCoreParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenVbrHealthCheckRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeCenVbrHealthCheckRequest::getOwnerAccount()const
|
||||
void DescribeCenVbrHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCenVbrHealthCheckRequest::getVbrInstanceId()const
|
||||
@@ -88,7 +88,7 @@ std::string DescribeCenVbrHealthCheckRequest::getVbrInstanceId()const
|
||||
void DescribeCenVbrHealthCheckRequest::setVbrInstanceId(const std::string& vbrInstanceId)
|
||||
{
|
||||
vbrInstanceId_ = vbrInstanceId;
|
||||
setParameter("VbrInstanceId", vbrInstanceId);
|
||||
setCoreParameter("VbrInstanceId", vbrInstanceId);
|
||||
}
|
||||
|
||||
int DescribeCenVbrHealthCheckRequest::getPageSize()const
|
||||
@@ -99,7 +99,7 @@ int DescribeCenVbrHealthCheckRequest::getPageSize()const
|
||||
void DescribeCenVbrHealthCheckRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCenVbrHealthCheckRequest::getOwnerId()const
|
||||
@@ -110,7 +110,7 @@ long DescribeCenVbrHealthCheckRequest::getOwnerId()const
|
||||
void DescribeCenVbrHealthCheckRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeCenVbrHealthCheckRequest::getVbrInstanceRegionId()const
|
||||
@@ -121,7 +121,7 @@ std::string DescribeCenVbrHealthCheckRequest::getVbrInstanceRegionId()const
|
||||
void DescribeCenVbrHealthCheckRequest::setVbrInstanceRegionId(const std::string& vbrInstanceRegionId)
|
||||
{
|
||||
vbrInstanceRegionId_ = vbrInstanceRegionId;
|
||||
setParameter("VbrInstanceRegionId", vbrInstanceRegionId);
|
||||
setCoreParameter("VbrInstanceRegionId", vbrInstanceRegionId);
|
||||
}
|
||||
|
||||
int DescribeCenVbrHealthCheckRequest::getPageNumber()const
|
||||
@@ -132,6 +132,6 @@ int DescribeCenVbrHealthCheckRequest::getPageNumber()const
|
||||
void DescribeCenVbrHealthCheckRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeCenVbrHealthCheckResult::~DescribeCenVbrHealthCheckResult()
|
||||
|
||||
void DescribeCenVbrHealthCheckResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVbrHealthChecks = value["VbrHealthChecks"]["VbrHealthCheck"];
|
||||
for (auto value : allVbrHealthChecks)
|
||||
|
||||
@@ -37,8 +37,8 @@ void DescribeCensRequest::setFilter(const std::vector<Filter>& filter)
|
||||
for(int i = 0; i!= filter.size(); i++) {
|
||||
auto obj = filter.at(i);
|
||||
std::string str ="Filter."+ std::to_string(i);
|
||||
for(int i = 0; i!= obj.value.size(); i++)
|
||||
setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i));
|
||||
for(int i = 0; i!= obj.value.size(); i++)
|
||||
setCoreParameter(str + ".Value."+ std::to_string(i), obj.value.at(i));
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
@@ -50,7 +50,7 @@ long DescribeCensRequest::getResourceOwnerId()const
|
||||
|
||||
void DescribeCensRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ std::string DescribeCensRequest::getResourceOwnerAccount()const
|
||||
|
||||
void DescribeCensRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ std::string DescribeCensRequest::getOwnerAccount()const
|
||||
|
||||
void DescribeCensRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ int DescribeCensRequest::getPageSize()const
|
||||
|
||||
void DescribeCensRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
@@ -98,8 +98,8 @@ void DescribeCensRequest::setTag(const std::vector<Tag>& tag)
|
||||
int i = 0;
|
||||
for(int i = 0; i!= tag.size(); i++) {
|
||||
auto obj = tag.at(i);
|
||||
std::string str ="Tag."+ std::to_string(i);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
std::string str ="Tag."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
@@ -111,7 +111,7 @@ long DescribeCensRequest::getOwnerId()const
|
||||
|
||||
void DescribeCensRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -122,6 +122,6 @@ int DescribeCensRequest::getPageNumber()const
|
||||
|
||||
void DescribeCensRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeCensResult::~DescribeCensResult()
|
||||
|
||||
void DescribeCensResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCens = value["Cens"]["Cen"];
|
||||
for (auto value : allCens)
|
||||
|
||||
@@ -33,7 +33,7 @@ long DescribeChildInstanceRegionsRequest::getResourceOwnerId()const
|
||||
void DescribeChildInstanceRegionsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeChildInstanceRegionsRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeChildInstanceRegionsRequest::getResourceOwnerAccount()const
|
||||
void DescribeChildInstanceRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeChildInstanceRegionsRequest::getOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeChildInstanceRegionsRequest::getOwnerAccount()const
|
||||
void DescribeChildInstanceRegionsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeChildInstanceRegionsRequest::getOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long DescribeChildInstanceRegionsRequest::getOwnerId()const
|
||||
void DescribeChildInstanceRegionsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeChildInstanceRegionsRequest::getProductType()const
|
||||
@@ -77,6 +77,6 @@ std::string DescribeChildInstanceRegionsRequest::getProductType()const
|
||||
void DescribeChildInstanceRegionsRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeChildInstanceRegionsResult::~DescribeChildInstanceRegionsResult()
|
||||
|
||||
void DescribeChildInstanceRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegions = value["Regions"]["Region"];
|
||||
for (auto value : allRegions)
|
||||
|
||||
192
cbn/src/model/DescribeFlowlogsRequest.cc
Normal file
192
cbn/src/model/DescribeFlowlogsRequest.cc
Normal file
@@ -0,0 +1,192 @@
|
||||
/*
|
||||
* 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/DescribeFlowlogsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DescribeFlowlogsRequest;
|
||||
|
||||
DescribeFlowlogsRequest::DescribeFlowlogsRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "DescribeFlowlogs")
|
||||
{}
|
||||
|
||||
DescribeFlowlogsRequest::~DescribeFlowlogsRequest()
|
||||
{}
|
||||
|
||||
long DescribeFlowlogsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsRequest::getLogStoreName()const
|
||||
{
|
||||
return logStoreName_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setLogStoreName(const std::string& logStoreName)
|
||||
{
|
||||
logStoreName_ = logStoreName;
|
||||
setCoreParameter("LogStoreName", logStoreName);
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long DescribeFlowlogsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeFlowlogsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeFlowlogsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsRequest::getFlowLogId()const
|
||||
{
|
||||
return flowLogId_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setFlowLogId(const std::string& flowLogId)
|
||||
{
|
||||
flowLogId_ = flowLogId;
|
||||
setCoreParameter("FlowLogId", flowLogId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsRequest::getFlowLogName()const
|
||||
{
|
||||
return flowLogName_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setFlowLogName(const std::string& flowLogName)
|
||||
{
|
||||
flowLogName_ = flowLogName;
|
||||
setCoreParameter("FlowLogName", flowLogName);
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeFlowlogsRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
105
cbn/src/model/DescribeFlowlogsResult.cc
Normal file
105
cbn/src/model/DescribeFlowlogsResult.cc
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* 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/DescribeFlowlogsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DescribeFlowlogsResult::DescribeFlowlogsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeFlowlogsResult::DescribeFlowlogsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeFlowlogsResult::~DescribeFlowlogsResult()
|
||||
{}
|
||||
|
||||
void DescribeFlowlogsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFlowLogs = value["FlowLogs"]["FlowLog"];
|
||||
for (auto value : allFlowLogs)
|
||||
{
|
||||
FlowLog flowLogsObject;
|
||||
if(!value["FlowLogId"].isNull())
|
||||
flowLogsObject.flowLogId = value["FlowLogId"].asString();
|
||||
if(!value["FlowLogName"].isNull())
|
||||
flowLogsObject.flowLogName = value["FlowLogName"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
flowLogsObject.description = value["Description"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
flowLogsObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["CenId"].isNull())
|
||||
flowLogsObject.cenId = value["CenId"].asString();
|
||||
if(!value["ProjectName"].isNull())
|
||||
flowLogsObject.projectName = value["ProjectName"].asString();
|
||||
if(!value["LogStoreName"].isNull())
|
||||
flowLogsObject.logStoreName = value["LogStoreName"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
flowLogsObject.status = value["Status"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
flowLogsObject.regionId = value["RegionId"].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();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeFlowlogsResult::FlowLog> DescribeFlowlogsResult::getFlowLogs()const
|
||||
{
|
||||
return flowLogs_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowlogsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long DescribeGeographicRegionMembershipRequest::getResourceOwnerId()const
|
||||
void DescribeGeographicRegionMembershipRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeGeographicRegionMembershipRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeGeographicRegionMembershipRequest::getResourceOwnerAccount()
|
||||
void DescribeGeographicRegionMembershipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeGeographicRegionMembershipRequest::getOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeGeographicRegionMembershipRequest::getOwnerAccount()const
|
||||
void DescribeGeographicRegionMembershipRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeGeographicRegionMembershipRequest::getPageSize()const
|
||||
@@ -66,7 +66,7 @@ int DescribeGeographicRegionMembershipRequest::getPageSize()const
|
||||
void DescribeGeographicRegionMembershipRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeGeographicRegionMembershipRequest::getOwnerId()const
|
||||
@@ -77,7 +77,7 @@ long DescribeGeographicRegionMembershipRequest::getOwnerId()const
|
||||
void DescribeGeographicRegionMembershipRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeGeographicRegionMembershipRequest::getPageNumber()const
|
||||
@@ -88,7 +88,7 @@ int DescribeGeographicRegionMembershipRequest::getPageNumber()const
|
||||
void DescribeGeographicRegionMembershipRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeGeographicRegionMembershipRequest::getGeographicRegionId()const
|
||||
@@ -99,6 +99,6 @@ std::string DescribeGeographicRegionMembershipRequest::getGeographicRegionId()co
|
||||
void DescribeGeographicRegionMembershipRequest::setGeographicRegionId(const std::string& geographicRegionId)
|
||||
{
|
||||
geographicRegionId_ = geographicRegionId;
|
||||
setParameter("GeographicRegionId", geographicRegionId);
|
||||
setCoreParameter("GeographicRegionId", geographicRegionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeGeographicRegionMembershipResult::~DescribeGeographicRegionMembershipRes
|
||||
|
||||
void DescribeGeographicRegionMembershipResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionIds = value["RegionIds"]["RegionId"];
|
||||
for (auto value : allRegionIds)
|
||||
|
||||
@@ -33,7 +33,7 @@ long DescribeGrantRulesToCenRequest::getResourceOwnerId()const
|
||||
void DescribeGrantRulesToCenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeGrantRulesToCenRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeGrantRulesToCenRequest::getResourceOwnerAccount()const
|
||||
void DescribeGrantRulesToCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeGrantRulesToCenRequest::getRegionId()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeGrantRulesToCenRequest::getRegionId()const
|
||||
void DescribeGrantRulesToCenRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeGrantRulesToCenRequest::getCenId()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeGrantRulesToCenRequest::getCenId()const
|
||||
void DescribeGrantRulesToCenRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeGrantRulesToCenRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeGrantRulesToCenRequest::getOwnerAccount()const
|
||||
void DescribeGrantRulesToCenRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeGrantRulesToCenRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long DescribeGrantRulesToCenRequest::getOwnerId()const
|
||||
void DescribeGrantRulesToCenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeGrantRulesToCenRequest::getProductType()const
|
||||
@@ -99,6 +99,6 @@ std::string DescribeGrantRulesToCenRequest::getProductType()const
|
||||
void DescribeGrantRulesToCenRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeGrantRulesToCenResult::~DescribeGrantRulesToCenResult()
|
||||
|
||||
void DescribeGrantRulesToCenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allGrantRules = value["GrantRules"]["GrantRule"];
|
||||
for (auto value : allGrantRules)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DescribePublishedRouteEntriesRequest::getChildInstanceId()const
|
||||
void DescribePublishedRouteEntriesRequest::setChildInstanceId(const std::string& childInstanceId)
|
||||
{
|
||||
childInstanceId_ = childInstanceId;
|
||||
setParameter("ChildInstanceId", childInstanceId);
|
||||
setCoreParameter("ChildInstanceId", childInstanceId);
|
||||
}
|
||||
|
||||
long DescribePublishedRouteEntriesRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long DescribePublishedRouteEntriesRequest::getResourceOwnerId()const
|
||||
void DescribePublishedRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribePublishedRouteEntriesRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribePublishedRouteEntriesRequest::getResourceOwnerAccount()const
|
||||
void DescribePublishedRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribePublishedRouteEntriesRequest::getCenId()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribePublishedRouteEntriesRequest::getCenId()const
|
||||
void DescribePublishedRouteEntriesRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribePublishedRouteEntriesRequest::getDestinationCidrBlock()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribePublishedRouteEntriesRequest::getDestinationCidrBlock()const
|
||||
void DescribePublishedRouteEntriesRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock)
|
||||
{
|
||||
destinationCidrBlock_ = destinationCidrBlock;
|
||||
setParameter("DestinationCidrBlock", destinationCidrBlock);
|
||||
setCoreParameter("DestinationCidrBlock", destinationCidrBlock);
|
||||
}
|
||||
|
||||
int DescribePublishedRouteEntriesRequest::getPageSize()const
|
||||
@@ -88,7 +88,7 @@ int DescribePublishedRouteEntriesRequest::getPageSize()const
|
||||
void DescribePublishedRouteEntriesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribePublishedRouteEntriesRequest::getChildInstanceType()const
|
||||
@@ -99,7 +99,7 @@ std::string DescribePublishedRouteEntriesRequest::getChildInstanceType()const
|
||||
void DescribePublishedRouteEntriesRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
setCoreParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
std::string DescribePublishedRouteEntriesRequest::getChildInstanceRouteTableId()const
|
||||
@@ -110,7 +110,7 @@ std::string DescribePublishedRouteEntriesRequest::getChildInstanceRouteTableId()
|
||||
void DescribePublishedRouteEntriesRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId)
|
||||
{
|
||||
childInstanceRouteTableId_ = childInstanceRouteTableId;
|
||||
setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId);
|
||||
setCoreParameter("ChildInstanceRouteTableId", childInstanceRouteTableId);
|
||||
}
|
||||
|
||||
int DescribePublishedRouteEntriesRequest::getPageNumber()const
|
||||
@@ -121,7 +121,7 @@ int DescribePublishedRouteEntriesRequest::getPageNumber()const
|
||||
void DescribePublishedRouteEntriesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribePublishedRouteEntriesRequest::getChildInstanceRegionId()const
|
||||
@@ -132,6 +132,6 @@ std::string DescribePublishedRouteEntriesRequest::getChildInstanceRegionId()cons
|
||||
void DescribePublishedRouteEntriesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
setCoreParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribePublishedRouteEntriesResult::~DescribePublishedRouteEntriesResult()
|
||||
|
||||
void DescribePublishedRouteEntriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPublishedRouteEntries = value["PublishedRouteEntries"]["PublishedRouteEntry"];
|
||||
for (auto value : allPublishedRouteEntries)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DescribeRouteConflictRequest::getChildInstanceId()const
|
||||
void DescribeRouteConflictRequest::setChildInstanceId(const std::string& childInstanceId)
|
||||
{
|
||||
childInstanceId_ = childInstanceId;
|
||||
setParameter("ChildInstanceId", childInstanceId);
|
||||
setCoreParameter("ChildInstanceId", childInstanceId);
|
||||
}
|
||||
|
||||
long DescribeRouteConflictRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long DescribeRouteConflictRequest::getResourceOwnerId()const
|
||||
void DescribeRouteConflictRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRouteConflictRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeRouteConflictRequest::getResourceOwnerAccount()const
|
||||
void DescribeRouteConflictRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRouteConflictRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeRouteConflictRequest::getOwnerAccount()const
|
||||
void DescribeRouteConflictRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRouteConflictRequest::getDestinationCidrBlock()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeRouteConflictRequest::getDestinationCidrBlock()const
|
||||
void DescribeRouteConflictRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock)
|
||||
{
|
||||
destinationCidrBlock_ = destinationCidrBlock;
|
||||
setParameter("DestinationCidrBlock", destinationCidrBlock);
|
||||
setCoreParameter("DestinationCidrBlock", destinationCidrBlock);
|
||||
}
|
||||
|
||||
int DescribeRouteConflictRequest::getPageSize()const
|
||||
@@ -88,7 +88,7 @@ int DescribeRouteConflictRequest::getPageSize()const
|
||||
void DescribeRouteConflictRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeRouteConflictRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long DescribeRouteConflictRequest::getOwnerId()const
|
||||
void DescribeRouteConflictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRouteConflictRequest::getChildInstanceType()const
|
||||
@@ -110,7 +110,7 @@ std::string DescribeRouteConflictRequest::getChildInstanceType()const
|
||||
void DescribeRouteConflictRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
setCoreParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
std::string DescribeRouteConflictRequest::getChildInstanceRouteTableId()const
|
||||
@@ -121,7 +121,7 @@ std::string DescribeRouteConflictRequest::getChildInstanceRouteTableId()const
|
||||
void DescribeRouteConflictRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId)
|
||||
{
|
||||
childInstanceRouteTableId_ = childInstanceRouteTableId;
|
||||
setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId);
|
||||
setCoreParameter("ChildInstanceRouteTableId", childInstanceRouteTableId);
|
||||
}
|
||||
|
||||
int DescribeRouteConflictRequest::getPageNumber()const
|
||||
@@ -132,7 +132,7 @@ int DescribeRouteConflictRequest::getPageNumber()const
|
||||
void DescribeRouteConflictRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeRouteConflictRequest::getChildInstanceRegionId()const
|
||||
@@ -143,6 +143,6 @@ std::string DescribeRouteConflictRequest::getChildInstanceRegionId()const
|
||||
void DescribeRouteConflictRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
setCoreParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeRouteConflictResult::~DescribeRouteConflictResult()
|
||||
|
||||
void DescribeRouteConflictResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRouteConflicts = value["RouteConflicts"]["RouteConflict"];
|
||||
for (auto value : allRouteConflicts)
|
||||
|
||||
@@ -33,7 +33,7 @@ long DescribeRouteServicesInCenRequest::getResourceOwnerId()const
|
||||
void DescribeRouteServicesInCenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRouteServicesInCenRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeRouteServicesInCenRequest::getResourceOwnerAccount()const
|
||||
void DescribeRouteServicesInCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRouteServicesInCenRequest::getCenId()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeRouteServicesInCenRequest::getCenId()const
|
||||
void DescribeRouteServicesInCenRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DescribeRouteServicesInCenRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeRouteServicesInCenRequest::getOwnerAccount()const
|
||||
void DescribeRouteServicesInCenRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeRouteServicesInCenRequest::getPageSize()const
|
||||
@@ -77,7 +77,7 @@ int DescribeRouteServicesInCenRequest::getPageSize()const
|
||||
void DescribeRouteServicesInCenRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRouteServicesInCenRequest::getHost()const
|
||||
@@ -88,7 +88,7 @@ std::string DescribeRouteServicesInCenRequest::getHost()const
|
||||
void DescribeRouteServicesInCenRequest::setHost(const std::string& host)
|
||||
{
|
||||
host_ = host;
|
||||
setParameter("Host", host);
|
||||
setCoreParameter("Host", host);
|
||||
}
|
||||
|
||||
std::string DescribeRouteServicesInCenRequest::getHostRegionId()const
|
||||
@@ -99,7 +99,7 @@ std::string DescribeRouteServicesInCenRequest::getHostRegionId()const
|
||||
void DescribeRouteServicesInCenRequest::setHostRegionId(const std::string& hostRegionId)
|
||||
{
|
||||
hostRegionId_ = hostRegionId;
|
||||
setParameter("HostRegionId", hostRegionId);
|
||||
setCoreParameter("HostRegionId", hostRegionId);
|
||||
}
|
||||
|
||||
std::string DescribeRouteServicesInCenRequest::getAccessRegionId()const
|
||||
@@ -110,7 +110,7 @@ std::string DescribeRouteServicesInCenRequest::getAccessRegionId()const
|
||||
void DescribeRouteServicesInCenRequest::setAccessRegionId(const std::string& accessRegionId)
|
||||
{
|
||||
accessRegionId_ = accessRegionId;
|
||||
setParameter("AccessRegionId", accessRegionId);
|
||||
setCoreParameter("AccessRegionId", accessRegionId);
|
||||
}
|
||||
|
||||
long DescribeRouteServicesInCenRequest::getOwnerId()const
|
||||
@@ -121,7 +121,7 @@ long DescribeRouteServicesInCenRequest::getOwnerId()const
|
||||
void DescribeRouteServicesInCenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeRouteServicesInCenRequest::getPageNumber()const
|
||||
@@ -132,6 +132,6 @@ int DescribeRouteServicesInCenRequest::getPageNumber()const
|
||||
void DescribeRouteServicesInCenRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeRouteServicesInCenResult::~DescribeRouteServicesInCenResult()
|
||||
|
||||
void DescribeRouteServicesInCenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRouteServiceEntries = value["RouteServiceEntries"]["RouteServiceEntry"];
|
||||
for (auto value : allRouteServiceEntries)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DetachCenChildInstanceRequest::getChildInstanceId()const
|
||||
void DetachCenChildInstanceRequest::setChildInstanceId(const std::string& childInstanceId)
|
||||
{
|
||||
childInstanceId_ = childInstanceId;
|
||||
setParameter("ChildInstanceId", childInstanceId);
|
||||
setCoreParameter("ChildInstanceId", childInstanceId);
|
||||
}
|
||||
|
||||
long DetachCenChildInstanceRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long DetachCenChildInstanceRequest::getResourceOwnerId()const
|
||||
void DetachCenChildInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DetachCenChildInstanceRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string DetachCenChildInstanceRequest::getResourceOwnerAccount()const
|
||||
void DetachCenChildInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DetachCenChildInstanceRequest::getCenId()const
|
||||
@@ -66,7 +66,7 @@ std::string DetachCenChildInstanceRequest::getCenId()const
|
||||
void DetachCenChildInstanceRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string DetachCenChildInstanceRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string DetachCenChildInstanceRequest::getOwnerAccount()const
|
||||
void DetachCenChildInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DetachCenChildInstanceRequest::getCenOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long DetachCenChildInstanceRequest::getCenOwnerId()const
|
||||
void DetachCenChildInstanceRequest::setCenOwnerId(long cenOwnerId)
|
||||
{
|
||||
cenOwnerId_ = cenOwnerId;
|
||||
setParameter("CenOwnerId", std::to_string(cenOwnerId));
|
||||
setCoreParameter("CenOwnerId", std::to_string(cenOwnerId));
|
||||
}
|
||||
|
||||
long DetachCenChildInstanceRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long DetachCenChildInstanceRequest::getOwnerId()const
|
||||
void DetachCenChildInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DetachCenChildInstanceRequest::getChildInstanceType()const
|
||||
@@ -110,7 +110,7 @@ std::string DetachCenChildInstanceRequest::getChildInstanceType()const
|
||||
void DetachCenChildInstanceRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
setCoreParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
long DetachCenChildInstanceRequest::getChildInstanceOwnerId()const
|
||||
@@ -121,7 +121,7 @@ long DetachCenChildInstanceRequest::getChildInstanceOwnerId()const
|
||||
void DetachCenChildInstanceRequest::setChildInstanceOwnerId(long childInstanceOwnerId)
|
||||
{
|
||||
childInstanceOwnerId_ = childInstanceOwnerId;
|
||||
setParameter("ChildInstanceOwnerId", std::to_string(childInstanceOwnerId));
|
||||
setCoreParameter("ChildInstanceOwnerId", std::to_string(childInstanceOwnerId));
|
||||
}
|
||||
|
||||
std::string DetachCenChildInstanceRequest::getChildInstanceRegionId()const
|
||||
@@ -132,6 +132,6 @@ std::string DetachCenChildInstanceRequest::getChildInstanceRegionId()const
|
||||
void DetachCenChildInstanceRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
setCoreParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DetachCenChildInstanceResult::~DetachCenChildInstanceResult()
|
||||
|
||||
void DetachCenChildInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long DisableCenVbrHealthCheckRequest::getResourceOwnerId()const
|
||||
void DisableCenVbrHealthCheckRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DisableCenVbrHealthCheckRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string DisableCenVbrHealthCheckRequest::getResourceOwnerAccount()const
|
||||
void DisableCenVbrHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DisableCenVbrHealthCheckRequest::getCenId()const
|
||||
@@ -55,7 +55,7 @@ std::string DisableCenVbrHealthCheckRequest::getCenId()const
|
||||
void DisableCenVbrHealthCheckRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
long DisableCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long DisableCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const
|
||||
void DisableCenVbrHealthCheckRequest::setVbrInstanceOwnerId(long vbrInstanceOwnerId)
|
||||
{
|
||||
vbrInstanceOwnerId_ = vbrInstanceOwnerId;
|
||||
setParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId));
|
||||
setCoreParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId));
|
||||
}
|
||||
|
||||
std::string DisableCenVbrHealthCheckRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string DisableCenVbrHealthCheckRequest::getOwnerAccount()const
|
||||
void DisableCenVbrHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DisableCenVbrHealthCheckRequest::getVbrInstanceId()const
|
||||
@@ -88,7 +88,7 @@ std::string DisableCenVbrHealthCheckRequest::getVbrInstanceId()const
|
||||
void DisableCenVbrHealthCheckRequest::setVbrInstanceId(const std::string& vbrInstanceId)
|
||||
{
|
||||
vbrInstanceId_ = vbrInstanceId;
|
||||
setParameter("VbrInstanceId", vbrInstanceId);
|
||||
setCoreParameter("VbrInstanceId", vbrInstanceId);
|
||||
}
|
||||
|
||||
long DisableCenVbrHealthCheckRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long DisableCenVbrHealthCheckRequest::getOwnerId()const
|
||||
void DisableCenVbrHealthCheckRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DisableCenVbrHealthCheckRequest::getVbrInstanceRegionId()const
|
||||
@@ -110,6 +110,6 @@ std::string DisableCenVbrHealthCheckRequest::getVbrInstanceRegionId()const
|
||||
void DisableCenVbrHealthCheckRequest::setVbrInstanceRegionId(const std::string& vbrInstanceRegionId)
|
||||
{
|
||||
vbrInstanceRegionId_ = vbrInstanceRegionId;
|
||||
setParameter("VbrInstanceRegionId", vbrInstanceRegionId);
|
||||
setCoreParameter("VbrInstanceRegionId", vbrInstanceRegionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DisableCenVbrHealthCheckResult::~DisableCenVbrHealthCheckResult()
|
||||
|
||||
void DisableCenVbrHealthCheckResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long EnableCenVbrHealthCheckRequest::getResourceOwnerId()const
|
||||
void EnableCenVbrHealthCheckRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string EnableCenVbrHealthCheckRequest::getResourceOwnerAccount()const
|
||||
void EnableCenVbrHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getCenId()const
|
||||
@@ -55,7 +55,7 @@ std::string EnableCenVbrHealthCheckRequest::getCenId()const
|
||||
void EnableCenVbrHealthCheckRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getHealthCheckSourceIp()const
|
||||
@@ -66,7 +66,7 @@ std::string EnableCenVbrHealthCheckRequest::getHealthCheckSourceIp()const
|
||||
void EnableCenVbrHealthCheckRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp)
|
||||
{
|
||||
healthCheckSourceIp_ = healthCheckSourceIp;
|
||||
setParameter("HealthCheckSourceIp", healthCheckSourceIp);
|
||||
setCoreParameter("HealthCheckSourceIp", healthCheckSourceIp);
|
||||
}
|
||||
|
||||
long EnableCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const
|
||||
@@ -77,7 +77,7 @@ long EnableCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const
|
||||
void EnableCenVbrHealthCheckRequest::setVbrInstanceOwnerId(long vbrInstanceOwnerId)
|
||||
{
|
||||
vbrInstanceOwnerId_ = vbrInstanceOwnerId;
|
||||
setParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId));
|
||||
setCoreParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId));
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getOwnerAccount()const
|
||||
@@ -88,7 +88,7 @@ std::string EnableCenVbrHealthCheckRequest::getOwnerAccount()const
|
||||
void EnableCenVbrHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getVbrInstanceId()const
|
||||
@@ -99,7 +99,7 @@ std::string EnableCenVbrHealthCheckRequest::getVbrInstanceId()const
|
||||
void EnableCenVbrHealthCheckRequest::setVbrInstanceId(const std::string& vbrInstanceId)
|
||||
{
|
||||
vbrInstanceId_ = vbrInstanceId;
|
||||
setParameter("VbrInstanceId", vbrInstanceId);
|
||||
setCoreParameter("VbrInstanceId", vbrInstanceId);
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getHealthCheckTargetIp()const
|
||||
@@ -110,7 +110,7 @@ std::string EnableCenVbrHealthCheckRequest::getHealthCheckTargetIp()const
|
||||
void EnableCenVbrHealthCheckRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp)
|
||||
{
|
||||
healthCheckTargetIp_ = healthCheckTargetIp;
|
||||
setParameter("HealthCheckTargetIp", healthCheckTargetIp);
|
||||
setCoreParameter("HealthCheckTargetIp", healthCheckTargetIp);
|
||||
}
|
||||
|
||||
long EnableCenVbrHealthCheckRequest::getOwnerId()const
|
||||
@@ -121,7 +121,7 @@ long EnableCenVbrHealthCheckRequest::getOwnerId()const
|
||||
void EnableCenVbrHealthCheckRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getVbrInstanceRegionId()const
|
||||
@@ -132,6 +132,6 @@ std::string EnableCenVbrHealthCheckRequest::getVbrInstanceRegionId()const
|
||||
void EnableCenVbrHealthCheckRequest::setVbrInstanceRegionId(const std::string& vbrInstanceRegionId)
|
||||
{
|
||||
vbrInstanceRegionId_ = vbrInstanceRegionId;
|
||||
setParameter("VbrInstanceRegionId", vbrInstanceRegionId);
|
||||
setCoreParameter("VbrInstanceRegionId", vbrInstanceRegionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ EnableCenVbrHealthCheckResult::~EnableCenVbrHealthCheckResult()
|
||||
|
||||
void EnableCenVbrHealthCheckResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string ModifyCenAttributeRequest::getProtectionLevel()const
|
||||
void ModifyCenAttributeRequest::setProtectionLevel(const std::string& protectionLevel)
|
||||
{
|
||||
protectionLevel_ = protectionLevel;
|
||||
setParameter("ProtectionLevel", protectionLevel);
|
||||
setCoreParameter("ProtectionLevel", protectionLevel);
|
||||
}
|
||||
|
||||
long ModifyCenAttributeRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long ModifyCenAttributeRequest::getResourceOwnerId()const
|
||||
void ModifyCenAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyCenAttributeRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string ModifyCenAttributeRequest::getResourceOwnerAccount()const
|
||||
void ModifyCenAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyCenAttributeRequest::getCenId()const
|
||||
@@ -66,7 +66,7 @@ std::string ModifyCenAttributeRequest::getCenId()const
|
||||
void ModifyCenAttributeRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string ModifyCenAttributeRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string ModifyCenAttributeRequest::getOwnerAccount()const
|
||||
void ModifyCenAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyCenAttributeRequest::getName()const
|
||||
@@ -88,7 +88,7 @@ std::string ModifyCenAttributeRequest::getName()const
|
||||
void ModifyCenAttributeRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string ModifyCenAttributeRequest::getDescription()const
|
||||
@@ -99,7 +99,7 @@ std::string ModifyCenAttributeRequest::getDescription()const
|
||||
void ModifyCenAttributeRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long ModifyCenAttributeRequest::getOwnerId()const
|
||||
@@ -110,6 +110,6 @@ long ModifyCenAttributeRequest::getOwnerId()const
|
||||
void ModifyCenAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ModifyCenAttributeResult::~ModifyCenAttributeResult()
|
||||
|
||||
void ModifyCenAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long ModifyCenBandwidthPackageAttributeRequest::getResourceOwnerId()const
|
||||
void ModifyCenBandwidthPackageAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageAttributeRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string ModifyCenBandwidthPackageAttributeRequest::getResourceOwnerAccount()
|
||||
void ModifyCenBandwidthPackageAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageAttributeRequest::getCenBandwidthPackageId()const
|
||||
@@ -55,7 +55,7 @@ std::string ModifyCenBandwidthPackageAttributeRequest::getCenBandwidthPackageId(
|
||||
void ModifyCenBandwidthPackageAttributeRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId)
|
||||
{
|
||||
cenBandwidthPackageId_ = cenBandwidthPackageId;
|
||||
setParameter("CenBandwidthPackageId", cenBandwidthPackageId);
|
||||
setCoreParameter("CenBandwidthPackageId", cenBandwidthPackageId);
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageAttributeRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string ModifyCenBandwidthPackageAttributeRequest::getOwnerAccount()const
|
||||
void ModifyCenBandwidthPackageAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageAttributeRequest::getName()const
|
||||
@@ -77,7 +77,7 @@ std::string ModifyCenBandwidthPackageAttributeRequest::getName()const
|
||||
void ModifyCenBandwidthPackageAttributeRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageAttributeRequest::getDescription()const
|
||||
@@ -88,7 +88,7 @@ std::string ModifyCenBandwidthPackageAttributeRequest::getDescription()const
|
||||
void ModifyCenBandwidthPackageAttributeRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long ModifyCenBandwidthPackageAttributeRequest::getOwnerId()const
|
||||
@@ -99,6 +99,6 @@ long ModifyCenBandwidthPackageAttributeRequest::getOwnerId()const
|
||||
void ModifyCenBandwidthPackageAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ModifyCenBandwidthPackageAttributeResult::~ModifyCenBandwidthPackageAttributeRes
|
||||
|
||||
void ModifyCenBandwidthPackageAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long ModifyCenBandwidthPackageSpecRequest::getResourceOwnerId()const
|
||||
void ModifyCenBandwidthPackageSpecRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageSpecRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string ModifyCenBandwidthPackageSpecRequest::getResourceOwnerAccount()const
|
||||
void ModifyCenBandwidthPackageSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int ModifyCenBandwidthPackageSpecRequest::getBandwidth()const
|
||||
@@ -55,7 +55,7 @@ int ModifyCenBandwidthPackageSpecRequest::getBandwidth()const
|
||||
void ModifyCenBandwidthPackageSpecRequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
setCoreParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageSpecRequest::getCenBandwidthPackageId()const
|
||||
@@ -66,7 +66,7 @@ std::string ModifyCenBandwidthPackageSpecRequest::getCenBandwidthPackageId()cons
|
||||
void ModifyCenBandwidthPackageSpecRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId)
|
||||
{
|
||||
cenBandwidthPackageId_ = cenBandwidthPackageId;
|
||||
setParameter("CenBandwidthPackageId", cenBandwidthPackageId);
|
||||
setCoreParameter("CenBandwidthPackageId", cenBandwidthPackageId);
|
||||
}
|
||||
|
||||
std::string ModifyCenBandwidthPackageSpecRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string ModifyCenBandwidthPackageSpecRequest::getOwnerAccount()const
|
||||
void ModifyCenBandwidthPackageSpecRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyCenBandwidthPackageSpecRequest::getOwnerId()const
|
||||
@@ -88,6 +88,6 @@ long ModifyCenBandwidthPackageSpecRequest::getOwnerId()const
|
||||
void ModifyCenBandwidthPackageSpecRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ModifyCenBandwidthPackageSpecResult::~ModifyCenBandwidthPackageSpecResult()
|
||||
|
||||
void ModifyCenBandwidthPackageSpecResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
380
cbn/src/model/ModifyCenRouteMapRequest.cc
Normal file
380
cbn/src/model/ModifyCenRouteMapRequest.cc
Normal file
@@ -0,0 +1,380 @@
|
||||
/*
|
||||
* 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/ModifyCenRouteMapRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::ModifyCenRouteMapRequest;
|
||||
|
||||
ModifyCenRouteMapRequest::ModifyCenRouteMapRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "ModifyCenRouteMap")
|
||||
{}
|
||||
|
||||
ModifyCenRouteMapRequest::~ModifyCenRouteMapRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> ModifyCenRouteMapRequest::getRouteTypes()const
|
||||
{
|
||||
return routeTypes_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setRouteTypes(const std::vector<std::string>& routeTypes)
|
||||
{
|
||||
routeTypes_ = routeTypes;
|
||||
for(int i = 0; i!= routeTypes.size(); i++)
|
||||
setCoreParameter("RouteTypes."+ std::to_string(i), routeTypes.at(i));
|
||||
}
|
||||
|
||||
long ModifyCenRouteMapRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyCenRouteMapRequest::getCidrMatchMode()const
|
||||
{
|
||||
return cidrMatchMode_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setCidrMatchMode(const std::string& cidrMatchMode)
|
||||
{
|
||||
cidrMatchMode_ = cidrMatchMode;
|
||||
setCoreParameter("CidrMatchMode", cidrMatchMode);
|
||||
}
|
||||
|
||||
std::string ModifyCenRouteMapRequest::getCommunityMatchMode()const
|
||||
{
|
||||
return communityMatchMode_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setCommunityMatchMode(const std::string& communityMatchMode)
|
||||
{
|
||||
communityMatchMode_ = communityMatchMode;
|
||||
setCoreParameter("CommunityMatchMode", communityMatchMode);
|
||||
}
|
||||
|
||||
std::string ModifyCenRouteMapRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string ModifyCenRouteMapRequest::getMapResult()const
|
||||
{
|
||||
return mapResult_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setMapResult(const std::string& mapResult)
|
||||
{
|
||||
mapResult_ = mapResult;
|
||||
setCoreParameter("MapResult", mapResult);
|
||||
}
|
||||
|
||||
int ModifyCenRouteMapRequest::getAsPathLength()const
|
||||
{
|
||||
return asPathLength_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setAsPathLength(int asPathLength)
|
||||
{
|
||||
asPathLength_ = asPathLength;
|
||||
setCoreParameter("AsPathLength", std::to_string(asPathLength));
|
||||
}
|
||||
|
||||
std::string ModifyCenRouteMapRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
bool ModifyCenRouteMapRequest::getSourceInstanceIdsReverseMatch()const
|
||||
{
|
||||
return sourceInstanceIdsReverseMatch_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setSourceInstanceIdsReverseMatch(bool sourceInstanceIdsReverseMatch)
|
||||
{
|
||||
sourceInstanceIdsReverseMatch_ = sourceInstanceIdsReverseMatch;
|
||||
setCoreParameter("SourceInstanceIdsReverseMatch", sourceInstanceIdsReverseMatch ? "true" : "false");
|
||||
}
|
||||
|
||||
int ModifyCenRouteMapRequest::getNextPriority()const
|
||||
{
|
||||
return nextPriority_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setNextPriority(int nextPriority)
|
||||
{
|
||||
nextPriority_ = nextPriority;
|
||||
setCoreParameter("NextPriority", std::to_string(nextPriority));
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyCenRouteMapRequest::getDestinationCidrBlocks()const
|
||||
{
|
||||
return destinationCidrBlocks_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setDestinationCidrBlocks(const std::vector<std::string>& destinationCidrBlocks)
|
||||
{
|
||||
destinationCidrBlocks_ = destinationCidrBlocks;
|
||||
for(int i = 0; i!= destinationCidrBlocks.size(); i++)
|
||||
setCoreParameter("DestinationCidrBlocks."+ std::to_string(i), destinationCidrBlocks.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyCenRouteMapRequest::getDestinationRouteTableIds()const
|
||||
{
|
||||
return destinationRouteTableIds_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setDestinationRouteTableIds(const std::vector<std::string>& destinationRouteTableIds)
|
||||
{
|
||||
destinationRouteTableIds_ = destinationRouteTableIds;
|
||||
for(int i = 0; i!= destinationRouteTableIds.size(); i++)
|
||||
setCoreParameter("DestinationRouteTableIds."+ std::to_string(i), destinationRouteTableIds.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyCenRouteMapRequest::getSourceInstanceIds()const
|
||||
{
|
||||
return sourceInstanceIds_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setSourceInstanceIds(const std::vector<std::string>& sourceInstanceIds)
|
||||
{
|
||||
sourceInstanceIds_ = sourceInstanceIds;
|
||||
for(int i = 0; i!= sourceInstanceIds.size(); i++)
|
||||
setCoreParameter("SourceInstanceIds."+ std::to_string(i), sourceInstanceIds.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyCenRouteMapRequest::getSourceRegionIds()const
|
||||
{
|
||||
return sourceRegionIds_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setSourceRegionIds(const std::vector<std::string>& sourceRegionIds)
|
||||
{
|
||||
sourceRegionIds_ = sourceRegionIds;
|
||||
for(int i = 0; i!= sourceRegionIds.size(); i++)
|
||||
setCoreParameter("SourceRegionIds."+ std::to_string(i), sourceRegionIds.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyCenRouteMapRequest::getDestinationInstanceIds()const
|
||||
{
|
||||
return destinationInstanceIds_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setDestinationInstanceIds(const std::vector<std::string>& destinationInstanceIds)
|
||||
{
|
||||
destinationInstanceIds_ = destinationInstanceIds;
|
||||
for(int i = 0; i!= destinationInstanceIds.size(); i++)
|
||||
setCoreParameter("DestinationInstanceIds."+ std::to_string(i), destinationInstanceIds.at(i));
|
||||
}
|
||||
|
||||
std::vector<int> ModifyCenRouteMapRequest::getMatchAsns()const
|
||||
{
|
||||
return matchAsns_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setMatchAsns(const std::vector<int>& matchAsns)
|
||||
{
|
||||
matchAsns_ = matchAsns;
|
||||
for(int i = 0; i!= matchAsns.size(); i++)
|
||||
setCoreParameter("MatchAsns."+ std::to_string(i), std::to_string(matchAsns.at(i)));
|
||||
}
|
||||
|
||||
std::string ModifyCenRouteMapRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyCenRouteMapRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int ModifyCenRouteMapRequest::getPreference()const
|
||||
{
|
||||
return preference_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setPreference(int preference)
|
||||
{
|
||||
preference_ = preference;
|
||||
setCoreParameter("Preference", std::to_string(preference));
|
||||
}
|
||||
|
||||
bool ModifyCenRouteMapRequest::getDestinationInstanceIdsReverseMatch()const
|
||||
{
|
||||
return destinationInstanceIdsReverseMatch_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setDestinationInstanceIdsReverseMatch(bool destinationInstanceIdsReverseMatch)
|
||||
{
|
||||
destinationInstanceIdsReverseMatch_ = destinationInstanceIdsReverseMatch;
|
||||
setCoreParameter("DestinationInstanceIdsReverseMatch", destinationInstanceIdsReverseMatch ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyCenRouteMapRequest::getRouteMapId()const
|
||||
{
|
||||
return routeMapId_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setRouteMapId(const std::string& routeMapId)
|
||||
{
|
||||
routeMapId_ = routeMapId;
|
||||
setCoreParameter("RouteMapId", routeMapId);
|
||||
}
|
||||
|
||||
long ModifyCenRouteMapRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int ModifyCenRouteMapRequest::getPriority()const
|
||||
{
|
||||
return priority_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setPriority(int priority)
|
||||
{
|
||||
priority_ = priority;
|
||||
setCoreParameter("Priority", std::to_string(priority));
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyCenRouteMapRequest::getDestinationChildInstanceTypes()const
|
||||
{
|
||||
return destinationChildInstanceTypes_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setDestinationChildInstanceTypes(const std::vector<std::string>& destinationChildInstanceTypes)
|
||||
{
|
||||
destinationChildInstanceTypes_ = destinationChildInstanceTypes;
|
||||
for(int i = 0; i!= destinationChildInstanceTypes.size(); i++)
|
||||
setCoreParameter("DestinationChildInstanceTypes."+ std::to_string(i), destinationChildInstanceTypes.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyCenRouteMapRequest::getSourceRouteTableIds()const
|
||||
{
|
||||
return sourceRouteTableIds_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setSourceRouteTableIds(const std::vector<std::string>& sourceRouteTableIds)
|
||||
{
|
||||
sourceRouteTableIds_ = sourceRouteTableIds;
|
||||
for(int i = 0; i!= sourceRouteTableIds.size(); i++)
|
||||
setCoreParameter("SourceRouteTableIds."+ std::to_string(i), sourceRouteTableIds.at(i));
|
||||
}
|
||||
|
||||
std::string ModifyCenRouteMapRequest::getAsPathMatchMode()const
|
||||
{
|
||||
return asPathMatchMode_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setAsPathMatchMode(const std::string& asPathMatchMode)
|
||||
{
|
||||
asPathMatchMode_ = asPathMatchMode;
|
||||
setCoreParameter("AsPathMatchMode", asPathMatchMode);
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyCenRouteMapRequest::getSourceChildInstanceTypes()const
|
||||
{
|
||||
return sourceChildInstanceTypes_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setSourceChildInstanceTypes(const std::vector<std::string>& sourceChildInstanceTypes)
|
||||
{
|
||||
sourceChildInstanceTypes_ = sourceChildInstanceTypes;
|
||||
for(int i = 0; i!= sourceChildInstanceTypes.size(); i++)
|
||||
setCoreParameter("SourceChildInstanceTypes."+ std::to_string(i), sourceChildInstanceTypes.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyCenRouteMapRequest::getMatchCommunitySet()const
|
||||
{
|
||||
return matchCommunitySet_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setMatchCommunitySet(const std::vector<std::string>& matchCommunitySet)
|
||||
{
|
||||
matchCommunitySet_ = matchCommunitySet;
|
||||
for(int i = 0; i!= matchCommunitySet.size(); i++)
|
||||
setCoreParameter("MatchCommunitySet."+ std::to_string(i), matchCommunitySet.at(i));
|
||||
}
|
||||
|
||||
std::string ModifyCenRouteMapRequest::getCommunityOperateMode()const
|
||||
{
|
||||
return communityOperateMode_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setCommunityOperateMode(const std::string& communityOperateMode)
|
||||
{
|
||||
communityOperateMode_ = communityOperateMode;
|
||||
setCoreParameter("CommunityOperateMode", communityOperateMode);
|
||||
}
|
||||
|
||||
std::string ModifyCenRouteMapRequest::getCenRegionId()const
|
||||
{
|
||||
return cenRegionId_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setCenRegionId(const std::string& cenRegionId)
|
||||
{
|
||||
cenRegionId_ = cenRegionId;
|
||||
setCoreParameter("CenRegionId", cenRegionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyCenRouteMapRequest::getOperateCommunitySet()const
|
||||
{
|
||||
return operateCommunitySet_;
|
||||
}
|
||||
|
||||
void ModifyCenRouteMapRequest::setOperateCommunitySet(const std::vector<std::string>& operateCommunitySet)
|
||||
{
|
||||
operateCommunitySet_ = operateCommunitySet;
|
||||
for(int i = 0; i!= operateCommunitySet.size(); i++)
|
||||
setCoreParameter("OperateCommunitySet."+ std::to_string(i), operateCommunitySet.at(i));
|
||||
}
|
||||
|
||||
48
cbn/src/model/ModifyCenRouteMapResult.cc
Normal file
48
cbn/src/model/ModifyCenRouteMapResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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/ModifyCenRouteMapResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
ModifyCenRouteMapResult::ModifyCenRouteMapResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyCenRouteMapResult::ModifyCenRouteMapResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyCenRouteMapResult::~ModifyCenRouteMapResult()
|
||||
{}
|
||||
|
||||
void ModifyCenRouteMapResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
137
cbn/src/model/ModifyFlowLogAttributeRequest.cc
Normal file
137
cbn/src/model/ModifyFlowLogAttributeRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* 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/ModifyFlowLogAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::ModifyFlowLogAttributeRequest;
|
||||
|
||||
ModifyFlowLogAttributeRequest::ModifyFlowLogAttributeRequest() :
|
||||
RpcServiceRequest("cbn", "2017-09-12", "ModifyFlowLogAttribute")
|
||||
{}
|
||||
|
||||
ModifyFlowLogAttributeRequest::~ModifyFlowLogAttributeRequest()
|
||||
{}
|
||||
|
||||
long ModifyFlowLogAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyFlowLogAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyFlowLogAttributeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyFlowLogAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyFlowLogAttributeRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ModifyFlowLogAttributeRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string ModifyFlowLogAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyFlowLogAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyFlowLogAttributeRequest::getCenId()const
|
||||
{
|
||||
return cenId_;
|
||||
}
|
||||
|
||||
void ModifyFlowLogAttributeRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string ModifyFlowLogAttributeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyFlowLogAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyFlowLogAttributeRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void ModifyFlowLogAttributeRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
long ModifyFlowLogAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyFlowLogAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyFlowLogAttributeRequest::getFlowLogId()const
|
||||
{
|
||||
return flowLogId_;
|
||||
}
|
||||
|
||||
void ModifyFlowLogAttributeRequest::setFlowLogId(const std::string& flowLogId)
|
||||
{
|
||||
flowLogId_ = flowLogId;
|
||||
setCoreParameter("FlowLogId", flowLogId);
|
||||
}
|
||||
|
||||
std::string ModifyFlowLogAttributeRequest::getFlowLogName()const
|
||||
{
|
||||
return flowLogName_;
|
||||
}
|
||||
|
||||
void ModifyFlowLogAttributeRequest::setFlowLogName(const std::string& flowLogName)
|
||||
{
|
||||
flowLogName_ = flowLogName;
|
||||
setCoreParameter("FlowLogName", flowLogName);
|
||||
}
|
||||
|
||||
55
cbn/src/model/ModifyFlowLogAttributeResult.cc
Normal file
55
cbn/src/model/ModifyFlowLogAttributeResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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/ModifyFlowLogAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
ModifyFlowLogAttributeResult::ModifyFlowLogAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyFlowLogAttributeResult::ModifyFlowLogAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyFlowLogAttributeResult::~ModifyFlowLogAttributeResult()
|
||||
{}
|
||||
|
||||
void ModifyFlowLogAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyFlowLogAttributeResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string PublishRouteEntriesRequest::getChildInstanceId()const
|
||||
void PublishRouteEntriesRequest::setChildInstanceId(const std::string& childInstanceId)
|
||||
{
|
||||
childInstanceId_ = childInstanceId;
|
||||
setParameter("ChildInstanceId", childInstanceId);
|
||||
setCoreParameter("ChildInstanceId", childInstanceId);
|
||||
}
|
||||
|
||||
long PublishRouteEntriesRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long PublishRouteEntriesRequest::getResourceOwnerId()const
|
||||
void PublishRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string PublishRouteEntriesRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string PublishRouteEntriesRequest::getResourceOwnerAccount()const
|
||||
void PublishRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string PublishRouteEntriesRequest::getCenId()const
|
||||
@@ -66,7 +66,7 @@ std::string PublishRouteEntriesRequest::getCenId()const
|
||||
void PublishRouteEntriesRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string PublishRouteEntriesRequest::getDestinationCidrBlock()const
|
||||
@@ -77,7 +77,7 @@ std::string PublishRouteEntriesRequest::getDestinationCidrBlock()const
|
||||
void PublishRouteEntriesRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock)
|
||||
{
|
||||
destinationCidrBlock_ = destinationCidrBlock;
|
||||
setParameter("DestinationCidrBlock", destinationCidrBlock);
|
||||
setCoreParameter("DestinationCidrBlock", destinationCidrBlock);
|
||||
}
|
||||
|
||||
std::string PublishRouteEntriesRequest::getChildInstanceType()const
|
||||
@@ -88,7 +88,7 @@ std::string PublishRouteEntriesRequest::getChildInstanceType()const
|
||||
void PublishRouteEntriesRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
setCoreParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
std::string PublishRouteEntriesRequest::getChildInstanceRouteTableId()const
|
||||
@@ -99,7 +99,7 @@ std::string PublishRouteEntriesRequest::getChildInstanceRouteTableId()const
|
||||
void PublishRouteEntriesRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId)
|
||||
{
|
||||
childInstanceRouteTableId_ = childInstanceRouteTableId;
|
||||
setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId);
|
||||
setCoreParameter("ChildInstanceRouteTableId", childInstanceRouteTableId);
|
||||
}
|
||||
|
||||
std::string PublishRouteEntriesRequest::getChildInstanceRegionId()const
|
||||
@@ -110,6 +110,6 @@ std::string PublishRouteEntriesRequest::getChildInstanceRegionId()const
|
||||
void PublishRouteEntriesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
setCoreParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ PublishRouteEntriesResult::~PublishRouteEntriesResult()
|
||||
|
||||
void PublishRouteEntriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,19 @@ long ResolveAndRouteServiceInCenRequest::getResourceOwnerId()const
|
||||
void ResolveAndRouteServiceInCenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> ResolveAndRouteServiceInCenRequest::getAccessRegionIds()const
|
||||
{
|
||||
return accessRegionIds_;
|
||||
}
|
||||
|
||||
void ResolveAndRouteServiceInCenRequest::setAccessRegionIds(const std::vector<std::string>& accessRegionIds)
|
||||
{
|
||||
accessRegionIds_ = accessRegionIds;
|
||||
for(int i = 0; i!= accessRegionIds.size(); i++)
|
||||
setCoreParameter("AccessRegionIds."+ std::to_string(i), accessRegionIds.at(i));
|
||||
}
|
||||
|
||||
std::string ResolveAndRouteServiceInCenRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +56,7 @@ std::string ResolveAndRouteServiceInCenRequest::getResourceOwnerAccount()const
|
||||
void ResolveAndRouteServiceInCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ResolveAndRouteServiceInCenRequest::getClientToken()const
|
||||
@@ -55,7 +67,7 @@ std::string ResolveAndRouteServiceInCenRequest::getClientToken()const
|
||||
void ResolveAndRouteServiceInCenRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string ResolveAndRouteServiceInCenRequest::getCenId()const
|
||||
@@ -66,7 +78,7 @@ std::string ResolveAndRouteServiceInCenRequest::getCenId()const
|
||||
void ResolveAndRouteServiceInCenRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string ResolveAndRouteServiceInCenRequest::getOwnerAccount()const
|
||||
@@ -77,7 +89,7 @@ std::string ResolveAndRouteServiceInCenRequest::getOwnerAccount()const
|
||||
void ResolveAndRouteServiceInCenRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ResolveAndRouteServiceInCenRequest::getHost()const
|
||||
@@ -88,7 +100,7 @@ std::string ResolveAndRouteServiceInCenRequest::getHost()const
|
||||
void ResolveAndRouteServiceInCenRequest::setHost(const std::string& host)
|
||||
{
|
||||
host_ = host;
|
||||
setParameter("Host", host);
|
||||
setCoreParameter("Host", host);
|
||||
}
|
||||
|
||||
std::string ResolveAndRouteServiceInCenRequest::getHostRegionId()const
|
||||
@@ -99,18 +111,7 @@ std::string ResolveAndRouteServiceInCenRequest::getHostRegionId()const
|
||||
void ResolveAndRouteServiceInCenRequest::setHostRegionId(const std::string& hostRegionId)
|
||||
{
|
||||
hostRegionId_ = hostRegionId;
|
||||
setParameter("HostRegionId", hostRegionId);
|
||||
}
|
||||
|
||||
std::string ResolveAndRouteServiceInCenRequest::getAccessRegionId()const
|
||||
{
|
||||
return accessRegionId_;
|
||||
}
|
||||
|
||||
void ResolveAndRouteServiceInCenRequest::setAccessRegionId(const std::string& accessRegionId)
|
||||
{
|
||||
accessRegionId_ = accessRegionId;
|
||||
setParameter("AccessRegionId", accessRegionId);
|
||||
setCoreParameter("HostRegionId", hostRegionId);
|
||||
}
|
||||
|
||||
long ResolveAndRouteServiceInCenRequest::getOwnerId()const
|
||||
@@ -121,7 +122,7 @@ long ResolveAndRouteServiceInCenRequest::getOwnerId()const
|
||||
void ResolveAndRouteServiceInCenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long ResolveAndRouteServiceInCenRequest::getUpdateInterval()const
|
||||
@@ -132,6 +133,6 @@ long ResolveAndRouteServiceInCenRequest::getUpdateInterval()const
|
||||
void ResolveAndRouteServiceInCenRequest::setUpdateInterval(long updateInterval)
|
||||
{
|
||||
updateInterval_ = updateInterval;
|
||||
setParameter("UpdateInterval", std::to_string(updateInterval));
|
||||
setCoreParameter("UpdateInterval", std::to_string(updateInterval));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ResolveAndRouteServiceInCenResult::~ResolveAndRouteServiceInCenResult()
|
||||
|
||||
void ResolveAndRouteServiceInCenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long RoutePrivateZoneInCenToVpcRequest::getResourceOwnerId()const
|
||||
void RoutePrivateZoneInCenToVpcRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string RoutePrivateZoneInCenToVpcRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string RoutePrivateZoneInCenToVpcRequest::getResourceOwnerAccount()const
|
||||
void RoutePrivateZoneInCenToVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string RoutePrivateZoneInCenToVpcRequest::getCenId()const
|
||||
@@ -55,7 +55,7 @@ std::string RoutePrivateZoneInCenToVpcRequest::getCenId()const
|
||||
void RoutePrivateZoneInCenToVpcRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string RoutePrivateZoneInCenToVpcRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string RoutePrivateZoneInCenToVpcRequest::getOwnerAccount()const
|
||||
void RoutePrivateZoneInCenToVpcRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string RoutePrivateZoneInCenToVpcRequest::getHostRegionId()const
|
||||
@@ -77,7 +77,7 @@ std::string RoutePrivateZoneInCenToVpcRequest::getHostRegionId()const
|
||||
void RoutePrivateZoneInCenToVpcRequest::setHostRegionId(const std::string& hostRegionId)
|
||||
{
|
||||
hostRegionId_ = hostRegionId;
|
||||
setParameter("HostRegionId", hostRegionId);
|
||||
setCoreParameter("HostRegionId", hostRegionId);
|
||||
}
|
||||
|
||||
std::string RoutePrivateZoneInCenToVpcRequest::getAccessRegionId()const
|
||||
@@ -88,7 +88,7 @@ std::string RoutePrivateZoneInCenToVpcRequest::getAccessRegionId()const
|
||||
void RoutePrivateZoneInCenToVpcRequest::setAccessRegionId(const std::string& accessRegionId)
|
||||
{
|
||||
accessRegionId_ = accessRegionId;
|
||||
setParameter("AccessRegionId", accessRegionId);
|
||||
setCoreParameter("AccessRegionId", accessRegionId);
|
||||
}
|
||||
|
||||
long RoutePrivateZoneInCenToVpcRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long RoutePrivateZoneInCenToVpcRequest::getOwnerId()const
|
||||
void RoutePrivateZoneInCenToVpcRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string RoutePrivateZoneInCenToVpcRequest::getHostVpcId()const
|
||||
@@ -110,6 +110,6 @@ std::string RoutePrivateZoneInCenToVpcRequest::getHostVpcId()const
|
||||
void RoutePrivateZoneInCenToVpcRequest::setHostVpcId(const std::string& hostVpcId)
|
||||
{
|
||||
hostVpcId_ = hostVpcId;
|
||||
setParameter("HostVpcId", hostVpcId);
|
||||
setCoreParameter("HostVpcId", hostVpcId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ RoutePrivateZoneInCenToVpcResult::~RoutePrivateZoneInCenToVpcResult()
|
||||
|
||||
void RoutePrivateZoneInCenToVpcResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string SetCenInterRegionBandwidthLimitRequest::getLocalRegionId()const
|
||||
void SetCenInterRegionBandwidthLimitRequest::setLocalRegionId(const std::string& localRegionId)
|
||||
{
|
||||
localRegionId_ = localRegionId;
|
||||
setParameter("LocalRegionId", localRegionId);
|
||||
setCoreParameter("LocalRegionId", localRegionId);
|
||||
}
|
||||
|
||||
long SetCenInterRegionBandwidthLimitRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long SetCenInterRegionBandwidthLimitRequest::getResourceOwnerId()const
|
||||
void SetCenInterRegionBandwidthLimitRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SetCenInterRegionBandwidthLimitRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string SetCenInterRegionBandwidthLimitRequest::getResourceOwnerAccount()con
|
||||
void SetCenInterRegionBandwidthLimitRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SetCenInterRegionBandwidthLimitRequest::getCenId()const
|
||||
@@ -66,7 +66,7 @@ std::string SetCenInterRegionBandwidthLimitRequest::getCenId()const
|
||||
void SetCenInterRegionBandwidthLimitRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string SetCenInterRegionBandwidthLimitRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string SetCenInterRegionBandwidthLimitRequest::getOwnerAccount()const
|
||||
void SetCenInterRegionBandwidthLimitRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string SetCenInterRegionBandwidthLimitRequest::getOppositeRegionId()const
|
||||
@@ -88,7 +88,7 @@ std::string SetCenInterRegionBandwidthLimitRequest::getOppositeRegionId()const
|
||||
void SetCenInterRegionBandwidthLimitRequest::setOppositeRegionId(const std::string& oppositeRegionId)
|
||||
{
|
||||
oppositeRegionId_ = oppositeRegionId;
|
||||
setParameter("OppositeRegionId", oppositeRegionId);
|
||||
setCoreParameter("OppositeRegionId", oppositeRegionId);
|
||||
}
|
||||
|
||||
long SetCenInterRegionBandwidthLimitRequest::getBandwidthLimit()const
|
||||
@@ -99,7 +99,7 @@ long SetCenInterRegionBandwidthLimitRequest::getBandwidthLimit()const
|
||||
void SetCenInterRegionBandwidthLimitRequest::setBandwidthLimit(long bandwidthLimit)
|
||||
{
|
||||
bandwidthLimit_ = bandwidthLimit;
|
||||
setParameter("BandwidthLimit", std::to_string(bandwidthLimit));
|
||||
setCoreParameter("BandwidthLimit", std::to_string(bandwidthLimit));
|
||||
}
|
||||
|
||||
long SetCenInterRegionBandwidthLimitRequest::getOwnerId()const
|
||||
@@ -110,6 +110,6 @@ long SetCenInterRegionBandwidthLimitRequest::getOwnerId()const
|
||||
void SetCenInterRegionBandwidthLimitRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ SetCenInterRegionBandwidthLimitResult::~SetCenInterRegionBandwidthLimitResult()
|
||||
|
||||
void SetCenInterRegionBandwidthLimitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long UnassociateCenBandwidthPackageRequest::getResourceOwnerId()const
|
||||
void UnassociateCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UnassociateCenBandwidthPackageRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string UnassociateCenBandwidthPackageRequest::getResourceOwnerAccount()cons
|
||||
void UnassociateCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UnassociateCenBandwidthPackageRequest::getCenId()const
|
||||
@@ -55,7 +55,7 @@ std::string UnassociateCenBandwidthPackageRequest::getCenId()const
|
||||
void UnassociateCenBandwidthPackageRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string UnassociateCenBandwidthPackageRequest::getCenBandwidthPackageId()const
|
||||
@@ -66,7 +66,7 @@ std::string UnassociateCenBandwidthPackageRequest::getCenBandwidthPackageId()con
|
||||
void UnassociateCenBandwidthPackageRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId)
|
||||
{
|
||||
cenBandwidthPackageId_ = cenBandwidthPackageId;
|
||||
setParameter("CenBandwidthPackageId", cenBandwidthPackageId);
|
||||
setCoreParameter("CenBandwidthPackageId", cenBandwidthPackageId);
|
||||
}
|
||||
|
||||
std::string UnassociateCenBandwidthPackageRequest::getOwnerAccount()const
|
||||
@@ -77,7 +77,7 @@ std::string UnassociateCenBandwidthPackageRequest::getOwnerAccount()const
|
||||
void UnassociateCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long UnassociateCenBandwidthPackageRequest::getOwnerId()const
|
||||
@@ -88,6 +88,6 @@ long UnassociateCenBandwidthPackageRequest::getOwnerId()const
|
||||
void UnassociateCenBandwidthPackageRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ UnassociateCenBandwidthPackageResult::~UnassociateCenBandwidthPackageResult()
|
||||
|
||||
void UnassociateCenBandwidthPackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long UnroutePrivateZoneInCenToVpcRequest::getResourceOwnerId()const
|
||||
void UnroutePrivateZoneInCenToVpcRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UnroutePrivateZoneInCenToVpcRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string UnroutePrivateZoneInCenToVpcRequest::getResourceOwnerAccount()const
|
||||
void UnroutePrivateZoneInCenToVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UnroutePrivateZoneInCenToVpcRequest::getCenId()const
|
||||
@@ -55,7 +55,7 @@ std::string UnroutePrivateZoneInCenToVpcRequest::getCenId()const
|
||||
void UnroutePrivateZoneInCenToVpcRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string UnroutePrivateZoneInCenToVpcRequest::getOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string UnroutePrivateZoneInCenToVpcRequest::getOwnerAccount()const
|
||||
void UnroutePrivateZoneInCenToVpcRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string UnroutePrivateZoneInCenToVpcRequest::getAccessRegionId()const
|
||||
@@ -77,7 +77,7 @@ std::string UnroutePrivateZoneInCenToVpcRequest::getAccessRegionId()const
|
||||
void UnroutePrivateZoneInCenToVpcRequest::setAccessRegionId(const std::string& accessRegionId)
|
||||
{
|
||||
accessRegionId_ = accessRegionId;
|
||||
setParameter("AccessRegionId", accessRegionId);
|
||||
setCoreParameter("AccessRegionId", accessRegionId);
|
||||
}
|
||||
|
||||
long UnroutePrivateZoneInCenToVpcRequest::getOwnerId()const
|
||||
@@ -88,6 +88,6 @@ long UnroutePrivateZoneInCenToVpcRequest::getOwnerId()const
|
||||
void UnroutePrivateZoneInCenToVpcRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ UnroutePrivateZoneInCenToVpcResult::~UnroutePrivateZoneInCenToVpcResult()
|
||||
|
||||
void UnroutePrivateZoneInCenToVpcResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long UntagResourcesRequest::getResourceOwnerId()const
|
||||
void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getResourceId()const
|
||||
@@ -45,7 +45,7 @@ void UntagResourcesRequest::setResourceId(const std::vector<std::string>& resour
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int i = 0; i!= resourceId.size(); i++)
|
||||
setParameter("ResourceId."+ std::to_string(i), resourceId.at(i));
|
||||
setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i));
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getResourceOwnerAccount()const
|
||||
@@ -56,7 +56,7 @@ std::string UntagResourcesRequest::getResourceOwnerAccount()const
|
||||
void UntagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getOwnerAccount()const
|
||||
@@ -67,7 +67,7 @@ std::string UntagResourcesRequest::getOwnerAccount()const
|
||||
void UntagResourcesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long UntagResourcesRequest::getTagOwnerUid()const
|
||||
@@ -78,7 +78,7 @@ long UntagResourcesRequest::getTagOwnerUid()const
|
||||
void UntagResourcesRequest::setTagOwnerUid(long tagOwnerUid)
|
||||
{
|
||||
tagOwnerUid_ = tagOwnerUid;
|
||||
setParameter("TagOwnerUid", std::to_string(tagOwnerUid));
|
||||
setCoreParameter("TagOwnerUid", std::to_string(tagOwnerUid));
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getTagOwnerBid()const
|
||||
@@ -89,7 +89,7 @@ std::string UntagResourcesRequest::getTagOwnerBid()const
|
||||
void UntagResourcesRequest::setTagOwnerBid(const std::string& tagOwnerBid)
|
||||
{
|
||||
tagOwnerBid_ = tagOwnerBid;
|
||||
setParameter("TagOwnerBid", tagOwnerBid);
|
||||
setCoreParameter("TagOwnerBid", tagOwnerBid);
|
||||
}
|
||||
|
||||
long UntagResourcesRequest::getOwnerId()const
|
||||
@@ -100,7 +100,7 @@ long UntagResourcesRequest::getOwnerId()const
|
||||
void UntagResourcesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getTagKey()const
|
||||
@@ -112,7 +112,7 @@ void UntagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
for(int i = 0; i!= tagKey.size(); i++)
|
||||
setParameter("TagKey."+ std::to_string(i), tagKey.at(i));
|
||||
setCoreParameter("TagKey."+ std::to_string(i), tagKey.at(i));
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getResourceType()const
|
||||
@@ -123,6 +123,6 @@ std::string UntagResourcesRequest::getResourceType()const
|
||||
void UntagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
setCoreParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ UntagResourcesResult::~UntagResourcesResult()
|
||||
|
||||
void UntagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceId()const
|
||||
void WithdrawPublishedRouteEntriesRequest::setChildInstanceId(const std::string& childInstanceId)
|
||||
{
|
||||
childInstanceId_ = childInstanceId;
|
||||
setParameter("ChildInstanceId", childInstanceId);
|
||||
setCoreParameter("ChildInstanceId", childInstanceId);
|
||||
}
|
||||
|
||||
long WithdrawPublishedRouteEntriesRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long WithdrawPublishedRouteEntriesRequest::getResourceOwnerId()const
|
||||
void WithdrawPublishedRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string WithdrawPublishedRouteEntriesRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string WithdrawPublishedRouteEntriesRequest::getResourceOwnerAccount()const
|
||||
void WithdrawPublishedRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string WithdrawPublishedRouteEntriesRequest::getCenId()const
|
||||
@@ -66,7 +66,7 @@ std::string WithdrawPublishedRouteEntriesRequest::getCenId()const
|
||||
void WithdrawPublishedRouteEntriesRequest::setCenId(const std::string& cenId)
|
||||
{
|
||||
cenId_ = cenId;
|
||||
setParameter("CenId", cenId);
|
||||
setCoreParameter("CenId", cenId);
|
||||
}
|
||||
|
||||
std::string WithdrawPublishedRouteEntriesRequest::getDestinationCidrBlock()const
|
||||
@@ -77,7 +77,7 @@ std::string WithdrawPublishedRouteEntriesRequest::getDestinationCidrBlock()const
|
||||
void WithdrawPublishedRouteEntriesRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock)
|
||||
{
|
||||
destinationCidrBlock_ = destinationCidrBlock;
|
||||
setParameter("DestinationCidrBlock", destinationCidrBlock);
|
||||
setCoreParameter("DestinationCidrBlock", destinationCidrBlock);
|
||||
}
|
||||
|
||||
std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceType()const
|
||||
@@ -88,7 +88,7 @@ std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceType()const
|
||||
void WithdrawPublishedRouteEntriesRequest::setChildInstanceType(const std::string& childInstanceType)
|
||||
{
|
||||
childInstanceType_ = childInstanceType;
|
||||
setParameter("ChildInstanceType", childInstanceType);
|
||||
setCoreParameter("ChildInstanceType", childInstanceType);
|
||||
}
|
||||
|
||||
std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceRouteTableId()const
|
||||
@@ -99,7 +99,7 @@ std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceRouteTableId()
|
||||
void WithdrawPublishedRouteEntriesRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId)
|
||||
{
|
||||
childInstanceRouteTableId_ = childInstanceRouteTableId;
|
||||
setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId);
|
||||
setCoreParameter("ChildInstanceRouteTableId", childInstanceRouteTableId);
|
||||
}
|
||||
|
||||
std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceRegionId()const
|
||||
@@ -110,6 +110,6 @@ std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceRegionId()cons
|
||||
void WithdrawPublishedRouteEntriesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId)
|
||||
{
|
||||
childInstanceRegionId_ = childInstanceRegionId;
|
||||
setParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
setCoreParameter("ChildInstanceRegionId", childInstanceRegionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ WithdrawPublishedRouteEntriesResult::~WithdrawPublishedRouteEntriesResult()
|
||||
|
||||
void WithdrawPublishedRouteEntriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user