Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96bab78790 | ||
|
|
55ec616f75 | ||
|
|
436b88a23f | ||
|
|
1befab93b1 | ||
|
|
97716c02e9 | ||
|
|
c522fc5468 | ||
|
|
f1948842ea | ||
|
|
208c428cfc | ||
|
|
21d175fb29 | ||
|
|
25bddc9e7a | ||
|
|
5d1aad0c37 | ||
|
|
28c7a67d80 | ||
|
|
b4c6fc0aeb | ||
|
|
ea81585f2e |
58
CHANGELOG
58
CHANGELOG
@@ -1,3 +1,61 @@
|
||||
2019-03-29 Version: 1.35.3
|
||||
1, Add DLQ message openAPI.
|
||||
2, Add Query the subscription relational openAPI.
|
||||
3, Remove white list restrictions.
|
||||
|
||||
2019-03-28 Version: 1.35.2
|
||||
1, release bssopenapi
|
||||
|
||||
2019-03-28 Version: 1.35.1
|
||||
1, Add multiple language support in DescribeZones
|
||||
2, Add gray parameter in CreateDisk
|
||||
|
||||
2019-03-28 Version: 1.35.0
|
||||
1, Add logo detect.
|
||||
|
||||
2019-03-27 Version: 1.34.66
|
||||
1, Add Project interface.
|
||||
2, Add Tag interface.
|
||||
3, Add TrainData interface.
|
||||
4, Add Train interface.
|
||||
5, Add Iteration interface.
|
||||
6, Add Predict interface.
|
||||
7, Add PredictData interface.
|
||||
|
||||
2019-03-27 Version: 1.34.65
|
||||
1, Add Project interface.
|
||||
2, Add Tag interface.
|
||||
3, Add TrainData interface.
|
||||
4, Add Train interface.
|
||||
5, Add Iteration interface.
|
||||
6, Add Predict interface.
|
||||
7, Add PredictData interface.
|
||||
|
||||
2019-03-27 Version: 1.34.64
|
||||
1, Add DLQ message openAPI.
|
||||
2, Add Query the subscription relational openAPI.
|
||||
3, Remove white list restrictions.
|
||||
|
||||
2019-03-27 Version: 1.34.63
|
||||
1, Add DLQ message openAPI.
|
||||
2, Add Query the subscription relational openAPI.
|
||||
3, Remove white list restrictions.
|
||||
|
||||
2019-03-27 Version: 1.34.62
|
||||
1, release dysmsapi
|
||||
|
||||
2019-03-25 Version: 1.34.61
|
||||
1, cms fix duplicated struct definition
|
||||
|
||||
2019-03-25 Version: 1.34.60
|
||||
1, mts fix duplication struct definition
|
||||
|
||||
2019-03-25 Version: 1.34.59
|
||||
1, jarvis-pulic fix product code with dash
|
||||
|
||||
2019-03-25 Version: 1.34.58
|
||||
1, sas-api, fix product code with dash
|
||||
|
||||
2019-03-21 Version: 1.34.57
|
||||
1, Update Dependency
|
||||
|
||||
|
||||
@@ -109,4 +109,12 @@ add_subdirectory(alidns)
|
||||
add_subdirectory(httpdns)
|
||||
|
||||
add_subdirectory(crm)
|
||||
add_subdirectory(kms)
|
||||
add_subdirectory(kms)
|
||||
add_subdirectory(sas-api)
|
||||
add_subdirectory(jarvis-public)
|
||||
add_subdirectory(mts)
|
||||
add_subdirectory(dysmsapi)
|
||||
add_subdirectory(ons)
|
||||
add_subdirectory(ivision)
|
||||
add_subdirectory(imm)
|
||||
add_subdirectory(bssopenapi)
|
||||
@@ -27,8 +27,6 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateUserQuotaRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateUserQuotaResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryPrepaidCardsRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryPrepaidCardsResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h
|
||||
@@ -37,48 +35,32 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/CreateInstanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/GetOrderDetailRequest.h
|
||||
include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryEnduserStatusRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryEnduserStatusResult.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyInstanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCustomerAddressListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCustomerAddressListResult.h
|
||||
include/alibabacloud/bssopenapi/model/CancelOrderRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CancelOrderResult.h
|
||||
include/alibabacloud/bssopenapi/model/SetUserQuotaRequest.h
|
||||
include/alibabacloud/bssopenapi/model/SetUserQuotaResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h
|
||||
include/alibabacloud/bssopenapi/model/UnsubscribeExportToOSSRequest.h
|
||||
include/alibabacloud/bssopenapi/model/UnsubscribeExportToOSSResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryPriceListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryPriceListResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryRedeemRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryRedeemResult.h
|
||||
include/alibabacloud/bssopenapi/model/SubscribeBillToOSSRequest.h
|
||||
include/alibabacloud/bssopenapi/model/SubscribeBillToOSSResult.h
|
||||
include/alibabacloud/bssopenapi/model/GetPayAsYouGoPriceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/GetPayAsYouGoPriceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryUserAlarmThresholdRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryUserAlarmThresholdResult.h
|
||||
include/alibabacloud/bssopenapi/model/GetResourcePackagePriceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h
|
||||
include/alibabacloud/bssopenapi/model/ChangeConsumeAmountRequest.h
|
||||
include/alibabacloud/bssopenapi/model/ChangeConsumeAmountResult.h
|
||||
include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSRequest.h
|
||||
include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSResult.h
|
||||
include/alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/ApplyInvoiceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryProductListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryProductListResult.h
|
||||
include/alibabacloud/bssopenapi/model/SetUserAlarmThresholdRequest.h
|
||||
include/alibabacloud/bssopenapi/model/SetUserAlarmThresholdResult.h
|
||||
include/alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/GetSubscriptionPriceResult.h
|
||||
include/alibabacloud/bssopenapi/model/SubscribeDetailRequest.h
|
||||
include/alibabacloud/bssopenapi/model/SubscribeDetailResult.h
|
||||
include/alibabacloud/bssopenapi/model/EnableBillGenerationRequest.h
|
||||
include/alibabacloud/bssopenapi/model/EnableBillGenerationResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBookListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBookListResult.h
|
||||
include/alibabacloud/bssopenapi/model/SetEnduserStatusRequest.h
|
||||
include/alibabacloud/bssopenapi/model/SetEnduserStatusResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryOrdersRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryOrdersResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCashCouponsRequest.h
|
||||
@@ -99,12 +81,6 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/CreateResourcePackageResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h
|
||||
include/alibabacloud/bssopenapi/model/SubscribeExportToOSSRequest.h
|
||||
include/alibabacloud/bssopenapi/model/SubscribeExportToOSSResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAvaliableQuotaRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAvaliableQuotaResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryPriceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryPriceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryBillResult.h
|
||||
include/alibabacloud/bssopenapi/model/SetRenewalRequest.h
|
||||
@@ -126,8 +102,6 @@ set(bssopenapi_src
|
||||
src/model/QueryInstanceGaapCostResult.cc
|
||||
src/model/QueryMonthlyInstanceConsumptionRequest.cc
|
||||
src/model/QueryMonthlyInstanceConsumptionResult.cc
|
||||
src/model/CreateUserQuotaRequest.cc
|
||||
src/model/CreateUserQuotaResult.cc
|
||||
src/model/QueryPrepaidCardsRequest.cc
|
||||
src/model/QueryPrepaidCardsResult.cc
|
||||
src/model/QueryAvailableInstancesRequest.cc
|
||||
@@ -136,48 +110,32 @@ set(bssopenapi_src
|
||||
src/model/CreateInstanceResult.cc
|
||||
src/model/GetOrderDetailRequest.cc
|
||||
src/model/GetOrderDetailResult.cc
|
||||
src/model/QueryEnduserStatusRequest.cc
|
||||
src/model/QueryEnduserStatusResult.cc
|
||||
src/model/ModifyInstanceRequest.cc
|
||||
src/model/ModifyInstanceResult.cc
|
||||
src/model/QueryCustomerAddressListRequest.cc
|
||||
src/model/QueryCustomerAddressListResult.cc
|
||||
src/model/CancelOrderRequest.cc
|
||||
src/model/CancelOrderResult.cc
|
||||
src/model/SetUserQuotaRequest.cc
|
||||
src/model/SetUserQuotaResult.cc
|
||||
src/model/QueryResourcePackageInstancesRequest.cc
|
||||
src/model/QueryResourcePackageInstancesResult.cc
|
||||
src/model/UnsubscribeExportToOSSRequest.cc
|
||||
src/model/UnsubscribeExportToOSSResult.cc
|
||||
src/model/QueryPriceListRequest.cc
|
||||
src/model/QueryPriceListResult.cc
|
||||
src/model/QueryRedeemRequest.cc
|
||||
src/model/QueryRedeemResult.cc
|
||||
src/model/SubscribeBillToOSSRequest.cc
|
||||
src/model/SubscribeBillToOSSResult.cc
|
||||
src/model/GetPayAsYouGoPriceRequest.cc
|
||||
src/model/GetPayAsYouGoPriceResult.cc
|
||||
src/model/QueryUserAlarmThresholdRequest.cc
|
||||
src/model/QueryUserAlarmThresholdResult.cc
|
||||
src/model/GetResourcePackagePriceRequest.cc
|
||||
src/model/GetResourcePackagePriceResult.cc
|
||||
src/model/ChangeConsumeAmountRequest.cc
|
||||
src/model/ChangeConsumeAmountResult.cc
|
||||
src/model/UnsubscribeBillToOSSRequest.cc
|
||||
src/model/UnsubscribeBillToOSSResult.cc
|
||||
src/model/ApplyInvoiceRequest.cc
|
||||
src/model/ApplyInvoiceResult.cc
|
||||
src/model/QueryProductListRequest.cc
|
||||
src/model/QueryProductListResult.cc
|
||||
src/model/SetUserAlarmThresholdRequest.cc
|
||||
src/model/SetUserAlarmThresholdResult.cc
|
||||
src/model/GetSubscriptionPriceRequest.cc
|
||||
src/model/GetSubscriptionPriceResult.cc
|
||||
src/model/SubscribeDetailRequest.cc
|
||||
src/model/SubscribeDetailResult.cc
|
||||
src/model/EnableBillGenerationRequest.cc
|
||||
src/model/EnableBillGenerationResult.cc
|
||||
src/model/QueryAccountBookListRequest.cc
|
||||
src/model/QueryAccountBookListResult.cc
|
||||
src/model/SetEnduserStatusRequest.cc
|
||||
src/model/SetEnduserStatusResult.cc
|
||||
src/model/QueryOrdersRequest.cc
|
||||
src/model/QueryOrdersResult.cc
|
||||
src/model/QueryCashCouponsRequest.cc
|
||||
@@ -198,12 +156,6 @@ set(bssopenapi_src
|
||||
src/model/CreateResourcePackageResult.cc
|
||||
src/model/QueryInstanceBillRequest.cc
|
||||
src/model/QueryInstanceBillResult.cc
|
||||
src/model/SubscribeExportToOSSRequest.cc
|
||||
src/model/SubscribeExportToOSSResult.cc
|
||||
src/model/QueryAvaliableQuotaRequest.cc
|
||||
src/model/QueryAvaliableQuotaResult.cc
|
||||
src/model/QueryPriceRequest.cc
|
||||
src/model/QueryPriceResult.cc
|
||||
src/model/QueryBillRequest.cc
|
||||
src/model/QueryBillResult.cc
|
||||
src/model/SetRenewalRequest.cc
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
#include "model/QueryInstanceGaapCostResult.h"
|
||||
#include "model/QueryMonthlyInstanceConsumptionRequest.h"
|
||||
#include "model/QueryMonthlyInstanceConsumptionResult.h"
|
||||
#include "model/CreateUserQuotaRequest.h"
|
||||
#include "model/CreateUserQuotaResult.h"
|
||||
#include "model/QueryPrepaidCardsRequest.h"
|
||||
#include "model/QueryPrepaidCardsResult.h"
|
||||
#include "model/QueryAvailableInstancesRequest.h"
|
||||
@@ -38,48 +36,32 @@
|
||||
#include "model/CreateInstanceResult.h"
|
||||
#include "model/GetOrderDetailRequest.h"
|
||||
#include "model/GetOrderDetailResult.h"
|
||||
#include "model/QueryEnduserStatusRequest.h"
|
||||
#include "model/QueryEnduserStatusResult.h"
|
||||
#include "model/ModifyInstanceRequest.h"
|
||||
#include "model/ModifyInstanceResult.h"
|
||||
#include "model/QueryCustomerAddressListRequest.h"
|
||||
#include "model/QueryCustomerAddressListResult.h"
|
||||
#include "model/CancelOrderRequest.h"
|
||||
#include "model/CancelOrderResult.h"
|
||||
#include "model/SetUserQuotaRequest.h"
|
||||
#include "model/SetUserQuotaResult.h"
|
||||
#include "model/QueryResourcePackageInstancesRequest.h"
|
||||
#include "model/QueryResourcePackageInstancesResult.h"
|
||||
#include "model/UnsubscribeExportToOSSRequest.h"
|
||||
#include "model/UnsubscribeExportToOSSResult.h"
|
||||
#include "model/QueryPriceListRequest.h"
|
||||
#include "model/QueryPriceListResult.h"
|
||||
#include "model/QueryRedeemRequest.h"
|
||||
#include "model/QueryRedeemResult.h"
|
||||
#include "model/SubscribeBillToOSSRequest.h"
|
||||
#include "model/SubscribeBillToOSSResult.h"
|
||||
#include "model/GetPayAsYouGoPriceRequest.h"
|
||||
#include "model/GetPayAsYouGoPriceResult.h"
|
||||
#include "model/QueryUserAlarmThresholdRequest.h"
|
||||
#include "model/QueryUserAlarmThresholdResult.h"
|
||||
#include "model/GetResourcePackagePriceRequest.h"
|
||||
#include "model/GetResourcePackagePriceResult.h"
|
||||
#include "model/ChangeConsumeAmountRequest.h"
|
||||
#include "model/ChangeConsumeAmountResult.h"
|
||||
#include "model/UnsubscribeBillToOSSRequest.h"
|
||||
#include "model/UnsubscribeBillToOSSResult.h"
|
||||
#include "model/ApplyInvoiceRequest.h"
|
||||
#include "model/ApplyInvoiceResult.h"
|
||||
#include "model/QueryProductListRequest.h"
|
||||
#include "model/QueryProductListResult.h"
|
||||
#include "model/SetUserAlarmThresholdRequest.h"
|
||||
#include "model/SetUserAlarmThresholdResult.h"
|
||||
#include "model/GetSubscriptionPriceRequest.h"
|
||||
#include "model/GetSubscriptionPriceResult.h"
|
||||
#include "model/SubscribeDetailRequest.h"
|
||||
#include "model/SubscribeDetailResult.h"
|
||||
#include "model/EnableBillGenerationRequest.h"
|
||||
#include "model/EnableBillGenerationResult.h"
|
||||
#include "model/QueryAccountBookListRequest.h"
|
||||
#include "model/QueryAccountBookListResult.h"
|
||||
#include "model/SetEnduserStatusRequest.h"
|
||||
#include "model/SetEnduserStatusResult.h"
|
||||
#include "model/QueryOrdersRequest.h"
|
||||
#include "model/QueryOrdersResult.h"
|
||||
#include "model/QueryCashCouponsRequest.h"
|
||||
@@ -100,12 +82,6 @@
|
||||
#include "model/CreateResourcePackageResult.h"
|
||||
#include "model/QueryInstanceBillRequest.h"
|
||||
#include "model/QueryInstanceBillResult.h"
|
||||
#include "model/SubscribeExportToOSSRequest.h"
|
||||
#include "model/SubscribeExportToOSSResult.h"
|
||||
#include "model/QueryAvaliableQuotaRequest.h"
|
||||
#include "model/QueryAvaliableQuotaResult.h"
|
||||
#include "model/QueryPriceRequest.h"
|
||||
#include "model/QueryPriceResult.h"
|
||||
#include "model/QueryBillRequest.h"
|
||||
#include "model/QueryBillResult.h"
|
||||
#include "model/SetRenewalRequest.h"
|
||||
@@ -136,9 +112,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryMonthlyInstanceConsumptionResult> QueryMonthlyInstanceConsumptionOutcome;
|
||||
typedef std::future<QueryMonthlyInstanceConsumptionOutcome> QueryMonthlyInstanceConsumptionOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryMonthlyInstanceConsumptionRequest&, const QueryMonthlyInstanceConsumptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryMonthlyInstanceConsumptionAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateUserQuotaResult> CreateUserQuotaOutcome;
|
||||
typedef std::future<CreateUserQuotaOutcome> CreateUserQuotaOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CreateUserQuotaRequest&, const CreateUserQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateUserQuotaAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryPrepaidCardsResult> QueryPrepaidCardsOutcome;
|
||||
typedef std::future<QueryPrepaidCardsOutcome> QueryPrepaidCardsOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryPrepaidCardsRequest&, const QueryPrepaidCardsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryPrepaidCardsAsyncHandler;
|
||||
@@ -151,9 +124,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetOrderDetailResult> GetOrderDetailOutcome;
|
||||
typedef std::future<GetOrderDetailOutcome> GetOrderDetailOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::GetOrderDetailRequest&, const GetOrderDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOrderDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryEnduserStatusResult> QueryEnduserStatusOutcome;
|
||||
typedef std::future<QueryEnduserStatusOutcome> QueryEnduserStatusOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryEnduserStatusRequest&, const QueryEnduserStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryEnduserStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyInstanceResult> ModifyInstanceOutcome;
|
||||
typedef std::future<ModifyInstanceOutcome> ModifyInstanceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::ModifyInstanceRequest&, const ModifyInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyInstanceAsyncHandler;
|
||||
@@ -163,57 +133,36 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CancelOrderResult> CancelOrderOutcome;
|
||||
typedef std::future<CancelOrderOutcome> CancelOrderOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CancelOrderRequest&, const CancelOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetUserQuotaResult> SetUserQuotaOutcome;
|
||||
typedef std::future<SetUserQuotaOutcome> SetUserQuotaOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::SetUserQuotaRequest&, const SetUserQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetUserQuotaAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryResourcePackageInstancesResult> QueryResourcePackageInstancesOutcome;
|
||||
typedef std::future<QueryResourcePackageInstancesOutcome> QueryResourcePackageInstancesOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryResourcePackageInstancesRequest&, const QueryResourcePackageInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryResourcePackageInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnsubscribeExportToOSSResult> UnsubscribeExportToOSSOutcome;
|
||||
typedef std::future<UnsubscribeExportToOSSOutcome> UnsubscribeExportToOSSOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::UnsubscribeExportToOSSRequest&, const UnsubscribeExportToOSSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnsubscribeExportToOSSAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryPriceListResult> QueryPriceListOutcome;
|
||||
typedef std::future<QueryPriceListOutcome> QueryPriceListOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryPriceListRequest&, const QueryPriceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryPriceListAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryRedeemResult> QueryRedeemOutcome;
|
||||
typedef std::future<QueryRedeemOutcome> QueryRedeemOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryRedeemRequest&, const QueryRedeemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryRedeemAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubscribeBillToOSSResult> SubscribeBillToOSSOutcome;
|
||||
typedef std::future<SubscribeBillToOSSOutcome> SubscribeBillToOSSOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::SubscribeBillToOSSRequest&, const SubscribeBillToOSSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubscribeBillToOSSAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPayAsYouGoPriceResult> GetPayAsYouGoPriceOutcome;
|
||||
typedef std::future<GetPayAsYouGoPriceOutcome> GetPayAsYouGoPriceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::GetPayAsYouGoPriceRequest&, const GetPayAsYouGoPriceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPayAsYouGoPriceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryUserAlarmThresholdResult> QueryUserAlarmThresholdOutcome;
|
||||
typedef std::future<QueryUserAlarmThresholdOutcome> QueryUserAlarmThresholdOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryUserAlarmThresholdRequest&, const QueryUserAlarmThresholdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryUserAlarmThresholdAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetResourcePackagePriceResult> GetResourcePackagePriceOutcome;
|
||||
typedef std::future<GetResourcePackagePriceOutcome> GetResourcePackagePriceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::GetResourcePackagePriceRequest&, const GetResourcePackagePriceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResourcePackagePriceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ChangeConsumeAmountResult> ChangeConsumeAmountOutcome;
|
||||
typedef std::future<ChangeConsumeAmountOutcome> ChangeConsumeAmountOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::ChangeConsumeAmountRequest&, const ChangeConsumeAmountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeConsumeAmountAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnsubscribeBillToOSSResult> UnsubscribeBillToOSSOutcome;
|
||||
typedef std::future<UnsubscribeBillToOSSOutcome> UnsubscribeBillToOSSOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::UnsubscribeBillToOSSRequest&, const UnsubscribeBillToOSSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnsubscribeBillToOSSAsyncHandler;
|
||||
typedef Outcome<Error, Model::ApplyInvoiceResult> ApplyInvoiceOutcome;
|
||||
typedef std::future<ApplyInvoiceOutcome> ApplyInvoiceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::ApplyInvoiceRequest&, const ApplyInvoiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApplyInvoiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryProductListResult> QueryProductListOutcome;
|
||||
typedef std::future<QueryProductListOutcome> QueryProductListOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryProductListRequest&, const QueryProductListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryProductListAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetUserAlarmThresholdResult> SetUserAlarmThresholdOutcome;
|
||||
typedef std::future<SetUserAlarmThresholdOutcome> SetUserAlarmThresholdOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::SetUserAlarmThresholdRequest&, const SetUserAlarmThresholdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetUserAlarmThresholdAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetSubscriptionPriceResult> GetSubscriptionPriceOutcome;
|
||||
typedef std::future<GetSubscriptionPriceOutcome> GetSubscriptionPriceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::GetSubscriptionPriceRequest&, const GetSubscriptionPriceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSubscriptionPriceAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubscribeDetailResult> SubscribeDetailOutcome;
|
||||
typedef std::future<SubscribeDetailOutcome> SubscribeDetailOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::SubscribeDetailRequest&, const SubscribeDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubscribeDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableBillGenerationResult> EnableBillGenerationOutcome;
|
||||
typedef std::future<EnableBillGenerationOutcome> EnableBillGenerationOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::EnableBillGenerationRequest&, const EnableBillGenerationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableBillGenerationAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccountBookListResult> QueryAccountBookListOutcome;
|
||||
typedef std::future<QueryAccountBookListOutcome> QueryAccountBookListOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountBookListRequest&, const QueryAccountBookListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountBookListAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetEnduserStatusResult> SetEnduserStatusOutcome;
|
||||
typedef std::future<SetEnduserStatusOutcome> SetEnduserStatusOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::SetEnduserStatusRequest&, const SetEnduserStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetEnduserStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryOrdersResult> QueryOrdersOutcome;
|
||||
typedef std::future<QueryOrdersOutcome> QueryOrdersOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryOrdersRequest&, const QueryOrdersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryOrdersAsyncHandler;
|
||||
@@ -244,15 +193,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryInstanceBillResult> QueryInstanceBillOutcome;
|
||||
typedef std::future<QueryInstanceBillOutcome> QueryInstanceBillOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryInstanceBillRequest&, const QueryInstanceBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryInstanceBillAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubscribeExportToOSSResult> SubscribeExportToOSSOutcome;
|
||||
typedef std::future<SubscribeExportToOSSOutcome> SubscribeExportToOSSOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::SubscribeExportToOSSRequest&, const SubscribeExportToOSSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubscribeExportToOSSAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAvaliableQuotaResult> QueryAvaliableQuotaOutcome;
|
||||
typedef std::future<QueryAvaliableQuotaOutcome> QueryAvaliableQuotaOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAvaliableQuotaRequest&, const QueryAvaliableQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAvaliableQuotaAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryPriceResult> QueryPriceOutcome;
|
||||
typedef std::future<QueryPriceOutcome> QueryPriceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryPriceRequest&, const QueryPriceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryPriceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryBillResult> QueryBillOutcome;
|
||||
typedef std::future<QueryBillOutcome> QueryBillOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryBillRequest&, const QueryBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryBillAsyncHandler;
|
||||
@@ -285,9 +225,6 @@ namespace AlibabaCloud
|
||||
QueryMonthlyInstanceConsumptionOutcome queryMonthlyInstanceConsumption(const Model::QueryMonthlyInstanceConsumptionRequest &request)const;
|
||||
void queryMonthlyInstanceConsumptionAsync(const Model::QueryMonthlyInstanceConsumptionRequest& request, const QueryMonthlyInstanceConsumptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryMonthlyInstanceConsumptionOutcomeCallable queryMonthlyInstanceConsumptionCallable(const Model::QueryMonthlyInstanceConsumptionRequest& request) const;
|
||||
CreateUserQuotaOutcome createUserQuota(const Model::CreateUserQuotaRequest &request)const;
|
||||
void createUserQuotaAsync(const Model::CreateUserQuotaRequest& request, const CreateUserQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateUserQuotaOutcomeCallable createUserQuotaCallable(const Model::CreateUserQuotaRequest& request) const;
|
||||
QueryPrepaidCardsOutcome queryPrepaidCards(const Model::QueryPrepaidCardsRequest &request)const;
|
||||
void queryPrepaidCardsAsync(const Model::QueryPrepaidCardsRequest& request, const QueryPrepaidCardsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryPrepaidCardsOutcomeCallable queryPrepaidCardsCallable(const Model::QueryPrepaidCardsRequest& request) const;
|
||||
@@ -300,9 +237,6 @@ namespace AlibabaCloud
|
||||
GetOrderDetailOutcome getOrderDetail(const Model::GetOrderDetailRequest &request)const;
|
||||
void getOrderDetailAsync(const Model::GetOrderDetailRequest& request, const GetOrderDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetOrderDetailOutcomeCallable getOrderDetailCallable(const Model::GetOrderDetailRequest& request) const;
|
||||
QueryEnduserStatusOutcome queryEnduserStatus(const Model::QueryEnduserStatusRequest &request)const;
|
||||
void queryEnduserStatusAsync(const Model::QueryEnduserStatusRequest& request, const QueryEnduserStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryEnduserStatusOutcomeCallable queryEnduserStatusCallable(const Model::QueryEnduserStatusRequest& request) const;
|
||||
ModifyInstanceOutcome modifyInstance(const Model::ModifyInstanceRequest &request)const;
|
||||
void modifyInstanceAsync(const Model::ModifyInstanceRequest& request, const ModifyInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyInstanceOutcomeCallable modifyInstanceCallable(const Model::ModifyInstanceRequest& request) const;
|
||||
@@ -312,57 +246,36 @@ namespace AlibabaCloud
|
||||
CancelOrderOutcome cancelOrder(const Model::CancelOrderRequest &request)const;
|
||||
void cancelOrderAsync(const Model::CancelOrderRequest& request, const CancelOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CancelOrderOutcomeCallable cancelOrderCallable(const Model::CancelOrderRequest& request) const;
|
||||
SetUserQuotaOutcome setUserQuota(const Model::SetUserQuotaRequest &request)const;
|
||||
void setUserQuotaAsync(const Model::SetUserQuotaRequest& request, const SetUserQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetUserQuotaOutcomeCallable setUserQuotaCallable(const Model::SetUserQuotaRequest& request) const;
|
||||
QueryResourcePackageInstancesOutcome queryResourcePackageInstances(const Model::QueryResourcePackageInstancesRequest &request)const;
|
||||
void queryResourcePackageInstancesAsync(const Model::QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryResourcePackageInstancesOutcomeCallable queryResourcePackageInstancesCallable(const Model::QueryResourcePackageInstancesRequest& request) const;
|
||||
UnsubscribeExportToOSSOutcome unsubscribeExportToOSS(const Model::UnsubscribeExportToOSSRequest &request)const;
|
||||
void unsubscribeExportToOSSAsync(const Model::UnsubscribeExportToOSSRequest& request, const UnsubscribeExportToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnsubscribeExportToOSSOutcomeCallable unsubscribeExportToOSSCallable(const Model::UnsubscribeExportToOSSRequest& request) const;
|
||||
QueryPriceListOutcome queryPriceList(const Model::QueryPriceListRequest &request)const;
|
||||
void queryPriceListAsync(const Model::QueryPriceListRequest& request, const QueryPriceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryPriceListOutcomeCallable queryPriceListCallable(const Model::QueryPriceListRequest& request) const;
|
||||
QueryRedeemOutcome queryRedeem(const Model::QueryRedeemRequest &request)const;
|
||||
void queryRedeemAsync(const Model::QueryRedeemRequest& request, const QueryRedeemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryRedeemOutcomeCallable queryRedeemCallable(const Model::QueryRedeemRequest& request) const;
|
||||
SubscribeBillToOSSOutcome subscribeBillToOSS(const Model::SubscribeBillToOSSRequest &request)const;
|
||||
void subscribeBillToOSSAsync(const Model::SubscribeBillToOSSRequest& request, const SubscribeBillToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubscribeBillToOSSOutcomeCallable subscribeBillToOSSCallable(const Model::SubscribeBillToOSSRequest& request) const;
|
||||
GetPayAsYouGoPriceOutcome getPayAsYouGoPrice(const Model::GetPayAsYouGoPriceRequest &request)const;
|
||||
void getPayAsYouGoPriceAsync(const Model::GetPayAsYouGoPriceRequest& request, const GetPayAsYouGoPriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPayAsYouGoPriceOutcomeCallable getPayAsYouGoPriceCallable(const Model::GetPayAsYouGoPriceRequest& request) const;
|
||||
QueryUserAlarmThresholdOutcome queryUserAlarmThreshold(const Model::QueryUserAlarmThresholdRequest &request)const;
|
||||
void queryUserAlarmThresholdAsync(const Model::QueryUserAlarmThresholdRequest& request, const QueryUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryUserAlarmThresholdOutcomeCallable queryUserAlarmThresholdCallable(const Model::QueryUserAlarmThresholdRequest& request) const;
|
||||
GetResourcePackagePriceOutcome getResourcePackagePrice(const Model::GetResourcePackagePriceRequest &request)const;
|
||||
void getResourcePackagePriceAsync(const Model::GetResourcePackagePriceRequest& request, const GetResourcePackagePriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetResourcePackagePriceOutcomeCallable getResourcePackagePriceCallable(const Model::GetResourcePackagePriceRequest& request) const;
|
||||
ChangeConsumeAmountOutcome changeConsumeAmount(const Model::ChangeConsumeAmountRequest &request)const;
|
||||
void changeConsumeAmountAsync(const Model::ChangeConsumeAmountRequest& request, const ChangeConsumeAmountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ChangeConsumeAmountOutcomeCallable changeConsumeAmountCallable(const Model::ChangeConsumeAmountRequest& request) const;
|
||||
UnsubscribeBillToOSSOutcome unsubscribeBillToOSS(const Model::UnsubscribeBillToOSSRequest &request)const;
|
||||
void unsubscribeBillToOSSAsync(const Model::UnsubscribeBillToOSSRequest& request, const UnsubscribeBillToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnsubscribeBillToOSSOutcomeCallable unsubscribeBillToOSSCallable(const Model::UnsubscribeBillToOSSRequest& request) const;
|
||||
ApplyInvoiceOutcome applyInvoice(const Model::ApplyInvoiceRequest &request)const;
|
||||
void applyInvoiceAsync(const Model::ApplyInvoiceRequest& request, const ApplyInvoiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ApplyInvoiceOutcomeCallable applyInvoiceCallable(const Model::ApplyInvoiceRequest& request) const;
|
||||
QueryProductListOutcome queryProductList(const Model::QueryProductListRequest &request)const;
|
||||
void queryProductListAsync(const Model::QueryProductListRequest& request, const QueryProductListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryProductListOutcomeCallable queryProductListCallable(const Model::QueryProductListRequest& request) const;
|
||||
SetUserAlarmThresholdOutcome setUserAlarmThreshold(const Model::SetUserAlarmThresholdRequest &request)const;
|
||||
void setUserAlarmThresholdAsync(const Model::SetUserAlarmThresholdRequest& request, const SetUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetUserAlarmThresholdOutcomeCallable setUserAlarmThresholdCallable(const Model::SetUserAlarmThresholdRequest& request) const;
|
||||
GetSubscriptionPriceOutcome getSubscriptionPrice(const Model::GetSubscriptionPriceRequest &request)const;
|
||||
void getSubscriptionPriceAsync(const Model::GetSubscriptionPriceRequest& request, const GetSubscriptionPriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetSubscriptionPriceOutcomeCallable getSubscriptionPriceCallable(const Model::GetSubscriptionPriceRequest& request) const;
|
||||
SubscribeDetailOutcome subscribeDetail(const Model::SubscribeDetailRequest &request)const;
|
||||
void subscribeDetailAsync(const Model::SubscribeDetailRequest& request, const SubscribeDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubscribeDetailOutcomeCallable subscribeDetailCallable(const Model::SubscribeDetailRequest& request) const;
|
||||
EnableBillGenerationOutcome enableBillGeneration(const Model::EnableBillGenerationRequest &request)const;
|
||||
void enableBillGenerationAsync(const Model::EnableBillGenerationRequest& request, const EnableBillGenerationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableBillGenerationOutcomeCallable enableBillGenerationCallable(const Model::EnableBillGenerationRequest& request) const;
|
||||
QueryAccountBookListOutcome queryAccountBookList(const Model::QueryAccountBookListRequest &request)const;
|
||||
void queryAccountBookListAsync(const Model::QueryAccountBookListRequest& request, const QueryAccountBookListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccountBookListOutcomeCallable queryAccountBookListCallable(const Model::QueryAccountBookListRequest& request) const;
|
||||
SetEnduserStatusOutcome setEnduserStatus(const Model::SetEnduserStatusRequest &request)const;
|
||||
void setEnduserStatusAsync(const Model::SetEnduserStatusRequest& request, const SetEnduserStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetEnduserStatusOutcomeCallable setEnduserStatusCallable(const Model::SetEnduserStatusRequest& request) const;
|
||||
QueryOrdersOutcome queryOrders(const Model::QueryOrdersRequest &request)const;
|
||||
void queryOrdersAsync(const Model::QueryOrdersRequest& request, const QueryOrdersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryOrdersOutcomeCallable queryOrdersCallable(const Model::QueryOrdersRequest& request) const;
|
||||
@@ -393,15 +306,6 @@ namespace AlibabaCloud
|
||||
QueryInstanceBillOutcome queryInstanceBill(const Model::QueryInstanceBillRequest &request)const;
|
||||
void queryInstanceBillAsync(const Model::QueryInstanceBillRequest& request, const QueryInstanceBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryInstanceBillOutcomeCallable queryInstanceBillCallable(const Model::QueryInstanceBillRequest& request) const;
|
||||
SubscribeExportToOSSOutcome subscribeExportToOSS(const Model::SubscribeExportToOSSRequest &request)const;
|
||||
void subscribeExportToOSSAsync(const Model::SubscribeExportToOSSRequest& request, const SubscribeExportToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubscribeExportToOSSOutcomeCallable subscribeExportToOSSCallable(const Model::SubscribeExportToOSSRequest& request) const;
|
||||
QueryAvaliableQuotaOutcome queryAvaliableQuota(const Model::QueryAvaliableQuotaRequest &request)const;
|
||||
void queryAvaliableQuotaAsync(const Model::QueryAvaliableQuotaRequest& request, const QueryAvaliableQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAvaliableQuotaOutcomeCallable queryAvaliableQuotaCallable(const Model::QueryAvaliableQuotaRequest& request) const;
|
||||
QueryPriceOutcome queryPrice(const Model::QueryPriceRequest &request)const;
|
||||
void queryPriceAsync(const Model::QueryPriceRequest& request, const QueryPriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryPriceOutcomeCallable queryPriceCallable(const Model::QueryPriceRequest& request) const;
|
||||
QueryBillOutcome queryBill(const Model::QueryBillRequest &request)const;
|
||||
void queryBillAsync(const Model::QueryBillRequest& request, const QueryBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryBillOutcomeCallable queryBillCallable(const Model::QueryBillRequest& request) const;
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGECONSUMEAMOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGECONSUMEAMOUNTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT ChangeConsumeAmountRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ChangeConsumeAmountRequest();
|
||||
~ChangeConsumeAmountRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
std::string getAdjustType()const;
|
||||
void setAdjustType(const std::string& adjustType);
|
||||
std::string getAmount()const;
|
||||
void setAmount(const std::string& amount);
|
||||
std::string getOutBizId()const;
|
||||
void setOutBizId(const std::string& outBizId);
|
||||
std::string getExtendMap()const;
|
||||
void setExtendMap(const std::string& extendMap);
|
||||
std::string getCurrency()const;
|
||||
void setCurrency(const std::string& currency);
|
||||
std::string getSource()const;
|
||||
void setSource(const std::string& source);
|
||||
std::string getBid()const;
|
||||
void setBid(const std::string& bid);
|
||||
std::string getBusinessType()const;
|
||||
void setBusinessType(const std::string& businessType);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
std::string adjustType_;
|
||||
std::string amount_;
|
||||
std::string outBizId_;
|
||||
std::string extendMap_;
|
||||
std::string currency_;
|
||||
std::string source_;
|
||||
std::string bid_;
|
||||
std::string businessType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGECONSUMEAMOUNTREQUEST_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEUSERQUOTAREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEUSERQUOTAREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateUserQuotaRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateUserQuotaRequest();
|
||||
~CreateUserQuotaRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
std::string getAmount()const;
|
||||
void setAmount(const std::string& amount);
|
||||
std::string getOutBizId()const;
|
||||
void setOutBizId(const std::string& outBizId);
|
||||
std::string getCurrency()const;
|
||||
void setCurrency(const std::string& currency);
|
||||
std::string getBid()const;
|
||||
void setBid(const std::string& bid);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
std::string amount_;
|
||||
std::string outBizId_;
|
||||
std::string currency_;
|
||||
std::string bid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEUSERQUOTAREQUEST_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYENDUSERSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYENDUSERSTATUSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryEnduserStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryEnduserStatusRequest();
|
||||
~QueryEnduserStatusRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
std::string getPrimaryAccount()const;
|
||||
void setPrimaryAccount(const std::string& primaryAccount);
|
||||
std::string getStatus()const;
|
||||
void setStatus(const std::string& status);
|
||||
std::string getBusinessType()const;
|
||||
void setBusinessType(const std::string& businessType);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
std::string primaryAccount_;
|
||||
std::string status_;
|
||||
std::string businessType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYENDUSERSTATUSREQUEST_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICELISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryPriceListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryPriceListRequest();
|
||||
~QueryPriceListRequest();
|
||||
|
||||
std::string getModuleCode()const;
|
||||
void setModuleCode(const std::string& moduleCode);
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getSubscriptionType()const;
|
||||
void setSubscriptionType(const std::string& subscriptionType);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
|
||||
private:
|
||||
std::string moduleCode_;
|
||||
std::string productCode_;
|
||||
std::string subscriptionType_;
|
||||
long ownerId_;
|
||||
std::string productType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICELISTREQUEST_H_
|
||||
@@ -1,81 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICELISTRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICELISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryPriceListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Module
|
||||
{
|
||||
struct TierPrice
|
||||
{
|
||||
std::string endSymbol;
|
||||
std::string tierType;
|
||||
std::string tierStart;
|
||||
std::string tierEnd;
|
||||
std::string price;
|
||||
std::string startSymbol;
|
||||
std::string priceType;
|
||||
};
|
||||
std::string priceUnit;
|
||||
std::string moduleCode;
|
||||
std::string config;
|
||||
std::string region;
|
||||
std::string priceUnitQuantity;
|
||||
std::vector<Module::TierPrice> tierPrices;
|
||||
};
|
||||
std::vector<Module> modules;
|
||||
std::string currency;
|
||||
};
|
||||
|
||||
|
||||
QueryPriceListResult();
|
||||
explicit QueryPriceListResult(const std::string &payload);
|
||||
~QueryPriceListResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICELISTRESULT_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSERALARMTHRESHOLDREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSERALARMTHRESHOLDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryUserAlarmThresholdRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryUserAlarmThresholdRequest();
|
||||
~QueryUserAlarmThresholdRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
std::string getAlarmType()const;
|
||||
void setAlarmType(const std::string& alarmType);
|
||||
std::string getAlarmThresholds()const;
|
||||
void setAlarmThresholds(const std::string& alarmThresholds);
|
||||
std::string getBid()const;
|
||||
void setBid(const std::string& bid);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
std::string alarmType_;
|
||||
std::string alarmThresholds_;
|
||||
std::string bid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSERALARMTHRESHOLDREQUEST_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETUSERQUOTAREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETUSERQUOTAREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT SetUserQuotaRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SetUserQuotaRequest();
|
||||
~SetUserQuotaRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
std::string getAmount()const;
|
||||
void setAmount(const std::string& amount);
|
||||
std::string getOutBizId()const;
|
||||
void setOutBizId(const std::string& outBizId);
|
||||
std::string getCurrency()const;
|
||||
void setCurrency(const std::string& currency);
|
||||
std::string getBid()const;
|
||||
void setBid(const std::string& bid);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
std::string amount_;
|
||||
std::string outBizId_;
|
||||
std::string currency_;
|
||||
std::string bid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETUSERQUOTAREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEDETAILREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,27 +28,24 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT SubscribeDetailRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT SubscribeBillToOSSRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SubscribeDetailRequest();
|
||||
~SubscribeDetailRequest();
|
||||
SubscribeBillToOSSRequest();
|
||||
~SubscribeBillToOSSRequest();
|
||||
|
||||
long getBucketOwnerId()const;
|
||||
void setBucketOwnerId(long bucketOwnerId);
|
||||
std::vector<std::string> getSubscribeType()const;
|
||||
void setSubscribeType(const std::vector<std::string>& subscribeType);
|
||||
std::string getSubscribeType()const;
|
||||
void setSubscribeType(const std::string& subscribeType);
|
||||
std::string getSubscribeBucket()const;
|
||||
void setSubscribeBucket(const std::string& subscribeBucket);
|
||||
|
||||
private:
|
||||
long bucketOwnerId_;
|
||||
std::vector<std::string> subscribeType_;
|
||||
std::string subscribeType_;
|
||||
std::string subscribeBucket_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEDETAILREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETUSERQUOTARESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETUSERQUOTARESULT_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,16 +29,15 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT SetUserQuotaResult : public ServiceResult
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT SubscribeBillToOSSResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SetUserQuotaResult();
|
||||
explicit SetUserQuotaResult(const std::string &payload);
|
||||
~SetUserQuotaResult();
|
||||
SubscribeBillToOSSResult();
|
||||
explicit SubscribeBillToOSSResult(const std::string &payload);
|
||||
~SubscribeBillToOSSResult();
|
||||
std::string getMessage()const;
|
||||
bool getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
@@ -46,7 +45,6 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
bool data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
@@ -54,4 +52,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETUSERQUOTARESULT_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSRESULT_H_
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEEXPORTTOOSSREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEEXPORTTOOSSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT SubscribeExportToOSSRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SubscribeExportToOSSRequest();
|
||||
~SubscribeExportToOSSRequest();
|
||||
|
||||
long getBucketOwnerId()const;
|
||||
void setBucketOwnerId(long bucketOwnerId);
|
||||
std::vector<std::string> getSubscribeType()const;
|
||||
void setSubscribeType(const std::vector<std::string>& subscribeType);
|
||||
std::string getSubscribeBucket()const;
|
||||
void setSubscribeBucket(const std::string& subscribeBucket);
|
||||
|
||||
private:
|
||||
long bucketOwnerId_;
|
||||
std::vector<std::string> subscribeType_;
|
||||
std::string subscribeBucket_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEEXPORTTOOSSREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICEREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,21 +28,21 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryPriceRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT UnsubscribeBillToOSSRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryPriceRequest();
|
||||
~QueryPriceRequest();
|
||||
UnsubscribeBillToOSSRequest();
|
||||
~UnsubscribeBillToOSSRequest();
|
||||
|
||||
std::string getParamStr()const;
|
||||
void setParamStr(const std::string& paramStr);
|
||||
std::string getSubscribeType()const;
|
||||
void setSubscribeType(const std::string& subscribeType);
|
||||
|
||||
private:
|
||||
std::string paramStr_;
|
||||
std::string subscribeType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEEXPORTTOOSSRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEEXPORTTOOSSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,14 +29,14 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT SubscribeExportToOSSResult : public ServiceResult
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT UnsubscribeBillToOSSResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SubscribeExportToOSSResult();
|
||||
explicit SubscribeExportToOSSResult(const std::string &payload);
|
||||
~SubscribeExportToOSSResult();
|
||||
UnsubscribeBillToOSSResult();
|
||||
explicit UnsubscribeBillToOSSResult(const std::string &payload);
|
||||
~UnsubscribeBillToOSSResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
@@ -52,4 +52,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEEXPORTTOOSSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSRESULT_H_
|
||||
@@ -31,21 +31,21 @@ BssOpenApiClient::BssOpenApiClient(const Credentials &credentials, const ClientC
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "bssopenapi");
|
||||
}
|
||||
|
||||
BssOpenApiClient::BssOpenApiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "bssopenapi");
|
||||
}
|
||||
|
||||
BssOpenApiClient::BssOpenApiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "bssopenapi");
|
||||
}
|
||||
|
||||
BssOpenApiClient::~BssOpenApiClient()
|
||||
@@ -159,42 +159,6 @@ BssOpenApiClient::QueryMonthlyInstanceConsumptionOutcomeCallable BssOpenApiClien
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::CreateUserQuotaOutcome BssOpenApiClient::createUserQuota(const CreateUserQuotaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateUserQuotaOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateUserQuotaOutcome(CreateUserQuotaResult(outcome.result()));
|
||||
else
|
||||
return CreateUserQuotaOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::createUserQuotaAsync(const CreateUserQuotaRequest& request, const CreateUserQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createUserQuota(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::CreateUserQuotaOutcomeCallable BssOpenApiClient::createUserQuotaCallable(const CreateUserQuotaRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateUserQuotaOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createUserQuota(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryPrepaidCardsOutcome BssOpenApiClient::queryPrepaidCards(const QueryPrepaidCardsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,42 +303,6 @@ BssOpenApiClient::GetOrderDetailOutcomeCallable BssOpenApiClient::getOrderDetail
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryEnduserStatusOutcome BssOpenApiClient::queryEnduserStatus(const QueryEnduserStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryEnduserStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryEnduserStatusOutcome(QueryEnduserStatusResult(outcome.result()));
|
||||
else
|
||||
return QueryEnduserStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryEnduserStatusAsync(const QueryEnduserStatusRequest& request, const QueryEnduserStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryEnduserStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryEnduserStatusOutcomeCallable BssOpenApiClient::queryEnduserStatusCallable(const QueryEnduserStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryEnduserStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryEnduserStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::ModifyInstanceOutcome BssOpenApiClient::modifyInstance(const ModifyInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -483,42 +411,6 @@ BssOpenApiClient::CancelOrderOutcomeCallable BssOpenApiClient::cancelOrderCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::SetUserQuotaOutcome BssOpenApiClient::setUserQuota(const SetUserQuotaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetUserQuotaOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetUserQuotaOutcome(SetUserQuotaResult(outcome.result()));
|
||||
else
|
||||
return SetUserQuotaOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::setUserQuotaAsync(const SetUserQuotaRequest& request, const SetUserQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setUserQuota(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::SetUserQuotaOutcomeCallable BssOpenApiClient::setUserQuotaCallable(const SetUserQuotaRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetUserQuotaOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setUserQuota(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryResourcePackageInstancesOutcome BssOpenApiClient::queryResourcePackageInstances(const QueryResourcePackageInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,78 +447,6 @@ BssOpenApiClient::QueryResourcePackageInstancesOutcomeCallable BssOpenApiClient:
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::UnsubscribeExportToOSSOutcome BssOpenApiClient::unsubscribeExportToOSS(const UnsubscribeExportToOSSRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UnsubscribeExportToOSSOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UnsubscribeExportToOSSOutcome(UnsubscribeExportToOSSResult(outcome.result()));
|
||||
else
|
||||
return UnsubscribeExportToOSSOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::unsubscribeExportToOSSAsync(const UnsubscribeExportToOSSRequest& request, const UnsubscribeExportToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, unsubscribeExportToOSS(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::UnsubscribeExportToOSSOutcomeCallable BssOpenApiClient::unsubscribeExportToOSSCallable(const UnsubscribeExportToOSSRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UnsubscribeExportToOSSOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->unsubscribeExportToOSS(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryPriceListOutcome BssOpenApiClient::queryPriceList(const QueryPriceListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryPriceListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryPriceListOutcome(QueryPriceListResult(outcome.result()));
|
||||
else
|
||||
return QueryPriceListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryPriceListAsync(const QueryPriceListRequest& request, const QueryPriceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryPriceList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryPriceListOutcomeCallable BssOpenApiClient::queryPriceListCallable(const QueryPriceListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryPriceListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryPriceList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryRedeemOutcome BssOpenApiClient::queryRedeem(const QueryRedeemRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -663,6 +483,42 @@ BssOpenApiClient::QueryRedeemOutcomeCallable BssOpenApiClient::queryRedeemCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::SubscribeBillToOSSOutcome BssOpenApiClient::subscribeBillToOSS(const SubscribeBillToOSSRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubscribeBillToOSSOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubscribeBillToOSSOutcome(SubscribeBillToOSSResult(outcome.result()));
|
||||
else
|
||||
return SubscribeBillToOSSOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::subscribeBillToOSSAsync(const SubscribeBillToOSSRequest& request, const SubscribeBillToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, subscribeBillToOSS(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::SubscribeBillToOSSOutcomeCallable BssOpenApiClient::subscribeBillToOSSCallable(const SubscribeBillToOSSRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubscribeBillToOSSOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->subscribeBillToOSS(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::GetPayAsYouGoPriceOutcome BssOpenApiClient::getPayAsYouGoPrice(const GetPayAsYouGoPriceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,42 +555,6 @@ BssOpenApiClient::GetPayAsYouGoPriceOutcomeCallable BssOpenApiClient::getPayAsYo
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryUserAlarmThresholdOutcome BssOpenApiClient::queryUserAlarmThreshold(const QueryUserAlarmThresholdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryUserAlarmThresholdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryUserAlarmThresholdOutcome(QueryUserAlarmThresholdResult(outcome.result()));
|
||||
else
|
||||
return QueryUserAlarmThresholdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryUserAlarmThresholdAsync(const QueryUserAlarmThresholdRequest& request, const QueryUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryUserAlarmThreshold(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryUserAlarmThresholdOutcomeCallable BssOpenApiClient::queryUserAlarmThresholdCallable(const QueryUserAlarmThresholdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryUserAlarmThresholdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryUserAlarmThreshold(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::GetResourcePackagePriceOutcome BssOpenApiClient::getResourcePackagePrice(const GetResourcePackagePriceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -771,36 +591,36 @@ BssOpenApiClient::GetResourcePackagePriceOutcomeCallable BssOpenApiClient::getRe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::ChangeConsumeAmountOutcome BssOpenApiClient::changeConsumeAmount(const ChangeConsumeAmountRequest &request) const
|
||||
BssOpenApiClient::UnsubscribeBillToOSSOutcome BssOpenApiClient::unsubscribeBillToOSS(const UnsubscribeBillToOSSRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ChangeConsumeAmountOutcome(endpointOutcome.error());
|
||||
return UnsubscribeBillToOSSOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ChangeConsumeAmountOutcome(ChangeConsumeAmountResult(outcome.result()));
|
||||
return UnsubscribeBillToOSSOutcome(UnsubscribeBillToOSSResult(outcome.result()));
|
||||
else
|
||||
return ChangeConsumeAmountOutcome(outcome.error());
|
||||
return UnsubscribeBillToOSSOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::changeConsumeAmountAsync(const ChangeConsumeAmountRequest& request, const ChangeConsumeAmountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void BssOpenApiClient::unsubscribeBillToOSSAsync(const UnsubscribeBillToOSSRequest& request, const UnsubscribeBillToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, changeConsumeAmount(request), context);
|
||||
handler(this, request, unsubscribeBillToOSS(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::ChangeConsumeAmountOutcomeCallable BssOpenApiClient::changeConsumeAmountCallable(const ChangeConsumeAmountRequest &request) const
|
||||
BssOpenApiClient::UnsubscribeBillToOSSOutcomeCallable BssOpenApiClient::unsubscribeBillToOSSCallable(const UnsubscribeBillToOSSRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ChangeConsumeAmountOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<UnsubscribeBillToOSSOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->changeConsumeAmount(request);
|
||||
return this->unsubscribeBillToOSS(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -879,42 +699,6 @@ BssOpenApiClient::QueryProductListOutcomeCallable BssOpenApiClient::queryProduct
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::SetUserAlarmThresholdOutcome BssOpenApiClient::setUserAlarmThreshold(const SetUserAlarmThresholdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetUserAlarmThresholdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetUserAlarmThresholdOutcome(SetUserAlarmThresholdResult(outcome.result()));
|
||||
else
|
||||
return SetUserAlarmThresholdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::setUserAlarmThresholdAsync(const SetUserAlarmThresholdRequest& request, const SetUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setUserAlarmThreshold(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::SetUserAlarmThresholdOutcomeCallable BssOpenApiClient::setUserAlarmThresholdCallable(const SetUserAlarmThresholdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetUserAlarmThresholdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setUserAlarmThreshold(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::GetSubscriptionPriceOutcome BssOpenApiClient::getSubscriptionPrice(const GetSubscriptionPriceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -951,42 +735,6 @@ BssOpenApiClient::GetSubscriptionPriceOutcomeCallable BssOpenApiClient::getSubsc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::SubscribeDetailOutcome BssOpenApiClient::subscribeDetail(const SubscribeDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubscribeDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubscribeDetailOutcome(SubscribeDetailResult(outcome.result()));
|
||||
else
|
||||
return SubscribeDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::subscribeDetailAsync(const SubscribeDetailRequest& request, const SubscribeDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, subscribeDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::SubscribeDetailOutcomeCallable BssOpenApiClient::subscribeDetailCallable(const SubscribeDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubscribeDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->subscribeDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::EnableBillGenerationOutcome BssOpenApiClient::enableBillGeneration(const EnableBillGenerationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1023,78 +771,6 @@ BssOpenApiClient::EnableBillGenerationOutcomeCallable BssOpenApiClient::enableBi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAccountBookListOutcome BssOpenApiClient::queryAccountBookList(const QueryAccountBookListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAccountBookListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAccountBookListOutcome(QueryAccountBookListResult(outcome.result()));
|
||||
else
|
||||
return QueryAccountBookListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryAccountBookListAsync(const QueryAccountBookListRequest& request, const QueryAccountBookListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAccountBookList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAccountBookListOutcomeCallable BssOpenApiClient::queryAccountBookListCallable(const QueryAccountBookListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAccountBookListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAccountBookList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::SetEnduserStatusOutcome BssOpenApiClient::setEnduserStatus(const SetEnduserStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetEnduserStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetEnduserStatusOutcome(SetEnduserStatusResult(outcome.result()));
|
||||
else
|
||||
return SetEnduserStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::setEnduserStatusAsync(const SetEnduserStatusRequest& request, const SetEnduserStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setEnduserStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::SetEnduserStatusOutcomeCallable BssOpenApiClient::setEnduserStatusCallable(const SetEnduserStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetEnduserStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setEnduserStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryOrdersOutcome BssOpenApiClient::queryOrders(const QueryOrdersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1455,114 +1131,6 @@ BssOpenApiClient::QueryInstanceBillOutcomeCallable BssOpenApiClient::queryInstan
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::SubscribeExportToOSSOutcome BssOpenApiClient::subscribeExportToOSS(const SubscribeExportToOSSRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubscribeExportToOSSOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubscribeExportToOSSOutcome(SubscribeExportToOSSResult(outcome.result()));
|
||||
else
|
||||
return SubscribeExportToOSSOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::subscribeExportToOSSAsync(const SubscribeExportToOSSRequest& request, const SubscribeExportToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, subscribeExportToOSS(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::SubscribeExportToOSSOutcomeCallable BssOpenApiClient::subscribeExportToOSSCallable(const SubscribeExportToOSSRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubscribeExportToOSSOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->subscribeExportToOSS(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAvaliableQuotaOutcome BssOpenApiClient::queryAvaliableQuota(const QueryAvaliableQuotaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAvaliableQuotaOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAvaliableQuotaOutcome(QueryAvaliableQuotaResult(outcome.result()));
|
||||
else
|
||||
return QueryAvaliableQuotaOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryAvaliableQuotaAsync(const QueryAvaliableQuotaRequest& request, const QueryAvaliableQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAvaliableQuota(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAvaliableQuotaOutcomeCallable BssOpenApiClient::queryAvaliableQuotaCallable(const QueryAvaliableQuotaRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAvaliableQuotaOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAvaliableQuota(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryPriceOutcome BssOpenApiClient::queryPrice(const QueryPriceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryPriceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryPriceOutcome(QueryPriceResult(outcome.result()));
|
||||
else
|
||||
return QueryPriceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryPriceAsync(const QueryPriceRequest& request, const QueryPriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryPrice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryPriceOutcomeCallable BssOpenApiClient::queryPriceCallable(const QueryPriceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryPriceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryPrice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryBillOutcome BssOpenApiClient::queryBill(const QueryBillRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -33,7 +33,7 @@ int ApplyInvoiceRequest::getInvoicingType()const
|
||||
void ApplyInvoiceRequest::setInvoicingType(int invoicingType)
|
||||
{
|
||||
invoicingType_ = invoicingType;
|
||||
setParameter("InvoicingType", std::to_string(invoicingType));
|
||||
setCoreParameter("InvoicingType", std::to_string(invoicingType));
|
||||
}
|
||||
|
||||
std::string ApplyInvoiceRequest::getApplyUserNick()const
|
||||
@@ -44,7 +44,7 @@ std::string ApplyInvoiceRequest::getApplyUserNick()const
|
||||
void ApplyInvoiceRequest::setApplyUserNick(const std::string& applyUserNick)
|
||||
{
|
||||
applyUserNick_ = applyUserNick;
|
||||
setParameter("ApplyUserNick", applyUserNick);
|
||||
setCoreParameter("ApplyUserNick", applyUserNick);
|
||||
}
|
||||
|
||||
bool ApplyInvoiceRequest::getInvoiceByAmount()const
|
||||
@@ -55,7 +55,7 @@ bool ApplyInvoiceRequest::getInvoiceByAmount()const
|
||||
void ApplyInvoiceRequest::setInvoiceByAmount(bool invoiceByAmount)
|
||||
{
|
||||
invoiceByAmount_ = invoiceByAmount;
|
||||
setParameter("InvoiceByAmount", invoiceByAmount ? "true" : "false");
|
||||
setCoreParameter("InvoiceByAmount", invoiceByAmount ? "true" : "false");
|
||||
}
|
||||
|
||||
long ApplyInvoiceRequest::getCustomerId()const
|
||||
@@ -66,7 +66,7 @@ long ApplyInvoiceRequest::getCustomerId()const
|
||||
void ApplyInvoiceRequest::setCustomerId(long customerId)
|
||||
{
|
||||
customerId_ = customerId;
|
||||
setParameter("CustomerId", std::to_string(customerId));
|
||||
setCoreParameter("CustomerId", std::to_string(customerId));
|
||||
}
|
||||
|
||||
std::vector<long> ApplyInvoiceRequest::getSelectedIds()const
|
||||
@@ -78,7 +78,7 @@ void ApplyInvoiceRequest::setSelectedIds(const std::vector<long>& selectedIds)
|
||||
{
|
||||
selectedIds_ = selectedIds;
|
||||
for(int i = 0; i!= selectedIds.size(); i++)
|
||||
setParameter("SelectedIds."+ std::to_string(i), std::to_string(selectedIds.at(i)));
|
||||
setCoreParameter("SelectedIds."+ std::to_string(i), std::to_string(selectedIds.at(i)));
|
||||
}
|
||||
|
||||
int ApplyInvoiceRequest::getProcessWay()const
|
||||
@@ -89,7 +89,7 @@ int ApplyInvoiceRequest::getProcessWay()const
|
||||
void ApplyInvoiceRequest::setProcessWay(int processWay)
|
||||
{
|
||||
processWay_ = processWay;
|
||||
setParameter("ProcessWay", std::to_string(processWay));
|
||||
setCoreParameter("ProcessWay", std::to_string(processWay));
|
||||
}
|
||||
|
||||
long ApplyInvoiceRequest::getCallerBid()const
|
||||
@@ -100,7 +100,7 @@ long ApplyInvoiceRequest::getCallerBid()const
|
||||
void ApplyInvoiceRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
long ApplyInvoiceRequest::getOwnerId()const
|
||||
@@ -111,7 +111,7 @@ long ApplyInvoiceRequest::getOwnerId()const
|
||||
void ApplyInvoiceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long ApplyInvoiceRequest::getInvoiceAmount()const
|
||||
@@ -122,7 +122,7 @@ long ApplyInvoiceRequest::getInvoiceAmount()const
|
||||
void ApplyInvoiceRequest::setInvoiceAmount(long invoiceAmount)
|
||||
{
|
||||
invoiceAmount_ = invoiceAmount;
|
||||
setParameter("InvoiceAmount", std::to_string(invoiceAmount));
|
||||
setCoreParameter("InvoiceAmount", std::to_string(invoiceAmount));
|
||||
}
|
||||
|
||||
long ApplyInvoiceRequest::getAddressId()const
|
||||
@@ -133,7 +133,7 @@ long ApplyInvoiceRequest::getAddressId()const
|
||||
void ApplyInvoiceRequest::setAddressId(long addressId)
|
||||
{
|
||||
addressId_ = addressId;
|
||||
setParameter("AddressId", std::to_string(addressId));
|
||||
setCoreParameter("AddressId", std::to_string(addressId));
|
||||
}
|
||||
|
||||
long ApplyInvoiceRequest::getCallerUid()const
|
||||
@@ -144,6 +144,6 @@ long ApplyInvoiceRequest::getCallerUid()const
|
||||
void ApplyInvoiceRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CancelOrderRequest::getOrderId()const
|
||||
void CancelOrderRequest::setOrderId(const std::string& orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", orderId);
|
||||
setCoreParameter("OrderId", orderId);
|
||||
}
|
||||
|
||||
long CancelOrderRequest::getOwnerId()const
|
||||
@@ -44,6 +44,6 @@ long CancelOrderRequest::getOwnerId()const
|
||||
void CancelOrderRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,126 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/ChangeConsumeAmountRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::ChangeConsumeAmountRequest;
|
||||
|
||||
ChangeConsumeAmountRequest::ChangeConsumeAmountRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "ChangeConsumeAmount")
|
||||
{}
|
||||
|
||||
ChangeConsumeAmountRequest::~ChangeConsumeAmountRequest()
|
||||
{}
|
||||
|
||||
long ChangeConsumeAmountRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getAdjustType()const
|
||||
{
|
||||
return adjustType_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setAdjustType(const std::string& adjustType)
|
||||
{
|
||||
adjustType_ = adjustType;
|
||||
setParameter("AdjustType", adjustType);
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getAmount()const
|
||||
{
|
||||
return amount_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setAmount(const std::string& amount)
|
||||
{
|
||||
amount_ = amount;
|
||||
setParameter("Amount", amount);
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getOutBizId()const
|
||||
{
|
||||
return outBizId_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setOutBizId(const std::string& outBizId)
|
||||
{
|
||||
outBizId_ = outBizId;
|
||||
setParameter("OutBizId", outBizId);
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getExtendMap()const
|
||||
{
|
||||
return extendMap_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setExtendMap(const std::string& extendMap)
|
||||
{
|
||||
extendMap_ = extendMap;
|
||||
setParameter("ExtendMap", extendMap);
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getCurrency()const
|
||||
{
|
||||
return currency_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setCurrency(const std::string& currency)
|
||||
{
|
||||
currency_ = currency;
|
||||
setParameter("Currency", currency);
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getSource()const
|
||||
{
|
||||
return source_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setSource(const std::string& source)
|
||||
{
|
||||
source_ = source;
|
||||
setParameter("Source", source);
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setBid(const std::string& bid)
|
||||
{
|
||||
bid_ = bid;
|
||||
setParameter("Bid", bid);
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getBusinessType()const
|
||||
{
|
||||
return businessType_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setBusinessType(const std::string& businessType)
|
||||
{
|
||||
businessType_ = businessType;
|
||||
setParameter("BusinessType", businessType);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/ChangeConsumeAmountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
ChangeConsumeAmountResult::ChangeConsumeAmountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChangeConsumeAmountResult::ChangeConsumeAmountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChangeConsumeAmountResult::~ChangeConsumeAmountResult()
|
||||
{}
|
||||
|
||||
void ChangeConsumeAmountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ChangeConsumeAmountResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ int ConvertChargeTypeRequest::getPeriod()const
|
||||
void ConvertChargeTypeRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
setCoreParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string ConvertChargeTypeRequest::getProductCode()const
|
||||
@@ -44,7 +44,7 @@ std::string ConvertChargeTypeRequest::getProductCode()const
|
||||
void ConvertChargeTypeRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string ConvertChargeTypeRequest::getInstanceId()const
|
||||
@@ -55,7 +55,7 @@ std::string ConvertChargeTypeRequest::getInstanceId()const
|
||||
void ConvertChargeTypeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ConvertChargeTypeRequest::getSubscriptionType()const
|
||||
@@ -66,7 +66,7 @@ std::string ConvertChargeTypeRequest::getSubscriptionType()const
|
||||
void ConvertChargeTypeRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
long ConvertChargeTypeRequest::getOwnerId()const
|
||||
@@ -77,7 +77,7 @@ long ConvertChargeTypeRequest::getOwnerId()const
|
||||
void ConvertChargeTypeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ConvertChargeTypeRequest::getProductType()const
|
||||
@@ -88,6 +88,6 @@ std::string ConvertChargeTypeRequest::getProductType()const
|
||||
void ConvertChargeTypeRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateInstanceRequest::getProductCode()const
|
||||
void CreateInstanceRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
int CreateInstanceRequest::getPeriod()const
|
||||
@@ -44,7 +44,7 @@ int CreateInstanceRequest::getPeriod()const
|
||||
void CreateInstanceRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
setCoreParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getSubscriptionType()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateInstanceRequest::getSubscriptionType()const
|
||||
void CreateInstanceRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
int CreateInstanceRequest::getRenewPeriod()const
|
||||
@@ -66,7 +66,7 @@ int CreateInstanceRequest::getRenewPeriod()const
|
||||
void CreateInstanceRequest::setRenewPeriod(int renewPeriod)
|
||||
{
|
||||
renewPeriod_ = renewPeriod;
|
||||
setParameter("RenewPeriod", std::to_string(renewPeriod));
|
||||
setCoreParameter("RenewPeriod", std::to_string(renewPeriod));
|
||||
}
|
||||
|
||||
std::vector<CreateInstanceRequest::Parameter> CreateInstanceRequest::getParameter()const
|
||||
@@ -81,8 +81,8 @@ void CreateInstanceRequest::setParameter(const std::vector<Parameter>& parameter
|
||||
for(int i = 0; i!= parameter.size(); i++) {
|
||||
auto obj = parameter.at(i);
|
||||
std::string str ="Parameter."+ std::to_string(i);
|
||||
setParameter(str + ".Code", obj.code);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Code", obj.code);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ std::string CreateInstanceRequest::getRenewalStatus()const
|
||||
void CreateInstanceRequest::setRenewalStatus(const std::string& renewalStatus)
|
||||
{
|
||||
renewalStatus_ = renewalStatus;
|
||||
setParameter("RenewalStatus", renewalStatus);
|
||||
setCoreParameter("RenewalStatus", renewalStatus);
|
||||
}
|
||||
|
||||
long CreateInstanceRequest::getOwnerId()const
|
||||
@@ -105,7 +105,7 @@ long CreateInstanceRequest::getOwnerId()const
|
||||
void CreateInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getProductType()const
|
||||
@@ -116,6 +116,6 @@ std::string CreateInstanceRequest::getProductType()const
|
||||
void CreateInstanceRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ int CreateResourcePackageRequest::getDuration()const
|
||||
void CreateResourcePackageRequest::setDuration(int duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", std::to_string(duration));
|
||||
setCoreParameter("Duration", std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string CreateResourcePackageRequest::getProductCode()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateResourcePackageRequest::getProductCode()const
|
||||
void CreateResourcePackageRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string CreateResourcePackageRequest::getSpecification()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateResourcePackageRequest::getSpecification()const
|
||||
void CreateResourcePackageRequest::setSpecification(const std::string& specification)
|
||||
{
|
||||
specification_ = specification;
|
||||
setParameter("Specification", specification);
|
||||
setCoreParameter("Specification", specification);
|
||||
}
|
||||
|
||||
long CreateResourcePackageRequest::getOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long CreateResourcePackageRequest::getOwnerId()const
|
||||
void CreateResourcePackageRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateResourcePackageRequest::getPackageType()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateResourcePackageRequest::getPackageType()const
|
||||
void CreateResourcePackageRequest::setPackageType(const std::string& packageType)
|
||||
{
|
||||
packageType_ = packageType;
|
||||
setParameter("PackageType", packageType);
|
||||
setCoreParameter("PackageType", packageType);
|
||||
}
|
||||
|
||||
std::string CreateResourcePackageRequest::getEffectiveDate()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateResourcePackageRequest::getEffectiveDate()const
|
||||
void CreateResourcePackageRequest::setEffectiveDate(const std::string& effectiveDate)
|
||||
{
|
||||
effectiveDate_ = effectiveDate;
|
||||
setParameter("EffectiveDate", effectiveDate);
|
||||
setCoreParameter("EffectiveDate", effectiveDate);
|
||||
}
|
||||
|
||||
std::string CreateResourcePackageRequest::getPricingCycle()const
|
||||
@@ -99,6 +99,6 @@ std::string CreateResourcePackageRequest::getPricingCycle()const
|
||||
void CreateResourcePackageRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
{
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter("PricingCycle", pricingCycle);
|
||||
setCoreParameter("PricingCycle", pricingCycle);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/CreateUserQuotaRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::CreateUserQuotaRequest;
|
||||
|
||||
CreateUserQuotaRequest::CreateUserQuotaRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateUserQuota")
|
||||
{}
|
||||
|
||||
CreateUserQuotaRequest::~CreateUserQuotaRequest()
|
||||
{}
|
||||
|
||||
long CreateUserQuotaRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void CreateUserQuotaRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string CreateUserQuotaRequest::getAmount()const
|
||||
{
|
||||
return amount_;
|
||||
}
|
||||
|
||||
void CreateUserQuotaRequest::setAmount(const std::string& amount)
|
||||
{
|
||||
amount_ = amount;
|
||||
setParameter("Amount", amount);
|
||||
}
|
||||
|
||||
std::string CreateUserQuotaRequest::getOutBizId()const
|
||||
{
|
||||
return outBizId_;
|
||||
}
|
||||
|
||||
void CreateUserQuotaRequest::setOutBizId(const std::string& outBizId)
|
||||
{
|
||||
outBizId_ = outBizId;
|
||||
setParameter("OutBizId", outBizId);
|
||||
}
|
||||
|
||||
std::string CreateUserQuotaRequest::getCurrency()const
|
||||
{
|
||||
return currency_;
|
||||
}
|
||||
|
||||
void CreateUserQuotaRequest::setCurrency(const std::string& currency)
|
||||
{
|
||||
currency_ = currency;
|
||||
setParameter("Currency", currency);
|
||||
}
|
||||
|
||||
std::string CreateUserQuotaRequest::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
void CreateUserQuotaRequest::setBid(const std::string& bid)
|
||||
{
|
||||
bid_ = bid;
|
||||
setParameter("Bid", bid);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/CreateUserQuotaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
CreateUserQuotaResult::CreateUserQuotaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUserQuotaResult::CreateUserQuotaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUserQuotaResult::~CreateUserQuotaResult()
|
||||
{}
|
||||
|
||||
void CreateUserQuotaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateUserQuotaResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool CreateUserQuotaResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateUserQuotaResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateUserQuotaResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DescribePricingModuleRequest::getProductCode()const
|
||||
void DescribePricingModuleRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string DescribePricingModuleRequest::getSubscriptionType()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribePricingModuleRequest::getSubscriptionType()const
|
||||
void DescribePricingModuleRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
long DescribePricingModuleRequest::getOwnerId()const
|
||||
@@ -55,7 +55,7 @@ long DescribePricingModuleRequest::getOwnerId()const
|
||||
void DescribePricingModuleRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribePricingModuleRequest::getProductType()const
|
||||
@@ -66,6 +66,6 @@ std::string DescribePricingModuleRequest::getProductType()const
|
||||
void DescribePricingModuleRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string DescribeResourcePackageProductRequest::getProductCode()const
|
||||
void DescribeResourcePackageProductRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string EnableBillGenerationRequest::getProductCode()const
|
||||
void EnableBillGenerationRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
long EnableBillGenerationRequest::getOwnerId()const
|
||||
@@ -44,6 +44,6 @@ long EnableBillGenerationRequest::getOwnerId()const
|
||||
void EnableBillGenerationRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string GetOrderDetailRequest::getOrderId()const
|
||||
void GetOrderDetailRequest::setOrderId(const std::string& orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", orderId);
|
||||
setCoreParameter("OrderId", orderId);
|
||||
}
|
||||
|
||||
long GetOrderDetailRequest::getOwnerId()const
|
||||
@@ -44,6 +44,6 @@ long GetOrderDetailRequest::getOwnerId()const
|
||||
void GetOrderDetailRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string GetPayAsYouGoPriceRequest::getProductCode()const
|
||||
void GetPayAsYouGoPriceRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string GetPayAsYouGoPriceRequest::getSubscriptionType()const
|
||||
@@ -44,7 +44,7 @@ std::string GetPayAsYouGoPriceRequest::getSubscriptionType()const
|
||||
void GetPayAsYouGoPriceRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
std::vector<GetPayAsYouGoPriceRequest::ModuleList> GetPayAsYouGoPriceRequest::getModuleList()const
|
||||
@@ -59,9 +59,9 @@ void GetPayAsYouGoPriceRequest::setModuleList(const std::vector<ModuleList>& mod
|
||||
for(int i = 0; i!= moduleList.size(); i++) {
|
||||
auto obj = moduleList.at(i);
|
||||
std::string str ="ModuleList."+ std::to_string(i);
|
||||
setParameter(str + ".ModuleCode", obj.moduleCode);
|
||||
setParameter(str + ".PriceType", obj.priceType);
|
||||
setParameter(str + ".Config", obj.config);
|
||||
setCoreParameter(str + ".ModuleCode", obj.moduleCode);
|
||||
setCoreParameter(str + ".PriceType", obj.priceType);
|
||||
setCoreParameter(str + ".Config", obj.config);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ long GetPayAsYouGoPriceRequest::getOwnerId()const
|
||||
void GetPayAsYouGoPriceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetPayAsYouGoPriceRequest::getRegion()const
|
||||
@@ -84,7 +84,7 @@ std::string GetPayAsYouGoPriceRequest::getRegion()const
|
||||
void GetPayAsYouGoPriceRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
setCoreParameter("Region", region);
|
||||
}
|
||||
|
||||
std::string GetPayAsYouGoPriceRequest::getProductType()const
|
||||
@@ -95,6 +95,6 @@ std::string GetPayAsYouGoPriceRequest::getProductType()const
|
||||
void GetPayAsYouGoPriceRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ int GetResourcePackagePriceRequest::getDuration()const
|
||||
void GetResourcePackagePriceRequest::setDuration(int duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", std::to_string(duration));
|
||||
setCoreParameter("Duration", std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string GetResourcePackagePriceRequest::getProductCode()const
|
||||
@@ -44,7 +44,7 @@ std::string GetResourcePackagePriceRequest::getProductCode()const
|
||||
void GetResourcePackagePriceRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string GetResourcePackagePriceRequest::getSpecification()const
|
||||
@@ -55,7 +55,7 @@ std::string GetResourcePackagePriceRequest::getSpecification()const
|
||||
void GetResourcePackagePriceRequest::setSpecification(const std::string& specification)
|
||||
{
|
||||
specification_ = specification;
|
||||
setParameter("Specification", specification);
|
||||
setCoreParameter("Specification", specification);
|
||||
}
|
||||
|
||||
long GetResourcePackagePriceRequest::getOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long GetResourcePackagePriceRequest::getOwnerId()const
|
||||
void GetResourcePackagePriceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetResourcePackagePriceRequest::getPackageType()const
|
||||
@@ -77,7 +77,7 @@ std::string GetResourcePackagePriceRequest::getPackageType()const
|
||||
void GetResourcePackagePriceRequest::setPackageType(const std::string& packageType)
|
||||
{
|
||||
packageType_ = packageType;
|
||||
setParameter("PackageType", packageType);
|
||||
setCoreParameter("PackageType", packageType);
|
||||
}
|
||||
|
||||
std::string GetResourcePackagePriceRequest::getEffectiveDate()const
|
||||
@@ -88,7 +88,7 @@ std::string GetResourcePackagePriceRequest::getEffectiveDate()const
|
||||
void GetResourcePackagePriceRequest::setEffectiveDate(const std::string& effectiveDate)
|
||||
{
|
||||
effectiveDate_ = effectiveDate;
|
||||
setParameter("EffectiveDate", effectiveDate);
|
||||
setCoreParameter("EffectiveDate", effectiveDate);
|
||||
}
|
||||
|
||||
std::string GetResourcePackagePriceRequest::getPricingCycle()const
|
||||
@@ -99,6 +99,6 @@ std::string GetResourcePackagePriceRequest::getPricingCycle()const
|
||||
void GetResourcePackagePriceRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
{
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter("PricingCycle", pricingCycle);
|
||||
setCoreParameter("PricingCycle", pricingCycle);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ int GetSubscriptionPriceRequest::getServicePeriodQuantity()const
|
||||
void GetSubscriptionPriceRequest::setServicePeriodQuantity(int servicePeriodQuantity)
|
||||
{
|
||||
servicePeriodQuantity_ = servicePeriodQuantity;
|
||||
setParameter("ServicePeriodQuantity", std::to_string(servicePeriodQuantity));
|
||||
setCoreParameter("ServicePeriodQuantity", std::to_string(servicePeriodQuantity));
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getProductCode()const
|
||||
@@ -44,7 +44,7 @@ std::string GetSubscriptionPriceRequest::getProductCode()const
|
||||
void GetSubscriptionPriceRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getInstanceId()const
|
||||
@@ -55,7 +55,7 @@ std::string GetSubscriptionPriceRequest::getInstanceId()const
|
||||
void GetSubscriptionPriceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
int GetSubscriptionPriceRequest::getQuantity()const
|
||||
@@ -66,7 +66,7 @@ int GetSubscriptionPriceRequest::getQuantity()const
|
||||
void GetSubscriptionPriceRequest::setQuantity(int quantity)
|
||||
{
|
||||
quantity_ = quantity;
|
||||
setParameter("Quantity", std::to_string(quantity));
|
||||
setCoreParameter("Quantity", std::to_string(quantity));
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getServicePeriodUnit()const
|
||||
@@ -77,7 +77,7 @@ std::string GetSubscriptionPriceRequest::getServicePeriodUnit()const
|
||||
void GetSubscriptionPriceRequest::setServicePeriodUnit(const std::string& servicePeriodUnit)
|
||||
{
|
||||
servicePeriodUnit_ = servicePeriodUnit;
|
||||
setParameter("ServicePeriodUnit", servicePeriodUnit);
|
||||
setCoreParameter("ServicePeriodUnit", servicePeriodUnit);
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getSubscriptionType()const
|
||||
@@ -88,7 +88,7 @@ std::string GetSubscriptionPriceRequest::getSubscriptionType()const
|
||||
void GetSubscriptionPriceRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
std::vector<GetSubscriptionPriceRequest::ModuleList> GetSubscriptionPriceRequest::getModuleList()const
|
||||
@@ -103,10 +103,10 @@ void GetSubscriptionPriceRequest::setModuleList(const std::vector<ModuleList>& m
|
||||
for(int i = 0; i!= moduleList.size(); i++) {
|
||||
auto obj = moduleList.at(i);
|
||||
std::string str ="ModuleList."+ std::to_string(i);
|
||||
setParameter(str + ".ModuleCode", obj.moduleCode);
|
||||
setParameter(str + ".ModuleStatus", std::to_string(obj.moduleStatus));
|
||||
setParameter(str + ".Tag", obj.tag);
|
||||
setParameter(str + ".Config", obj.config);
|
||||
setCoreParameter(str + ".ModuleCode", obj.moduleCode);
|
||||
setCoreParameter(str + ".ModuleStatus", std::to_string(obj.moduleStatus));
|
||||
setCoreParameter(str + ".Tag", obj.tag);
|
||||
setCoreParameter(str + ".Config", obj.config);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ long GetSubscriptionPriceRequest::getOwnerId()const
|
||||
void GetSubscriptionPriceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getRegion()const
|
||||
@@ -129,7 +129,7 @@ std::string GetSubscriptionPriceRequest::getRegion()const
|
||||
void GetSubscriptionPriceRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
setCoreParameter("Region", region);
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getOrderType()const
|
||||
@@ -140,7 +140,7 @@ std::string GetSubscriptionPriceRequest::getOrderType()const
|
||||
void GetSubscriptionPriceRequest::setOrderType(const std::string& orderType)
|
||||
{
|
||||
orderType_ = orderType;
|
||||
setParameter("OrderType", orderType);
|
||||
setCoreParameter("OrderType", orderType);
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getProductType()const
|
||||
@@ -151,6 +151,6 @@ std::string GetSubscriptionPriceRequest::getProductType()const
|
||||
void GetSubscriptionPriceRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string ModifyInstanceRequest::getProductCode()const
|
||||
void ModifyInstanceRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceRequest::getInstanceId()const
|
||||
@@ -44,7 +44,7 @@ std::string ModifyInstanceRequest::getInstanceId()const
|
||||
void ModifyInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceRequest::getSubscriptionType()const
|
||||
@@ -55,7 +55,7 @@ std::string ModifyInstanceRequest::getSubscriptionType()const
|
||||
void ModifyInstanceRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceRequest::getModifyType()const
|
||||
@@ -66,7 +66,7 @@ std::string ModifyInstanceRequest::getModifyType()const
|
||||
void ModifyInstanceRequest::setModifyType(const std::string& modifyType)
|
||||
{
|
||||
modifyType_ = modifyType;
|
||||
setParameter("ModifyType", modifyType);
|
||||
setCoreParameter("ModifyType", modifyType);
|
||||
}
|
||||
|
||||
std::vector<ModifyInstanceRequest::Parameter> ModifyInstanceRequest::getParameter()const
|
||||
@@ -81,8 +81,8 @@ void ModifyInstanceRequest::setParameter(const std::vector<Parameter>& parameter
|
||||
for(int i = 0; i!= parameter.size(); i++) {
|
||||
auto obj = parameter.at(i);
|
||||
std::string str ="Parameter."+ std::to_string(i);
|
||||
setParameter(str + ".Code", obj.code);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Code", obj.code);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ long ModifyInstanceRequest::getOwnerId()const
|
||||
void ModifyInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyInstanceRequest::getProductType()const
|
||||
@@ -105,6 +105,6 @@ std::string ModifyInstanceRequest::getProductType()const
|
||||
void ModifyInstanceRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/QueryAccountBookListRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryAccountBookListRequest;
|
||||
|
||||
QueryAccountBookListRequest::QueryAccountBookListRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBookList")
|
||||
{}
|
||||
|
||||
QueryAccountBookListRequest::~QueryAccountBookListRequest()
|
||||
{}
|
||||
|
||||
long QueryAccountBookListRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void QueryAccountBookListRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string QueryAccountBookListRequest::getItemCodes()const
|
||||
{
|
||||
return itemCodes_;
|
||||
}
|
||||
|
||||
void QueryAccountBookListRequest::setItemCodes(const std::string& itemCodes)
|
||||
{
|
||||
itemCodes_ = itemCodes;
|
||||
setParameter("ItemCodes", itemCodes);
|
||||
}
|
||||
|
||||
std::string QueryAccountBookListRequest::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
void QueryAccountBookListRequest::setBid(const std::string& bid)
|
||||
{
|
||||
bid_ = bid;
|
||||
setParameter("Bid", bid);
|
||||
}
|
||||
|
||||
@@ -1,98 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/QueryAccountBookListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryAccountBookListResult::QueryAccountBookListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAccountBookListResult::QueryAccountBookListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAccountBookListResult::~QueryAccountBookListResult()
|
||||
{}
|
||||
|
||||
void QueryAccountBookListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatas = value["Datas"]["Data"];
|
||||
for (auto value : allDatas)
|
||||
{
|
||||
Data datasObject;
|
||||
if(!value["UserId"].isNull())
|
||||
datasObject.userId = std::stol(value["UserId"].asString());
|
||||
if(!value["Bid"].isNull())
|
||||
datasObject.bid = value["Bid"].asString();
|
||||
if(!value["ItemCode"].isNull())
|
||||
datasObject.itemCode = value["ItemCode"].asString();
|
||||
if(!value["Amount"].isNull())
|
||||
datasObject.amount = value["Amount"].asString();
|
||||
if(!value["EffectTimeStamp"].isNull())
|
||||
datasObject.effectTimeStamp = std::stol(value["EffectTimeStamp"].asString());
|
||||
if(!value["InvalidTimeStamp"].isNull())
|
||||
datasObject.invalidTimeStamp = std::stol(value["InvalidTimeStamp"].asString());
|
||||
if(!value["Currency"].isNull())
|
||||
datasObject.currency = value["Currency"].asString();
|
||||
datas_.push_back(datasObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string QueryAccountBookListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<QueryAccountBookListResult::Data> QueryAccountBookListResult::getDatas()const
|
||||
{
|
||||
return datas_;
|
||||
}
|
||||
|
||||
int QueryAccountBookListResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::string QueryAccountBookListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryAccountBookListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string QueryAvailableInstancesRequest::getProductCode()const
|
||||
void QueryAvailableInstancesRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getSubscriptionType()const
|
||||
@@ -44,7 +44,7 @@ std::string QueryAvailableInstancesRequest::getSubscriptionType()const
|
||||
void QueryAvailableInstancesRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
long QueryAvailableInstancesRequest::getOwnerId()const
|
||||
@@ -55,7 +55,7 @@ long QueryAvailableInstancesRequest::getOwnerId()const
|
||||
void QueryAvailableInstancesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int QueryAvailableInstancesRequest::getPageNum()const
|
||||
@@ -66,7 +66,7 @@ int QueryAvailableInstancesRequest::getPageNum()const
|
||||
void QueryAvailableInstancesRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getEndTimeStart()const
|
||||
@@ -77,7 +77,7 @@ std::string QueryAvailableInstancesRequest::getEndTimeStart()const
|
||||
void QueryAvailableInstancesRequest::setEndTimeStart(const std::string& endTimeStart)
|
||||
{
|
||||
endTimeStart_ = endTimeStart;
|
||||
setParameter("EndTimeStart", endTimeStart);
|
||||
setCoreParameter("EndTimeStart", endTimeStart);
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getProductType()const
|
||||
@@ -88,7 +88,7 @@ std::string QueryAvailableInstancesRequest::getProductType()const
|
||||
void QueryAvailableInstancesRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getCreateTimeEnd()const
|
||||
@@ -99,7 +99,7 @@ std::string QueryAvailableInstancesRequest::getCreateTimeEnd()const
|
||||
void QueryAvailableInstancesRequest::setCreateTimeEnd(const std::string& createTimeEnd)
|
||||
{
|
||||
createTimeEnd_ = createTimeEnd;
|
||||
setParameter("CreateTimeEnd", createTimeEnd);
|
||||
setCoreParameter("CreateTimeEnd", createTimeEnd);
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getInstanceIDs()const
|
||||
@@ -110,7 +110,7 @@ std::string QueryAvailableInstancesRequest::getInstanceIDs()const
|
||||
void QueryAvailableInstancesRequest::setInstanceIDs(const std::string& instanceIDs)
|
||||
{
|
||||
instanceIDs_ = instanceIDs;
|
||||
setParameter("InstanceIDs", instanceIDs);
|
||||
setCoreParameter("InstanceIDs", instanceIDs);
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getEndTimeEnd()const
|
||||
@@ -121,7 +121,7 @@ std::string QueryAvailableInstancesRequest::getEndTimeEnd()const
|
||||
void QueryAvailableInstancesRequest::setEndTimeEnd(const std::string& endTimeEnd)
|
||||
{
|
||||
endTimeEnd_ = endTimeEnd;
|
||||
setParameter("EndTimeEnd", endTimeEnd);
|
||||
setCoreParameter("EndTimeEnd", endTimeEnd);
|
||||
}
|
||||
|
||||
int QueryAvailableInstancesRequest::getPageSize()const
|
||||
@@ -132,7 +132,7 @@ int QueryAvailableInstancesRequest::getPageSize()const
|
||||
void QueryAvailableInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getCreateTimeStart()const
|
||||
@@ -143,7 +143,7 @@ std::string QueryAvailableInstancesRequest::getCreateTimeStart()const
|
||||
void QueryAvailableInstancesRequest::setCreateTimeStart(const std::string& createTimeStart)
|
||||
{
|
||||
createTimeStart_ = createTimeStart;
|
||||
setParameter("CreateTimeStart", createTimeStart);
|
||||
setCoreParameter("CreateTimeStart", createTimeStart);
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getRegion()const
|
||||
@@ -154,7 +154,7 @@ std::string QueryAvailableInstancesRequest::getRegion()const
|
||||
void QueryAvailableInstancesRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
setCoreParameter("Region", region);
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getRenewStatus()const
|
||||
@@ -165,6 +165,6 @@ std::string QueryAvailableInstancesRequest::getRenewStatus()const
|
||||
void QueryAvailableInstancesRequest::setRenewStatus(const std::string& renewStatus)
|
||||
{
|
||||
renewStatus_ = renewStatus;
|
||||
setParameter("RenewStatus", renewStatus);
|
||||
setCoreParameter("RenewStatus", renewStatus);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/QueryAvaliableQuotaRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryAvaliableQuotaRequest;
|
||||
|
||||
QueryAvaliableQuotaRequest::QueryAvaliableQuotaRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAvaliableQuota")
|
||||
{}
|
||||
|
||||
QueryAvaliableQuotaRequest::~QueryAvaliableQuotaRequest()
|
||||
{}
|
||||
|
||||
long QueryAvaliableQuotaRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void QueryAvaliableQuotaRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string QueryAvaliableQuotaRequest::getItemCodes()const
|
||||
{
|
||||
return itemCodes_;
|
||||
}
|
||||
|
||||
void QueryAvaliableQuotaRequest::setItemCodes(const std::string& itemCodes)
|
||||
{
|
||||
itemCodes_ = itemCodes;
|
||||
setParameter("ItemCodes", itemCodes);
|
||||
}
|
||||
|
||||
std::string QueryAvaliableQuotaRequest::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
void QueryAvaliableQuotaRequest::setBid(const std::string& bid)
|
||||
{
|
||||
bid_ = bid;
|
||||
setParameter("Bid", bid);
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string QueryBillOverviewRequest::getProductCode()const
|
||||
void QueryBillOverviewRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string QueryBillOverviewRequest::getSubscriptionType()const
|
||||
@@ -44,7 +44,7 @@ std::string QueryBillOverviewRequest::getSubscriptionType()const
|
||||
void QueryBillOverviewRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
std::string QueryBillOverviewRequest::getBillingCycle()const
|
||||
@@ -55,7 +55,7 @@ std::string QueryBillOverviewRequest::getBillingCycle()const
|
||||
void QueryBillOverviewRequest::setBillingCycle(const std::string& billingCycle)
|
||||
{
|
||||
billingCycle_ = billingCycle;
|
||||
setParameter("BillingCycle", billingCycle);
|
||||
setCoreParameter("BillingCycle", billingCycle);
|
||||
}
|
||||
|
||||
std::string QueryBillOverviewRequest::getProductType()const
|
||||
@@ -66,6 +66,6 @@ std::string QueryBillOverviewRequest::getProductType()const
|
||||
void QueryBillOverviewRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string QueryBillRequest::getProductCode()const
|
||||
void QueryBillRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
bool QueryBillRequest::getIsHideZeroCharge()const
|
||||
@@ -44,7 +44,7 @@ bool QueryBillRequest::getIsHideZeroCharge()const
|
||||
void QueryBillRequest::setIsHideZeroCharge(bool isHideZeroCharge)
|
||||
{
|
||||
isHideZeroCharge_ = isHideZeroCharge;
|
||||
setParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false");
|
||||
setCoreParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false");
|
||||
}
|
||||
|
||||
bool QueryBillRequest::getIsDisplayLocalCurrency()const
|
||||
@@ -55,7 +55,7 @@ bool QueryBillRequest::getIsDisplayLocalCurrency()const
|
||||
void QueryBillRequest::setIsDisplayLocalCurrency(bool isDisplayLocalCurrency)
|
||||
{
|
||||
isDisplayLocalCurrency_ = isDisplayLocalCurrency;
|
||||
setParameter("IsDisplayLocalCurrency", isDisplayLocalCurrency ? "true" : "false");
|
||||
setCoreParameter("IsDisplayLocalCurrency", isDisplayLocalCurrency ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string QueryBillRequest::getSubscriptionType()const
|
||||
@@ -66,7 +66,7 @@ std::string QueryBillRequest::getSubscriptionType()const
|
||||
void QueryBillRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
int QueryBillRequest::getPageSize()const
|
||||
@@ -77,7 +77,7 @@ int QueryBillRequest::getPageSize()const
|
||||
void QueryBillRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryBillRequest::getBillingCycle()const
|
||||
@@ -88,7 +88,7 @@ std::string QueryBillRequest::getBillingCycle()const
|
||||
void QueryBillRequest::setBillingCycle(const std::string& billingCycle)
|
||||
{
|
||||
billingCycle_ = billingCycle;
|
||||
setParameter("BillingCycle", billingCycle);
|
||||
setCoreParameter("BillingCycle", billingCycle);
|
||||
}
|
||||
|
||||
std::string QueryBillRequest::getType()const
|
||||
@@ -99,7 +99,7 @@ std::string QueryBillRequest::getType()const
|
||||
void QueryBillRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
long QueryBillRequest::getOwnerId()const
|
||||
@@ -110,7 +110,7 @@ long QueryBillRequest::getOwnerId()const
|
||||
void QueryBillRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int QueryBillRequest::getPageNum()const
|
||||
@@ -121,7 +121,7 @@ int QueryBillRequest::getPageNum()const
|
||||
void QueryBillRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string QueryBillRequest::getProductType()const
|
||||
@@ -132,6 +132,6 @@ std::string QueryBillRequest::getProductType()const
|
||||
void QueryBillRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string QueryCashCouponsRequest::getExpiryTimeEnd()const
|
||||
void QueryCashCouponsRequest::setExpiryTimeEnd(const std::string& expiryTimeEnd)
|
||||
{
|
||||
expiryTimeEnd_ = expiryTimeEnd;
|
||||
setParameter("ExpiryTimeEnd", expiryTimeEnd);
|
||||
setCoreParameter("ExpiryTimeEnd", expiryTimeEnd);
|
||||
}
|
||||
|
||||
std::string QueryCashCouponsRequest::getExpiryTimeStart()const
|
||||
@@ -44,7 +44,7 @@ std::string QueryCashCouponsRequest::getExpiryTimeStart()const
|
||||
void QueryCashCouponsRequest::setExpiryTimeStart(const std::string& expiryTimeStart)
|
||||
{
|
||||
expiryTimeStart_ = expiryTimeStart;
|
||||
setParameter("ExpiryTimeStart", expiryTimeStart);
|
||||
setCoreParameter("ExpiryTimeStart", expiryTimeStart);
|
||||
}
|
||||
|
||||
bool QueryCashCouponsRequest::getEffectiveOrNot()const
|
||||
@@ -55,6 +55,6 @@ bool QueryCashCouponsRequest::getEffectiveOrNot()const
|
||||
void QueryCashCouponsRequest::setEffectiveOrNot(bool effectiveOrNot)
|
||||
{
|
||||
effectiveOrNot_ = effectiveOrNot;
|
||||
setParameter("EffectiveOrNot", effectiveOrNot ? "true" : "false");
|
||||
setCoreParameter("EffectiveOrNot", effectiveOrNot ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ long QueryCustomerAddressListRequest::getCallerBid()const
|
||||
void QueryCustomerAddressListRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
long QueryCustomerAddressListRequest::getOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long QueryCustomerAddressListRequest::getOwnerId()const
|
||||
void QueryCustomerAddressListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long QueryCustomerAddressListRequest::getCallerUid()const
|
||||
@@ -55,6 +55,6 @@ long QueryCustomerAddressListRequest::getCallerUid()const
|
||||
void QueryCustomerAddressListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/QueryEnduserStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryEnduserStatusRequest;
|
||||
|
||||
QueryEnduserStatusRequest::QueryEnduserStatusRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryEnduserStatus")
|
||||
{}
|
||||
|
||||
QueryEnduserStatusRequest::~QueryEnduserStatusRequest()
|
||||
{}
|
||||
|
||||
long QueryEnduserStatusRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void QueryEnduserStatusRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string QueryEnduserStatusRequest::getPrimaryAccount()const
|
||||
{
|
||||
return primaryAccount_;
|
||||
}
|
||||
|
||||
void QueryEnduserStatusRequest::setPrimaryAccount(const std::string& primaryAccount)
|
||||
{
|
||||
primaryAccount_ = primaryAccount;
|
||||
setParameter("PrimaryAccount", primaryAccount);
|
||||
}
|
||||
|
||||
std::string QueryEnduserStatusRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void QueryEnduserStatusRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
std::string QueryEnduserStatusRequest::getBusinessType()const
|
||||
{
|
||||
return businessType_;
|
||||
}
|
||||
|
||||
void QueryEnduserStatusRequest::setBusinessType(const std::string& businessType)
|
||||
{
|
||||
businessType_ = businessType;
|
||||
setParameter("BusinessType", businessType);
|
||||
}
|
||||
|
||||
@@ -1,92 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/QueryEnduserStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryEnduserStatusResult::QueryEnduserStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryEnduserStatusResult::QueryEnduserStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryEnduserStatusResult::~QueryEnduserStatusResult()
|
||||
{}
|
||||
|
||||
void QueryEnduserStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatas = value["Datas"]["Data"];
|
||||
for (auto value : allDatas)
|
||||
{
|
||||
Data datasObject;
|
||||
if(!value["Uid"].isNull())
|
||||
datasObject.uid = std::stol(value["Uid"].asString());
|
||||
if(!value["PrimaryAccount"].isNull())
|
||||
datasObject.primaryAccount = value["PrimaryAccount"].asString();
|
||||
if(!value["BusinessType"].isNull())
|
||||
datasObject.businessType = value["BusinessType"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
datasObject.status = value["Status"].asString();
|
||||
datas_.push_back(datasObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string QueryEnduserStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<QueryEnduserStatusResult::Data> QueryEnduserStatusResult::getDatas()const
|
||||
{
|
||||
return datas_;
|
||||
}
|
||||
|
||||
int QueryEnduserStatusResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::string QueryEnduserStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryEnduserStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string QueryEvaluateListRequest::getEndSearchTime()const
|
||||
void QueryEvaluateListRequest::setEndSearchTime(const std::string& endSearchTime)
|
||||
{
|
||||
endSearchTime_ = endSearchTime;
|
||||
setParameter("EndSearchTime", endSearchTime);
|
||||
setCoreParameter("EndSearchTime", endSearchTime);
|
||||
}
|
||||
|
||||
std::string QueryEvaluateListRequest::getOutBizId()const
|
||||
@@ -44,7 +44,7 @@ std::string QueryEvaluateListRequest::getOutBizId()const
|
||||
void QueryEvaluateListRequest::setOutBizId(const std::string& outBizId)
|
||||
{
|
||||
outBizId_ = outBizId;
|
||||
setParameter("OutBizId", outBizId);
|
||||
setCoreParameter("OutBizId", outBizId);
|
||||
}
|
||||
|
||||
int QueryEvaluateListRequest::getSortType()const
|
||||
@@ -55,7 +55,7 @@ int QueryEvaluateListRequest::getSortType()const
|
||||
void QueryEvaluateListRequest::setSortType(int sortType)
|
||||
{
|
||||
sortType_ = sortType;
|
||||
setParameter("SortType", std::to_string(sortType));
|
||||
setCoreParameter("SortType", std::to_string(sortType));
|
||||
}
|
||||
|
||||
std::vector<std::string> QueryEvaluateListRequest::getBizTypeList()const
|
||||
@@ -67,7 +67,7 @@ void QueryEvaluateListRequest::setBizTypeList(const std::vector<std::string>& bi
|
||||
{
|
||||
bizTypeList_ = bizTypeList;
|
||||
for(int i = 0; i!= bizTypeList.size(); i++)
|
||||
setParameter("BizTypeList."+ std::to_string(i), bizTypeList.at(i));
|
||||
setCoreParameter("BizTypeList."+ std::to_string(i), bizTypeList.at(i));
|
||||
}
|
||||
|
||||
long QueryEvaluateListRequest::getCallerBid()const
|
||||
@@ -78,7 +78,7 @@ long QueryEvaluateListRequest::getCallerBid()const
|
||||
void QueryEvaluateListRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
int QueryEvaluateListRequest::getType()const
|
||||
@@ -89,7 +89,7 @@ int QueryEvaluateListRequest::getType()const
|
||||
void QueryEvaluateListRequest::setType(int type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", std::to_string(type));
|
||||
setCoreParameter("Type", std::to_string(type));
|
||||
}
|
||||
|
||||
long QueryEvaluateListRequest::getOwnerId()const
|
||||
@@ -100,7 +100,7 @@ long QueryEvaluateListRequest::getOwnerId()const
|
||||
void QueryEvaluateListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int QueryEvaluateListRequest::getPageNum()const
|
||||
@@ -111,7 +111,7 @@ int QueryEvaluateListRequest::getPageNum()const
|
||||
void QueryEvaluateListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string QueryEvaluateListRequest::getStartSearchTime()const
|
||||
@@ -122,7 +122,7 @@ std::string QueryEvaluateListRequest::getStartSearchTime()const
|
||||
void QueryEvaluateListRequest::setStartSearchTime(const std::string& startSearchTime)
|
||||
{
|
||||
startSearchTime_ = startSearchTime;
|
||||
setParameter("StartSearchTime", startSearchTime);
|
||||
setCoreParameter("StartSearchTime", startSearchTime);
|
||||
}
|
||||
|
||||
std::string QueryEvaluateListRequest::getEndBizTime()const
|
||||
@@ -133,7 +133,7 @@ std::string QueryEvaluateListRequest::getEndBizTime()const
|
||||
void QueryEvaluateListRequest::setEndBizTime(const std::string& endBizTime)
|
||||
{
|
||||
endBizTime_ = endBizTime;
|
||||
setParameter("EndBizTime", endBizTime);
|
||||
setCoreParameter("EndBizTime", endBizTime);
|
||||
}
|
||||
|
||||
int QueryEvaluateListRequest::getPageSize()const
|
||||
@@ -144,7 +144,7 @@ int QueryEvaluateListRequest::getPageSize()const
|
||||
void QueryEvaluateListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long QueryEvaluateListRequest::getEndAmount()const
|
||||
@@ -155,7 +155,7 @@ long QueryEvaluateListRequest::getEndAmount()const
|
||||
void QueryEvaluateListRequest::setEndAmount(long endAmount)
|
||||
{
|
||||
endAmount_ = endAmount;
|
||||
setParameter("EndAmount", std::to_string(endAmount));
|
||||
setCoreParameter("EndAmount", std::to_string(endAmount));
|
||||
}
|
||||
|
||||
std::string QueryEvaluateListRequest::getBillCycle()const
|
||||
@@ -166,7 +166,7 @@ std::string QueryEvaluateListRequest::getBillCycle()const
|
||||
void QueryEvaluateListRequest::setBillCycle(const std::string& billCycle)
|
||||
{
|
||||
billCycle_ = billCycle;
|
||||
setParameter("BillCycle", billCycle);
|
||||
setCoreParameter("BillCycle", billCycle);
|
||||
}
|
||||
|
||||
long QueryEvaluateListRequest::getStartAmount()const
|
||||
@@ -177,7 +177,7 @@ long QueryEvaluateListRequest::getStartAmount()const
|
||||
void QueryEvaluateListRequest::setStartAmount(long startAmount)
|
||||
{
|
||||
startAmount_ = startAmount;
|
||||
setParameter("StartAmount", std::to_string(startAmount));
|
||||
setCoreParameter("StartAmount", std::to_string(startAmount));
|
||||
}
|
||||
|
||||
std::string QueryEvaluateListRequest::getStartBizTime()const
|
||||
@@ -188,7 +188,7 @@ std::string QueryEvaluateListRequest::getStartBizTime()const
|
||||
void QueryEvaluateListRequest::setStartBizTime(const std::string& startBizTime)
|
||||
{
|
||||
startBizTime_ = startBizTime;
|
||||
setParameter("StartBizTime", startBizTime);
|
||||
setCoreParameter("StartBizTime", startBizTime);
|
||||
}
|
||||
|
||||
long QueryEvaluateListRequest::getCallerUid()const
|
||||
@@ -199,6 +199,6 @@ long QueryEvaluateListRequest::getCallerUid()const
|
||||
void QueryEvaluateListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ bool QueryInstanceBillRequest::getIsBillingItem()const
|
||||
void QueryInstanceBillRequest::setIsBillingItem(bool isBillingItem)
|
||||
{
|
||||
isBillingItem_ = isBillingItem;
|
||||
setParameter("IsBillingItem", isBillingItem ? "true" : "false");
|
||||
setCoreParameter("IsBillingItem", isBillingItem ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string QueryInstanceBillRequest::getProductCode()const
|
||||
@@ -44,7 +44,7 @@ std::string QueryInstanceBillRequest::getProductCode()const
|
||||
void QueryInstanceBillRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
bool QueryInstanceBillRequest::getIsHideZeroCharge()const
|
||||
@@ -55,7 +55,7 @@ bool QueryInstanceBillRequest::getIsHideZeroCharge()const
|
||||
void QueryInstanceBillRequest::setIsHideZeroCharge(bool isHideZeroCharge)
|
||||
{
|
||||
isHideZeroCharge_ = isHideZeroCharge;
|
||||
setParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false");
|
||||
setCoreParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string QueryInstanceBillRequest::getSubscriptionType()const
|
||||
@@ -66,7 +66,7 @@ std::string QueryInstanceBillRequest::getSubscriptionType()const
|
||||
void QueryInstanceBillRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
int QueryInstanceBillRequest::getPageSize()const
|
||||
@@ -77,7 +77,7 @@ int QueryInstanceBillRequest::getPageSize()const
|
||||
void QueryInstanceBillRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryInstanceBillRequest::getBillingCycle()const
|
||||
@@ -88,7 +88,7 @@ std::string QueryInstanceBillRequest::getBillingCycle()const
|
||||
void QueryInstanceBillRequest::setBillingCycle(const std::string& billingCycle)
|
||||
{
|
||||
billingCycle_ = billingCycle;
|
||||
setParameter("BillingCycle", billingCycle);
|
||||
setCoreParameter("BillingCycle", billingCycle);
|
||||
}
|
||||
|
||||
long QueryInstanceBillRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long QueryInstanceBillRequest::getOwnerId()const
|
||||
void QueryInstanceBillRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int QueryInstanceBillRequest::getPageNum()const
|
||||
@@ -110,7 +110,7 @@ int QueryInstanceBillRequest::getPageNum()const
|
||||
void QueryInstanceBillRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string QueryInstanceBillRequest::getProductType()const
|
||||
@@ -121,6 +121,6 @@ std::string QueryInstanceBillRequest::getProductType()const
|
||||
void QueryInstanceBillRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string QueryInstanceGaapCostRequest::getProductCode()const
|
||||
void QueryInstanceGaapCostRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string QueryInstanceGaapCostRequest::getSubscriptionType()const
|
||||
@@ -44,7 +44,7 @@ std::string QueryInstanceGaapCostRequest::getSubscriptionType()const
|
||||
void QueryInstanceGaapCostRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
int QueryInstanceGaapCostRequest::getPageSize()const
|
||||
@@ -55,7 +55,7 @@ int QueryInstanceGaapCostRequest::getPageSize()const
|
||||
void QueryInstanceGaapCostRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryInstanceGaapCostRequest::getBillingCycle()const
|
||||
@@ -66,7 +66,7 @@ std::string QueryInstanceGaapCostRequest::getBillingCycle()const
|
||||
void QueryInstanceGaapCostRequest::setBillingCycle(const std::string& billingCycle)
|
||||
{
|
||||
billingCycle_ = billingCycle;
|
||||
setParameter("BillingCycle", billingCycle);
|
||||
setCoreParameter("BillingCycle", billingCycle);
|
||||
}
|
||||
|
||||
int QueryInstanceGaapCostRequest::getPageNum()const
|
||||
@@ -77,7 +77,7 @@ int QueryInstanceGaapCostRequest::getPageNum()const
|
||||
void QueryInstanceGaapCostRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string QueryInstanceGaapCostRequest::getProductType()const
|
||||
@@ -88,6 +88,6 @@ std::string QueryInstanceGaapCostRequest::getProductType()const
|
||||
void QueryInstanceGaapCostRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ long QueryInvoicingCustomerListRequest::getCallerBid()const
|
||||
void QueryInvoicingCustomerListRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", std::to_string(callerBid));
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
long QueryInvoicingCustomerListRequest::getOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long QueryInvoicingCustomerListRequest::getOwnerId()const
|
||||
void QueryInvoicingCustomerListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long QueryInvoicingCustomerListRequest::getCallerUid()const
|
||||
@@ -55,6 +55,6 @@ long QueryInvoicingCustomerListRequest::getCallerUid()const
|
||||
void QueryInvoicingCustomerListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string QueryMonthlyBillRequest::getBillingCycle()const
|
||||
void QueryMonthlyBillRequest::setBillingCycle(const std::string& billingCycle)
|
||||
{
|
||||
billingCycle_ = billingCycle;
|
||||
setParameter("BillingCycle", billingCycle);
|
||||
setCoreParameter("BillingCycle", billingCycle);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string QueryMonthlyInstanceConsumptionRequest::getProductCode()const
|
||||
void QueryMonthlyInstanceConsumptionRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string QueryMonthlyInstanceConsumptionRequest::getSubscriptionType()const
|
||||
@@ -44,7 +44,7 @@ std::string QueryMonthlyInstanceConsumptionRequest::getSubscriptionType()const
|
||||
void QueryMonthlyInstanceConsumptionRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
int QueryMonthlyInstanceConsumptionRequest::getPageSize()const
|
||||
@@ -55,7 +55,7 @@ int QueryMonthlyInstanceConsumptionRequest::getPageSize()const
|
||||
void QueryMonthlyInstanceConsumptionRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryMonthlyInstanceConsumptionRequest::getBillingCycle()const
|
||||
@@ -66,7 +66,7 @@ std::string QueryMonthlyInstanceConsumptionRequest::getBillingCycle()const
|
||||
void QueryMonthlyInstanceConsumptionRequest::setBillingCycle(const std::string& billingCycle)
|
||||
{
|
||||
billingCycle_ = billingCycle;
|
||||
setParameter("BillingCycle", billingCycle);
|
||||
setCoreParameter("BillingCycle", billingCycle);
|
||||
}
|
||||
|
||||
long QueryMonthlyInstanceConsumptionRequest::getOwnerId()const
|
||||
@@ -77,7 +77,7 @@ long QueryMonthlyInstanceConsumptionRequest::getOwnerId()const
|
||||
void QueryMonthlyInstanceConsumptionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int QueryMonthlyInstanceConsumptionRequest::getPageNum()const
|
||||
@@ -88,7 +88,7 @@ int QueryMonthlyInstanceConsumptionRequest::getPageNum()const
|
||||
void QueryMonthlyInstanceConsumptionRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string QueryMonthlyInstanceConsumptionRequest::getProductType()const
|
||||
@@ -99,6 +99,6 @@ std::string QueryMonthlyInstanceConsumptionRequest::getProductType()const
|
||||
void QueryMonthlyInstanceConsumptionRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string QueryOrdersRequest::getProductCode()const
|
||||
void QueryOrdersRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string QueryOrdersRequest::getSubscriptionType()const
|
||||
@@ -44,7 +44,7 @@ std::string QueryOrdersRequest::getSubscriptionType()const
|
||||
void QueryOrdersRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
int QueryOrdersRequest::getPageSize()const
|
||||
@@ -55,7 +55,7 @@ int QueryOrdersRequest::getPageSize()const
|
||||
void QueryOrdersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryOrdersRequest::getPaymentStatus()const
|
||||
@@ -66,7 +66,7 @@ std::string QueryOrdersRequest::getPaymentStatus()const
|
||||
void QueryOrdersRequest::setPaymentStatus(const std::string& paymentStatus)
|
||||
{
|
||||
paymentStatus_ = paymentStatus;
|
||||
setParameter("PaymentStatus", paymentStatus);
|
||||
setCoreParameter("PaymentStatus", paymentStatus);
|
||||
}
|
||||
|
||||
std::string QueryOrdersRequest::getCreateTimeStart()const
|
||||
@@ -77,7 +77,7 @@ std::string QueryOrdersRequest::getCreateTimeStart()const
|
||||
void QueryOrdersRequest::setCreateTimeStart(const std::string& createTimeStart)
|
||||
{
|
||||
createTimeStart_ = createTimeStart;
|
||||
setParameter("CreateTimeStart", createTimeStart);
|
||||
setCoreParameter("CreateTimeStart", createTimeStart);
|
||||
}
|
||||
|
||||
int QueryOrdersRequest::getPageNum()const
|
||||
@@ -88,7 +88,7 @@ int QueryOrdersRequest::getPageNum()const
|
||||
void QueryOrdersRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
long QueryOrdersRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long QueryOrdersRequest::getOwnerId()const
|
||||
void QueryOrdersRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryOrdersRequest::getCreateTimeEnd()const
|
||||
@@ -110,7 +110,7 @@ std::string QueryOrdersRequest::getCreateTimeEnd()const
|
||||
void QueryOrdersRequest::setCreateTimeEnd(const std::string& createTimeEnd)
|
||||
{
|
||||
createTimeEnd_ = createTimeEnd;
|
||||
setParameter("CreateTimeEnd", createTimeEnd);
|
||||
setCoreParameter("CreateTimeEnd", createTimeEnd);
|
||||
}
|
||||
|
||||
std::string QueryOrdersRequest::getProductType()const
|
||||
@@ -121,7 +121,7 @@ std::string QueryOrdersRequest::getProductType()const
|
||||
void QueryOrdersRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
std::string QueryOrdersRequest::getOrderType()const
|
||||
@@ -132,6 +132,6 @@ std::string QueryOrdersRequest::getOrderType()const
|
||||
void QueryOrdersRequest::setOrderType(const std::string& orderType)
|
||||
{
|
||||
orderType_ = orderType;
|
||||
setParameter("OrderType", orderType);
|
||||
setCoreParameter("OrderType", orderType);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string QueryPrepaidCardsRequest::getExpiryTimeEnd()const
|
||||
void QueryPrepaidCardsRequest::setExpiryTimeEnd(const std::string& expiryTimeEnd)
|
||||
{
|
||||
expiryTimeEnd_ = expiryTimeEnd;
|
||||
setParameter("ExpiryTimeEnd", expiryTimeEnd);
|
||||
setCoreParameter("ExpiryTimeEnd", expiryTimeEnd);
|
||||
}
|
||||
|
||||
std::string QueryPrepaidCardsRequest::getExpiryTimeStart()const
|
||||
@@ -44,7 +44,7 @@ std::string QueryPrepaidCardsRequest::getExpiryTimeStart()const
|
||||
void QueryPrepaidCardsRequest::setExpiryTimeStart(const std::string& expiryTimeStart)
|
||||
{
|
||||
expiryTimeStart_ = expiryTimeStart;
|
||||
setParameter("ExpiryTimeStart", expiryTimeStart);
|
||||
setCoreParameter("ExpiryTimeStart", expiryTimeStart);
|
||||
}
|
||||
|
||||
bool QueryPrepaidCardsRequest::getEffectiveOrNot()const
|
||||
@@ -55,6 +55,6 @@ bool QueryPrepaidCardsRequest::getEffectiveOrNot()const
|
||||
void QueryPrepaidCardsRequest::setEffectiveOrNot(bool effectiveOrNot)
|
||||
{
|
||||
effectiveOrNot_ = effectiveOrNot;
|
||||
setParameter("EffectiveOrNot", effectiveOrNot ? "true" : "false");
|
||||
setCoreParameter("EffectiveOrNot", effectiveOrNot ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/QueryPriceListRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryPriceListRequest;
|
||||
|
||||
QueryPriceListRequest::QueryPriceListRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPriceList")
|
||||
{}
|
||||
|
||||
QueryPriceListRequest::~QueryPriceListRequest()
|
||||
{}
|
||||
|
||||
std::string QueryPriceListRequest::getModuleCode()const
|
||||
{
|
||||
return moduleCode_;
|
||||
}
|
||||
|
||||
void QueryPriceListRequest::setModuleCode(const std::string& moduleCode)
|
||||
{
|
||||
moduleCode_ = moduleCode;
|
||||
setParameter("ModuleCode", moduleCode);
|
||||
}
|
||||
|
||||
std::string QueryPriceListRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void QueryPriceListRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string QueryPriceListRequest::getSubscriptionType()const
|
||||
{
|
||||
return subscriptionType_;
|
||||
}
|
||||
|
||||
void QueryPriceListRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
long QueryPriceListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryPriceListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryPriceListRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void QueryPriceListRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
@@ -1,110 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/QueryPriceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryPriceListResult::QueryPriceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryPriceListResult::QueryPriceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryPriceListResult::~QueryPriceListResult()
|
||||
{}
|
||||
|
||||
void QueryPriceListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Currency"].isNull())
|
||||
data_.currency = dataNode["Currency"].asString();
|
||||
auto allModules = value["Modules"]["Module"];
|
||||
for (auto value : allModules)
|
||||
{
|
||||
Data::Module moduleObject;
|
||||
if(!value["ModuleCode"].isNull())
|
||||
moduleObject.moduleCode = value["ModuleCode"].asString();
|
||||
if(!value["Region"].isNull())
|
||||
moduleObject.region = value["Region"].asString();
|
||||
if(!value["Config"].isNull())
|
||||
moduleObject.config = value["Config"].asString();
|
||||
if(!value["PriceUnitQuantity"].isNull())
|
||||
moduleObject.priceUnitQuantity = value["PriceUnitQuantity"].asString();
|
||||
if(!value["PriceUnit"].isNull())
|
||||
moduleObject.priceUnit = value["PriceUnit"].asString();
|
||||
auto allTierPrices = value["TierPrices"]["TierPrice"];
|
||||
for (auto value : allTierPrices)
|
||||
{
|
||||
Data::Module::TierPrice tierPricesObject;
|
||||
if(!value["TierStart"].isNull())
|
||||
tierPricesObject.tierStart = value["TierStart"].asString();
|
||||
if(!value["StartSymbol"].isNull())
|
||||
tierPricesObject.startSymbol = value["StartSymbol"].asString();
|
||||
if(!value["TierEnd"].isNull())
|
||||
tierPricesObject.tierEnd = value["TierEnd"].asString();
|
||||
if(!value["EndSymbol"].isNull())
|
||||
tierPricesObject.endSymbol = value["EndSymbol"].asString();
|
||||
if(!value["TierType"].isNull())
|
||||
tierPricesObject.tierType = value["TierType"].asString();
|
||||
if(!value["PriceType"].isNull())
|
||||
tierPricesObject.priceType = value["PriceType"].asString();
|
||||
if(!value["Price"].isNull())
|
||||
tierPricesObject.price = value["Price"].asString();
|
||||
moduleObject.tierPrices.push_back(tierPricesObject);
|
||||
}
|
||||
data_.modules.push_back(moduleObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryPriceListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryPriceListResult::Data QueryPriceListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryPriceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryPriceListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/QueryPriceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryPriceResult::QueryPriceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryPriceResult::QueryPriceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryPriceResult::~QueryPriceResult()
|
||||
{}
|
||||
|
||||
void QueryPriceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryPriceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryPriceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryPriceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryPriceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string QueryPriceResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ bool QueryProductListRequest::getQueryTotalCount()const
|
||||
void QueryProductListRequest::setQueryTotalCount(bool queryTotalCount)
|
||||
{
|
||||
queryTotalCount_ = queryTotalCount;
|
||||
setParameter("QueryTotalCount", queryTotalCount ? "true" : "false");
|
||||
setCoreParameter("QueryTotalCount", queryTotalCount ? "true" : "false");
|
||||
}
|
||||
|
||||
int QueryProductListRequest::getPageSize()const
|
||||
@@ -44,7 +44,7 @@ int QueryProductListRequest::getPageSize()const
|
||||
void QueryProductListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int QueryProductListRequest::getPageNum()const
|
||||
@@ -55,6 +55,6 @@ int QueryProductListRequest::getPageNum()const
|
||||
void QueryProductListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string QueryRedeemRequest::getExpiryTimeEnd()const
|
||||
void QueryRedeemRequest::setExpiryTimeEnd(const std::string& expiryTimeEnd)
|
||||
{
|
||||
expiryTimeEnd_ = expiryTimeEnd;
|
||||
setParameter("ExpiryTimeEnd", expiryTimeEnd);
|
||||
setCoreParameter("ExpiryTimeEnd", expiryTimeEnd);
|
||||
}
|
||||
|
||||
int QueryRedeemRequest::getPageSize()const
|
||||
@@ -44,7 +44,7 @@ int QueryRedeemRequest::getPageSize()const
|
||||
void QueryRedeemRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryRedeemRequest::getExpiryTimeStart()const
|
||||
@@ -55,7 +55,7 @@ std::string QueryRedeemRequest::getExpiryTimeStart()const
|
||||
void QueryRedeemRequest::setExpiryTimeStart(const std::string& expiryTimeStart)
|
||||
{
|
||||
expiryTimeStart_ = expiryTimeStart;
|
||||
setParameter("ExpiryTimeStart", expiryTimeStart);
|
||||
setCoreParameter("ExpiryTimeStart", expiryTimeStart);
|
||||
}
|
||||
|
||||
int QueryRedeemRequest::getPageNum()const
|
||||
@@ -66,7 +66,7 @@ int QueryRedeemRequest::getPageNum()const
|
||||
void QueryRedeemRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
bool QueryRedeemRequest::getEffectiveOrNot()const
|
||||
@@ -77,6 +77,6 @@ bool QueryRedeemRequest::getEffectiveOrNot()const
|
||||
void QueryRedeemRequest::setEffectiveOrNot(bool effectiveOrNot)
|
||||
{
|
||||
effectiveOrNot_ = effectiveOrNot;
|
||||
setParameter("EffectiveOrNot", effectiveOrNot ? "true" : "false");
|
||||
setCoreParameter("EffectiveOrNot", effectiveOrNot ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string QueryResourcePackageInstancesRequest::getExpiryTimeEnd()const
|
||||
void QueryResourcePackageInstancesRequest::setExpiryTimeEnd(const std::string& expiryTimeEnd)
|
||||
{
|
||||
expiryTimeEnd_ = expiryTimeEnd;
|
||||
setParameter("ExpiryTimeEnd", expiryTimeEnd);
|
||||
setCoreParameter("ExpiryTimeEnd", expiryTimeEnd);
|
||||
}
|
||||
|
||||
std::string QueryResourcePackageInstancesRequest::getProductCode()const
|
||||
@@ -44,7 +44,7 @@ std::string QueryResourcePackageInstancesRequest::getProductCode()const
|
||||
void QueryResourcePackageInstancesRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
int QueryResourcePackageInstancesRequest::getPageSize()const
|
||||
@@ -55,7 +55,7 @@ int QueryResourcePackageInstancesRequest::getPageSize()const
|
||||
void QueryResourcePackageInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long QueryResourcePackageInstancesRequest::getOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long QueryResourcePackageInstancesRequest::getOwnerId()const
|
||||
void QueryResourcePackageInstancesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryResourcePackageInstancesRequest::getExpiryTimeStart()const
|
||||
@@ -77,7 +77,7 @@ std::string QueryResourcePackageInstancesRequest::getExpiryTimeStart()const
|
||||
void QueryResourcePackageInstancesRequest::setExpiryTimeStart(const std::string& expiryTimeStart)
|
||||
{
|
||||
expiryTimeStart_ = expiryTimeStart;
|
||||
setParameter("ExpiryTimeStart", expiryTimeStart);
|
||||
setCoreParameter("ExpiryTimeStart", expiryTimeStart);
|
||||
}
|
||||
|
||||
int QueryResourcePackageInstancesRequest::getPageNum()const
|
||||
@@ -88,6 +88,6 @@ int QueryResourcePackageInstancesRequest::getPageNum()const
|
||||
void QueryResourcePackageInstancesRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string QuerySettlementBillRequest::getProductCode()const
|
||||
void QuerySettlementBillRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
bool QuerySettlementBillRequest::getIsHideZeroCharge()const
|
||||
@@ -44,7 +44,7 @@ bool QuerySettlementBillRequest::getIsHideZeroCharge()const
|
||||
void QuerySettlementBillRequest::setIsHideZeroCharge(bool isHideZeroCharge)
|
||||
{
|
||||
isHideZeroCharge_ = isHideZeroCharge;
|
||||
setParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false");
|
||||
setCoreParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string QuerySettlementBillRequest::getSubscriptionType()const
|
||||
@@ -55,7 +55,7 @@ std::string QuerySettlementBillRequest::getSubscriptionType()const
|
||||
void QuerySettlementBillRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
int QuerySettlementBillRequest::getPageSize()const
|
||||
@@ -66,7 +66,7 @@ int QuerySettlementBillRequest::getPageSize()const
|
||||
void QuerySettlementBillRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QuerySettlementBillRequest::getEndTime()const
|
||||
@@ -77,7 +77,7 @@ std::string QuerySettlementBillRequest::getEndTime()const
|
||||
void QuerySettlementBillRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string QuerySettlementBillRequest::getBillingCycle()const
|
||||
@@ -88,7 +88,7 @@ std::string QuerySettlementBillRequest::getBillingCycle()const
|
||||
void QuerySettlementBillRequest::setBillingCycle(const std::string& billingCycle)
|
||||
{
|
||||
billingCycle_ = billingCycle;
|
||||
setParameter("BillingCycle", billingCycle);
|
||||
setCoreParameter("BillingCycle", billingCycle);
|
||||
}
|
||||
|
||||
std::string QuerySettlementBillRequest::getStartTime()const
|
||||
@@ -99,7 +99,7 @@ std::string QuerySettlementBillRequest::getStartTime()const
|
||||
void QuerySettlementBillRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long QuerySettlementBillRequest::getOwnerId()const
|
||||
@@ -110,7 +110,7 @@ long QuerySettlementBillRequest::getOwnerId()const
|
||||
void QuerySettlementBillRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int QuerySettlementBillRequest::getPageNum()const
|
||||
@@ -121,7 +121,7 @@ int QuerySettlementBillRequest::getPageNum()const
|
||||
void QuerySettlementBillRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string QuerySettlementBillRequest::getType()const
|
||||
@@ -132,7 +132,7 @@ std::string QuerySettlementBillRequest::getType()const
|
||||
void QuerySettlementBillRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string QuerySettlementBillRequest::getProductType()const
|
||||
@@ -143,6 +143,6 @@ std::string QuerySettlementBillRequest::getProductType()const
|
||||
void QuerySettlementBillRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/QueryUserAlarmThresholdRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryUserAlarmThresholdRequest;
|
||||
|
||||
QueryUserAlarmThresholdRequest::QueryUserAlarmThresholdRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryUserAlarmThreshold")
|
||||
{}
|
||||
|
||||
QueryUserAlarmThresholdRequest::~QueryUserAlarmThresholdRequest()
|
||||
{}
|
||||
|
||||
long QueryUserAlarmThresholdRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void QueryUserAlarmThresholdRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string QueryUserAlarmThresholdRequest::getAlarmType()const
|
||||
{
|
||||
return alarmType_;
|
||||
}
|
||||
|
||||
void QueryUserAlarmThresholdRequest::setAlarmType(const std::string& alarmType)
|
||||
{
|
||||
alarmType_ = alarmType;
|
||||
setParameter("AlarmType", alarmType);
|
||||
}
|
||||
|
||||
std::string QueryUserAlarmThresholdRequest::getAlarmThresholds()const
|
||||
{
|
||||
return alarmThresholds_;
|
||||
}
|
||||
|
||||
void QueryUserAlarmThresholdRequest::setAlarmThresholds(const std::string& alarmThresholds)
|
||||
{
|
||||
alarmThresholds_ = alarmThresholds;
|
||||
setParameter("AlarmThresholds", alarmThresholds);
|
||||
}
|
||||
|
||||
std::string QueryUserAlarmThresholdRequest::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
void QueryUserAlarmThresholdRequest::setBid(const std::string& bid)
|
||||
{
|
||||
bid_ = bid;
|
||||
setParameter("Bid", bid);
|
||||
}
|
||||
|
||||
@@ -1,92 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/QueryUserAlarmThresholdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryUserAlarmThresholdResult::QueryUserAlarmThresholdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryUserAlarmThresholdResult::QueryUserAlarmThresholdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryUserAlarmThresholdResult::~QueryUserAlarmThresholdResult()
|
||||
{}
|
||||
|
||||
void QueryUserAlarmThresholdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatas = value["Datas"]["Data"];
|
||||
for (auto value : allDatas)
|
||||
{
|
||||
Data datasObject;
|
||||
if(!value["ThresholdAmount"].isNull())
|
||||
datasObject.thresholdAmount = value["ThresholdAmount"].asString();
|
||||
if(!value["Numerator"].isNull())
|
||||
datasObject.numerator = std::stoi(value["Numerator"].asString());
|
||||
if(!value["Denominator"].isNull())
|
||||
datasObject.denominator = std::stoi(value["Denominator"].asString());
|
||||
if(!value["ThresholdType"].isNull())
|
||||
datasObject.thresholdType = std::stoi(value["ThresholdType"].asString());
|
||||
datas_.push_back(datasObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string QueryUserAlarmThresholdResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<QueryUserAlarmThresholdResult::Data> QueryUserAlarmThresholdResult::getDatas()const
|
||||
{
|
||||
return datas_;
|
||||
}
|
||||
|
||||
int QueryUserAlarmThresholdResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::string QueryUserAlarmThresholdResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryUserAlarmThresholdResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string QueryUserOmsDataRequest::getDataType()const
|
||||
void QueryUserOmsDataRequest::setDataType(const std::string& dataType)
|
||||
{
|
||||
dataType_ = dataType;
|
||||
setParameter("DataType", dataType);
|
||||
setCoreParameter("DataType", dataType);
|
||||
}
|
||||
|
||||
std::string QueryUserOmsDataRequest::getMarker()const
|
||||
@@ -44,7 +44,7 @@ std::string QueryUserOmsDataRequest::getMarker()const
|
||||
void QueryUserOmsDataRequest::setMarker(const std::string& marker)
|
||||
{
|
||||
marker_ = marker;
|
||||
setParameter("Marker", marker);
|
||||
setCoreParameter("Marker", marker);
|
||||
}
|
||||
|
||||
int QueryUserOmsDataRequest::getPageSize()const
|
||||
@@ -55,7 +55,7 @@ int QueryUserOmsDataRequest::getPageSize()const
|
||||
void QueryUserOmsDataRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryUserOmsDataRequest::getEndTime()const
|
||||
@@ -66,7 +66,7 @@ std::string QueryUserOmsDataRequest::getEndTime()const
|
||||
void QueryUserOmsDataRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string QueryUserOmsDataRequest::getStartTime()const
|
||||
@@ -77,7 +77,7 @@ std::string QueryUserOmsDataRequest::getStartTime()const
|
||||
void QueryUserOmsDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long QueryUserOmsDataRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long QueryUserOmsDataRequest::getOwnerId()const
|
||||
void QueryUserOmsDataRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryUserOmsDataRequest::getTable()const
|
||||
@@ -99,6 +99,6 @@ std::string QueryUserOmsDataRequest::getTable()const
|
||||
void QueryUserOmsDataRequest::setTable(const std::string& table)
|
||||
{
|
||||
table_ = table;
|
||||
setParameter("Table", table);
|
||||
setCoreParameter("Table", table);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string RenewInstanceRequest::getProductCode()const
|
||||
void RenewInstanceRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string RenewInstanceRequest::getInstanceId()const
|
||||
@@ -44,7 +44,7 @@ std::string RenewInstanceRequest::getInstanceId()const
|
||||
void RenewInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string RenewInstanceRequest::getClientToken()const
|
||||
@@ -55,7 +55,7 @@ std::string RenewInstanceRequest::getClientToken()const
|
||||
void RenewInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int RenewInstanceRequest::getRenewPeriod()const
|
||||
@@ -66,7 +66,7 @@ int RenewInstanceRequest::getRenewPeriod()const
|
||||
void RenewInstanceRequest::setRenewPeriod(int renewPeriod)
|
||||
{
|
||||
renewPeriod_ = renewPeriod;
|
||||
setParameter("RenewPeriod", std::to_string(renewPeriod));
|
||||
setCoreParameter("RenewPeriod", std::to_string(renewPeriod));
|
||||
}
|
||||
|
||||
long RenewInstanceRequest::getOwnerId()const
|
||||
@@ -77,7 +77,7 @@ long RenewInstanceRequest::getOwnerId()const
|
||||
void RenewInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string RenewInstanceRequest::getProductType()const
|
||||
@@ -88,6 +88,6 @@ std::string RenewInstanceRequest::getProductType()const
|
||||
void RenewInstanceRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/SetEnduserStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::SetEnduserStatusRequest;
|
||||
|
||||
SetEnduserStatusRequest::SetEnduserStatusRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "SetEnduserStatus")
|
||||
{}
|
||||
|
||||
SetEnduserStatusRequest::~SetEnduserStatusRequest()
|
||||
{}
|
||||
|
||||
long SetEnduserStatusRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void SetEnduserStatusRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string SetEnduserStatusRequest::getPrimaryAccount()const
|
||||
{
|
||||
return primaryAccount_;
|
||||
}
|
||||
|
||||
void SetEnduserStatusRequest::setPrimaryAccount(const std::string& primaryAccount)
|
||||
{
|
||||
primaryAccount_ = primaryAccount;
|
||||
setParameter("PrimaryAccount", primaryAccount);
|
||||
}
|
||||
|
||||
std::string SetEnduserStatusRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void SetEnduserStatusRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
std::string SetEnduserStatusRequest::getBusinessType()const
|
||||
{
|
||||
return businessType_;
|
||||
}
|
||||
|
||||
void SetEnduserStatusRequest::setBusinessType(const std::string& businessType)
|
||||
{
|
||||
businessType_ = businessType;
|
||||
setParameter("BusinessType", businessType);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/SetEnduserStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
SetEnduserStatusResult::SetEnduserStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetEnduserStatusResult::SetEnduserStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetEnduserStatusResult::~SetEnduserStatusResult()
|
||||
{}
|
||||
|
||||
void SetEnduserStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SetEnduserStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool SetEnduserStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SetEnduserStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SetEnduserStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string SetRenewalRequest::getProductCode()const
|
||||
void SetRenewalRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string SetRenewalRequest::getInstanceIDs()const
|
||||
@@ -44,7 +44,7 @@ std::string SetRenewalRequest::getInstanceIDs()const
|
||||
void SetRenewalRequest::setInstanceIDs(const std::string& instanceIDs)
|
||||
{
|
||||
instanceIDs_ = instanceIDs;
|
||||
setParameter("InstanceIDs", instanceIDs);
|
||||
setCoreParameter("InstanceIDs", instanceIDs);
|
||||
}
|
||||
|
||||
std::string SetRenewalRequest::getSubscriptionType()const
|
||||
@@ -55,7 +55,7 @@ std::string SetRenewalRequest::getSubscriptionType()const
|
||||
void SetRenewalRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
std::string SetRenewalRequest::getRenewalStatus()const
|
||||
@@ -66,7 +66,7 @@ std::string SetRenewalRequest::getRenewalStatus()const
|
||||
void SetRenewalRequest::setRenewalStatus(const std::string& renewalStatus)
|
||||
{
|
||||
renewalStatus_ = renewalStatus;
|
||||
setParameter("RenewalStatus", renewalStatus);
|
||||
setCoreParameter("RenewalStatus", renewalStatus);
|
||||
}
|
||||
|
||||
std::string SetRenewalRequest::getRenewalPeriodUnit()const
|
||||
@@ -77,7 +77,7 @@ std::string SetRenewalRequest::getRenewalPeriodUnit()const
|
||||
void SetRenewalRequest::setRenewalPeriodUnit(const std::string& renewalPeriodUnit)
|
||||
{
|
||||
renewalPeriodUnit_ = renewalPeriodUnit;
|
||||
setParameter("RenewalPeriodUnit", renewalPeriodUnit);
|
||||
setCoreParameter("RenewalPeriodUnit", renewalPeriodUnit);
|
||||
}
|
||||
|
||||
int SetRenewalRequest::getRenewalPeriod()const
|
||||
@@ -88,7 +88,7 @@ int SetRenewalRequest::getRenewalPeriod()const
|
||||
void SetRenewalRequest::setRenewalPeriod(int renewalPeriod)
|
||||
{
|
||||
renewalPeriod_ = renewalPeriod;
|
||||
setParameter("RenewalPeriod", std::to_string(renewalPeriod));
|
||||
setCoreParameter("RenewalPeriod", std::to_string(renewalPeriod));
|
||||
}
|
||||
|
||||
long SetRenewalRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long SetRenewalRequest::getOwnerId()const
|
||||
void SetRenewalRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SetRenewalRequest::getProductType()const
|
||||
@@ -110,6 +110,6 @@ std::string SetRenewalRequest::getProductType()const
|
||||
void SetRenewalRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/SetUserAlarmThresholdRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::SetUserAlarmThresholdRequest;
|
||||
|
||||
SetUserAlarmThresholdRequest::SetUserAlarmThresholdRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "SetUserAlarmThreshold")
|
||||
{}
|
||||
|
||||
SetUserAlarmThresholdRequest::~SetUserAlarmThresholdRequest()
|
||||
{}
|
||||
|
||||
long SetUserAlarmThresholdRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void SetUserAlarmThresholdRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string SetUserAlarmThresholdRequest::getAlarmType()const
|
||||
{
|
||||
return alarmType_;
|
||||
}
|
||||
|
||||
void SetUserAlarmThresholdRequest::setAlarmType(const std::string& alarmType)
|
||||
{
|
||||
alarmType_ = alarmType;
|
||||
setParameter("AlarmType", alarmType);
|
||||
}
|
||||
|
||||
std::string SetUserAlarmThresholdRequest::getAlarmThresholds()const
|
||||
{
|
||||
return alarmThresholds_;
|
||||
}
|
||||
|
||||
void SetUserAlarmThresholdRequest::setAlarmThresholds(const std::string& alarmThresholds)
|
||||
{
|
||||
alarmThresholds_ = alarmThresholds;
|
||||
setParameter("AlarmThresholds", alarmThresholds);
|
||||
}
|
||||
|
||||
std::string SetUserAlarmThresholdRequest::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
void SetUserAlarmThresholdRequest::setBid(const std::string& bid)
|
||||
{
|
||||
bid_ = bid;
|
||||
setParameter("Bid", bid);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/SetUserAlarmThresholdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
SetUserAlarmThresholdResult::SetUserAlarmThresholdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetUserAlarmThresholdResult::SetUserAlarmThresholdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetUserAlarmThresholdResult::~SetUserAlarmThresholdResult()
|
||||
{}
|
||||
|
||||
void SetUserAlarmThresholdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SetUserAlarmThresholdResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool SetUserAlarmThresholdResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SetUserAlarmThresholdResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SetUserAlarmThresholdResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/SetUserQuotaRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::SetUserQuotaRequest;
|
||||
|
||||
SetUserQuotaRequest::SetUserQuotaRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "SetUserQuota")
|
||||
{}
|
||||
|
||||
SetUserQuotaRequest::~SetUserQuotaRequest()
|
||||
{}
|
||||
|
||||
long SetUserQuotaRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void SetUserQuotaRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string SetUserQuotaRequest::getAmount()const
|
||||
{
|
||||
return amount_;
|
||||
}
|
||||
|
||||
void SetUserQuotaRequest::setAmount(const std::string& amount)
|
||||
{
|
||||
amount_ = amount;
|
||||
setParameter("Amount", amount);
|
||||
}
|
||||
|
||||
std::string SetUserQuotaRequest::getOutBizId()const
|
||||
{
|
||||
return outBizId_;
|
||||
}
|
||||
|
||||
void SetUserQuotaRequest::setOutBizId(const std::string& outBizId)
|
||||
{
|
||||
outBizId_ = outBizId;
|
||||
setParameter("OutBizId", outBizId);
|
||||
}
|
||||
|
||||
std::string SetUserQuotaRequest::getCurrency()const
|
||||
{
|
||||
return currency_;
|
||||
}
|
||||
|
||||
void SetUserQuotaRequest::setCurrency(const std::string& currency)
|
||||
{
|
||||
currency_ = currency;
|
||||
setParameter("Currency", currency);
|
||||
}
|
||||
|
||||
std::string SetUserQuotaRequest::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
void SetUserQuotaRequest::setBid(const std::string& bid)
|
||||
{
|
||||
bid_ = bid;
|
||||
setParameter("Bid", bid);
|
||||
}
|
||||
|
||||
49
bssopenapi/src/model/SubscribeBillToOSSRequest.cc
Normal file
49
bssopenapi/src/model/SubscribeBillToOSSRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/SubscribeBillToOSSRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::SubscribeBillToOSSRequest;
|
||||
|
||||
SubscribeBillToOSSRequest::SubscribeBillToOSSRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "SubscribeBillToOSS")
|
||||
{}
|
||||
|
||||
SubscribeBillToOSSRequest::~SubscribeBillToOSSRequest()
|
||||
{}
|
||||
|
||||
std::string SubscribeBillToOSSRequest::getSubscribeType()const
|
||||
{
|
||||
return subscribeType_;
|
||||
}
|
||||
|
||||
void SubscribeBillToOSSRequest::setSubscribeType(const std::string& subscribeType)
|
||||
{
|
||||
subscribeType_ = subscribeType;
|
||||
setCoreParameter("SubscribeType", subscribeType);
|
||||
}
|
||||
|
||||
std::string SubscribeBillToOSSRequest::getSubscribeBucket()const
|
||||
{
|
||||
return subscribeBucket_;
|
||||
}
|
||||
|
||||
void SubscribeBillToOSSRequest::setSubscribeBucket(const std::string& subscribeBucket)
|
||||
{
|
||||
subscribeBucket_ = subscribeBucket;
|
||||
setCoreParameter("SubscribeBucket", subscribeBucket);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/SubscribeDetailResult.h>
|
||||
#include <alibabacloud/bssopenapi/model/SubscribeBillToOSSResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
SubscribeDetailResult::SubscribeDetailResult() :
|
||||
SubscribeBillToOSSResult::SubscribeBillToOSSResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubscribeDetailResult::SubscribeDetailResult(const std::string &payload) :
|
||||
SubscribeBillToOSSResult::SubscribeBillToOSSResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubscribeDetailResult::~SubscribeDetailResult()
|
||||
SubscribeBillToOSSResult::~SubscribeBillToOSSResult()
|
||||
{}
|
||||
|
||||
void SubscribeDetailResult::parse(const std::string &payload)
|
||||
void SubscribeBillToOSSResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -49,17 +49,17 @@ void SubscribeDetailResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string SubscribeDetailResult::getMessage()const
|
||||
std::string SubscribeBillToOSSResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SubscribeDetailResult::getCode()const
|
||||
std::string SubscribeBillToOSSResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SubscribeDetailResult::getSuccess()const
|
||||
bool SubscribeBillToOSSResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/SubscribeDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::SubscribeDetailRequest;
|
||||
|
||||
SubscribeDetailRequest::SubscribeDetailRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "SubscribeDetail")
|
||||
{}
|
||||
|
||||
SubscribeDetailRequest::~SubscribeDetailRequest()
|
||||
{}
|
||||
|
||||
long SubscribeDetailRequest::getBucketOwnerId()const
|
||||
{
|
||||
return bucketOwnerId_;
|
||||
}
|
||||
|
||||
void SubscribeDetailRequest::setBucketOwnerId(long bucketOwnerId)
|
||||
{
|
||||
bucketOwnerId_ = bucketOwnerId;
|
||||
setParameter("BucketOwnerId", std::to_string(bucketOwnerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> SubscribeDetailRequest::getSubscribeType()const
|
||||
{
|
||||
return subscribeType_;
|
||||
}
|
||||
|
||||
void SubscribeDetailRequest::setSubscribeType(const std::vector<std::string>& subscribeType)
|
||||
{
|
||||
subscribeType_ = subscribeType;
|
||||
for(int i = 0; i!= subscribeType.size(); i++)
|
||||
setParameter("SubscribeType."+ std::to_string(i), subscribeType.at(i));
|
||||
}
|
||||
|
||||
std::string SubscribeDetailRequest::getSubscribeBucket()const
|
||||
{
|
||||
return subscribeBucket_;
|
||||
}
|
||||
|
||||
void SubscribeDetailRequest::setSubscribeBucket(const std::string& subscribeBucket)
|
||||
{
|
||||
subscribeBucket_ = subscribeBucket;
|
||||
setParameter("SubscribeBucket", subscribeBucket);
|
||||
}
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/SubscribeExportToOSSRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::SubscribeExportToOSSRequest;
|
||||
|
||||
SubscribeExportToOSSRequest::SubscribeExportToOSSRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "SubscribeExportToOSS")
|
||||
{}
|
||||
|
||||
SubscribeExportToOSSRequest::~SubscribeExportToOSSRequest()
|
||||
{}
|
||||
|
||||
long SubscribeExportToOSSRequest::getBucketOwnerId()const
|
||||
{
|
||||
return bucketOwnerId_;
|
||||
}
|
||||
|
||||
void SubscribeExportToOSSRequest::setBucketOwnerId(long bucketOwnerId)
|
||||
{
|
||||
bucketOwnerId_ = bucketOwnerId;
|
||||
setParameter("BucketOwnerId", std::to_string(bucketOwnerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> SubscribeExportToOSSRequest::getSubscribeType()const
|
||||
{
|
||||
return subscribeType_;
|
||||
}
|
||||
|
||||
void SubscribeExportToOSSRequest::setSubscribeType(const std::vector<std::string>& subscribeType)
|
||||
{
|
||||
subscribeType_ = subscribeType;
|
||||
for(int i = 0; i!= subscribeType.size(); i++)
|
||||
setParameter("SubscribeType."+ std::to_string(i), subscribeType.at(i));
|
||||
}
|
||||
|
||||
std::string SubscribeExportToOSSRequest::getSubscribeBucket()const
|
||||
{
|
||||
return subscribeBucket_;
|
||||
}
|
||||
|
||||
void SubscribeExportToOSSRequest::setSubscribeBucket(const std::string& subscribeBucket)
|
||||
{
|
||||
subscribeBucket_ = subscribeBucket;
|
||||
setParameter("SubscribeBucket", subscribeBucket);
|
||||
}
|
||||
|
||||
38
bssopenapi/src/model/UnsubscribeBillToOSSRequest.cc
Normal file
38
bssopenapi/src/model/UnsubscribeBillToOSSRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/UnsubscribeBillToOSSRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::UnsubscribeBillToOSSRequest;
|
||||
|
||||
UnsubscribeBillToOSSRequest::UnsubscribeBillToOSSRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "UnsubscribeBillToOSS")
|
||||
{}
|
||||
|
||||
UnsubscribeBillToOSSRequest::~UnsubscribeBillToOSSRequest()
|
||||
{}
|
||||
|
||||
std::string UnsubscribeBillToOSSRequest::getSubscribeType()const
|
||||
{
|
||||
return subscribeType_;
|
||||
}
|
||||
|
||||
void UnsubscribeBillToOSSRequest::setSubscribeType(const std::string& subscribeType)
|
||||
{
|
||||
subscribeType_ = subscribeType;
|
||||
setCoreParameter("SubscribeType", subscribeType);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/SubscribeExportToOSSResult.h>
|
||||
#include <alibabacloud/bssopenapi/model/UnsubscribeBillToOSSResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
SubscribeExportToOSSResult::SubscribeExportToOSSResult() :
|
||||
UnsubscribeBillToOSSResult::UnsubscribeBillToOSSResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubscribeExportToOSSResult::SubscribeExportToOSSResult(const std::string &payload) :
|
||||
UnsubscribeBillToOSSResult::UnsubscribeBillToOSSResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubscribeExportToOSSResult::~SubscribeExportToOSSResult()
|
||||
UnsubscribeBillToOSSResult::~UnsubscribeBillToOSSResult()
|
||||
{}
|
||||
|
||||
void SubscribeExportToOSSResult::parse(const std::string &payload)
|
||||
void UnsubscribeBillToOSSResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -49,17 +49,17 @@ void SubscribeExportToOSSResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string SubscribeExportToOSSResult::getMessage()const
|
||||
std::string UnsubscribeBillToOSSResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SubscribeExportToOSSResult::getCode()const
|
||||
std::string UnsubscribeBillToOSSResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SubscribeExportToOSSResult::getSuccess()const
|
||||
bool UnsubscribeBillToOSSResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
@@ -34,15 +34,6 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Resource
|
||||
{
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string displayName;
|
||||
int code;
|
||||
bool success;
|
||||
long groupId;
|
||||
std::string name;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
|
||||
@@ -54,10 +54,16 @@ class ALIBABACLOUD_CORE_EXPORT ServiceRequest {
|
||||
void addParameter(const ParameterNameType &name,
|
||||
const ParameterValueType &value);
|
||||
ParameterValueType parameter(const ParameterNameType &name) const;
|
||||
ParameterValueType coreParameter(const ParameterNameType &name) const;
|
||||
void removeParameter(const ParameterNameType &name);
|
||||
void setContent(const char *data, size_t size);
|
||||
void setParameter(const ParameterNameType &name,
|
||||
const ParameterValueType &value);
|
||||
|
||||
void setCoreParameter(const ParameterNameType &name,
|
||||
const ParameterValueType &value);
|
||||
|
||||
|
||||
void setParameters(const ParameterCollection ¶ms);
|
||||
void setResourcePath(const std::string &path);
|
||||
void setProduct(const std::string &product);
|
||||
|
||||
@@ -110,6 +110,12 @@ ServiceRequest::ParameterValueType ServiceRequest::parameter(
|
||||
return it->second;
|
||||
}
|
||||
|
||||
|
||||
ServiceRequest::ParameterValueType ServiceRequest::coreParameter(
|
||||
const ParameterNameType &name)const {
|
||||
return parameter(name);
|
||||
}
|
||||
|
||||
ServiceRequest::ParameterCollection ServiceRequest::parameters() const {
|
||||
return params_;
|
||||
}
|
||||
@@ -123,6 +129,12 @@ void ServiceRequest::setParameter(const ParameterNameType &name,
|
||||
params_[name] = value;
|
||||
}
|
||||
|
||||
void ServiceRequest::setCoreParameter(const ParameterNameType &name,
|
||||
const ParameterValueType &value) {
|
||||
setParameter(name, value);
|
||||
}
|
||||
|
||||
|
||||
void ServiceRequest::setParameters(const ParameterCollection & params) {
|
||||
params_ = params;
|
||||
}
|
||||
|
||||
94
dysmsapi/CMakeLists.txt
Normal file
94
dysmsapi/CMakeLists.txt
Normal file
@@ -0,0 +1,94 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(dysmsapi_public_header
|
||||
include/alibabacloud/dysmsapi/DysmsapiClient.h
|
||||
include/alibabacloud/dysmsapi/DysmsapiExport.h )
|
||||
|
||||
set(dysmsapi_public_header_model
|
||||
include/alibabacloud/dysmsapi/model/SendSmsRequest.h
|
||||
include/alibabacloud/dysmsapi/model/SendSmsResult.h
|
||||
include/alibabacloud/dysmsapi/model/SendBatchSmsRequest.h
|
||||
include/alibabacloud/dysmsapi/model/SendBatchSmsResult.h
|
||||
include/alibabacloud/dysmsapi/model/QuerySendDetailsRequest.h
|
||||
include/alibabacloud/dysmsapi/model/QuerySendDetailsResult.h )
|
||||
|
||||
set(dysmsapi_src
|
||||
src/DysmsapiClient.cc
|
||||
src/model/SendSmsRequest.cc
|
||||
src/model/SendSmsResult.cc
|
||||
src/model/SendBatchSmsRequest.cc
|
||||
src/model/SendBatchSmsResult.cc
|
||||
src/model/QuerySendDetailsRequest.cc
|
||||
src/model/QuerySendDetailsResult.cc )
|
||||
|
||||
add_library(dysmsapi ${LIB_TYPE}
|
||||
${dysmsapi_public_header}
|
||||
${dysmsapi_public_header_model}
|
||||
${dysmsapi_src})
|
||||
|
||||
set_target_properties(dysmsapi
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}dysmsapi
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(dysmsapi
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_DYSMSAPI_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(dysmsapi
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(dysmsapi
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(dysmsapi
|
||||
jsoncpp)
|
||||
target_include_directories(dysmsapi
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(dysmsapi
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(dysmsapi
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(dysmsapi
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(dysmsapi
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${dysmsapi_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dysmsapi)
|
||||
install(FILES ${dysmsapi_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dysmsapi/model)
|
||||
install(TARGETS dysmsapi
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
70
dysmsapi/include/alibabacloud/dysmsapi/DysmsapiClient.h
Normal file
70
dysmsapi/include/alibabacloud/dysmsapi/DysmsapiClient.h
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYSMSAPI_DYSMSAPICLIENT_H_
|
||||
#define ALIBABACLOUD_DYSMSAPI_DYSMSAPICLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "DysmsapiExport.h"
|
||||
#include "model/SendSmsRequest.h"
|
||||
#include "model/SendSmsResult.h"
|
||||
#include "model/SendBatchSmsRequest.h"
|
||||
#include "model/SendBatchSmsResult.h"
|
||||
#include "model/QuerySendDetailsRequest.h"
|
||||
#include "model/QuerySendDetailsResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dysmsapi
|
||||
{
|
||||
class ALIBABACLOUD_DYSMSAPI_EXPORT DysmsapiClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::SendSmsResult> SendSmsOutcome;
|
||||
typedef std::future<SendSmsOutcome> SendSmsOutcomeCallable;
|
||||
typedef std::function<void(const DysmsapiClient*, const Model::SendSmsRequest&, const SendSmsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendSmsAsyncHandler;
|
||||
typedef Outcome<Error, Model::SendBatchSmsResult> SendBatchSmsOutcome;
|
||||
typedef std::future<SendBatchSmsOutcome> SendBatchSmsOutcomeCallable;
|
||||
typedef std::function<void(const DysmsapiClient*, const Model::SendBatchSmsRequest&, const SendBatchSmsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendBatchSmsAsyncHandler;
|
||||
typedef Outcome<Error, Model::QuerySendDetailsResult> QuerySendDetailsOutcome;
|
||||
typedef std::future<QuerySendDetailsOutcome> QuerySendDetailsOutcomeCallable;
|
||||
typedef std::function<void(const DysmsapiClient*, const Model::QuerySendDetailsRequest&, const QuerySendDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySendDetailsAsyncHandler;
|
||||
|
||||
DysmsapiClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
DysmsapiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
DysmsapiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~DysmsapiClient();
|
||||
SendSmsOutcome sendSms(const Model::SendSmsRequest &request)const;
|
||||
void sendSmsAsync(const Model::SendSmsRequest& request, const SendSmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendSmsOutcomeCallable sendSmsCallable(const Model::SendSmsRequest& request) const;
|
||||
SendBatchSmsOutcome sendBatchSms(const Model::SendBatchSmsRequest &request)const;
|
||||
void sendBatchSmsAsync(const Model::SendBatchSmsRequest& request, const SendBatchSmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendBatchSmsOutcomeCallable sendBatchSmsCallable(const Model::SendBatchSmsRequest& request) const;
|
||||
QuerySendDetailsOutcome querySendDetails(const Model::QuerySendDetailsRequest &request)const;
|
||||
void querySendDetailsAsync(const Model::QuerySendDetailsRequest& request, const QuerySendDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QuerySendDetailsOutcomeCallable querySendDetailsCallable(const Model::QuerySendDetailsRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_DYSMSAPI_DYSMSAPICLIENT_H_
|
||||
@@ -14,25 +14,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/QueryPriceRequest.h>
|
||||
#ifndef ALIBABACLOUD_DYSMSAPI_DYSMSAPIEXPORT_H_
|
||||
#define ALIBABACLOUD_DYSMSAPI_DYSMSAPIEXPORT_H_
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryPriceRequest;
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
QueryPriceRequest::QueryPriceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPrice")
|
||||
{}
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_DYSMSAPI_LIBRARY)
|
||||
# define ALIBABACLOUD_DYSMSAPI_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_DYSMSAPI_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_DYSMSAPI_EXPORT
|
||||
#endif
|
||||
|
||||
QueryPriceRequest::~QueryPriceRequest()
|
||||
{}
|
||||
|
||||
std::string QueryPriceRequest::getParamStr()const
|
||||
{
|
||||
return paramStr_;
|
||||
}
|
||||
|
||||
void QueryPriceRequest::setParamStr(const std::string& paramStr)
|
||||
{
|
||||
paramStr_ = paramStr;
|
||||
setParameter("ParamStr", paramStr);
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_DYSMSAPI_DYSMSAPIEXPORT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDDETAILSREQUEST_H_
|
||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDDETAILSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dysmsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySendDetailsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QuerySendDetailsRequest();
|
||||
~QuerySendDetailsRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getSendDate()const;
|
||||
void setSendDate(const std::string& sendDate);
|
||||
std::string getPhoneNumber()const;
|
||||
void setPhoneNumber(const std::string& phoneNumber);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
long getCurrentPage()const;
|
||||
void setCurrentPage(long currentPage);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string sendDate_;
|
||||
std::string phoneNumber_;
|
||||
std::string bizId_;
|
||||
long pageSize_;
|
||||
long currentPage_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDDETAILSREQUEST_H_
|
||||
@@ -14,56 +14,55 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBOOKLISTRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBOOKLISTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDDETAILSRESULT_H_
|
||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDDETAILSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
namespace Dysmsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountBookListResult : public ServiceResult
|
||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySendDetailsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
struct SmsSendDetailDTO
|
||||
{
|
||||
std::string itemCode;
|
||||
long userId;
|
||||
std::string amount;
|
||||
std::string currency;
|
||||
long effectTimeStamp;
|
||||
long invalidTimeStamp;
|
||||
std::string bid;
|
||||
std::string templateCode;
|
||||
std::string receiveDate;
|
||||
std::string phoneNum;
|
||||
std::string content;
|
||||
long sendStatus;
|
||||
std::string outId;
|
||||
std::string sendDate;
|
||||
std::string errCode;
|
||||
};
|
||||
|
||||
|
||||
QueryAccountBookListResult();
|
||||
explicit QueryAccountBookListResult(const std::string &payload);
|
||||
~QueryAccountBookListResult();
|
||||
QuerySendDetailsResult();
|
||||
explicit QuerySendDetailsResult(const std::string &payload);
|
||||
~QuerySendDetailsResult();
|
||||
std::string getTotalCount()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Data> getDatas()const;
|
||||
int getCount()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
std::vector<SmsSendDetailDTO> getSmsSendDetailDTOs()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string totalCount_;
|
||||
std::string message_;
|
||||
std::vector<Data> datas_;
|
||||
int count_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
std::vector<SmsSendDetailDTO> smsSendDetailDTOs_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBOOKLISTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDDETAILSRESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_SENDBATCHSMSREQUEST_H_
|
||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDBATCHSMSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dysmsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYSMSAPI_EXPORT SendBatchSmsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SendBatchSmsRequest();
|
||||
~SendBatchSmsRequest();
|
||||
|
||||
std::string getTemplateParamJson()const;
|
||||
void setTemplateParamJson(const std::string& templateParamJson);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getSmsUpExtendCodeJson()const;
|
||||
void setSmsUpExtendCodeJson(const std::string& smsUpExtendCodeJson);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSignNameJson()const;
|
||||
void setSignNameJson(const std::string& signNameJson);
|
||||
std::string getTemplateCode()const;
|
||||
void setTemplateCode(const std::string& templateCode);
|
||||
std::string getPhoneNumberJson()const;
|
||||
void setPhoneNumberJson(const std::string& phoneNumberJson);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string templateParamJson_;
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string smsUpExtendCodeJson_;
|
||||
long ownerId_;
|
||||
std::string signNameJson_;
|
||||
std::string templateCode_;
|
||||
std::string phoneNumberJson_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDBATCHSMSREQUEST_H_
|
||||
@@ -14,42 +14,42 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEDETAILRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_SENDBATCHSMSRESULT_H_
|
||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDBATCHSMSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
namespace Dysmsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT SubscribeDetailResult : public ServiceResult
|
||||
class ALIBABACLOUD_DYSMSAPI_EXPORT SendBatchSmsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SubscribeDetailResult();
|
||||
explicit SubscribeDetailResult(const std::string &payload);
|
||||
~SubscribeDetailResult();
|
||||
SendBatchSmsResult();
|
||||
explicit SendBatchSmsResult(const std::string &payload);
|
||||
~SendBatchSmsResult();
|
||||
std::string getMessage()const;
|
||||
std::string getBizId()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string bizId_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEDETAILRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDBATCHSMSRESULT_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_SENDSMSREQUEST_H_
|
||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDSMSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dysmsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYSMSAPI_EXPORT SendSmsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SendSmsRequest();
|
||||
~SendSmsRequest();
|
||||
|
||||
std::string getSmsUpExtendCode()const;
|
||||
void setSmsUpExtendCode(const std::string& smsUpExtendCode);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getSignName()const;
|
||||
void setSignName(const std::string& signName);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getPhoneNumbers()const;
|
||||
void setPhoneNumbers(const std::string& phoneNumbers);
|
||||
std::string getOutId()const;
|
||||
void setOutId(const std::string& outId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getTemplateCode()const;
|
||||
void setTemplateCode(const std::string& templateCode);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getTemplateParam()const;
|
||||
void setTemplateParam(const std::string& templateParam);
|
||||
|
||||
private:
|
||||
std::string smsUpExtendCode_;
|
||||
long resourceOwnerId_;
|
||||
std::string signName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string phoneNumbers_;
|
||||
std::string outId_;
|
||||
long ownerId_;
|
||||
std::string templateCode_;
|
||||
std::string accessKeyId_;
|
||||
std::string templateParam_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDSMSREQUEST_H_
|
||||
@@ -14,44 +14,42 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEUSERQUOTARESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEUSERQUOTARESULT_H_
|
||||
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_SENDSMSRESULT_H_
|
||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_SENDSMSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
namespace Dysmsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateUserQuotaResult : public ServiceResult
|
||||
class ALIBABACLOUD_DYSMSAPI_EXPORT SendSmsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateUserQuotaResult();
|
||||
explicit CreateUserQuotaResult(const std::string &payload);
|
||||
~CreateUserQuotaResult();
|
||||
SendSmsResult();
|
||||
explicit SendSmsResult(const std::string &payload);
|
||||
~SendSmsResult();
|
||||
std::string getMessage()const;
|
||||
bool getData()const;
|
||||
std::string getBizId()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
bool data_;
|
||||
std::string bizId_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEUSERQUOTARESULT_H_
|
||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_SENDSMSRESULT_H_
|
||||
161
dysmsapi/src/DysmsapiClient.cc
Normal file
161
dysmsapi/src/DysmsapiClient.cc
Normal file
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* 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/dysmsapi/DysmsapiClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Dysmsapi;
|
||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Dysmsapi";
|
||||
}
|
||||
|
||||
DysmsapiClient::DysmsapiClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dysmsapi");
|
||||
}
|
||||
|
||||
DysmsapiClient::DysmsapiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dysmsapi");
|
||||
}
|
||||
|
||||
DysmsapiClient::DysmsapiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dysmsapi");
|
||||
}
|
||||
|
||||
DysmsapiClient::~DysmsapiClient()
|
||||
{}
|
||||
|
||||
DysmsapiClient::SendSmsOutcome DysmsapiClient::sendSms(const SendSmsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendSmsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendSmsOutcome(SendSmsResult(outcome.result()));
|
||||
else
|
||||
return SendSmsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DysmsapiClient::sendSmsAsync(const SendSmsRequest& request, const SendSmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendSms(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DysmsapiClient::SendSmsOutcomeCallable DysmsapiClient::sendSmsCallable(const SendSmsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendSmsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendSms(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DysmsapiClient::SendBatchSmsOutcome DysmsapiClient::sendBatchSms(const SendBatchSmsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendBatchSmsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendBatchSmsOutcome(SendBatchSmsResult(outcome.result()));
|
||||
else
|
||||
return SendBatchSmsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DysmsapiClient::sendBatchSmsAsync(const SendBatchSmsRequest& request, const SendBatchSmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendBatchSms(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DysmsapiClient::SendBatchSmsOutcomeCallable DysmsapiClient::sendBatchSmsCallable(const SendBatchSmsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendBatchSmsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendBatchSms(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DysmsapiClient::QuerySendDetailsOutcome DysmsapiClient::querySendDetails(const QuerySendDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySendDetailsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QuerySendDetailsOutcome(QuerySendDetailsResult(outcome.result()));
|
||||
else
|
||||
return QuerySendDetailsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DysmsapiClient::querySendDetailsAsync(const QuerySendDetailsRequest& request, const QuerySendDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, querySendDetails(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DysmsapiClient::QuerySendDetailsOutcomeCallable DysmsapiClient::querySendDetailsCallable(const QuerySendDetailsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QuerySendDetailsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->querySendDetails(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
126
dysmsapi/src/model/QuerySendDetailsRequest.cc
Normal file
126
dysmsapi/src/model/QuerySendDetailsRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dysmsapi/model/QuerySendDetailsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dysmsapi::Model::QuerySendDetailsRequest;
|
||||
|
||||
QuerySendDetailsRequest::QuerySendDetailsRequest() :
|
||||
RpcServiceRequest("dysmsapi", "2017-05-25", "QuerySendDetails")
|
||||
{}
|
||||
|
||||
QuerySendDetailsRequest::~QuerySendDetailsRequest()
|
||||
{}
|
||||
|
||||
long QuerySendDetailsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getSendDate()const
|
||||
{
|
||||
return sendDate_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setSendDate(const std::string& sendDate)
|
||||
{
|
||||
sendDate_ = sendDate;
|
||||
setParameter("SendDate", sendDate);
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getPhoneNumber()const
|
||||
{
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setPhoneNumber(const std::string& phoneNumber)
|
||||
{
|
||||
phoneNumber_ = phoneNumber;
|
||||
setParameter("PhoneNumber", phoneNumber);
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
long QuerySendDetailsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long QuerySendDetailsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setCurrentPage(long currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long QuerySendDetailsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QuerySendDetailsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
93
dysmsapi/src/model/QuerySendDetailsResult.cc
Normal file
93
dysmsapi/src/model/QuerySendDetailsResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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/dysmsapi/model/QuerySendDetailsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dysmsapi;
|
||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
||||
|
||||
QuerySendDetailsResult::QuerySendDetailsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QuerySendDetailsResult::QuerySendDetailsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QuerySendDetailsResult::~QuerySendDetailsResult()
|
||||
{}
|
||||
|
||||
void QuerySendDetailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSmsSendDetailDTOs = value["SmsSendDetailDTOs"]["SmsSendDetailDTO"];
|
||||
for (auto value : allSmsSendDetailDTOs)
|
||||
{
|
||||
SmsSendDetailDTO smsSendDetailDTOsObject;
|
||||
if(!value["PhoneNum"].isNull())
|
||||
smsSendDetailDTOsObject.phoneNum = value["PhoneNum"].asString();
|
||||
if(!value["SendStatus"].isNull())
|
||||
smsSendDetailDTOsObject.sendStatus = std::stol(value["SendStatus"].asString());
|
||||
if(!value["ErrCode"].isNull())
|
||||
smsSendDetailDTOsObject.errCode = value["ErrCode"].asString();
|
||||
if(!value["TemplateCode"].isNull())
|
||||
smsSendDetailDTOsObject.templateCode = value["TemplateCode"].asString();
|
||||
if(!value["Content"].isNull())
|
||||
smsSendDetailDTOsObject.content = value["Content"].asString();
|
||||
if(!value["SendDate"].isNull())
|
||||
smsSendDetailDTOsObject.sendDate = value["SendDate"].asString();
|
||||
if(!value["ReceiveDate"].isNull())
|
||||
smsSendDetailDTOsObject.receiveDate = value["ReceiveDate"].asString();
|
||||
if(!value["OutId"].isNull())
|
||||
smsSendDetailDTOsObject.outId = value["OutId"].asString();
|
||||
smsSendDetailDTOs_.push_back(smsSendDetailDTOsObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QuerySendDetailsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::vector<QuerySendDetailsResult::SmsSendDetailDTO> QuerySendDetailsResult::getSmsSendDetailDTOs()const
|
||||
{
|
||||
return smsSendDetailDTOs_;
|
||||
}
|
||||
|
||||
126
dysmsapi/src/model/SendBatchSmsRequest.cc
Normal file
126
dysmsapi/src/model/SendBatchSmsRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dysmsapi/model/SendBatchSmsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dysmsapi::Model::SendBatchSmsRequest;
|
||||
|
||||
SendBatchSmsRequest::SendBatchSmsRequest() :
|
||||
RpcServiceRequest("dysmsapi", "2017-05-25", "SendBatchSms")
|
||||
{}
|
||||
|
||||
SendBatchSmsRequest::~SendBatchSmsRequest()
|
||||
{}
|
||||
|
||||
std::string SendBatchSmsRequest::getTemplateParamJson()const
|
||||
{
|
||||
return templateParamJson_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setTemplateParamJson(const std::string& templateParamJson)
|
||||
{
|
||||
templateParamJson_ = templateParamJson;
|
||||
setParameter("TemplateParamJson", templateParamJson);
|
||||
}
|
||||
|
||||
long SendBatchSmsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getSmsUpExtendCodeJson()const
|
||||
{
|
||||
return smsUpExtendCodeJson_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setSmsUpExtendCodeJson(const std::string& smsUpExtendCodeJson)
|
||||
{
|
||||
smsUpExtendCodeJson_ = smsUpExtendCodeJson;
|
||||
setParameter("SmsUpExtendCodeJson", smsUpExtendCodeJson);
|
||||
}
|
||||
|
||||
long SendBatchSmsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getSignNameJson()const
|
||||
{
|
||||
return signNameJson_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setSignNameJson(const std::string& signNameJson)
|
||||
{
|
||||
signNameJson_ = signNameJson;
|
||||
setParameter("SignNameJson", signNameJson);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getTemplateCode()const
|
||||
{
|
||||
return templateCode_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setTemplateCode(const std::string& templateCode)
|
||||
{
|
||||
templateCode_ = templateCode;
|
||||
setParameter("TemplateCode", templateCode);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getPhoneNumberJson()const
|
||||
{
|
||||
return phoneNumberJson_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setPhoneNumberJson(const std::string& phoneNumberJson)
|
||||
{
|
||||
phoneNumberJson_ = phoneNumberJson;
|
||||
setParameter("PhoneNumberJson", phoneNumberJson);
|
||||
}
|
||||
|
||||
std::string SendBatchSmsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SendBatchSmsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
@@ -14,34 +14,34 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/UnsubscribeExportToOSSResult.h>
|
||||
#include <alibabacloud/dysmsapi/model/SendBatchSmsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
using namespace AlibabaCloud::Dysmsapi;
|
||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
||||
|
||||
UnsubscribeExportToOSSResult::UnsubscribeExportToOSSResult() :
|
||||
SendBatchSmsResult::SendBatchSmsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnsubscribeExportToOSSResult::UnsubscribeExportToOSSResult(const std::string &payload) :
|
||||
SendBatchSmsResult::SendBatchSmsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnsubscribeExportToOSSResult::~UnsubscribeExportToOSSResult()
|
||||
SendBatchSmsResult::~SendBatchSmsResult()
|
||||
{}
|
||||
|
||||
void UnsubscribeExportToOSSResult::parse(const std::string &payload)
|
||||
void SendBatchSmsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["BizId"].isNull())
|
||||
bizId_ = value["BizId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
@@ -49,18 +49,18 @@ void UnsubscribeExportToOSSResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string UnsubscribeExportToOSSResult::getMessage()const
|
||||
std::string SendBatchSmsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UnsubscribeExportToOSSResult::getCode()const
|
||||
std::string SendBatchSmsResult::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
std::string SendBatchSmsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UnsubscribeExportToOSSResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
137
dysmsapi/src/model/SendSmsRequest.cc
Normal file
137
dysmsapi/src/model/SendSmsRequest.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/dysmsapi/model/SendSmsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dysmsapi::Model::SendSmsRequest;
|
||||
|
||||
SendSmsRequest::SendSmsRequest() :
|
||||
RpcServiceRequest("dysmsapi", "2017-05-25", "SendSms")
|
||||
{}
|
||||
|
||||
SendSmsRequest::~SendSmsRequest()
|
||||
{}
|
||||
|
||||
std::string SendSmsRequest::getSmsUpExtendCode()const
|
||||
{
|
||||
return smsUpExtendCode_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setSmsUpExtendCode(const std::string& smsUpExtendCode)
|
||||
{
|
||||
smsUpExtendCode_ = smsUpExtendCode;
|
||||
setParameter("SmsUpExtendCode", smsUpExtendCode);
|
||||
}
|
||||
|
||||
long SendSmsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getSignName()const
|
||||
{
|
||||
return signName_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setSignName(const std::string& signName)
|
||||
{
|
||||
signName_ = signName;
|
||||
setParameter("SignName", signName);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getPhoneNumbers()const
|
||||
{
|
||||
return phoneNumbers_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setPhoneNumbers(const std::string& phoneNumbers)
|
||||
{
|
||||
phoneNumbers_ = phoneNumbers;
|
||||
setParameter("PhoneNumbers", phoneNumbers);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setParameter("OutId", outId);
|
||||
}
|
||||
|
||||
long SendSmsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getTemplateCode()const
|
||||
{
|
||||
return templateCode_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setTemplateCode(const std::string& templateCode)
|
||||
{
|
||||
templateCode_ = templateCode;
|
||||
setParameter("TemplateCode", templateCode);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string SendSmsRequest::getTemplateParam()const
|
||||
{
|
||||
return templateParam_;
|
||||
}
|
||||
|
||||
void SendSmsRequest::setTemplateParam(const std::string& templateParam)
|
||||
{
|
||||
templateParam_ = templateParam;
|
||||
setParameter("TemplateParam", templateParam);
|
||||
}
|
||||
|
||||
@@ -14,60 +14,53 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/SetUserQuotaResult.h>
|
||||
#include <alibabacloud/dysmsapi/model/SendSmsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
using namespace AlibabaCloud::Dysmsapi;
|
||||
using namespace AlibabaCloud::Dysmsapi::Model;
|
||||
|
||||
SetUserQuotaResult::SetUserQuotaResult() :
|
||||
SendSmsResult::SendSmsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetUserQuotaResult::SetUserQuotaResult(const std::string &payload) :
|
||||
SendSmsResult::SendSmsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetUserQuotaResult::~SetUserQuotaResult()
|
||||
SendSmsResult::~SendSmsResult()
|
||||
{}
|
||||
|
||||
void SetUserQuotaResult::parse(const std::string &payload)
|
||||
void SendSmsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BizId"].isNull())
|
||||
bizId_ = value["BizId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SetUserQuotaResult::getMessage()const
|
||||
std::string SendSmsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool SetUserQuotaResult::getData()const
|
||||
std::string SendSmsResult::getBizId()const
|
||||
{
|
||||
return data_;
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
std::string SetUserQuotaResult::getCode()const
|
||||
std::string SendSmsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SetUserQuotaResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -74,6 +74,8 @@ namespace AlibabaCloud
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::string getKMSKeyId()const;
|
||||
void setKMSKeyId(const std::string& kMSKeyId);
|
||||
std::string getAdvancedFeatures()const;
|
||||
void setAdvancedFeatures(const std::string& advancedFeatures);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
@@ -93,6 +95,7 @@ namespace AlibabaCloud
|
||||
std::string zoneId_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string kMSKeyId_;
|
||||
std::string advancedFeatures_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
DeleteSecurityGroupRequest();
|
||||
~DeleteSecurityGroupRequest();
|
||||
|
||||
std::string getSourceRegionId()const;
|
||||
void setSourceRegionId(const std::string& sourceRegionId);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
@@ -49,6 +51,7 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string sourceRegionId_;
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string regionId_;
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
DescribeZonesRequest();
|
||||
~DescribeZonesRequest();
|
||||
|
||||
std::string getSourceRegionId()const;
|
||||
void setSourceRegionId(const std::string& sourceRegionId);
|
||||
std::string getSpotStrategy()const;
|
||||
void setSpotStrategy(const std::string& spotStrategy);
|
||||
long getResourceOwnerId()const;
|
||||
@@ -45,6 +47,8 @@ namespace AlibabaCloud
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getAcceptLanguage()const;
|
||||
void setAcceptLanguage(const std::string& acceptLanguage);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getInstanceChargeType()const;
|
||||
@@ -53,11 +57,13 @@ namespace AlibabaCloud
|
||||
void setVerbose(bool verbose);
|
||||
|
||||
private:
|
||||
std::string sourceRegionId_;
|
||||
std::string spotStrategy_;
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string regionId_;
|
||||
std::string ownerAccount_;
|
||||
std::string acceptLanguage_;
|
||||
long ownerId_;
|
||||
std::string instanceChargeType_;
|
||||
bool verbose_;
|
||||
|
||||
@@ -31,21 +31,21 @@ EcsClient::EcsClient(const Credentials &credentials, const ClientConfiguration &
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ecs");
|
||||
}
|
||||
|
||||
EcsClient::EcsClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ecs");
|
||||
}
|
||||
|
||||
EcsClient::EcsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ecs");
|
||||
}
|
||||
|
||||
EcsClient::~EcsClient()
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string AcceptInquiredSystemEventRequest::getEventId()const
|
||||
void AcceptInquiredSystemEventRequest::setEventId(const std::string& eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setParameter("EventId", eventId);
|
||||
setCoreParameter("EventId", eventId);
|
||||
}
|
||||
|
||||
long AcceptInquiredSystemEventRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long AcceptInquiredSystemEventRequest::getResourceOwnerId()const
|
||||
void AcceptInquiredSystemEventRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long AcceptInquiredSystemEventRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long AcceptInquiredSystemEventRequest::getCallerParentId()const
|
||||
void AcceptInquiredSystemEventRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool AcceptInquiredSystemEventRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool AcceptInquiredSystemEventRequest::getProxy_original_security_transport()con
|
||||
void AcceptInquiredSystemEventRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AcceptInquiredSystemEventRequest::getProxy_original_source_ip()const
|
||||
@@ -77,7 +77,7 @@ std::string AcceptInquiredSystemEventRequest::getProxy_original_source_ip()const
|
||||
void AcceptInquiredSystemEventRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string AcceptInquiredSystemEventRequest::getOwnerIdLoginEmail()const
|
||||
@@ -88,7 +88,7 @@ std::string AcceptInquiredSystemEventRequest::getOwnerIdLoginEmail()const
|
||||
void AcceptInquiredSystemEventRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string AcceptInquiredSystemEventRequest::getCallerType()const
|
||||
@@ -99,7 +99,7 @@ std::string AcceptInquiredSystemEventRequest::getCallerType()const
|
||||
void AcceptInquiredSystemEventRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string AcceptInquiredSystemEventRequest::getAccessKeyId()const
|
||||
@@ -110,7 +110,7 @@ std::string AcceptInquiredSystemEventRequest::getAccessKeyId()const
|
||||
void AcceptInquiredSystemEventRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AcceptInquiredSystemEventRequest::getResourceGroupId()const
|
||||
@@ -121,7 +121,7 @@ std::string AcceptInquiredSystemEventRequest::getResourceGroupId()const
|
||||
void AcceptInquiredSystemEventRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
setCoreParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string AcceptInquiredSystemEventRequest::getSecurityToken()const
|
||||
@@ -132,7 +132,7 @@ std::string AcceptInquiredSystemEventRequest::getSecurityToken()const
|
||||
void AcceptInquiredSystemEventRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string AcceptInquiredSystemEventRequest::getRegionId()const
|
||||
@@ -143,7 +143,7 @@ std::string AcceptInquiredSystemEventRequest::getRegionId()const
|
||||
void AcceptInquiredSystemEventRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool AcceptInquiredSystemEventRequest::getEnable()const
|
||||
@@ -154,7 +154,7 @@ bool AcceptInquiredSystemEventRequest::getEnable()const
|
||||
void AcceptInquiredSystemEventRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", enable ? "true" : "false");
|
||||
setCoreParameter("Enable", enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AcceptInquiredSystemEventRequest::getRequestContent()const
|
||||
@@ -165,7 +165,7 @@ std::string AcceptInquiredSystemEventRequest::getRequestContent()const
|
||||
void AcceptInquiredSystemEventRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string AcceptInquiredSystemEventRequest::getCallerBidEmail()const
|
||||
@@ -176,7 +176,7 @@ std::string AcceptInquiredSystemEventRequest::getCallerBidEmail()const
|
||||
void AcceptInquiredSystemEventRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string AcceptInquiredSystemEventRequest::getCallerUidEmail()const
|
||||
@@ -187,7 +187,7 @@ std::string AcceptInquiredSystemEventRequest::getCallerUidEmail()const
|
||||
void AcceptInquiredSystemEventRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long AcceptInquiredSystemEventRequest::getCallerUid()const
|
||||
@@ -198,7 +198,7 @@ long AcceptInquiredSystemEventRequest::getCallerUid()const
|
||||
void AcceptInquiredSystemEventRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string AcceptInquiredSystemEventRequest::getApp_ip()const
|
||||
@@ -209,7 +209,7 @@ std::string AcceptInquiredSystemEventRequest::getApp_ip()const
|
||||
void AcceptInquiredSystemEventRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string AcceptInquiredSystemEventRequest::getResourceOwnerAccount()const
|
||||
@@ -220,7 +220,7 @@ std::string AcceptInquiredSystemEventRequest::getResourceOwnerAccount()const
|
||||
void AcceptInquiredSystemEventRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AcceptInquiredSystemEventRequest::getOwnerAccount()const
|
||||
@@ -231,7 +231,7 @@ std::string AcceptInquiredSystemEventRequest::getOwnerAccount()const
|
||||
void AcceptInquiredSystemEventRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AcceptInquiredSystemEventRequest::getCallerBid()const
|
||||
@@ -242,7 +242,7 @@ std::string AcceptInquiredSystemEventRequest::getCallerBid()const
|
||||
void AcceptInquiredSystemEventRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long AcceptInquiredSystemEventRequest::getOwnerId()const
|
||||
@@ -253,7 +253,7 @@ long AcceptInquiredSystemEventRequest::getOwnerId()const
|
||||
void AcceptInquiredSystemEventRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool AcceptInquiredSystemEventRequest::getProxy_trust_transport_info()const
|
||||
@@ -264,7 +264,7 @@ bool AcceptInquiredSystemEventRequest::getProxy_trust_transport_info()const
|
||||
void AcceptInquiredSystemEventRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool AcceptInquiredSystemEventRequest::getAk_mfa_present()const
|
||||
@@ -275,7 +275,7 @@ bool AcceptInquiredSystemEventRequest::getAk_mfa_present()const
|
||||
void AcceptInquiredSystemEventRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool AcceptInquiredSystemEventRequest::getSecurity_transport()const
|
||||
@@ -286,7 +286,7 @@ bool AcceptInquiredSystemEventRequest::getSecurity_transport()const
|
||||
void AcceptInquiredSystemEventRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AcceptInquiredSystemEventRequest::getRequestId()const
|
||||
@@ -297,6 +297,6 @@ std::string AcceptInquiredSystemEventRequest::getRequestId()const
|
||||
void AcceptInquiredSystemEventRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user