From ed52841639fab2ed2a379391b4ea8cb4fe955c83 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Sun, 24 Apr 2022 11:37:31 +0000 Subject: [PATCH] Bill api add query conditions and return data field. --- CHANGELOG | 3 + VERSION | 2 +- bssopenapi/CMakeLists.txt | 16 ++ .../bssopenapi/BssOpenApiClient.h | 32 +++ .../model/AddAccountRelationRequest.h | 104 ++++---- .../model/AddAccountRelationResult.h | 1 + .../model/AllocateCostUnitResourceRequest.h | 106 ++++---- .../bssopenapi/model/ApplyInvoiceRequest.h | 122 +++++---- .../bssopenapi/model/CancelOrderRequest.h | 74 +++--- .../ChangeResellerConsumeAmountRequest.h | 110 ++++---- .../bssopenapi/model/ConfirmRelationRequest.h | 101 ++++---- .../model/ConvertChargeTypeRequest.h | 98 ++++---- .../bssopenapi/model/CreateAgAccountRequest.h | 116 ++++----- .../bssopenapi/model/CreateCostUnitRequest.h | 80 +++--- .../bssopenapi/model/CreateInstanceRequest.h | 132 +++++----- .../model/CreateResellerUserQuotaRequest.h | 86 +++---- .../model/CreateResourcePackageRequest.h | 104 ++++---- .../model/CreateSavingsPlansInstanceRequest.h | 69 +++++ .../model/CreateSavingsPlansInstanceResult.h | 61 +++++ .../bssopenapi/model/DeleteCostUnitRequest.h | 74 +++--- .../model/DescribeInstanceBillRequest.h | 140 +++++------ .../model/DescribeInstanceBillResult.h | 20 +- .../model/DescribePricingModuleRequest.h | 86 +++---- .../model/DescribePricingModuleResult.h | 2 +- .../DescribeResourceCoverageDetailRequest.h | 104 ++++---- .../DescribeResourceCoverageDetailResult.h | 6 +- .../DescribeResourceCoverageTotalRequest.h | 92 ++++--- .../DescribeResourcePackageProductRequest.h | 68 +++-- .../DescribeResourceUsageDetailRequest.h | 104 ++++---- .../model/DescribeResourceUsageDetailResult.h | 4 +- .../model/DescribeResourceUsageTotalRequest.h | 92 ++++--- ...escribeSavingsPlansCoverageDetailRequest.h | 98 ++++---- ...DescribeSavingsPlansCoverageDetailResult.h | 2 +- ...DescribeSavingsPlansCoverageTotalRequest.h | 86 +++---- .../DescribeSavingsPlansUsageDetailRequest.h | 98 ++++---- .../DescribeSavingsPlansUsageTotalRequest.h | 86 +++---- .../DescribeSavingsPlansUsageTotalResult.h | 2 +- .../model/DescribeSplitItemBillRequest.h | 149 ++++++----- .../model/DescribeSplitItemBillResult.h | 10 +- .../model/EnableBillGenerationRequest.h | 74 +++--- .../model/GetAccountRelationRequest.h | 45 ++++ .../model/GetAccountRelationResult.h | 68 +++++ .../model/GetCustomerAccountInfoRequest.h | 68 +++-- .../bssopenapi/model/GetCustomerListRequest.h | 62 +++-- .../bssopenapi/model/GetOrderDetailRequest.h | 74 +++--- .../bssopenapi/model/GetOrderDetailResult.h | 10 +- .../model/GetPayAsYouGoPriceRequest.h | 110 ++++---- .../model/GetResourcePackagePriceRequest.h | 116 ++++----- .../model/GetResourcePackagePriceResult.h | 2 +- .../model/GetSubscriptionPriceRequest.h | 142 +++++------ .../model/InquiryPriceRefundInstanceRequest.h | 51 ++++ .../model/InquiryPriceRefundInstanceResult.h | 64 +++++ .../model/ModifyAccountRelationRequest.h | 113 ++++----- .../bssopenapi/model/ModifyCostUnitRequest.h | 80 +++--- .../bssopenapi/model/ModifyInstanceRequest.h | 120 +++++---- .../bssopenapi/model/ModifyInstanceResult.h | 2 +- .../model/QueryAccountBalanceRequest.h | 62 +++-- .../model/QueryAccountBillRequest.h | 116 ++++----- .../bssopenapi/model/QueryAccountBillResult.h | 8 +- .../QueryAccountTransactionDetailsRequest.h | 116 ++++----- .../QueryAccountTransactionDetailsResult.h | 2 +- .../model/QueryAccountTransactionsRequest.h | 113 +++++---- .../model/QueryAccountTransactionsResult.h | 2 +- .../model/QueryAvailableInstancesRequest.h | 140 +++++------ .../model/QueryAvailableInstancesResult.h | 6 +- .../model/QueryBillOverviewRequest.h | 92 ++++--- .../model/QueryBillOverviewResult.h | 2 + .../bssopenapi/model/QueryBillRequest.h | 128 +++++----- .../bssopenapi/model/QueryBillResult.h | 4 +- .../model/QueryBillToOSSSubscriptionRequest.h | 62 +++-- .../model/QueryCashCouponsRequest.h | 80 +++--- .../bssopenapi/model/QueryCostUnitRequest.h | 86 +++---- .../model/QueryCostUnitResourceRequest.h | 86 +++---- .../model/QueryCostUnitResourceResult.h | 10 +- .../bssopenapi/model/QueryCostUnitResult.h | 2 +- .../model/QueryCustomerAddressListRequest.h | 68 +++-- .../model/QueryCustomerAddressListResult.h | 8 +- .../model/QueryDPUtilizationDetailRequest.h | 122 +++++---- .../model/QueryDPUtilizationDetailResult.h | 2 +- .../model/QueryEvaluateListRequest.h | 146 ++++++----- .../model/QueryEvaluateListResult.h | 8 +- .../model/QueryFinancialAccountInfoRequest.h | 68 +++-- .../model/QueryFinancialAccountInfoResult.h | 2 +- .../model/QueryInstanceBillRequest.h | 134 +++++----- .../model/QueryInstanceBillResult.h | 16 +- .../model/QueryInstanceByTagRequest.h | 90 +++---- .../model/QueryInstanceGaapCostRequest.h | 98 ++++---- .../model/QueryInstanceGaapCostResult.h | 8 +- .../model/QueryInvoicingCustomerListRequest.h | 68 +++-- .../model/QueryInvoicingCustomerListResult.h | 8 +- .../model/QueryMonthlyBillRequest.h | 68 +++-- .../bssopenapi/model/QueryMonthlyBillResult.h | 4 +- .../QueryMonthlyInstanceConsumptionRequest.h | 104 ++++---- .../QueryMonthlyInstanceConsumptionResult.h | 6 +- .../bssopenapi/model/QueryOrdersRequest.h | 122 +++++---- .../bssopenapi/model/QueryOrdersResult.h | 2 +- .../model/QueryPermissionListRequest.h | 68 +++-- .../model/QueryPermissionListResult.h | 2 +- .../model/QueryPrepaidCardsRequest.h | 80 +++--- .../model/QueryProductListRequest.h | 80 +++--- .../model/QueryRIUtilizationDetailRequest.h | 110 ++++---- .../model/QueryRIUtilizationDetailResult.h | 2 +- .../bssopenapi/model/QueryRedeemRequest.h | 92 ++++--- .../bssopenapi/model/QueryRedeemResult.h | 4 +- .../model/QueryRelationListRequest.h | 86 +++---- .../model/QueryRelationListResult.h | 6 +- .../QueryResellerAvailableQuotaRequest.h | 74 +++--- .../QueryResourcePackageInstancesRequest.h | 101 ++++---- .../QueryResourcePackageInstancesResult.h | 2 +- .../model/QuerySavingsPlansDeductLogRequest.h | 104 ++++---- .../model/QuerySavingsPlansDeductLogResult.h | 2 +- .../model/QuerySavingsPlansInstanceRequest.h | 114 ++++----- .../model/QuerySavingsPlansInstanceResult.h | 5 + .../bssopenapi/model/QuerySettleBillRequest.h | 134 +++++----- .../bssopenapi/model/QuerySettleBillResult.h | 4 +- .../model/QuerySettlementBillRequest.h | 128 +++++----- .../model/QuerySettlementBillResult.h | 12 +- .../model/QuerySplitItemBillRequest.h | 110 ++++---- .../model/QuerySplitItemBillResult.h | 14 +- .../model/QueryUserOmsDataRequest.h | 104 ++++---- .../bssopenapi/model/RefundInstanceRequest.h | 54 ++++ .../bssopenapi/model/RefundInstanceResult.h | 62 +++++ .../model/RelieveAccountRelationRequest.h | 89 ++++--- .../bssopenapi/model/RenewInstanceRequest.h | 98 ++++---- .../model/RenewResourcePackageRequest.h | 92 ++++--- .../bssopenapi/model/SaveUserCreditRequest.h | 110 ++++---- .../model/SetAllExpirationDayRequest.h | 74 +++--- .../model/SetCreditLabelActionRequest.h | 164 ++++++------ .../bssopenapi/model/SetRenewalRequest.h | 110 ++++---- .../SetResellerUserAlarmThresholdRequest.h | 80 +++--- .../model/SetResellerUserQuotaRequest.h | 86 +++---- .../model/SetResellerUserStatusRequest.h | 80 +++--- .../model/SubscribeBillToOSSRequest.h | 92 ++++--- .../bssopenapi/model/TagResourcesRequest.h | 90 +++---- .../model/UnsubscribeBillToOSSRequest.h | 74 +++--- .../bssopenapi/model/UntagResourcesRequest.h | 86 +++---- .../model/UpgradeResourcePackageRequest.h | 86 +++---- bssopenapi/src/BssOpenApiClient.cc | 144 +++++++++++ .../src/model/AddAccountRelationRequest.cc | 120 ++++----- .../src/model/AddAccountRelationResult.cc | 6 +- .../model/AllocateCostUnitResourceRequest.cc | 108 ++++---- .../model/AllocateCostUnitResourceResult.cc | 8 +- bssopenapi/src/model/ApplyInvoiceRequest.cc | 155 +++++------- bssopenapi/src/model/ApplyInvoiceResult.cc | 4 +- bssopenapi/src/model/CancelOrderRequest.cc | 58 ++--- bssopenapi/src/model/CancelOrderResult.cc | 4 +- .../ChangeResellerConsumeAmountRequest.cc | 130 +++++----- .../ChangeResellerConsumeAmountResult.cc | 4 +- .../src/model/ConfirmRelationRequest.cc | 116 ++++----- bssopenapi/src/model/ConfirmRelationResult.cc | 4 +- .../src/model/ConvertChargeTypeRequest.cc | 106 ++++---- .../src/model/ConvertChargeTypeResult.cc | 4 +- .../src/model/CreateAgAccountRequest.cc | 142 +++++------ bssopenapi/src/model/CreateAgAccountResult.cc | 8 +- bssopenapi/src/model/CreateCostUnitRequest.cc | 58 ++--- bssopenapi/src/model/CreateCostUnitResult.cc | 12 +- bssopenapi/src/model/CreateInstanceRequest.cc | 164 ++++++------ bssopenapi/src/model/CreateInstanceResult.cc | 8 +- .../model/CreateResellerUserQuotaRequest.cc | 82 +++--- .../model/CreateResellerUserQuotaResult.cc | 4 +- .../src/model/CreateResourcePackageRequest.cc | 118 ++++----- .../src/model/CreateResourcePackageResult.cc | 8 +- .../CreateSavingsPlansInstanceRequest.cc | 117 +++++++++ .../model/CreateSavingsPlansInstanceResult.cc | 73 ++++++ bssopenapi/src/model/DeleteCostUnitRequest.cc | 58 ++--- bssopenapi/src/model/DeleteCostUnitResult.cc | 4 +- .../src/model/DescribeInstanceBillRequest.cc | 190 ++++++-------- .../src/model/DescribeInstanceBillResult.cc | 184 +++++++------- .../src/model/DescribePricingModuleRequest.cc | 82 +++--- .../src/model/DescribePricingModuleResult.cc | 12 +- .../DescribeResourceCoverageDetailRequest.cc | 118 ++++----- .../DescribeResourceCoverageDetailResult.cc | 68 ++--- .../DescribeResourceCoverageTotalRequest.cc | 94 +++---- .../DescribeResourceCoverageTotalResult.cc | 20 +- .../DescribeResourcePackageProductRequest.cc | 46 ++-- .../DescribeResourcePackageProductResult.cc | 20 +- .../DescribeResourceUsageDetailRequest.cc | 118 ++++----- .../DescribeResourceUsageDetailResult.cc | 76 +++--- .../DescribeResourceUsageTotalRequest.cc | 94 +++---- .../model/DescribeResourceUsageTotalResult.cc | 16 +- ...scribeSavingsPlansCoverageDetailRequest.cc | 106 ++++---- ...escribeSavingsPlansCoverageDetailResult.cc | 28 +-- ...escribeSavingsPlansCoverageTotalRequest.cc | 82 +++--- ...DescribeSavingsPlansCoverageTotalResult.cc | 8 +- .../DescribeSavingsPlansUsageDetailRequest.cc | 106 ++++---- .../DescribeSavingsPlansUsageDetailResult.cc | 40 +-- .../DescribeSavingsPlansUsageTotalRequest.cc | 82 +++--- .../DescribeSavingsPlansUsageTotalResult.cc | 16 +- .../src/model/DescribeSplitItemBillRequest.cc | 201 +++++++-------- .../src/model/DescribeSplitItemBillResult.cc | 200 ++++++++------- .../src/model/EnableBillGenerationRequest.cc | 58 ++--- .../src/model/EnableBillGenerationResult.cc | 4 +- .../src/model/GetAccountRelationRequest.cc | 45 ++++ .../src/model/GetAccountRelationResult.cc | 87 +++++++ .../model/GetCustomerAccountInfoRequest.cc | 46 ++-- .../src/model/GetCustomerAccountInfoResult.cc | 12 +- .../src/model/GetCustomerListRequest.cc | 34 ++- bssopenapi/src/model/GetCustomerListResult.cc | 4 +- bssopenapi/src/model/GetOrderDetailRequest.cc | 58 ++--- bssopenapi/src/model/GetOrderDetailResult.cc | 108 ++++---- .../src/model/GetPayAsYouGoPriceRequest.cc | 118 ++++----- .../src/model/GetPayAsYouGoPriceResult.cc | 20 +- .../model/GetResourcePackagePriceRequest.cc | 142 +++++------ .../model/GetResourcePackagePriceResult.cc | 16 +- .../src/model/GetSubscriptionPriceRequest.cc | 180 ++++++------- .../src/model/GetSubscriptionPriceResult.cc | 24 +- .../InquiryPriceRefundInstanceRequest.cc | 63 +++++ .../model/InquiryPriceRefundInstanceResult.cc | 79 ++++++ .../src/model/ModifyAccountRelationRequest.cc | 141 +++++------ .../src/model/ModifyAccountRelationResult.cc | 4 +- bssopenapi/src/model/ModifyCostUnitRequest.cc | 58 ++--- bssopenapi/src/model/ModifyCostUnitResult.cc | 4 +- bssopenapi/src/model/ModifyInstanceRequest.cc | 140 +++++------ bssopenapi/src/model/ModifyInstanceResult.cc | 8 +- .../src/model/QueryAccountBalanceRequest.cc | 34 ++- .../src/model/QueryAccountBalanceResult.cc | 8 +- .../src/model/QueryAccountBillRequest.cc | 142 +++++------ .../src/model/QueryAccountBillResult.cc | 84 ++++--- .../QueryAccountTransactionDetailsRequest.cc | 142 +++++------ .../QueryAccountTransactionDetailsResult.cc | 44 ++-- .../model/QueryAccountTransactionsRequest.cc | 145 ++++++----- .../model/QueryAccountTransactionsResult.cc | 44 ++-- .../model/QueryAvailableInstancesRequest.cc | 190 ++++++-------- .../model/QueryAvailableInstancesResult.cc | 64 ++--- .../src/model/QueryBillOverviewRequest.cc | 94 +++---- .../src/model/QueryBillOverviewResult.cc | 96 +++---- bssopenapi/src/model/QueryBillRequest.cc | 166 ++++++------ bssopenapi/src/model/QueryBillResult.cc | 108 ++++---- .../QueryBillToOSSSubscriptionRequest.cc | 34 ++- .../model/QueryBillToOSSSubscriptionResult.cc | 12 +- .../src/model/QueryCashCouponsRequest.cc | 70 +++--- .../src/model/QueryCashCouponsResult.cc | 40 +-- bssopenapi/src/model/QueryCostUnitRequest.cc | 82 +++--- .../src/model/QueryCostUnitResourceRequest.cc | 82 +++--- .../src/model/QueryCostUnitResourceResult.cc | 68 ++--- bssopenapi/src/model/QueryCostUnitResult.cc | 20 +- .../model/QueryCustomerAddressListRequest.cc | 46 ++-- .../model/QueryCustomerAddressListResult.cc | 32 +-- .../model/QueryDPUtilizationDetailRequest.cc | 154 +++++------- .../model/QueryDPUtilizationDetailResult.cc | 40 +-- .../src/model/QueryEvaluateListRequest.cc | 203 +++++++-------- .../src/model/QueryEvaluateListResult.cc | 72 +++--- .../model/QueryFinancialAccountInfoRequest.cc | 46 ++-- .../model/QueryFinancialAccountInfoResult.cc | 20 +- .../src/model/QueryInstanceBillRequest.cc | 178 ++++++------- .../src/model/QueryInstanceBillResult.cc | 164 ++++++------ .../src/model/QueryInstanceByTagRequest.cc | 81 +++--- .../src/model/QueryInstanceByTagResult.cc | 4 +- .../src/model/QueryInstanceGaapCostRequest.cc | 106 ++++---- .../src/model/QueryInstanceGaapCostResult.cc | 180 ++++++------- .../QueryInvoicingCustomerListRequest.cc | 46 ++-- .../model/QueryInvoicingCustomerListResult.cc | 80 +++--- .../src/model/QueryMonthlyBillRequest.cc | 46 ++-- .../src/model/QueryMonthlyBillResult.cc | 68 ++--- .../QueryMonthlyInstanceConsumptionRequest.cc | 118 ++++----- .../QueryMonthlyInstanceConsumptionResult.cc | 64 ++--- bssopenapi/src/model/QueryOrdersRequest.cc | 154 +++++------- bssopenapi/src/model/QueryOrdersResult.cc | 64 ++--- .../src/model/QueryPermissionListRequest.cc | 46 ++-- .../src/model/QueryPermissionListResult.cc | 28 +-- .../src/model/QueryPrepaidCardsRequest.cc | 70 +++--- .../src/model/QueryPrepaidCardsResult.cc | 40 +-- .../src/model/QueryProductListRequest.cc | 70 +++--- .../src/model/QueryProductListResult.cc | 12 +- .../model/QueryRIUtilizationDetailRequest.cc | 130 +++++----- .../model/QueryRIUtilizationDetailResult.cc | 32 +-- bssopenapi/src/model/QueryRedeemRequest.cc | 94 +++---- bssopenapi/src/model/QueryRedeemResult.cc | 32 +-- .../src/model/QueryRelationListRequest.cc | 83 +++--- .../src/model/QueryRelationListResult.cc | 40 +-- .../QueryResellerAvailableQuotaRequest.cc | 58 ++--- .../QueryResellerAvailableQuotaResult.cc | 4 +- .../QueryResourcePackageInstancesRequest.cc | 115 ++++----- .../QueryResourcePackageInstancesResult.cc | 36 +-- .../QuerySavingsPlansDeductLogRequest.cc | 118 ++++----- .../model/QuerySavingsPlansDeductLogResult.cc | 32 +-- .../model/QuerySavingsPlansInstanceRequest.cc | 128 +++++----- .../model/QuerySavingsPlansInstanceResult.cc | 54 ++-- .../src/model/QuerySettleBillRequest.cc | 178 ++++++------- bssopenapi/src/model/QuerySettleBillResult.cc | 136 +++++----- .../src/model/QuerySettlementBillRequest.cc | 166 ++++++------ .../src/model/QuerySettlementBillResult.cc | 148 +++++------ .../src/model/QuerySplitItemBillRequest.cc | 130 +++++----- .../src/model/QuerySplitItemBillResult.cc | 176 ++++++------- .../src/model/QueryUserOmsDataRequest.cc | 118 ++++----- .../src/model/QueryUserOmsDataResult.cc | 4 +- bssopenapi/src/model/RefundInstanceRequest.cc | 72 ++++++ bssopenapi/src/model/RefundInstanceResult.cc | 75 ++++++ .../model/RelieveAccountRelationRequest.cc | 91 ++++--- .../src/model/RelieveAccountRelationResult.cc | 4 +- bssopenapi/src/model/RenewInstanceRequest.cc | 106 ++++---- bssopenapi/src/model/RenewInstanceResult.cc | 4 +- .../src/model/RenewResourcePackageRequest.cc | 94 +++---- .../src/model/RenewResourcePackageResult.cc | 8 +- bssopenapi/src/model/SaveUserCreditRequest.cc | 130 +++++----- bssopenapi/src/model/SaveUserCreditResult.cc | 4 +- .../src/model/SetAllExpirationDayRequest.cc | 58 ++--- .../src/model/SetAllExpirationDayResult.cc | 4 +- .../src/model/SetCreditLabelActionRequest.cc | 238 ++++++++---------- .../src/model/SetCreditLabelActionResult.cc | 4 +- bssopenapi/src/model/SetRenewalRequest.cc | 130 +++++----- bssopenapi/src/model/SetRenewalResult.cc | 4 +- .../SetResellerUserAlarmThresholdRequest.cc | 70 +++--- .../SetResellerUserAlarmThresholdResult.cc | 4 +- .../src/model/SetResellerUserQuotaRequest.cc | 82 +++--- .../src/model/SetResellerUserQuotaResult.cc | 4 +- .../src/model/SetResellerUserStatusRequest.cc | 70 +++--- .../src/model/SetResellerUserStatusResult.cc | 4 +- .../src/model/SubscribeBillToOSSRequest.cc | 94 +++---- .../src/model/SubscribeBillToOSSResult.cc | 4 +- bssopenapi/src/model/TagResourcesRequest.cc | 81 +++--- bssopenapi/src/model/TagResourcesResult.cc | 4 +- .../src/model/UnsubscribeBillToOSSRequest.cc | 58 ++--- .../src/model/UnsubscribeBillToOSSResult.cc | 4 +- bssopenapi/src/model/UntagResourcesRequest.cc | 84 +++---- bssopenapi/src/model/UntagResourcesResult.cc | 4 +- .../model/UpgradeResourcePackageRequest.cc | 82 +++--- .../src/model/UpgradeResourcePackageResult.cc | 8 +- 318 files changed, 10932 insertions(+), 11226 deletions(-) create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/CreateSavingsPlansInstanceRequest.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/CreateSavingsPlansInstanceResult.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/GetAccountRelationRequest.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/GetAccountRelationResult.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/InquiryPriceRefundInstanceRequest.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/InquiryPriceRefundInstanceResult.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/RefundInstanceRequest.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/RefundInstanceResult.h create mode 100644 bssopenapi/src/model/CreateSavingsPlansInstanceRequest.cc create mode 100644 bssopenapi/src/model/CreateSavingsPlansInstanceResult.cc create mode 100644 bssopenapi/src/model/GetAccountRelationRequest.cc create mode 100644 bssopenapi/src/model/GetAccountRelationResult.cc create mode 100644 bssopenapi/src/model/InquiryPriceRefundInstanceRequest.cc create mode 100644 bssopenapi/src/model/InquiryPriceRefundInstanceResult.cc create mode 100644 bssopenapi/src/model/RefundInstanceRequest.cc create mode 100644 bssopenapi/src/model/RefundInstanceResult.cc diff --git a/CHANGELOG b/CHANGELOG index 179834e6b..7223887f9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-04-24 Version: 1.36.1115 +- Bill api add query conditions and return data field. + 2022-04-24 Version: 1.36.1114 - Support new feature. diff --git a/VERSION b/VERSION index 4e869fa56..3def79834 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1114 \ No newline at end of file +1.36.1115 \ No newline at end of file diff --git a/bssopenapi/CMakeLists.txt b/bssopenapi/CMakeLists.txt index 8c183a18e..35b5ab2f0 100644 --- a/bssopenapi/CMakeLists.txt +++ b/bssopenapi/CMakeLists.txt @@ -45,6 +45,8 @@ set(bssopenapi_public_header_model include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaResult.h include/alibabacloud/bssopenapi/model/CreateResourcePackageRequest.h include/alibabacloud/bssopenapi/model/CreateResourcePackageResult.h + include/alibabacloud/bssopenapi/model/CreateSavingsPlansInstanceRequest.h + include/alibabacloud/bssopenapi/model/CreateSavingsPlansInstanceResult.h include/alibabacloud/bssopenapi/model/DeleteCostUnitRequest.h include/alibabacloud/bssopenapi/model/DeleteCostUnitResult.h include/alibabacloud/bssopenapi/model/DescribeInstanceBillRequest.h @@ -73,6 +75,8 @@ set(bssopenapi_public_header_model include/alibabacloud/bssopenapi/model/DescribeSplitItemBillResult.h include/alibabacloud/bssopenapi/model/EnableBillGenerationRequest.h include/alibabacloud/bssopenapi/model/EnableBillGenerationResult.h + include/alibabacloud/bssopenapi/model/GetAccountRelationRequest.h + include/alibabacloud/bssopenapi/model/GetAccountRelationResult.h include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoResult.h include/alibabacloud/bssopenapi/model/GetCustomerListRequest.h @@ -85,6 +89,8 @@ set(bssopenapi_public_header_model include/alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h include/alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h include/alibabacloud/bssopenapi/model/GetSubscriptionPriceResult.h + include/alibabacloud/bssopenapi/model/InquiryPriceRefundInstanceRequest.h + include/alibabacloud/bssopenapi/model/InquiryPriceRefundInstanceResult.h include/alibabacloud/bssopenapi/model/ModifyAccountRelationRequest.h include/alibabacloud/bssopenapi/model/ModifyAccountRelationResult.h include/alibabacloud/bssopenapi/model/ModifyCostUnitRequest.h @@ -163,6 +169,8 @@ set(bssopenapi_public_header_model include/alibabacloud/bssopenapi/model/QuerySplitItemBillResult.h include/alibabacloud/bssopenapi/model/QueryUserOmsDataRequest.h include/alibabacloud/bssopenapi/model/QueryUserOmsDataResult.h + include/alibabacloud/bssopenapi/model/RefundInstanceRequest.h + include/alibabacloud/bssopenapi/model/RefundInstanceResult.h include/alibabacloud/bssopenapi/model/RelieveAccountRelationRequest.h include/alibabacloud/bssopenapi/model/RelieveAccountRelationResult.h include/alibabacloud/bssopenapi/model/RenewInstanceRequest.h @@ -220,6 +228,8 @@ set(bssopenapi_src src/model/CreateResellerUserQuotaResult.cc src/model/CreateResourcePackageRequest.cc src/model/CreateResourcePackageResult.cc + src/model/CreateSavingsPlansInstanceRequest.cc + src/model/CreateSavingsPlansInstanceResult.cc src/model/DeleteCostUnitRequest.cc src/model/DeleteCostUnitResult.cc src/model/DescribeInstanceBillRequest.cc @@ -248,6 +258,8 @@ set(bssopenapi_src src/model/DescribeSplitItemBillResult.cc src/model/EnableBillGenerationRequest.cc src/model/EnableBillGenerationResult.cc + src/model/GetAccountRelationRequest.cc + src/model/GetAccountRelationResult.cc src/model/GetCustomerAccountInfoRequest.cc src/model/GetCustomerAccountInfoResult.cc src/model/GetCustomerListRequest.cc @@ -260,6 +272,8 @@ set(bssopenapi_src src/model/GetResourcePackagePriceResult.cc src/model/GetSubscriptionPriceRequest.cc src/model/GetSubscriptionPriceResult.cc + src/model/InquiryPriceRefundInstanceRequest.cc + src/model/InquiryPriceRefundInstanceResult.cc src/model/ModifyAccountRelationRequest.cc src/model/ModifyAccountRelationResult.cc src/model/ModifyCostUnitRequest.cc @@ -338,6 +352,8 @@ set(bssopenapi_src src/model/QuerySplitItemBillResult.cc src/model/QueryUserOmsDataRequest.cc src/model/QueryUserOmsDataResult.cc + src/model/RefundInstanceRequest.cc + src/model/RefundInstanceResult.cc src/model/RelieveAccountRelationRequest.cc src/model/RelieveAccountRelationResult.cc src/model/RenewInstanceRequest.cc diff --git a/bssopenapi/include/alibabacloud/bssopenapi/BssOpenApiClient.h b/bssopenapi/include/alibabacloud/bssopenapi/BssOpenApiClient.h index ed347f2af..9287eb2e9 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/BssOpenApiClient.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/BssOpenApiClient.h @@ -46,6 +46,8 @@ #include "model/CreateResellerUserQuotaResult.h" #include "model/CreateResourcePackageRequest.h" #include "model/CreateResourcePackageResult.h" +#include "model/CreateSavingsPlansInstanceRequest.h" +#include "model/CreateSavingsPlansInstanceResult.h" #include "model/DeleteCostUnitRequest.h" #include "model/DeleteCostUnitResult.h" #include "model/DescribeInstanceBillRequest.h" @@ -74,6 +76,8 @@ #include "model/DescribeSplitItemBillResult.h" #include "model/EnableBillGenerationRequest.h" #include "model/EnableBillGenerationResult.h" +#include "model/GetAccountRelationRequest.h" +#include "model/GetAccountRelationResult.h" #include "model/GetCustomerAccountInfoRequest.h" #include "model/GetCustomerAccountInfoResult.h" #include "model/GetCustomerListRequest.h" @@ -86,6 +90,8 @@ #include "model/GetResourcePackagePriceResult.h" #include "model/GetSubscriptionPriceRequest.h" #include "model/GetSubscriptionPriceResult.h" +#include "model/InquiryPriceRefundInstanceRequest.h" +#include "model/InquiryPriceRefundInstanceResult.h" #include "model/ModifyAccountRelationRequest.h" #include "model/ModifyAccountRelationResult.h" #include "model/ModifyCostUnitRequest.h" @@ -164,6 +170,8 @@ #include "model/QuerySplitItemBillResult.h" #include "model/QueryUserOmsDataRequest.h" #include "model/QueryUserOmsDataResult.h" +#include "model/RefundInstanceRequest.h" +#include "model/RefundInstanceResult.h" #include "model/RelieveAccountRelationRequest.h" #include "model/RelieveAccountRelationResult.h" #include "model/RenewInstanceRequest.h" @@ -239,6 +247,9 @@ namespace AlibabaCloud typedef Outcome CreateResourcePackageOutcome; typedef std::future CreateResourcePackageOutcomeCallable; typedef std::function&)> CreateResourcePackageAsyncHandler; + typedef Outcome CreateSavingsPlansInstanceOutcome; + typedef std::future CreateSavingsPlansInstanceOutcomeCallable; + typedef std::function&)> CreateSavingsPlansInstanceAsyncHandler; typedef Outcome DeleteCostUnitOutcome; typedef std::future DeleteCostUnitOutcomeCallable; typedef std::function&)> DeleteCostUnitAsyncHandler; @@ -281,6 +292,9 @@ namespace AlibabaCloud typedef Outcome EnableBillGenerationOutcome; typedef std::future EnableBillGenerationOutcomeCallable; typedef std::function&)> EnableBillGenerationAsyncHandler; + typedef Outcome GetAccountRelationOutcome; + typedef std::future GetAccountRelationOutcomeCallable; + typedef std::function&)> GetAccountRelationAsyncHandler; typedef Outcome GetCustomerAccountInfoOutcome; typedef std::future GetCustomerAccountInfoOutcomeCallable; typedef std::function&)> GetCustomerAccountInfoAsyncHandler; @@ -299,6 +313,9 @@ namespace AlibabaCloud typedef Outcome GetSubscriptionPriceOutcome; typedef std::future GetSubscriptionPriceOutcomeCallable; typedef std::function&)> GetSubscriptionPriceAsyncHandler; + typedef Outcome InquiryPriceRefundInstanceOutcome; + typedef std::future InquiryPriceRefundInstanceOutcomeCallable; + typedef std::function&)> InquiryPriceRefundInstanceAsyncHandler; typedef Outcome ModifyAccountRelationOutcome; typedef std::future ModifyAccountRelationOutcomeCallable; typedef std::function&)> ModifyAccountRelationAsyncHandler; @@ -416,6 +433,9 @@ namespace AlibabaCloud typedef Outcome QueryUserOmsDataOutcome; typedef std::future QueryUserOmsDataOutcomeCallable; typedef std::function&)> QueryUserOmsDataAsyncHandler; + typedef Outcome RefundInstanceOutcome; + typedef std::future RefundInstanceOutcomeCallable; + typedef std::function&)> RefundInstanceAsyncHandler; typedef Outcome RelieveAccountRelationOutcome; typedef std::future RelieveAccountRelationOutcomeCallable; typedef std::function&)> RelieveAccountRelationAsyncHandler; @@ -502,6 +522,9 @@ namespace AlibabaCloud CreateResourcePackageOutcome createResourcePackage(const Model::CreateResourcePackageRequest &request)const; void createResourcePackageAsync(const Model::CreateResourcePackageRequest& request, const CreateResourcePackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateResourcePackageOutcomeCallable createResourcePackageCallable(const Model::CreateResourcePackageRequest& request) const; + CreateSavingsPlansInstanceOutcome createSavingsPlansInstance(const Model::CreateSavingsPlansInstanceRequest &request)const; + void createSavingsPlansInstanceAsync(const Model::CreateSavingsPlansInstanceRequest& request, const CreateSavingsPlansInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSavingsPlansInstanceOutcomeCallable createSavingsPlansInstanceCallable(const Model::CreateSavingsPlansInstanceRequest& request) const; DeleteCostUnitOutcome deleteCostUnit(const Model::DeleteCostUnitRequest &request)const; void deleteCostUnitAsync(const Model::DeleteCostUnitRequest& request, const DeleteCostUnitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCostUnitOutcomeCallable deleteCostUnitCallable(const Model::DeleteCostUnitRequest& request) const; @@ -544,6 +567,9 @@ namespace AlibabaCloud EnableBillGenerationOutcome enableBillGeneration(const Model::EnableBillGenerationRequest &request)const; void enableBillGenerationAsync(const Model::EnableBillGenerationRequest& request, const EnableBillGenerationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableBillGenerationOutcomeCallable enableBillGenerationCallable(const Model::EnableBillGenerationRequest& request) const; + GetAccountRelationOutcome getAccountRelation(const Model::GetAccountRelationRequest &request)const; + void getAccountRelationAsync(const Model::GetAccountRelationRequest& request, const GetAccountRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAccountRelationOutcomeCallable getAccountRelationCallable(const Model::GetAccountRelationRequest& request) const; GetCustomerAccountInfoOutcome getCustomerAccountInfo(const Model::GetCustomerAccountInfoRequest &request)const; void getCustomerAccountInfoAsync(const Model::GetCustomerAccountInfoRequest& request, const GetCustomerAccountInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetCustomerAccountInfoOutcomeCallable getCustomerAccountInfoCallable(const Model::GetCustomerAccountInfoRequest& request) const; @@ -562,6 +588,9 @@ namespace AlibabaCloud GetSubscriptionPriceOutcome getSubscriptionPrice(const Model::GetSubscriptionPriceRequest &request)const; void getSubscriptionPriceAsync(const Model::GetSubscriptionPriceRequest& request, const GetSubscriptionPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSubscriptionPriceOutcomeCallable getSubscriptionPriceCallable(const Model::GetSubscriptionPriceRequest& request) const; + InquiryPriceRefundInstanceOutcome inquiryPriceRefundInstance(const Model::InquiryPriceRefundInstanceRequest &request)const; + void inquiryPriceRefundInstanceAsync(const Model::InquiryPriceRefundInstanceRequest& request, const InquiryPriceRefundInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InquiryPriceRefundInstanceOutcomeCallable inquiryPriceRefundInstanceCallable(const Model::InquiryPriceRefundInstanceRequest& request) const; ModifyAccountRelationOutcome modifyAccountRelation(const Model::ModifyAccountRelationRequest &request)const; void modifyAccountRelationAsync(const Model::ModifyAccountRelationRequest& request, const ModifyAccountRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAccountRelationOutcomeCallable modifyAccountRelationCallable(const Model::ModifyAccountRelationRequest& request) const; @@ -679,6 +708,9 @@ namespace AlibabaCloud QueryUserOmsDataOutcome queryUserOmsData(const Model::QueryUserOmsDataRequest &request)const; void queryUserOmsDataAsync(const Model::QueryUserOmsDataRequest& request, const QueryUserOmsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryUserOmsDataOutcomeCallable queryUserOmsDataCallable(const Model::QueryUserOmsDataRequest& request) const; + RefundInstanceOutcome refundInstance(const Model::RefundInstanceRequest &request)const; + void refundInstanceAsync(const Model::RefundInstanceRequest& request, const RefundInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RefundInstanceOutcomeCallable refundInstanceCallable(const Model::RefundInstanceRequest& request) const; RelieveAccountRelationOutcome relieveAccountRelation(const Model::RelieveAccountRelationRequest &request)const; void relieveAccountRelationAsync(const Model::RelieveAccountRelationRequest& request, const RelieveAccountRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RelieveAccountRelationOutcomeCallable relieveAccountRelationCallable(const Model::RelieveAccountRelationRequest& request) const; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/AddAccountRelationRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/AddAccountRelationRequest.h index 1b1c8d6de..8dfb36dd1 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/AddAccountRelationRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/AddAccountRelationRequest.h @@ -1,66 +1,60 @@ /* * 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_ADDACCOUNTRELATIONREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_ADDACCOUNTRELATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT AddAccountRelationRequest : public RpcServiceRequest - { - - public: - AddAccountRelationRequest(); - ~AddAccountRelationRequest(); - - std::string getChildNick()const; - void setChildNick(const std::string& childNick); - std::string getRelationType()const; - void setRelationType(const std::string& relationType); - long getParentUserId()const; - void setParentUserId(long parentUserId); - long getChildUserId()const; - void setChildUserId(long childUserId); - std::string getRequestId()const; - void setRequestId(const std::string& requestId); - std::vector getPermissionCodes()const; - void setPermissionCodes(const std::vector& permissionCodes); - std::vector getRoleCodes()const; - void setRoleCodes(const std::vector& roleCodes); - - private: - std::string childNick_; - std::string relationType_; - long parentUserId_; - long childUserId_; - std::string requestId_; - std::vector permissionCodes_; - std::vector roleCodes_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ADDACCOUNTRELATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_ADDACCOUNTRELATIONREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_ADDACCOUNTRELATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT AddAccountRelationRequest : public RpcServiceRequest { +public: + AddAccountRelationRequest(); + ~AddAccountRelationRequest(); + std::string getChildNick() const; + void setChildNick(const std::string &childNick); + std::string getRelationType() const; + void setRelationType(const std::string &relationType); + long getParentUserId() const; + void setParentUserId(long parentUserId); + long getChildUserId() const; + void setChildUserId(long childUserId); + std::string getRequestId() const; + void setRequestId(const std::string &requestId); + std::vector getPermissionCodes() const; + void setPermissionCodes(const std::vector &permissionCodes); + std::vector getRoleCodes() const; + void setRoleCodes(const std::vector &roleCodes); + +private: + std::string childNick_; + std::string relationType_; + long parentUserId_; + long childUserId_; + std::string requestId_; + std::vector permissionCodes_; + std::vector roleCodes_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ADDACCOUNTRELATIONREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/AddAccountRelationResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/AddAccountRelationResult.h index 4d30ac87a..0e17da07a 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/AddAccountRelationResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/AddAccountRelationResult.h @@ -34,6 +34,7 @@ namespace AlibabaCloud public: struct Data { + long relationId; std::string hostId; }; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/AllocateCostUnitResourceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/AllocateCostUnitResourceRequest.h index 1bf1cf6d6..ff14b6f98 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/AllocateCostUnitResourceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/AllocateCostUnitResourceRequest.h @@ -1,68 +1,60 @@ /* * 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_ALLOCATECOSTUNITRESOURCEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT AllocateCostUnitResourceRequest : public RpcServiceRequest - { - public: - struct ResourceInstanceList - { - std::string resourceId; - std::string commodityCode; - std::string apportionCode; - long resourceUserId; - }; - - public: - AllocateCostUnitResourceRequest(); - ~AllocateCostUnitResourceRequest(); - - std::vector getResourceInstanceList()const; - void setResourceInstanceList(const std::vector& resourceInstanceList); - long getFromUnitId()const; - void setFromUnitId(long fromUnitId); - long getToUnitId()const; - void setToUnitId(long toUnitId); - long getFromUnitUserId()const; - void setFromUnitUserId(long fromUnitUserId); - long getToUnitUserId()const; - void setToUnitUserId(long toUnitUserId); - - private: - std::vector resourceInstanceList_; - long fromUnitId_; - long toUnitId_; - long fromUnitUserId_; - long toUnitUserId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT AllocateCostUnitResourceRequest : public RpcServiceRequest { +public: + struct ResourceInstanceList { + std::string resourceId; + std::string commodityCode; + std::string apportionCode; + long resourceUserId; + }; + AllocateCostUnitResourceRequest(); + ~AllocateCostUnitResourceRequest(); + std::vector getResourceInstanceList() const; + void setResourceInstanceList(const std::vector &resourceInstanceList); + long getFromUnitId() const; + void setFromUnitId(long fromUnitId); + long getToUnitId() const; + void setToUnitId(long toUnitId); + long getFromUnitUserId() const; + void setFromUnitUserId(long fromUnitUserId); + long getToUnitUserId() const; + void setToUnitUserId(long toUnitUserId); + +private: + std::vector resourceInstanceList_; + long fromUnitId_; + long toUnitId_; + long fromUnitUserId_; + long toUnitUserId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h index 291424241..a2d749324 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h @@ -1,75 +1,69 @@ /* * 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_APPLYINVOICEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_APPLYINVOICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT ApplyInvoiceRequest : public RpcServiceRequest - { - - public: - ApplyInvoiceRequest(); - ~ApplyInvoiceRequest(); - - int getInvoicingType()const; - void setInvoicingType(int invoicingType); - int getProcessWay()const; - void setProcessWay(int processWay); - long getOwnerId()const; - void setOwnerId(long ownerId); - long getInvoiceAmount()const; - void setInvoiceAmount(long invoiceAmount); - long getAddressId()const; - void setAddressId(long addressId); - std::string getApplyUserNick()const; - void setApplyUserNick(const std::string& applyUserNick); - bool getInvoiceByAmount()const; - void setInvoiceByAmount(bool invoiceByAmount); - long getCustomerId()const; - void setCustomerId(long customerId); - std::vector getSelectedIds()const; - void setSelectedIds(const std::vector& selectedIds); - std::string getUserRemark()const; - void setUserRemark(const std::string& userRemark); - - private: - int invoicingType_; - int processWay_; - long ownerId_; - long invoiceAmount_; - long addressId_; - std::string applyUserNick_; - bool invoiceByAmount_; - long customerId_; - std::vector selectedIds_; - std::string userRemark_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_APPLYINVOICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_APPLYINVOICEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_APPLYINVOICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT ApplyInvoiceRequest : public RpcServiceRequest { +public: + ApplyInvoiceRequest(); + ~ApplyInvoiceRequest(); + int getInvoicingType() const; + void setInvoicingType(int invoicingType); + int getProcessWay() const; + void setProcessWay(int processWay); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getInvoiceAmount() const; + void setInvoiceAmount(long invoiceAmount); + long getAddressId() const; + void setAddressId(long addressId); + std::string getApplyUserNick() const; + void setApplyUserNick(const std::string &applyUserNick); + bool getInvoiceByAmount() const; + void setInvoiceByAmount(bool invoiceByAmount); + long getCustomerId() const; + void setCustomerId(long customerId); + std::vector getSelectedIds() const; + void setSelectedIds(const std::vector &selectedIds); + std::string getUserRemark() const; + void setUserRemark(const std::string &userRemark); + +private: + int invoicingType_; + int processWay_; + long ownerId_; + long invoiceAmount_; + long addressId_; + std::string applyUserNick_; + bool invoiceByAmount_; + long customerId_; + std::vector selectedIds_; + std::string userRemark_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_APPLYINVOICEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CancelOrderRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CancelOrderRequest.h index aa809675a..3bc258429 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CancelOrderRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CancelOrderRequest.h @@ -1,51 +1,45 @@ /* * 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_CANCELORDERREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CANCELORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CancelOrderRequest : public RpcServiceRequest - { - - public: - CancelOrderRequest(); - ~CancelOrderRequest(); - - std::string getOrderId()const; - void setOrderId(const std::string& orderId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string orderId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CANCELORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CANCELORDERREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CANCELORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT CancelOrderRequest : public RpcServiceRequest { +public: + CancelOrderRequest(); + ~CancelOrderRequest(); + std::string getOrderId() const; + void setOrderId(const std::string &orderId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string orderId_; + long ownerId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CANCELORDERREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountRequest.h index 0a808f5df..91ea4f522 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountRequest.h @@ -1,69 +1,63 @@ /* * 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_CHANGERESELLERCONSUMEAMOUNTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT ChangeResellerConsumeAmountRequest : public RpcServiceRequest - { - - public: - ChangeResellerConsumeAmountRequest(); - ~ChangeResellerConsumeAmountRequest(); - - std::string getAmount()const; - void setAmount(const std::string& amount); - std::string getOutBizId()const; - void setOutBizId(const std::string& outBizId); - std::string getSource()const; - void setSource(const std::string& source); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getBusinessType()const; - void setBusinessType(const std::string& businessType); - std::string getAdjustType()const; - void setAdjustType(const std::string& adjustType); - std::string getExtendMap()const; - void setExtendMap(const std::string& extendMap); - std::string getCurrency()const; - void setCurrency(const std::string& currency); - - private: - std::string amount_; - std::string outBizId_; - std::string source_; - long ownerId_; - std::string businessType_; - std::string adjustType_; - std::string extendMap_; - std::string currency_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT ChangeResellerConsumeAmountRequest : public RpcServiceRequest { +public: + ChangeResellerConsumeAmountRequest(); + ~ChangeResellerConsumeAmountRequest(); + std::string getAmount() const; + void setAmount(const std::string &amount); + std::string getOutBizId() const; + void setOutBizId(const std::string &outBizId); + std::string getSource() const; + void setSource(const std::string &source); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getBusinessType() const; + void setBusinessType(const std::string &businessType); + std::string getAdjustType() const; + void setAdjustType(const std::string &adjustType); + std::string getExtendMap() const; + void setExtendMap(const std::string &extendMap); + std::string getCurrency() const; + void setCurrency(const std::string ¤cy); + +private: + std::string amount_; + std::string outBizId_; + std::string source_; + long ownerId_; + std::string businessType_; + std::string adjustType_; + std::string extendMap_; + std::string currency_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ConfirmRelationRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ConfirmRelationRequest.h index 507fd6c3c..b2da6820c 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ConfirmRelationRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ConfirmRelationRequest.h @@ -1,63 +1,60 @@ /* * 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_CONFIRMRELATIONREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CONFIRMRELATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT ConfirmRelationRequest : public RpcServiceRequest - { - - public: - ConfirmRelationRequest(); - ~ConfirmRelationRequest(); - - std::string getRelationType()const; - void setRelationType(const std::string& relationType); - long getParentUserId()const; - void setParentUserId(long parentUserId); - std::string getConfirmCode()const; - void setConfirmCode(const std::string& confirmCode); - long getChildUserId()const; - void setChildUserId(long childUserId); - std::string getRequestId()const; - void setRequestId(const std::string& requestId); - std::vector getPermissionCodes()const; - void setPermissionCodes(const std::vector& permissionCodes); - - private: - std::string relationType_; - long parentUserId_; - std::string confirmCode_; - long childUserId_; - std::string requestId_; - std::vector permissionCodes_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CONFIRMRELATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CONFIRMRELATIONREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CONFIRMRELATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT ConfirmRelationRequest : public RpcServiceRequest { +public: + ConfirmRelationRequest(); + ~ConfirmRelationRequest(); + std::string getRelationType() const; + void setRelationType(const std::string &relationType); + long getParentUserId() const; + void setParentUserId(long parentUserId); + std::string getConfirmCode() const; + void setConfirmCode(const std::string &confirmCode); + long getChildUserId() const; + void setChildUserId(long childUserId); + std::string getRequestId() const; + void setRequestId(const std::string &requestId); + std::vector getPermissionCodes() const; + void setPermissionCodes(const std::vector &permissionCodes); + long getRelationId() const; + void setRelationId(long relationId); + +private: + std::string relationType_; + long parentUserId_; + std::string confirmCode_; + long childUserId_; + std::string requestId_; + std::vector permissionCodes_; + long relationId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CONFIRMRELATIONREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ConvertChargeTypeRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ConvertChargeTypeRequest.h index ee573380b..4594a91db 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ConvertChargeTypeRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ConvertChargeTypeRequest.h @@ -1,63 +1,57 @@ /* * 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_CONVERTCHARGETYPEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CONVERTCHARGETYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT ConvertChargeTypeRequest : public RpcServiceRequest - { - - public: - ConvertChargeTypeRequest(); - ~ConvertChargeTypeRequest(); - - int getPeriod()const; - void setPeriod(int period); - 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); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - int period_; - std::string productCode_; - std::string subscriptionType_; - long ownerId_; - std::string productType_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CONVERTCHARGETYPEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CONVERTCHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CONVERTCHARGETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT ConvertChargeTypeRequest : public RpcServiceRequest { +public: + ConvertChargeTypeRequest(); + ~ConvertChargeTypeRequest(); + int getPeriod() const; + void setPeriod(int period); + 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); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + int period_; + std::string productCode_; + std::string subscriptionType_; + long ownerId_; + std::string productType_; + std::string instanceId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CONVERTCHARGETYPEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountRequest.h index db4db68e0..82edfa6aa 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountRequest.h @@ -1,72 +1,66 @@ /* * 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_CREATEAGACCOUNTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateAgAccountRequest : public RpcServiceRequest - { - - public: - CreateAgAccountRequest(); - ~CreateAgAccountRequest(); - - std::string getFirstName()const; - void setFirstName(const std::string& firstName); - std::string getCityName()const; - void setCityName(const std::string& cityName); - std::string getPostcode()const; - void setPostcode(const std::string& postcode); - std::string getEnterpriseName()const; - void setEnterpriseName(const std::string& enterpriseName); - std::string getNationCode()const; - void setNationCode(const std::string& nationCode); - std::string getLastName()const; - void setLastName(const std::string& lastName); - std::string getLoginEmail()const; - void setLoginEmail(const std::string& loginEmail); - std::string getProvinceName()const; - void setProvinceName(const std::string& provinceName); - std::string getAccountAttr()const; - void setAccountAttr(const std::string& accountAttr); - - private: - std::string firstName_; - std::string cityName_; - std::string postcode_; - std::string enterpriseName_; - std::string nationCode_; - std::string lastName_; - std::string loginEmail_; - std::string provinceName_; - std::string accountAttr_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateAgAccountRequest : public RpcServiceRequest { +public: + CreateAgAccountRequest(); + ~CreateAgAccountRequest(); + std::string getFirstName() const; + void setFirstName(const std::string &firstName); + std::string getCityName() const; + void setCityName(const std::string &cityName); + std::string getPostcode() const; + void setPostcode(const std::string &postcode); + std::string getEnterpriseName() const; + void setEnterpriseName(const std::string &enterpriseName); + std::string getNationCode() const; + void setNationCode(const std::string &nationCode); + std::string getLastName() const; + void setLastName(const std::string &lastName); + std::string getLoginEmail() const; + void setLoginEmail(const std::string &loginEmail); + std::string getProvinceName() const; + void setProvinceName(const std::string &provinceName); + std::string getAccountAttr() const; + void setAccountAttr(const std::string &accountAttr); + +private: + std::string firstName_; + std::string cityName_; + std::string postcode_; + std::string enterpriseName_; + std::string nationCode_; + std::string lastName_; + std::string loginEmail_; + std::string provinceName_; + std::string accountAttr_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateCostUnitRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateCostUnitRequest.h index 574e818f1..3c2d8d207 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateCostUnitRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateCostUnitRequest.h @@ -1,55 +1,47 @@ /* * 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_CREATECOSTUNITREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateCostUnitRequest : public RpcServiceRequest - { - public: - struct UnitEntityList - { - std::string unitName; - long parentUnitId; - long ownerUid; - }; - - public: - CreateCostUnitRequest(); - ~CreateCostUnitRequest(); - - std::vector getUnitEntityList()const; - void setUnitEntityList(const std::vector& unitEntityList); - - private: - std::vector unitEntityList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateCostUnitRequest : public RpcServiceRequest { +public: + struct UnitEntityList { + std::string unitName; + long parentUnitId; + long ownerUid; + }; + CreateCostUnitRequest(); + ~CreateCostUnitRequest(); + std::vector getUnitEntityList() const; + void setUnitEntityList(const std::vector &unitEntityList); + +private: + std::vector unitEntityList_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h index bd129580e..6370c9484 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h @@ -1,81 +1,73 @@ /* * 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_CREATEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateInstanceRequest : public RpcServiceRequest - { - public: - struct _Parameter - { - std::string code; - std::string value; - }; - - public: - CreateInstanceRequest(); - ~CreateInstanceRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - int getPeriod()const; - void setPeriod(int period); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - std::string getLogistics()const; - void setLogistics(const std::string& logistics); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getProductType()const; - void setProductType(const std::string& productType); - int getRenewPeriod()const; - void setRenewPeriod(int renewPeriod); - std::vector<_Parameter> get_Parameter()const; - void set_Parameter(const std::vector<_Parameter>& _parameter); - std::string getRenewalStatus()const; - void setRenewalStatus(const std::string& renewalStatus); - - private: - std::string productCode_; - int period_; - std::string clientToken_; - std::string subscriptionType_; - std::string logistics_; - long ownerId_; - std::string productType_; - int renewPeriod_; - std::vector<_Parameter> _parameter_; - std::string renewalStatus_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateInstanceRequest : public RpcServiceRequest { +public: + struct _Parameter { + std::string code; + std::string value; + }; + CreateInstanceRequest(); + ~CreateInstanceRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + int getPeriod() const; + void setPeriod(int period); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + std::string getLogistics() const; + void setLogistics(const std::string &logistics); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getProductType() const; + void setProductType(const std::string &productType); + int getRenewPeriod() const; + void setRenewPeriod(int renewPeriod); + std::string getRenewalStatus() const; + void setRenewalStatus(const std::string &renewalStatus); + std::vector<_Parameter> get_Parameter() const; + void set_Parameter(const std::vector<_Parameter> &_parameter); + +private: + std::string productCode_; + int period_; + std::string clientToken_; + std::string subscriptionType_; + std::string logistics_; + long ownerId_; + std::string productType_; + int renewPeriod_; + std::string renewalStatus_; + std::vector<_Parameter> _parameter_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEINSTANCEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaRequest.h index 152b94b72..71ac8b7ad 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTAREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateResellerUserQuotaRequest : public RpcServiceRequest - { - - public: - CreateResellerUserQuotaRequest(); - ~CreateResellerUserQuotaRequest(); - - std::string getAmount()const; - void setAmount(const std::string& amount); - std::string getOutBizId()const; - void setOutBizId(const std::string& outBizId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getCurrency()const; - void setCurrency(const std::string& currency); - - private: - std::string amount_; - std::string outBizId_; - long ownerId_; - std::string currency_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTAREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateResellerUserQuotaRequest : public RpcServiceRequest { +public: + CreateResellerUserQuotaRequest(); + ~CreateResellerUserQuotaRequest(); + std::string getAmount() const; + void setAmount(const std::string &amount); + std::string getOutBizId() const; + void setOutBizId(const std::string &outBizId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCurrency() const; + void setCurrency(const std::string ¤cy); + +private: + std::string amount_; + std::string outBizId_; + long ownerId_; + std::string currency_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTAREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResourcePackageRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResourcePackageRequest.h index ad05b00d4..5e0711fce 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResourcePackageRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResourcePackageRequest.h @@ -1,66 +1,60 @@ /* * 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_CREATERESOURCEPACKAGEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESOURCEPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateResourcePackageRequest : public RpcServiceRequest - { - - public: - CreateResourcePackageRequest(); - ~CreateResourcePackageRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getSpecification()const; - void setSpecification(const std::string& specification); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getEffectiveDate()const; - void setEffectiveDate(const std::string& effectiveDate); - int getDuration()const; - void setDuration(int duration); - std::string getPackageType()const; - void setPackageType(const std::string& packageType); - std::string getPricingCycle()const; - void setPricingCycle(const std::string& pricingCycle); - - private: - std::string productCode_; - std::string specification_; - long ownerId_; - std::string effectiveDate_; - int duration_; - std::string packageType_; - std::string pricingCycle_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESOURCEPACKAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESOURCEPACKAGEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESOURCEPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateResourcePackageRequest : public RpcServiceRequest { +public: + CreateResourcePackageRequest(); + ~CreateResourcePackageRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getSpecification() const; + void setSpecification(const std::string &specification); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getEffectiveDate() const; + void setEffectiveDate(const std::string &effectiveDate); + int getDuration() const; + void setDuration(int duration); + std::string getPackageType() const; + void setPackageType(const std::string &packageType); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + +private: + std::string productCode_; + std::string specification_; + long ownerId_; + std::string effectiveDate_; + int duration_; + std::string packageType_; + std::string pricingCycle_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESOURCEPACKAGEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateSavingsPlansInstanceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateSavingsPlansInstanceRequest.h new file mode 100644 index 000000000..91646e7a4 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateSavingsPlansInstanceRequest.h @@ -0,0 +1,69 @@ +/* + * 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_CREATESAVINGSPLANSINSTANCEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATESAVINGSPLANSINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateSavingsPlansInstanceRequest : public RpcServiceRequest { +public: + CreateSavingsPlansInstanceRequest(); + ~CreateSavingsPlansInstanceRequest(); + std::string getSpecification() const; + void setSpecification(const std::string &specification); + std::string getPoolValue() const; + void setPoolValue(const std::string &poolValue); + std::string getCommodityCode() const; + void setCommodityCode(const std::string &commodityCode); + std::string getType() const; + void setType(const std::string &type); + std::string getEffectiveDate() const; + void setEffectiveDate(const std::string &effectiveDate); + std::string getDuration() const; + void setDuration(const std::string &duration); + std::string getSpecType() const; + void setSpecType(const std::string &specType); + std::string getPayMode() const; + void setPayMode(const std::string &payMode); + std::string getRegion() const; + void setRegion(const std::string ®ion); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + +private: + std::string specification_; + std::string poolValue_; + std::string commodityCode_; + std::string type_; + std::string effectiveDate_; + std::string duration_; + std::string specType_; + std::string payMode_; + std::string region_; + std::string pricingCycle_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATESAVINGSPLANSINSTANCEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateSavingsPlansInstanceResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateSavingsPlansInstanceResult.h new file mode 100644 index 000000000..3e03bb71e --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateSavingsPlansInstanceResult.h @@ -0,0 +1,61 @@ +/* + * 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_CREATESAVINGSPLANSINSTANCERESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATESAVINGSPLANSINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateSavingsPlansInstanceResult : public ServiceResult + { + public: + struct Data + { + long orderId; + }; + + + CreateSavingsPlansInstanceResult(); + explicit CreateSavingsPlansInstanceResult(const std::string &payload); + ~CreateSavingsPlansInstanceResult(); + 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_CREATESAVINGSPLANSINSTANCERESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DeleteCostUnitRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DeleteCostUnitRequest.h index 59e1956e0..015ab80eb 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DeleteCostUnitRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DeleteCostUnitRequest.h @@ -1,51 +1,45 @@ /* * 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_DELETECOSTUNITREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DeleteCostUnitRequest : public RpcServiceRequest - { - - public: - DeleteCostUnitRequest(); - ~DeleteCostUnitRequest(); - - long getUnitId()const; - void setUnitId(long unitId); - long getOwnerUid()const; - void setOwnerUid(long ownerUid); - - private: - long unitId_; - long ownerUid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT DeleteCostUnitRequest : public RpcServiceRequest { +public: + DeleteCostUnitRequest(); + ~DeleteCostUnitRequest(); + long getUnitId() const; + void setUnitId(long unitId); + long getOwnerUid() const; + void setOwnerUid(long ownerUid); + +private: + long unitId_; + long ownerUid_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeInstanceBillRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeInstanceBillRequest.h index 52e82ff78..cf31a85a7 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeInstanceBillRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeInstanceBillRequest.h @@ -1,84 +1,78 @@ /* * 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_DESCRIBEINSTANCEBILLREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEINSTANCEBILLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeInstanceBillRequest : public RpcServiceRequest - { - - public: - DescribeInstanceBillRequest(); - ~DescribeInstanceBillRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - bool getIsHideZeroCharge()const; - void setIsHideZeroCharge(bool isHideZeroCharge); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getProductType()const; - void setProductType(const std::string& productType); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getBillingCycle()const; - void setBillingCycle(const std::string& billingCycle); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getBillingDate()const; - void setBillingDate(const std::string& billingDate); - bool getIsBillingItem()const; - void setIsBillingItem(bool isBillingItem); - std::string getInstanceID()const; - void setInstanceID(const std::string& instanceID); - std::string getGranularity()const; - void setGranularity(const std::string& granularity); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - std::string productCode_; - bool isHideZeroCharge_; - std::string subscriptionType_; - long billOwnerId_; - std::string productType_; - std::string nextToken_; - std::string billingCycle_; - long ownerId_; - std::string billingDate_; - bool isBillingItem_; - std::string instanceID_; - std::string granularity_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEINSTANCEBILLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEINSTANCEBILLREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEINSTANCEBILLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeInstanceBillRequest : public RpcServiceRequest { +public: + DescribeInstanceBillRequest(); + ~DescribeInstanceBillRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + bool getIsHideZeroCharge() const; + void setIsHideZeroCharge(bool isHideZeroCharge); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getProductType() const; + void setProductType(const std::string &productType); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getBillingCycle() const; + void setBillingCycle(const std::string &billingCycle); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getBillingDate() const; + void setBillingDate(const std::string &billingDate); + bool getIsBillingItem() const; + void setIsBillingItem(bool isBillingItem); + std::string getInstanceID() const; + void setInstanceID(const std::string &instanceID); + std::string getGranularity() const; + void setGranularity(const std::string &granularity); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string productCode_; + bool isHideZeroCharge_; + std::string subscriptionType_; + long billOwnerId_; + std::string productType_; + std::string nextToken_; + std::string billingCycle_; + long ownerId_; + std::string billingDate_; + bool isBillingItem_; + std::string instanceID_; + std::string granularity_; + int maxResults_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEINSTANCEBILLREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeInstanceBillResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeInstanceBillResult.h index 5d2b2c756..5b0c5495b 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeInstanceBillResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeInstanceBillResult.h @@ -41,23 +41,25 @@ namespace AlibabaCloud std::string instanceID; std::string billAccountID; float deductedByCashCoupons; - std::string listPriceUnit; std::string billingDate; - std::string listPrice; + std::string listPriceUnit; float paymentAmount; + std::string listPrice; float deductedByPrepaidCard; float invoiceDiscount; - std::string subscriptionType; std::string item; + std::string subscriptionType; float pretaxGrossAmount; std::string instanceConfig; std::string currency; std::string commodityCode; + std::string itemName; std::string costUnit; std::string resourceGroup; + float adjustAmount; std::string billingType; - std::string usage; float deductedByCoupons; + std::string usage; std::string productDetail; std::string productCode; std::string zone; @@ -66,18 +68,20 @@ namespace AlibabaCloud std::string bizType; std::string billingItem; std::string nickName; - std::string intranetIP; std::string pipCode; + std::string intranetIP; std::string servicePeriodUnit; std::string servicePeriod; std::string deductedByResourcePackage; std::string usageUnit; - std::string ownerID; - float pretaxAmount; + std::string billingItemCode; std::string internetIP; - std::string region; + float pretaxAmount; + std::string ownerID; std::string billAccountName; + std::string region; std::string tag; + float cashAmount; }; std::string billingCycle; int totalCount; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleRequest.h index eefe25318..b4d0a791b 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribePricingModuleRequest : public RpcServiceRequest - { - - public: - DescribePricingModuleRequest(); - ~DescribePricingModuleRequest(); - - 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 productCode_; - std::string subscriptionType_; - long ownerId_; - std::string productType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribePricingModuleRequest : public RpcServiceRequest { +public: + DescribePricingModuleRequest(); + ~DescribePricingModuleRequest(); + 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 productCode_; + std::string subscriptionType_; + long ownerId_; + std::string productType_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleResult.h index f7ed2d1f3..ddbe9c24c 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleResult.h @@ -48,8 +48,8 @@ namespace AlibabaCloud { std::string type; std::string value; - std::string name; std::string remark; + std::string name; }; std::vector values; std::string unit; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceCoverageDetailRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceCoverageDetailRequest.h index 27fcede85..5161e5475 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceCoverageDetailRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceCoverageDetailRequest.h @@ -1,66 +1,60 @@ /* * 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_DESCRIBERESOURCECOVERAGEDETAILREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCECOVERAGEDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeResourceCoverageDetailRequest : public RpcServiceRequest - { - - public: - DescribeResourceCoverageDetailRequest(); - ~DescribeResourceCoverageDetailRequest(); - - std::string getPeriodType()const; - void setPeriodType(const std::string& periodType); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getStartPeriod()const; - void setStartPeriod(const std::string& startPeriod); - std::string getEndPeriod()const; - void setEndPeriod(const std::string& endPeriod); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - std::string periodType_; - long billOwnerId_; - std::string resourceType_; - std::string startPeriod_; - std::string endPeriod_; - std::string nextToken_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCECOVERAGEDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCECOVERAGEDETAILREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCECOVERAGEDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeResourceCoverageDetailRequest : public RpcServiceRequest { +public: + DescribeResourceCoverageDetailRequest(); + ~DescribeResourceCoverageDetailRequest(); + std::string getPeriodType() const; + void setPeriodType(const std::string &periodType); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getStartPeriod() const; + void setStartPeriod(const std::string &startPeriod); + std::string getEndPeriod() const; + void setEndPeriod(const std::string &endPeriod); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string periodType_; + long billOwnerId_; + std::string resourceType_; + std::string startPeriod_; + std::string endPeriod_; + std::string nextToken_; + int maxResults_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCECOVERAGEDETAILREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceCoverageDetailResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceCoverageDetailResult.h index 0823294c4..9ad391fa7 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceCoverageDetailResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceCoverageDetailResult.h @@ -37,13 +37,13 @@ namespace AlibabaCloud struct Item { std::string regionNo; - std::string userName; std::string instanceSpec; + std::string userName; std::string productName; std::string endTime; - std::string productCode; - std::string instanceId; std::string capacityUnit; + std::string instanceId; + std::string productCode; std::string zone; std::string startTime; float paymentAmount; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceCoverageTotalRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceCoverageTotalRequest.h index d1d271bba..d7dd1bfcb 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceCoverageTotalRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceCoverageTotalRequest.h @@ -1,60 +1,54 @@ /* * 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_DESCRIBERESOURCECOVERAGETOTALREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCECOVERAGETOTALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeResourceCoverageTotalRequest : public RpcServiceRequest - { - - public: - DescribeResourceCoverageTotalRequest(); - ~DescribeResourceCoverageTotalRequest(); - - std::string getPeriodType()const; - void setPeriodType(const std::string& periodType); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getStartPeriod()const; - void setStartPeriod(const std::string& startPeriod); - std::string getEndPeriod()const; - void setEndPeriod(const std::string& endPeriod); - - private: - std::string periodType_; - long billOwnerId_; - std::string resourceType_; - std::string startPeriod_; - std::string endPeriod_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCECOVERAGETOTALREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCECOVERAGETOTALREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCECOVERAGETOTALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeResourceCoverageTotalRequest : public RpcServiceRequest { +public: + DescribeResourceCoverageTotalRequest(); + ~DescribeResourceCoverageTotalRequest(); + std::string getPeriodType() const; + void setPeriodType(const std::string &periodType); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getStartPeriod() const; + void setStartPeriod(const std::string &startPeriod); + std::string getEndPeriod() const; + void setEndPeriod(const std::string &endPeriod); + +private: + std::string periodType_; + long billOwnerId_; + std::string resourceType_; + std::string startPeriod_; + std::string endPeriod_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCECOVERAGETOTALREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductRequest.h index 202dd9c5b..b58f2ea5e 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductRequest.h @@ -1,48 +1,42 @@ /* * 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_DESCRIBERESOURCEPACKAGEPRODUCTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEPACKAGEPRODUCTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeResourcePackageProductRequest : public RpcServiceRequest - { - - public: - DescribeResourcePackageProductRequest(); - ~DescribeResourcePackageProductRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - - private: - std::string productCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEPACKAGEPRODUCTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEPACKAGEPRODUCTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEPACKAGEPRODUCTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeResourcePackageProductRequest : public RpcServiceRequest { +public: + DescribeResourcePackageProductRequest(); + ~DescribeResourcePackageProductRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + +private: + std::string productCode_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEPACKAGEPRODUCTREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceUsageDetailRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceUsageDetailRequest.h index 046c01996..a1bcf98a8 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceUsageDetailRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceUsageDetailRequest.h @@ -1,66 +1,60 @@ /* * 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_DESCRIBERESOURCEUSAGEDETAILREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEUSAGEDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeResourceUsageDetailRequest : public RpcServiceRequest - { - - public: - DescribeResourceUsageDetailRequest(); - ~DescribeResourceUsageDetailRequest(); - - std::string getPeriodType()const; - void setPeriodType(const std::string& periodType); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getStartPeriod()const; - void setStartPeriod(const std::string& startPeriod); - std::string getEndPeriod()const; - void setEndPeriod(const std::string& endPeriod); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - std::string periodType_; - long billOwnerId_; - std::string resourceType_; - std::string startPeriod_; - std::string endPeriod_; - std::string nextToken_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEUSAGEDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEUSAGEDETAILREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEUSAGEDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeResourceUsageDetailRequest : public RpcServiceRequest { +public: + DescribeResourceUsageDetailRequest(); + ~DescribeResourceUsageDetailRequest(); + std::string getPeriodType() const; + void setPeriodType(const std::string &periodType); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getStartPeriod() const; + void setStartPeriod(const std::string &startPeriod); + std::string getEndPeriod() const; + void setEndPeriod(const std::string &endPeriod); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string periodType_; + long billOwnerId_; + std::string resourceType_; + std::string startPeriod_; + std::string endPeriod_; + std::string nextToken_; + int maxResults_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEUSAGEDETAILREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceUsageDetailResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceUsageDetailResult.h index 80a472dd5..04ad1cce7 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceUsageDetailResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceUsageDetailResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string status; std::string regionNo; std::string postpaidCost; - std::string userName; std::string instanceSpec; + std::string userName; std::string endTime; std::string capacityUnit; std::string zone; @@ -55,8 +55,8 @@ namespace AlibabaCloud float totalQuantity; std::string userId; std::string currency; - std::string region; std::string potentialSavedCost; + std::string region; std::string resourceInstanceId; float deductQuantity; }; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceUsageTotalRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceUsageTotalRequest.h index 6445bdd5d..c5a000989 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceUsageTotalRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourceUsageTotalRequest.h @@ -1,60 +1,54 @@ /* * 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_DESCRIBERESOURCEUSAGETOTALREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEUSAGETOTALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeResourceUsageTotalRequest : public RpcServiceRequest - { - - public: - DescribeResourceUsageTotalRequest(); - ~DescribeResourceUsageTotalRequest(); - - std::string getPeriodType()const; - void setPeriodType(const std::string& periodType); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getStartPeriod()const; - void setStartPeriod(const std::string& startPeriod); - std::string getEndPeriod()const; - void setEndPeriod(const std::string& endPeriod); - - private: - std::string periodType_; - long billOwnerId_; - std::string resourceType_; - std::string startPeriod_; - std::string endPeriod_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEUSAGETOTALREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEUSAGETOTALREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEUSAGETOTALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeResourceUsageTotalRequest : public RpcServiceRequest { +public: + DescribeResourceUsageTotalRequest(); + ~DescribeResourceUsageTotalRequest(); + std::string getPeriodType() const; + void setPeriodType(const std::string &periodType); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getStartPeriod() const; + void setStartPeriod(const std::string &startPeriod); + std::string getEndPeriod() const; + void setEndPeriod(const std::string &endPeriod); + +private: + std::string periodType_; + long billOwnerId_; + std::string resourceType_; + std::string startPeriod_; + std::string endPeriod_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEUSAGETOTALREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansCoverageDetailRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansCoverageDetailRequest.h index 5c6a04f30..6dbb0be94 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansCoverageDetailRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansCoverageDetailRequest.h @@ -1,63 +1,57 @@ /* * 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_DESCRIBESAVINGSPLANSCOVERAGEDETAILREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSCOVERAGEDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeSavingsPlansCoverageDetailRequest : public RpcServiceRequest - { - - public: - DescribeSavingsPlansCoverageDetailRequest(); - ~DescribeSavingsPlansCoverageDetailRequest(); - - std::string getPeriodType()const; - void setPeriodType(const std::string& periodType); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getStartPeriod()const; - void setStartPeriod(const std::string& startPeriod); - std::string getEndPeriod()const; - void setEndPeriod(const std::string& endPeriod); - std::string getToken()const; - void setToken(const std::string& token); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - std::string periodType_; - long billOwnerId_; - std::string startPeriod_; - std::string endPeriod_; - std::string token_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSCOVERAGEDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSCOVERAGEDETAILREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSCOVERAGEDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeSavingsPlansCoverageDetailRequest : public RpcServiceRequest { +public: + DescribeSavingsPlansCoverageDetailRequest(); + ~DescribeSavingsPlansCoverageDetailRequest(); + std::string getPeriodType() const; + void setPeriodType(const std::string &periodType); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getStartPeriod() const; + void setStartPeriod(const std::string &startPeriod); + std::string getEndPeriod() const; + void setEndPeriod(const std::string &endPeriod); + std::string getToken() const; + void setToken(const std::string &token); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string periodType_; + long billOwnerId_; + std::string startPeriod_; + std::string endPeriod_; + std::string token_; + int maxResults_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSCOVERAGEDETAILREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansCoverageDetailResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansCoverageDetailResult.h index 7456c497c..851b56bb7 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansCoverageDetailResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansCoverageDetailResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud struct Item { float postpaidCost; - std::string userName; std::string instanceSpec; + std::string userName; std::string instanceId; long userId; std::string endPeriod; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansCoverageTotalRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansCoverageTotalRequest.h index 0ee04e84d..426555306 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansCoverageTotalRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansCoverageTotalRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSCOVERAGETOTALREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSCOVERAGETOTALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeSavingsPlansCoverageTotalRequest : public RpcServiceRequest - { - - public: - DescribeSavingsPlansCoverageTotalRequest(); - ~DescribeSavingsPlansCoverageTotalRequest(); - - std::string getPeriodType()const; - void setPeriodType(const std::string& periodType); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getStartPeriod()const; - void setStartPeriod(const std::string& startPeriod); - std::string getEndPeriod()const; - void setEndPeriod(const std::string& endPeriod); - - private: - std::string periodType_; - long billOwnerId_; - std::string startPeriod_; - std::string endPeriod_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSCOVERAGETOTALREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSCOVERAGETOTALREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSCOVERAGETOTALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeSavingsPlansCoverageTotalRequest : public RpcServiceRequest { +public: + DescribeSavingsPlansCoverageTotalRequest(); + ~DescribeSavingsPlansCoverageTotalRequest(); + std::string getPeriodType() const; + void setPeriodType(const std::string &periodType); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getStartPeriod() const; + void setStartPeriod(const std::string &startPeriod); + std::string getEndPeriod() const; + void setEndPeriod(const std::string &endPeriod); + +private: + std::string periodType_; + long billOwnerId_; + std::string startPeriod_; + std::string endPeriod_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSCOVERAGETOTALREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansUsageDetailRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansUsageDetailRequest.h index 85db74b16..e68efddbb 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansUsageDetailRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansUsageDetailRequest.h @@ -1,63 +1,57 @@ /* * 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_DESCRIBESAVINGSPLANSUSAGEDETAILREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSUSAGEDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeSavingsPlansUsageDetailRequest : public RpcServiceRequest - { - - public: - DescribeSavingsPlansUsageDetailRequest(); - ~DescribeSavingsPlansUsageDetailRequest(); - - std::string getPeriodType()const; - void setPeriodType(const std::string& periodType); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getStartPeriod()const; - void setStartPeriod(const std::string& startPeriod); - std::string getEndPeriod()const; - void setEndPeriod(const std::string& endPeriod); - std::string getToken()const; - void setToken(const std::string& token); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - std::string periodType_; - long billOwnerId_; - std::string startPeriod_; - std::string endPeriod_; - std::string token_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSUSAGEDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSUSAGEDETAILREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSUSAGEDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeSavingsPlansUsageDetailRequest : public RpcServiceRequest { +public: + DescribeSavingsPlansUsageDetailRequest(); + ~DescribeSavingsPlansUsageDetailRequest(); + std::string getPeriodType() const; + void setPeriodType(const std::string &periodType); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getStartPeriod() const; + void setStartPeriod(const std::string &startPeriod); + std::string getEndPeriod() const; + void setEndPeriod(const std::string &endPeriod); + std::string getToken() const; + void setToken(const std::string &token); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string periodType_; + long billOwnerId_; + std::string startPeriod_; + std::string endPeriod_; + std::string token_; + int maxResults_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSUSAGEDETAILREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansUsageTotalRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansUsageTotalRequest.h index 689f9e1db..f0c6af233 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansUsageTotalRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansUsageTotalRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSUSAGETOTALREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSUSAGETOTALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeSavingsPlansUsageTotalRequest : public RpcServiceRequest - { - - public: - DescribeSavingsPlansUsageTotalRequest(); - ~DescribeSavingsPlansUsageTotalRequest(); - - std::string getPeriodType()const; - void setPeriodType(const std::string& periodType); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getStartPeriod()const; - void setStartPeriod(const std::string& startPeriod); - std::string getEndPeriod()const; - void setEndPeriod(const std::string& endPeriod); - - private: - std::string periodType_; - long billOwnerId_; - std::string startPeriod_; - std::string endPeriod_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSUSAGETOTALREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSUSAGETOTALREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSUSAGETOTALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeSavingsPlansUsageTotalRequest : public RpcServiceRequest { +public: + DescribeSavingsPlansUsageTotalRequest(); + ~DescribeSavingsPlansUsageTotalRequest(); + std::string getPeriodType() const; + void setPeriodType(const std::string &periodType); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getStartPeriod() const; + void setStartPeriod(const std::string &startPeriod); + std::string getEndPeriod() const; + void setEndPeriod(const std::string &endPeriod); + +private: + std::string periodType_; + long billOwnerId_; + std::string startPeriod_; + std::string endPeriod_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESAVINGSPLANSUSAGETOTALREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansUsageTotalResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansUsageTotalResult.h index 4c0230e57..898970c3d 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansUsageTotalResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSavingsPlansUsageTotalResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud struct TotalUsage { float postpaidCost; - float poolValue; float savedCost; + float poolValue; float usagePercentage; }; struct Item diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSplitItemBillRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSplitItemBillRequest.h index cc4f31385..2b8e95daa 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSplitItemBillRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSplitItemBillRequest.h @@ -1,90 +1,81 @@ /* * 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_DESCRIBESPLITITEMBILLREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESPLITITEMBILLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeSplitItemBillRequest : public RpcServiceRequest - { - public: - struct TagFilter - { - std::vector tagValues; - std::string tagKey; - }; - - public: - DescribeSplitItemBillRequest(); - ~DescribeSplitItemBillRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getProductType()const; - void setProductType(const std::string& productType); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getSplitItemID()const; - void setSplitItemID(const std::string& splitItemID); - std::string getBillingCycle()const; - void setBillingCycle(const std::string& billingCycle); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getTagFilter()const; - void setTagFilter(const std::vector& tagFilter); - std::string getBillingDate()const; - void setBillingDate(const std::string& billingDate); - std::string getInstanceID()const; - void setInstanceID(const std::string& instanceID); - std::string getGranularity()const; - void setGranularity(const std::string& granularity); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - std::string productCode_; - std::string subscriptionType_; - long billOwnerId_; - std::string productType_; - std::string nextToken_; - std::string splitItemID_; - std::string billingCycle_; - long ownerId_; - std::vector tagFilter_; - std::string billingDate_; - std::string instanceID_; - std::string granularity_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESPLITITEMBILLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESPLITITEMBILLREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESPLITITEMBILLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeSplitItemBillRequest : public RpcServiceRequest { +public: + struct TagFilter { + std::string tagKey; + }; + DescribeSplitItemBillRequest(); + ~DescribeSplitItemBillRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getProductType() const; + void setProductType(const std::string &productType); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getSplitItemID() const; + void setSplitItemID(const std::string &splitItemID); + std::string getBillingCycle() const; + void setBillingCycle(const std::string &billingCycle); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getTagFilter() const; + void setTagFilter(const std::vector &tagFilter); + std::string getBillingDate() const; + void setBillingDate(const std::string &billingDate); + std::string getInstanceID() const; + void setInstanceID(const std::string &instanceID); + std::string getGranularity() const; + void setGranularity(const std::string &granularity); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string productCode_; + std::string subscriptionType_; + long billOwnerId_; + std::string productType_; + std::string nextToken_; + std::string splitItemID_; + std::string billingCycle_; + long ownerId_; + std::vector tagFilter_; + std::string billingDate_; + std::string instanceID_; + std::string granularity_; + int maxResults_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESPLITITEMBILLREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSplitItemBillResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSplitItemBillResult.h index 898f20c9b..84329692a 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSplitItemBillResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeSplitItemBillResult.h @@ -40,8 +40,8 @@ namespace AlibabaCloud std::string instanceID; std::string billAccountID; std::string splitCommodityCode; - std::string listPrice; float paymentAmount; + std::string listPrice; float deductedByPrepaidCard; std::string splitItemName; std::string subscriptionType; @@ -60,18 +60,21 @@ namespace AlibabaCloud std::string servicePeriodUnit; std::string servicePeriod; std::string usageUnit; - std::string ownerID; + std::string billingItemCode; std::string internetIP; + std::string ownerID; std::string region; std::string instanceSpec; float deductedByCashCoupons; - std::string listPriceUnit; std::string billingDate; + std::string listPriceUnit; float invoiceDiscount; std::string splitProductDetail; float pretaxGrossAmount; std::string commodityCode; + std::string itemName; std::string resourceGroup; + float adjustAmount; std::string billingType; std::string splitAccountName; std::string usage; @@ -86,6 +89,7 @@ namespace AlibabaCloud float pretaxAmount; std::string billAccountName; std::string tag; + float cashAmount; }; std::string billingCycle; int totalCount; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/EnableBillGenerationRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/EnableBillGenerationRequest.h index edc278f21..1950f12c2 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/EnableBillGenerationRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/EnableBillGenerationRequest.h @@ -1,51 +1,45 @@ /* * 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_ENABLEBILLGENERATIONREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_ENABLEBILLGENERATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT EnableBillGenerationRequest : public RpcServiceRequest - { - - public: - EnableBillGenerationRequest(); - ~EnableBillGenerationRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string productCode_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ENABLEBILLGENERATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_ENABLEBILLGENERATIONREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_ENABLEBILLGENERATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT EnableBillGenerationRequest : public RpcServiceRequest { +public: + EnableBillGenerationRequest(); + ~EnableBillGenerationRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string productCode_; + long ownerId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ENABLEBILLGENERATIONREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetAccountRelationRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetAccountRelationRequest.h new file mode 100644 index 000000000..4d881e10d --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetAccountRelationRequest.h @@ -0,0 +1,45 @@ +/* + * 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_GETACCOUNTRELATIONREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETACCOUNTRELATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT GetAccountRelationRequest : public RpcServiceRequest { +public: + GetAccountRelationRequest(); + ~GetAccountRelationRequest(); + std::string getRequestId() const; + void setRequestId(const std::string &requestId); + long getRelationId() const; + void setRelationId(long relationId); + +private: + std::string requestId_; + long relationId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETACCOUNTRELATIONREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetAccountRelationResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetAccountRelationResult.h new file mode 100644 index 000000000..1eb2e6a1a --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetAccountRelationResult.h @@ -0,0 +1,68 @@ +/* + * 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_GETACCOUNTRELATIONRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETACCOUNTRELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetAccountRelationResult : public ServiceResult + { + public: + struct Data + { + std::string status; + long childUserId; + std::string type; + long parentUserId; + long endTime; + long startTime; + long gmtModified; + long id; + }; + + + GetAccountRelationResult(); + explicit GetAccountRelationResult(const std::string &payload); + ~GetAccountRelationResult(); + 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_GETACCOUNTRELATIONRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h index 822216391..5a9739571 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h @@ -1,48 +1,42 @@ /* * 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_GETCUSTOMERACCOUNTINFOREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerAccountInfoRequest : public RpcServiceRequest - { - - public: - GetCustomerAccountInfoRequest(); - ~GetCustomerAccountInfoRequest(); - - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFOREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerAccountInfoRequest : public RpcServiceRequest { +public: + GetCustomerAccountInfoRequest(); + ~GetCustomerAccountInfoRequest(); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long ownerId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFOREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListRequest.h index b15eae737..a857c3f3c 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListRequest.h @@ -1,45 +1,39 @@ /* * 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_GETCUSTOMERLISTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerListRequest : public RpcServiceRequest - { - - public: - GetCustomerListRequest(); - ~GetCustomerListRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerListRequest : public RpcServiceRequest { +public: + GetCustomerListRequest(); + ~GetCustomerListRequest(); + +private: +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailRequest.h index 6573d2ebf..a4d3f650b 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailRequest.h @@ -1,51 +1,45 @@ /* * 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_GETORDERDETAILREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETORDERDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetOrderDetailRequest : public RpcServiceRequest - { - - public: - GetOrderDetailRequest(); - ~GetOrderDetailRequest(); - - std::string getOrderId()const; - void setOrderId(const std::string& orderId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string orderId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETORDERDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETORDERDETAILREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETORDERDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT GetOrderDetailRequest : public RpcServiceRequest { +public: + GetOrderDetailRequest(); + ~GetOrderDetailRequest(); + std::string getOrderId() const; + void setOrderId(const std::string &orderId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string orderId_; + long ownerId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETORDERDETAILREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h index fec21f5a7..bf11099b4 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h @@ -37,11 +37,11 @@ namespace AlibabaCloud struct Order { std::string afterTaxAmount; - std::string subOrderId; std::string config; + std::string subOrderId; + std::string paymentTime; std::string _operator; std::string tax; - std::string paymentTime; std::string paymentCurrency; std::string usageEndTime; std::string subscriptionType; @@ -55,18 +55,18 @@ namespace AlibabaCloud std::string productCode; std::string createTime; std::string productType; - std::string relatedOrderId; std::string quantity; + std::string relatedOrderId; std::string orderId; - std::string pretaxAmount; std::string orderSubType; + std::string pretaxAmount; std::string region; std::string instanceIDs; std::string pretaxAmountLocal; }; int totalCount; - int pageSize; int pageNum; + int pageSize; std::vector orderList; std::string hostName; }; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetPayAsYouGoPriceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetPayAsYouGoPriceRequest.h index 5f4fa8bbc..823e53181 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetPayAsYouGoPriceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetPayAsYouGoPriceRequest.h @@ -1,70 +1,62 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetPayAsYouGoPriceRequest : public RpcServiceRequest - { - public: - struct ModuleList - { - std::string moduleCode; - std::string priceType; - std::string config; - }; - - public: - GetPayAsYouGoPriceRequest(); - ~GetPayAsYouGoPriceRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - std::vector getModuleList()const; - void setModuleList(const std::vector& moduleList); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getProductType()const; - void setProductType(const std::string& productType); - std::string getRegion()const; - void setRegion(const std::string& region); - - private: - std::string productCode_; - std::string subscriptionType_; - std::vector moduleList_; - long ownerId_; - std::string productType_; - std::string region_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT GetPayAsYouGoPriceRequest : public RpcServiceRequest { +public: + struct ModuleList { + std::string moduleCode; + std::string priceType; + std::string config; + }; + GetPayAsYouGoPriceRequest(); + ~GetPayAsYouGoPriceRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + std::vector getModuleList() const; + void setModuleList(const std::vector &moduleList); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getProductType() const; + void setProductType(const std::string &productType); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string productCode_; + std::string subscriptionType_; + std::vector moduleList_; + long ownerId_; + std::string productType_; + std::string region_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceRequest.h index f48a36f0b..23ffac294 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceRequest.h @@ -1,72 +1,66 @@ /* * 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_GETRESOURCEPACKAGEPRICEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETRESOURCEPACKAGEPRICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetResourcePackagePriceRequest : public RpcServiceRequest - { - - public: - GetResourcePackagePriceRequest(); - ~GetResourcePackagePriceRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getSpecification()const; - void setSpecification(const std::string& specification); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getEffectiveDate()const; - void setEffectiveDate(const std::string& effectiveDate); - int getDuration()const; - void setDuration(int duration); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getPackageType()const; - void setPackageType(const std::string& packageType); - std::string getPricingCycle()const; - void setPricingCycle(const std::string& pricingCycle); - std::string getOrderType()const; - void setOrderType(const std::string& orderType); - - private: - std::string productCode_; - std::string specification_; - long ownerId_; - std::string effectiveDate_; - int duration_; - std::string instanceId_; - std::string packageType_; - std::string pricingCycle_; - std::string orderType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETRESOURCEPACKAGEPRICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETRESOURCEPACKAGEPRICEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETRESOURCEPACKAGEPRICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT GetResourcePackagePriceRequest : public RpcServiceRequest { +public: + GetResourcePackagePriceRequest(); + ~GetResourcePackagePriceRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getSpecification() const; + void setSpecification(const std::string &specification); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getEffectiveDate() const; + void setEffectiveDate(const std::string &effectiveDate); + int getDuration() const; + void setDuration(int duration); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getPackageType() const; + void setPackageType(const std::string &packageType); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + std::string getOrderType() const; + void setOrderType(const std::string &orderType); + +private: + std::string productCode_; + std::string specification_; + long ownerId_; + std::string effectiveDate_; + int duration_; + std::string instanceId_; + std::string packageType_; + std::string pricingCycle_; + std::string orderType_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETRESOURCEPACKAGEPRICEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h index 523fc5211..0a64b8fe9 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud }; float originalPrice; std::vector promotions; - std::string currency; float discountPrice; + std::string currency; float tradePrice; }; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h index 0fb4ca436..10494ef59 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h @@ -1,86 +1,78 @@ /* * 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_GETSUBSCRIPTIONPRICEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETSUBSCRIPTIONPRICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetSubscriptionPriceRequest : public RpcServiceRequest - { - public: - struct ModuleList - { - std::string moduleCode; - int moduleStatus; - std::string tag; - std::string config; - }; - - public: - GetSubscriptionPriceRequest(); - ~GetSubscriptionPriceRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - int getQuantity()const; - void setQuantity(int quantity); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - std::vector getModuleList()const; - void setModuleList(const std::vector& moduleList); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getProductType()const; - void setProductType(const std::string& productType); - int getServicePeriodQuantity()const; - void setServicePeriodQuantity(int servicePeriodQuantity); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getServicePeriodUnit()const; - void setServicePeriodUnit(const std::string& servicePeriodUnit); - std::string getRegion()const; - void setRegion(const std::string& region); - std::string getOrderType()const; - void setOrderType(const std::string& orderType); - - private: - std::string productCode_; - int quantity_; - std::string subscriptionType_; - std::vector moduleList_; - long ownerId_; - std::string productType_; - int servicePeriodQuantity_; - std::string instanceId_; - std::string servicePeriodUnit_; - std::string region_; - std::string orderType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETSUBSCRIPTIONPRICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETSUBSCRIPTIONPRICEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETSUBSCRIPTIONPRICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT GetSubscriptionPriceRequest : public RpcServiceRequest { +public: + struct ModuleList { + std::string moduleCode; + int moduleStatus; + std::string tag; + std::string config; + }; + GetSubscriptionPriceRequest(); + ~GetSubscriptionPriceRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + int getQuantity() const; + void setQuantity(int quantity); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + std::vector getModuleList() const; + void setModuleList(const std::vector &moduleList); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getProductType() const; + void setProductType(const std::string &productType); + int getServicePeriodQuantity() const; + void setServicePeriodQuantity(int servicePeriodQuantity); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getServicePeriodUnit() const; + void setServicePeriodUnit(const std::string &servicePeriodUnit); + std::string getRegion() const; + void setRegion(const std::string ®ion); + std::string getOrderType() const; + void setOrderType(const std::string &orderType); + +private: + std::string productCode_; + int quantity_; + std::string subscriptionType_; + std::vector moduleList_; + long ownerId_; + std::string productType_; + int servicePeriodQuantity_; + std::string instanceId_; + std::string servicePeriodUnit_; + std::string region_; + std::string orderType_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETSUBSCRIPTIONPRICEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/InquiryPriceRefundInstanceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/InquiryPriceRefundInstanceRequest.h new file mode 100644 index 000000000..76e9442b7 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/InquiryPriceRefundInstanceRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_INQUIRYPRICEREFUNDINSTANCEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_INQUIRYPRICEREFUNDINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT InquiryPriceRefundInstanceRequest : public RpcServiceRequest { +public: + InquiryPriceRefundInstanceRequest(); + ~InquiryPriceRefundInstanceRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getProductType() const; + void setProductType(const std::string &productType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string productCode_; + std::string clientToken_; + std::string productType_; + std::string instanceId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_INQUIRYPRICEREFUNDINSTANCEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/InquiryPriceRefundInstanceResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/InquiryPriceRefundInstanceResult.h new file mode 100644 index 000000000..430d06878 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/InquiryPriceRefundInstanceResult.h @@ -0,0 +1,64 @@ +/* + * 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_INQUIRYPRICEREFUNDINSTANCERESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_INQUIRYPRICEREFUNDINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT InquiryPriceRefundInstanceResult : public ServiceResult + { + public: + struct Data + { + std::string instanceId; + std::string currency; + double refundAmount; + std::string hostId; + }; + + + InquiryPriceRefundInstanceResult(); + explicit InquiryPriceRefundInstanceResult(const std::string &payload); + ~InquiryPriceRefundInstanceResult(); + 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_INQUIRYPRICEREFUNDINSTANCERESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyAccountRelationRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyAccountRelationRequest.h index be43905de..309b68db4 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyAccountRelationRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyAccountRelationRequest.h @@ -1,69 +1,66 @@ /* * 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_MODIFYACCOUNTRELATIONREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYACCOUNTRELATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyAccountRelationRequest : public RpcServiceRequest - { - - public: - ModifyAccountRelationRequest(); - ~ModifyAccountRelationRequest(); - - std::string getChildNick()const; - void setChildNick(const std::string& childNick); - std::string getRelationOperation()const; - void setRelationOperation(const std::string& relationOperation); - std::string getRelationType()const; - void setRelationType(const std::string& relationType); - long getParentUserId()const; - void setParentUserId(long parentUserId); - long getChildUserId()const; - void setChildUserId(long childUserId); - std::string getRequestId()const; - void setRequestId(const std::string& requestId); - std::vector getPermissionCodes()const; - void setPermissionCodes(const std::vector& permissionCodes); - std::vector getRoleCodes()const; - void setRoleCodes(const std::vector& roleCodes); - - private: - std::string childNick_; - std::string relationOperation_; - std::string relationType_; - long parentUserId_; - long childUserId_; - std::string requestId_; - std::vector permissionCodes_; - std::vector roleCodes_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYACCOUNTRELATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYACCOUNTRELATIONREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYACCOUNTRELATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyAccountRelationRequest : public RpcServiceRequest { +public: + ModifyAccountRelationRequest(); + ~ModifyAccountRelationRequest(); + std::string getChildNick() const; + void setChildNick(const std::string &childNick); + long getParentUserId() const; + void setParentUserId(long parentUserId); + long getRelationId() const; + void setRelationId(long relationId); + std::vector getRoleCodes() const; + void setRoleCodes(const std::vector &roleCodes); + std::string getRelationOperation() const; + void setRelationOperation(const std::string &relationOperation); + std::string getRelationType() const; + void setRelationType(const std::string &relationType); + long getChildUserId() const; + void setChildUserId(long childUserId); + std::string getRequestId() const; + void setRequestId(const std::string &requestId); + std::vector getPermissionCodes() const; + void setPermissionCodes(const std::vector &permissionCodes); + +private: + std::string childNick_; + long parentUserId_; + long relationId_; + std::vector roleCodes_; + std::string relationOperation_; + std::string relationType_; + long childUserId_; + std::string requestId_; + std::vector permissionCodes_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYACCOUNTRELATIONREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyCostUnitRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyCostUnitRequest.h index 9be3e9616..fb3af3bf4 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyCostUnitRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyCostUnitRequest.h @@ -1,55 +1,47 @@ /* * 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_MODIFYCOSTUNITREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyCostUnitRequest : public RpcServiceRequest - { - public: - struct UnitEntityList - { - std::string newUnitName; - long unitId; - long ownerUid; - }; - - public: - ModifyCostUnitRequest(); - ~ModifyCostUnitRequest(); - - std::vector getUnitEntityList()const; - void setUnitEntityList(const std::vector& unitEntityList); - - private: - std::vector unitEntityList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyCostUnitRequest : public RpcServiceRequest { +public: + struct UnitEntityList { + std::string newUnitName; + long unitId; + long ownerUid; + }; + ModifyCostUnitRequest(); + ~ModifyCostUnitRequest(); + std::vector getUnitEntityList() const; + void setUnitEntityList(const std::vector &unitEntityList); + +private: + std::vector unitEntityList_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h index 63c6d04fa..b0056937a 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h @@ -1,75 +1,67 @@ /* * 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_MODIFYINSTANCEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyInstanceRequest : public RpcServiceRequest - { - public: - struct _Parameter - { - std::string code; - std::string value; - }; - - public: - ModifyInstanceRequest(); - ~ModifyInstanceRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - 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); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getModifyType()const; - void setModifyType(const std::string& modifyType); - std::vector<_Parameter> get_Parameter()const; - void set_Parameter(const std::vector<_Parameter>& _parameter); - - private: - std::string productCode_; - std::string clientToken_; - std::string subscriptionType_; - long ownerId_; - std::string productType_; - std::string instanceId_; - std::string modifyType_; - std::vector<_Parameter> _parameter_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYINSTANCEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyInstanceRequest : public RpcServiceRequest { +public: + struct _Parameter { + std::string code; + std::string value; + }; + ModifyInstanceRequest(); + ~ModifyInstanceRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + 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); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getModifyType() const; + void setModifyType(const std::string &modifyType); + std::vector<_Parameter> get_Parameter() const; + void set_Parameter(const std::vector<_Parameter> &_parameter); + +private: + std::string productCode_; + std::string clientToken_; + std::string subscriptionType_; + long ownerId_; + std::string productType_; + std::string instanceId_; + std::string modifyType_; + std::vector<_Parameter> _parameter_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYINSTANCEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceResult.h index 095688f0d..6fcc5ecf6 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct Data { - std::string hostId; std::string orderId; + std::string hostId; }; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBalanceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBalanceRequest.h index 754a1a738..c9b257940 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBalanceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBalanceRequest.h @@ -1,45 +1,39 @@ /* * 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_QUERYACCOUNTBALANCEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBALANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountBalanceRequest : public RpcServiceRequest - { - - public: - QueryAccountBalanceRequest(); - ~QueryAccountBalanceRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBALANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBALANCEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBALANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountBalanceRequest : public RpcServiceRequest { +public: + QueryAccountBalanceRequest(); + ~QueryAccountBalanceRequest(); + +private: +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBALANCEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBillRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBillRequest.h index 137178c8d..176f823b5 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBillRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBillRequest.h @@ -1,72 +1,66 @@ /* * 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_QUERYACCOUNTBILLREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBILLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountBillRequest : public RpcServiceRequest - { - - public: - QueryAccountBillRequest(); - ~QueryAccountBillRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getBillingCycle()const; - void setBillingCycle(const std::string& billingCycle); - int getPageNum()const; - void setPageNum(int pageNum); - long getOwnerID()const; - void setOwnerID(long ownerID); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getBillingDate()const; - void setBillingDate(const std::string& billingDate); - bool getIsGroupByProduct()const; - void setIsGroupByProduct(bool isGroupByProduct); - std::string getGranularity()const; - void setGranularity(const std::string& granularity); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string productCode_; - std::string billingCycle_; - int pageNum_; - long ownerID_; - long billOwnerId_; - std::string billingDate_; - bool isGroupByProduct_; - std::string granularity_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBILLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBILLREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBILLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountBillRequest : public RpcServiceRequest { +public: + QueryAccountBillRequest(); + ~QueryAccountBillRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getBillingCycle() const; + void setBillingCycle(const std::string &billingCycle); + int getPageNum() const; + void setPageNum(int pageNum); + long getOwnerID() const; + void setOwnerID(long ownerID); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getBillingDate() const; + void setBillingDate(const std::string &billingDate); + bool getIsGroupByProduct() const; + void setIsGroupByProduct(bool isGroupByProduct); + std::string getGranularity() const; + void setGranularity(const std::string &granularity); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string productCode_; + std::string billingCycle_; + int pageNum_; + long ownerID_; + long billOwnerId_; + std::string billingDate_; + bool isGroupByProduct_; + std::string granularity_; + int pageSize_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBILLREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBillResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBillResult.h index 68baeff93..e16f7021b 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBillResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBillResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { struct Item { - float deductedByCoupons; std::string ownerName; + float deductedByCoupons; std::string productName; std::string productCode; std::string billAccountID; @@ -46,16 +46,18 @@ namespace AlibabaCloud std::string bizType; std::string billingDate; float paymentAmount; - float deductedByPrepaidCard; std::string pipCode; + float deductedByPrepaidCard; float invoiceDiscount; std::string subscriptionType; float pretaxGrossAmount; - std::string ownerID; float pretaxAmount; + std::string ownerID; std::string currency; std::string billAccountName; std::string costUnit; + float adjustAmount; + float cashAmount; }; std::string billingCycle; int totalCount; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionDetailsRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionDetailsRequest.h index 9f73b1819..f3b94fae9 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionDetailsRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionDetailsRequest.h @@ -1,72 +1,66 @@ /* * 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_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionDetailsRequest : public RpcServiceRequest - { - - public: - QueryAccountTransactionDetailsRequest(); - ~QueryAccountTransactionDetailsRequest(); - - std::string getTransactionType()const; - void setTransactionType(const std::string& transactionType); - std::string getCreateTimeEnd()const; - void setCreateTimeEnd(const std::string& createTimeEnd); - std::string getRecordID()const; - void setRecordID(const std::string& recordID); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - int getMaxResults()const; - void setMaxResults(int maxResults); - std::string getTransactionChannel()const; - void setTransactionChannel(const std::string& transactionChannel); - std::string getTransactionChannelSN()const; - void setTransactionChannelSN(const std::string& transactionChannelSN); - std::string getCreateTimeStart()const; - void setCreateTimeStart(const std::string& createTimeStart); - std::string getTransactionNumber()const; - void setTransactionNumber(const std::string& transactionNumber); - - private: - std::string transactionType_; - std::string createTimeEnd_; - std::string recordID_; - std::string nextToken_; - int maxResults_; - std::string transactionChannel_; - std::string transactionChannelSN_; - std::string createTimeStart_; - std::string transactionNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionDetailsRequest : public RpcServiceRequest { +public: + QueryAccountTransactionDetailsRequest(); + ~QueryAccountTransactionDetailsRequest(); + std::string getTransactionType() const; + void setTransactionType(const std::string &transactionType); + std::string getCreateTimeEnd() const; + void setCreateTimeEnd(const std::string &createTimeEnd); + std::string getRecordID() const; + void setRecordID(const std::string &recordID); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getTransactionChannel() const; + void setTransactionChannel(const std::string &transactionChannel); + std::string getTransactionChannelSN() const; + void setTransactionChannelSN(const std::string &transactionChannelSN); + std::string getCreateTimeStart() const; + void setCreateTimeStart(const std::string &createTimeStart); + std::string getTransactionNumber() const; + void setTransactionNumber(const std::string &transactionNumber); + +private: + std::string transactionType_; + std::string createTimeEnd_; + std::string recordID_; + std::string nextToken_; + int maxResults_; + std::string transactionChannel_; + std::string transactionChannelSN_; + std::string createTimeStart_; + std::string transactionNumber_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionDetailsResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionDetailsResult.h index 7608d0425..b807a9240 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionDetailsResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionDetailsResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { struct AccountTransactionsListItem { - std::string transactionType; std::string billingCycle; + std::string transactionType; std::string transactionNumber; std::string amount; std::string transactionAccount; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h index 986e5324d..cfbc05897 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h @@ -1,66 +1,69 @@ /* * 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_QUERYACCOUNTTRANSACTIONSREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionsRequest : public RpcServiceRequest - { - - public: - QueryAccountTransactionsRequest(); - ~QueryAccountTransactionsRequest(); - - int getPageNum()const; - void setPageNum(int pageNum); - std::string getCreateTimeEnd()const; - void setCreateTimeEnd(const std::string& createTimeEnd); - std::string getRecordID()const; - void setRecordID(const std::string& recordID); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getTransactionChannelSN()const; - void setTransactionChannelSN(const std::string& transactionChannelSN); - std::string getCreateTimeStart()const; - void setCreateTimeStart(const std::string& createTimeStart); - std::string getTransactionNumber()const; - void setTransactionNumber(const std::string& transactionNumber); - - private: - int pageNum_; - std::string createTimeEnd_; - std::string recordID_; - int pageSize_; - std::string transactionChannelSN_; - std::string createTimeStart_; - std::string transactionNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionsRequest : public RpcServiceRequest { +public: + QueryAccountTransactionsRequest(); + ~QueryAccountTransactionsRequest(); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getTransactionType() const; + void setTransactionType(const std::string &transactionType); + std::string getCreateTimeEnd() const; + void setCreateTimeEnd(const std::string &createTimeEnd); + std::string getRecordID() const; + void setRecordID(const std::string &recordID); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getTransactionChannel() const; + void setTransactionChannel(const std::string &transactionChannel); + std::string getTransactionChannelSN() const; + void setTransactionChannelSN(const std::string &transactionChannelSN); + std::string getCreateTimeStart() const; + void setCreateTimeStart(const std::string &createTimeStart); + std::string getTransactionNumber() const; + void setTransactionNumber(const std::string &transactionNumber); + std::string getTransactionFlow() const; + void setTransactionFlow(const std::string &transactionFlow); + +private: + int pageNum_; + std::string transactionType_; + std::string createTimeEnd_; + std::string recordID_; + int pageSize_; + std::string transactionChannel_; + std::string transactionChannelSN_; + std::string createTimeStart_; + std::string transactionNumber_; + std::string transactionFlow_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h index 2cb9c3364..11a4553a3 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { struct AccountTransactionsListItem { - std::string transactionType; std::string billingCycle; + std::string transactionType; std::string transactionNumber; std::string amount; std::string transactionAccount; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h index cc36e6757..44df93f59 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h @@ -1,84 +1,78 @@ /* * 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_QUERYAVAILABLEINSTANCESREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVAILABLEINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAvailableInstancesRequest : public RpcServiceRequest - { - - public: - QueryAvailableInstancesRequest(); - ~QueryAvailableInstancesRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - int getPageNum()const; - void setPageNum(int pageNum); - std::string getProductType()const; - void setProductType(const std::string& productType); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getRenewStatus()const; - void setRenewStatus(const std::string& renewStatus); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getEndTimeStart()const; - void setEndTimeStart(const std::string& endTimeStart); - std::string getCreateTimeEnd()const; - void setCreateTimeEnd(const std::string& createTimeEnd); - std::string getInstanceIDs()const; - void setInstanceIDs(const std::string& instanceIDs); - std::string getEndTimeEnd()const; - void setEndTimeEnd(const std::string& endTimeEnd); - std::string getCreateTimeStart()const; - void setCreateTimeStart(const std::string& createTimeStart); - std::string getRegion()const; - void setRegion(const std::string& region); - - private: - std::string productCode_; - std::string subscriptionType_; - int pageNum_; - std::string productType_; - int pageSize_; - std::string renewStatus_; - long ownerId_; - std::string endTimeStart_; - std::string createTimeEnd_; - std::string instanceIDs_; - std::string endTimeEnd_; - std::string createTimeStart_; - std::string region_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVAILABLEINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVAILABLEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVAILABLEINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAvailableInstancesRequest : public RpcServiceRequest { +public: + QueryAvailableInstancesRequest(); + ~QueryAvailableInstancesRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getProductType() const; + void setProductType(const std::string &productType); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getRenewStatus() const; + void setRenewStatus(const std::string &renewStatus); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getEndTimeStart() const; + void setEndTimeStart(const std::string &endTimeStart); + std::string getCreateTimeEnd() const; + void setCreateTimeEnd(const std::string &createTimeEnd); + std::string getInstanceIDs() const; + void setInstanceIDs(const std::string &instanceIDs); + std::string getEndTimeEnd() const; + void setEndTimeEnd(const std::string &endTimeEnd); + std::string getCreateTimeStart() const; + void setCreateTimeStart(const std::string &createTimeStart); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string productCode_; + std::string subscriptionType_; + int pageNum_; + std::string productType_; + int pageSize_; + std::string renewStatus_; + long ownerId_; + std::string endTimeStart_; + std::string createTimeEnd_; + std::string instanceIDs_; + std::string endTimeEnd_; + std::string createTimeStart_; + std::string region_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVAILABLEINSTANCESREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesResult.h index 5fc7649c5..1b6985c9e 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesResult.h @@ -36,12 +36,12 @@ namespace AlibabaCloud { struct Instance { - std::string expectedReleaseTime; std::string status; + std::string expectedReleaseTime; int renewalDuration; std::string endTime; - std::string productCode; std::string instanceID; + std::string productCode; std::string createTime; std::string productType; std::string renewStatus; @@ -49,8 +49,8 @@ namespace AlibabaCloud long ownerId; std::string releaseTime; long sellerId; - std::string region; std::string renewalDurationUnit; + std::string region; std::string seller; std::string subStatus; std::string stopTime; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewRequest.h index 7e5c48d28..63ccc2ec4 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewRequest.h @@ -1,60 +1,54 @@ /* * 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_QUERYBILLOVERVIEWREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLOVERVIEWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryBillOverviewRequest : public RpcServiceRequest - { - - public: - QueryBillOverviewRequest(); - ~QueryBillOverviewRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - std::string getBillingCycle()const; - void setBillingCycle(const std::string& billingCycle); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getProductType()const; - void setProductType(const std::string& productType); - - private: - std::string productCode_; - std::string subscriptionType_; - std::string billingCycle_; - long billOwnerId_; - std::string productType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLOVERVIEWREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLOVERVIEWREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLOVERVIEWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryBillOverviewRequest : public RpcServiceRequest { +public: + QueryBillOverviewRequest(); + ~QueryBillOverviewRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + std::string getBillingCycle() const; + void setBillingCycle(const std::string &billingCycle); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getProductType() const; + void setProductType(const std::string &productType); + +private: + std::string productCode_; + std::string subscriptionType_; + std::string billingCycle_; + long billOwnerId_; + std::string productType_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLOVERVIEWREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewResult.h index 15c6337ad..3c34421fc 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewResult.h @@ -50,6 +50,7 @@ namespace AlibabaCloud float pretaxGrossAmount; std::string currency; std::string commodityCode; + float adjustAmount; float deductedByCoupons; std::string roundDownDiscount; std::string productDetail; @@ -61,6 +62,7 @@ namespace AlibabaCloud float pretaxAmount; std::string ownerID; std::string billAccountName; + float cashAmount; float pretaxAmountLocal; }; std::string billingCycle; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillRequest.h index 5e308cde9..752b604be 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillRequest.h @@ -1,78 +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_BSSOPENAPI_MODEL_QUERYBILLREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryBillRequest : public RpcServiceRequest - { - - public: - QueryBillRequest(); - ~QueryBillRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - bool getIsHideZeroCharge()const; - void setIsHideZeroCharge(bool isHideZeroCharge); - bool getIsDisplayLocalCurrency()const; - void setIsDisplayLocalCurrency(bool isDisplayLocalCurrency); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - std::string getBillingCycle()const; - void setBillingCycle(const std::string& billingCycle); - std::string getType()const; - void setType(const std::string& type); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPageNum()const; - void setPageNum(int pageNum); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getProductType()const; - void setProductType(const std::string& productType); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string productCode_; - bool isHideZeroCharge_; - bool isDisplayLocalCurrency_; - std::string subscriptionType_; - std::string billingCycle_; - std::string type_; - long ownerId_; - int pageNum_; - long billOwnerId_; - std::string productType_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryBillRequest : public RpcServiceRequest { +public: + QueryBillRequest(); + ~QueryBillRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + bool getIsHideZeroCharge() const; + void setIsHideZeroCharge(bool isHideZeroCharge); + bool getIsDisplayLocalCurrency() const; + void setIsDisplayLocalCurrency(bool isDisplayLocalCurrency); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + std::string getBillingCycle() const; + void setBillingCycle(const std::string &billingCycle); + std::string getType() const; + void setType(const std::string &type); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPageNum() const; + void setPageNum(int pageNum); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getProductType() const; + void setProductType(const std::string &productType); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string productCode_; + bool isHideZeroCharge_; + bool isDisplayLocalCurrency_; + std::string subscriptionType_; + std::string billingCycle_; + std::string type_; + long ownerId_; + int pageNum_; + long billOwnerId_; + std::string productType_; + int pageSize_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillResult.h index 1f363415c..bf12210ae 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillResult.h @@ -53,6 +53,7 @@ namespace AlibabaCloud std::string currency; std::string commodityCode; std::string usageStartTime; + float adjustAmount; std::string status; std::string paymentTransactionID; float deductedByCoupons; @@ -62,9 +63,10 @@ namespace AlibabaCloud std::string productType; float outstandingAmount; std::string pipCode; - std::string ownerID; float pretaxAmount; + std::string ownerID; std::string recordID; + float cashAmount; float pretaxAmountLocal; }; std::string billingCycle; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillToOSSSubscriptionRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillToOSSSubscriptionRequest.h index eebc69342..bcfe6237f 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillToOSSSubscriptionRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillToOSSSubscriptionRequest.h @@ -1,45 +1,39 @@ /* * 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_QUERYBILLTOOSSSUBSCRIPTIONREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLTOOSSSUBSCRIPTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryBillToOSSSubscriptionRequest : public RpcServiceRequest - { - - public: - QueryBillToOSSSubscriptionRequest(); - ~QueryBillToOSSSubscriptionRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLTOOSSSUBSCRIPTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLTOOSSSUBSCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLTOOSSSUBSCRIPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryBillToOSSSubscriptionRequest : public RpcServiceRequest { +public: + QueryBillToOSSSubscriptionRequest(); + ~QueryBillToOSSSubscriptionRequest(); + +private: +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLTOOSSSUBSCRIPTIONREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCashCouponsRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCashCouponsRequest.h index e730bf6fb..84c46a28f 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCashCouponsRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCashCouponsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCASHCOUPONSREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCASHCOUPONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCashCouponsRequest : public RpcServiceRequest - { - - public: - QueryCashCouponsRequest(); - ~QueryCashCouponsRequest(); - - std::string getExpiryTimeEnd()const; - void setExpiryTimeEnd(const std::string& expiryTimeEnd); - std::string getExpiryTimeStart()const; - void setExpiryTimeStart(const std::string& expiryTimeStart); - bool getEffectiveOrNot()const; - void setEffectiveOrNot(bool effectiveOrNot); - - private: - std::string expiryTimeEnd_; - std::string expiryTimeStart_; - bool effectiveOrNot_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCASHCOUPONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCASHCOUPONSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCASHCOUPONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCashCouponsRequest : public RpcServiceRequest { +public: + QueryCashCouponsRequest(); + ~QueryCashCouponsRequest(); + std::string getExpiryTimeEnd() const; + void setExpiryTimeEnd(const std::string &expiryTimeEnd); + std::string getExpiryTimeStart() const; + void setExpiryTimeStart(const std::string &expiryTimeStart); + bool getEffectiveOrNot() const; + void setEffectiveOrNot(bool effectiveOrNot); + +private: + std::string expiryTimeEnd_; + std::string expiryTimeStart_; + bool effectiveOrNot_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCASHCOUPONSREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitRequest.h index 5645b0d68..d7101dbc3 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCostUnitRequest : public RpcServiceRequest - { - - public: - QueryCostUnitRequest(); - ~QueryCostUnitRequest(); - - long getParentUnitId()const; - void setParentUnitId(long parentUnitId); - int getPageNum()const; - void setPageNum(int pageNum); - int getPageSize()const; - void setPageSize(int pageSize); - long getOwnerUid()const; - void setOwnerUid(long ownerUid); - - private: - long parentUnitId_; - int pageNum_; - int pageSize_; - long ownerUid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCostUnitRequest : public RpcServiceRequest { +public: + QueryCostUnitRequest(); + ~QueryCostUnitRequest(); + long getParentUnitId() const; + void setParentUnitId(long parentUnitId); + int getPageNum() const; + void setPageNum(int pageNum); + int getPageSize() const; + void setPageSize(int pageSize); + long getOwnerUid() const; + void setOwnerUid(long ownerUid); + +private: + long parentUnitId_; + int pageNum_; + int pageSize_; + long ownerUid_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitResourceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitResourceRequest.h index 50c8e0322..c6cc4905c 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitResourceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitResourceRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCostUnitResourceRequest : public RpcServiceRequest - { - - public: - QueryCostUnitResourceRequest(); - ~QueryCostUnitResourceRequest(); - - int getPageNum()const; - void setPageNum(int pageNum); - int getPageSize()const; - void setPageSize(int pageSize); - long getUnitId()const; - void setUnitId(long unitId); - long getOwnerUid()const; - void setOwnerUid(long ownerUid); - - private: - int pageNum_; - int pageSize_; - long unitId_; - long ownerUid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCostUnitResourceRequest : public RpcServiceRequest { +public: + QueryCostUnitResourceRequest(); + ~QueryCostUnitResourceRequest(); + int getPageNum() const; + void setPageNum(int pageNum); + int getPageSize() const; + void setPageSize(int pageSize); + long getUnitId() const; + void setUnitId(long unitId); + long getOwnerUid() const; + void setOwnerUid(long ownerUid); + +private: + int pageNum_; + int pageSize_; + long unitId_; + long ownerUid_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitResourceResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitResourceResult.h index b85a1c145..adc6d29bf 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitResourceResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitResourceResult.h @@ -44,8 +44,8 @@ namespace AlibabaCloud struct CostUnitStatisInfo { long subUnitCount; - long totalResourceGroupCount; long totalResourceCount; + long totalResourceGroupCount; long userCount; long resourceCount; long totalUserCount; @@ -55,21 +55,21 @@ namespace AlibabaCloud { long resourceUserId; std::string resourceType; - std::string resourceNick; std::string apportionCode; + std::string resourceNick; + std::string apportionName; std::string resourceTag; std::string relatedResources; - std::string apportionName; std::string resourceId; std::string commodityCode; std::string resourceStatus; std::string resourceUserName; - std::string resourceGroup; std::string commodityName; + std::string resourceGroup; }; int totalCount; - int pageSize; int pageNum; + int pageSize; CostUnit costUnit; std::vector resourceInstanceDtoList; CostUnitStatisInfo costUnitStatisInfo; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitResult.h index a25d47d30..faa1d7ef9 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCostUnitResult.h @@ -42,8 +42,8 @@ namespace AlibabaCloud std::string unitName; }; int totalCount; - int pageSize; int pageNum; + int pageSize; std::vector costUnitDtoList; }; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListRequest.h index 313f91617..178feccde 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListRequest.h @@ -1,48 +1,42 @@ /* * 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_QUERYCUSTOMERADDRESSLISTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCUSTOMERADDRESSLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCustomerAddressListRequest : public RpcServiceRequest - { - - public: - QueryCustomerAddressListRequest(); - ~QueryCustomerAddressListRequest(); - - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCUSTOMERADDRESSLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCUSTOMERADDRESSLISTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCUSTOMERADDRESSLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCustomerAddressListRequest : public RpcServiceRequest { +public: + QueryCustomerAddressListRequest(); + ~QueryCustomerAddressListRequest(); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long ownerId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCUSTOMERADDRESSLISTREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListResult.h index 3463ce07c..22a5ed3a4 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListResult.h @@ -36,16 +36,16 @@ namespace AlibabaCloud { struct CustomerInvoiceAddress { - long userId; std::string addressee; + long userId; std::string phone; std::string deliveryAddress; - std::string street; std::string postalCode; + std::string street; std::string bizType; - long id; - std::string userNick; std::string city; + std::string userNick; + long id; std::string county; std::string province; }; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryDPUtilizationDetailRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryDPUtilizationDetailRequest.h index 392c18b31..e5711847b 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryDPUtilizationDetailRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryDPUtilizationDetailRequest.h @@ -1,75 +1,69 @@ /* * 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_QUERYDPUTILIZATIONDETAILREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYDPUTILIZATIONDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryDPUtilizationDetailRequest : public RpcServiceRequest - { - - public: - QueryDPUtilizationDetailRequest(); - ~QueryDPUtilizationDetailRequest(); - - std::string getDeductedInstanceId()const; - void setDeductedInstanceId(const std::string& deductedInstanceId); - std::string getLastToken()const; - void setLastToken(const std::string& lastToken); - std::string getInstanceSpec()const; - void setInstanceSpec(const std::string& instanceSpec); - std::string getProdCode()const; - void setProdCode(const std::string& prodCode); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - bool getIncludeShare()const; - void setIncludeShare(bool includeShare); - std::string getCommodityCode()const; - void setCommodityCode(const std::string& commodityCode); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getLimit()const; - void setLimit(int limit); - - private: - std::string deductedInstanceId_; - std::string lastToken_; - std::string instanceSpec_; - std::string prodCode_; - std::string endTime_; - bool includeShare_; - std::string commodityCode_; - std::string startTime_; - std::string instanceId_; - int limit_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYDPUTILIZATIONDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYDPUTILIZATIONDETAILREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYDPUTILIZATIONDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryDPUtilizationDetailRequest : public RpcServiceRequest { +public: + QueryDPUtilizationDetailRequest(); + ~QueryDPUtilizationDetailRequest(); + std::string getDeductedInstanceId() const; + void setDeductedInstanceId(const std::string &deductedInstanceId); + std::string getLastToken() const; + void setLastToken(const std::string &lastToken); + std::string getInstanceSpec() const; + void setInstanceSpec(const std::string &instanceSpec); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + bool getIncludeShare() const; + void setIncludeShare(bool includeShare); + std::string getCommodityCode() const; + void setCommodityCode(const std::string &commodityCode); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getLimit() const; + void setLimit(int limit); + +private: + std::string deductedInstanceId_; + std::string lastToken_; + std::string instanceSpec_; + std::string prodCode_; + std::string endTime_; + bool includeShare_; + std::string commodityCode_; + std::string startTime_; + std::string instanceId_; + int limit_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYDPUTILIZATIONDETAILREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryDPUtilizationDetailResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryDPUtilizationDetailResult.h index 611d0a43a..630989539 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryDPUtilizationDetailResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryDPUtilizationDetailResult.h @@ -45,8 +45,8 @@ namespace AlibabaCloud float deductHours; long uid; std::string deductDate; - float deductMeasure; long shareUid; + float deductMeasure; std::string region; std::string deductedInstanceId; float deductQuantity; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListRequest.h index 527a13197..89b5a6351 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListRequest.h @@ -1,87 +1,81 @@ /* * 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_QUERYEVALUATELISTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYEVALUATELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryEvaluateListRequest : public RpcServiceRequest - { - - public: - QueryEvaluateListRequest(); - ~QueryEvaluateListRequest(); - - std::string getEndSearchTime()const; - void setEndSearchTime(const std::string& endSearchTime); - std::string getOutBizId()const; - void setOutBizId(const std::string& outBizId); - int getSortType()const; - void setSortType(int sortType); - int getType()const; - void setType(int type); - int getPageNum()const; - void setPageNum(int pageNum); - int getPageSize()const; - void setPageSize(int pageSize); - long getEndAmount()const; - void setEndAmount(long endAmount); - std::string getBillCycle()const; - void setBillCycle(const std::string& billCycle); - std::vector getBizTypeList()const; - void setBizTypeList(const std::vector& bizTypeList); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getStartSearchTime()const; - void setStartSearchTime(const std::string& startSearchTime); - std::string getEndBizTime()const; - void setEndBizTime(const std::string& endBizTime); - long getStartAmount()const; - void setStartAmount(long startAmount); - std::string getStartBizTime()const; - void setStartBizTime(const std::string& startBizTime); - - private: - std::string endSearchTime_; - std::string outBizId_; - int sortType_; - int type_; - int pageNum_; - int pageSize_; - long endAmount_; - std::string billCycle_; - std::vector bizTypeList_; - long ownerId_; - std::string startSearchTime_; - std::string endBizTime_; - long startAmount_; - std::string startBizTime_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYEVALUATELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYEVALUATELISTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYEVALUATELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryEvaluateListRequest : public RpcServiceRequest { +public: + QueryEvaluateListRequest(); + ~QueryEvaluateListRequest(); + std::string getEndSearchTime() const; + void setEndSearchTime(const std::string &endSearchTime); + std::string getOutBizId() const; + void setOutBizId(const std::string &outBizId); + int getSortType() const; + void setSortType(int sortType); + int getType() const; + void setType(int type); + int getPageNum() const; + void setPageNum(int pageNum); + int getPageSize() const; + void setPageSize(int pageSize); + long getEndAmount() const; + void setEndAmount(long endAmount); + std::string getBillCycle() const; + void setBillCycle(const std::string &billCycle); + std::vector getBizTypeList() const; + void setBizTypeList(const std::vector &bizTypeList); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getStartSearchTime() const; + void setStartSearchTime(const std::string &startSearchTime); + std::string getEndBizTime() const; + void setEndBizTime(const std::string &endBizTime); + long getStartAmount() const; + void setStartAmount(long startAmount); + std::string getStartBizTime() const; + void setStartBizTime(const std::string &startBizTime); + +private: + std::string endSearchTime_; + std::string outBizId_; + int sortType_; + int type_; + int pageNum_; + int pageSize_; + long endAmount_; + std::string billCycle_; + std::vector bizTypeList_; + long ownerId_; + std::string startSearchTime_; + std::string endBizTime_; + long startAmount_; + std::string startBizTime_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYEVALUATELISTREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListResult.h index 7d25725dc..cf224360f 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud struct Evaluate { int status; - long offsetCostAmount; std::string bizTime; + long offsetCostAmount; std::string gmtModified; std::string billCycle; std::string bizType; @@ -46,15 +46,15 @@ namespace AlibabaCloud long itemId; long originalAmount; std::string name; - std::string gmtCreate; int type; + std::string gmtCreate; long userId; long billId; long offsetAcceptAmount; std::string opId; - long id; - std::string userNick; std::string outBizId; + std::string userNick; + long id; long invoicedAmount; long canInvoiceAmount; }; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryFinancialAccountInfoRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryFinancialAccountInfoRequest.h index b8ff60342..05c06a3f5 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryFinancialAccountInfoRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryFinancialAccountInfoRequest.h @@ -1,48 +1,42 @@ /* * 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_QUERYFINANCIALACCOUNTINFOREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCIALACCOUNTINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryFinancialAccountInfoRequest : public RpcServiceRequest - { - - public: - QueryFinancialAccountInfoRequest(); - ~QueryFinancialAccountInfoRequest(); - - long getUserId()const; - void setUserId(long userId); - - private: - long userId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCIALACCOUNTINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCIALACCOUNTINFOREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCIALACCOUNTINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryFinancialAccountInfoRequest : public RpcServiceRequest { +public: + QueryFinancialAccountInfoRequest(); + ~QueryFinancialAccountInfoRequest(); + long getUserId() const; + void setUserId(long userId); + +private: + long userId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCIALACCOUNTINFOREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryFinancialAccountInfoResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryFinancialAccountInfoResult.h index c2b116448..fb1ed1245 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryFinancialAccountInfoResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryFinancialAccountInfoResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct Data { std::string userName; - bool isFinancialAccount; std::string memberNickName; + bool isFinancialAccount; std::string memberGroupName; long memberGroupId; std::string accountType; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h index 2ef2ae442..7ebb8242d 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h @@ -1,81 +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_BSSOPENAPI_MODEL_QUERYINSTANCEBILLREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInstanceBillRequest : public RpcServiceRequest - { - - public: - QueryInstanceBillRequest(); - ~QueryInstanceBillRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - bool getIsHideZeroCharge()const; - void setIsHideZeroCharge(bool isHideZeroCharge); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - std::string getBillingCycle()const; - void setBillingCycle(const std::string& billingCycle); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPageNum()const; - void setPageNum(int pageNum); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getBillingDate()const; - void setBillingDate(const std::string& billingDate); - std::string getProductType()const; - void setProductType(const std::string& productType); - bool getIsBillingItem()const; - void setIsBillingItem(bool isBillingItem); - std::string getGranularity()const; - void setGranularity(const std::string& granularity); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string productCode_; - bool isHideZeroCharge_; - std::string subscriptionType_; - std::string billingCycle_; - long ownerId_; - int pageNum_; - long billOwnerId_; - std::string billingDate_; - std::string productType_; - bool isBillingItem_; - std::string granularity_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInstanceBillRequest : public RpcServiceRequest { +public: + QueryInstanceBillRequest(); + ~QueryInstanceBillRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + bool getIsHideZeroCharge() const; + void setIsHideZeroCharge(bool isHideZeroCharge); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + std::string getBillingCycle() const; + void setBillingCycle(const std::string &billingCycle); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPageNum() const; + void setPageNum(int pageNum); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getBillingDate() const; + void setBillingDate(const std::string &billingDate); + std::string getProductType() const; + void setProductType(const std::string &productType); + bool getIsBillingItem() const; + void setIsBillingItem(bool isBillingItem); + std::string getGranularity() const; + void setGranularity(const std::string &granularity); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string productCode_; + bool isHideZeroCharge_; + std::string subscriptionType_; + std::string billingCycle_; + long ownerId_; + int pageNum_; + long billOwnerId_; + std::string billingDate_; + std::string productType_; + bool isBillingItem_; + std::string granularity_; + int pageSize_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h index e3fdd55e8..b1ccb1ec8 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h @@ -40,23 +40,24 @@ namespace AlibabaCloud std::string productName; std::string instanceID; float deductedByCashCoupons; - std::string listPriceUnit; std::string billingDate; - std::string listPrice; + std::string listPriceUnit; float paymentAmount; + std::string listPrice; float deductedByPrepaidCard; float invoiceDiscount; - std::string subscriptionType; std::string item; + std::string subscriptionType; float pretaxGrossAmount; std::string instanceConfig; std::string currency; std::string commodityCode; std::string costUnit; std::string resourceGroup; + float adjustAmount; std::string billingType; - std::string usage; float deductedByCoupons; + std::string usage; std::string productDetail; std::string productCode; std::string zone; @@ -64,17 +65,18 @@ namespace AlibabaCloud float outstandingAmount; std::string billingItem; std::string nickName; - std::string intranetIP; std::string pipCode; + std::string intranetIP; std::string servicePeriodUnit; std::string servicePeriod; std::string deductedByResourcePackage; std::string usageUnit; - std::string ownerID; - float pretaxAmount; std::string internetIP; + float pretaxAmount; + std::string ownerID; std::string region; std::string tag; + float cashAmount; }; std::string billingCycle; int totalCount; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceByTagRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceByTagRequest.h index 95bebf463..11fe2a7c5 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceByTagRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceByTagRequest.h @@ -1,60 +1,52 @@ /* * 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_QUERYINSTANCEBYTAGREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBYTAGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInstanceByTagRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - QueryInstanceByTagRequest(); - ~QueryInstanceByTagRequest(); - - std::vector getResourceId()const; - void setResourceId(const std::vector& resourceId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - - private: - std::vector resourceId_; - std::vector tag_; - std::string resourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBYTAGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBYTAGREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBYTAGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInstanceByTagRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + QueryInstanceByTagRequest(); + ~QueryInstanceByTagRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::vector resourceId_; + std::vector tag_; + std::string resourceType_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBYTAGREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostRequest.h index f8aed4999..191077083 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostRequest.h @@ -1,63 +1,57 @@ /* * 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_QUERYINSTANCEGAAPCOSTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEGAAPCOSTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInstanceGaapCostRequest : public RpcServiceRequest - { - - public: - QueryInstanceGaapCostRequest(); - ~QueryInstanceGaapCostRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - std::string getBillingCycle()const; - void setBillingCycle(const std::string& billingCycle); - int getPageNum()const; - void setPageNum(int pageNum); - std::string getProductType()const; - void setProductType(const std::string& productType); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string productCode_; - std::string subscriptionType_; - std::string billingCycle_; - int pageNum_; - std::string productType_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEGAAPCOSTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEGAAPCOSTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEGAAPCOSTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInstanceGaapCostRequest : public RpcServiceRequest { +public: + QueryInstanceGaapCostRequest(); + ~QueryInstanceGaapCostRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + std::string getBillingCycle() const; + void setBillingCycle(const std::string &billingCycle); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getProductType() const; + void setProductType(const std::string &productType); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string productCode_; + std::string subscriptionType_; + std::string billingCycle_; + int pageNum_; + std::string productType_; + int pageSize_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEGAAPCOSTREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostResult.h index 2c7d1f08f..bd78658ad 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostResult.h @@ -36,11 +36,11 @@ namespace AlibabaCloud { struct Module { - std::string instanceID; std::string monthGaapPretaxGrossAmount; + std::string instanceID; std::string accountingUnit; - std::string paymentCurrency; std::string gaapPaymentAmount; + std::string paymentCurrency; std::string payerAccount; std::string paymentAmount; std::string deductedByPrepaidCard; @@ -49,8 +49,8 @@ namespace AlibabaCloud std::string unallocatedPretaxAmountLocal; std::string currency; std::string monthGaapPaymentAmount; - std::string billingCycle; std::string deductedByCoupons; + std::string billingCycle; std::string monthGaapDeductedByCashCoupons; std::string productCode; std::string productType; @@ -75,8 +75,8 @@ namespace AlibabaCloud std::string pretaxGrossAmount; std::string gaapPretaxAmountLocal; std::string gaapDeductedByCoupons; - std::string resourceGroup; std::string monthGaapPricingDiscount; + std::string resourceGroup; std::string billType; std::string monthGaapPretaxAmount; std::string usageStartDate; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListRequest.h index 2bf75290b..af076fc92 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListRequest.h @@ -1,48 +1,42 @@ /* * 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_QUERYINVOICINGCUSTOMERLISTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINVOICINGCUSTOMERLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInvoicingCustomerListRequest : public RpcServiceRequest - { - - public: - QueryInvoicingCustomerListRequest(); - ~QueryInvoicingCustomerListRequest(); - - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINVOICINGCUSTOMERLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINVOICINGCUSTOMERLISTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINVOICINGCUSTOMERLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInvoicingCustomerListRequest : public RpcServiceRequest { +public: + QueryInvoicingCustomerListRequest(); + ~QueryInvoicingCustomerListRequest(); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long ownerId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINVOICINGCUSTOMERLISTREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListResult.h index cddc3f1da..fa0b7e7ba 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListResult.h @@ -46,15 +46,15 @@ namespace AlibabaCloud long customerType; std::string taxationLicense; std::string operatingLicenseAddress; - std::string gmtCreate; long type; + std::string gmtCreate; long userId; - std::string bankNo; - std::string operatingLicensePhone; long adjustType; + std::string operatingLicensePhone; + std::string bankNo; std::string registerNo; - long id; std::string userNick; + long id; std::string defaultRemark; long taxpayerType; }; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillRequest.h index 8dea71be8..ae59a829c 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillRequest.h @@ -1,48 +1,42 @@ /* * 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_QUERYMONTHLYBILLREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYBILLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryMonthlyBillRequest : public RpcServiceRequest - { - - public: - QueryMonthlyBillRequest(); - ~QueryMonthlyBillRequest(); - - std::string getBillingCycle()const; - void setBillingCycle(const std::string& billingCycle); - - private: - std::string billingCycle_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYBILLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYBILLREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYBILLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryMonthlyBillRequest : public RpcServiceRequest { +public: + QueryMonthlyBillRequest(); + ~QueryMonthlyBillRequest(); + std::string getBillingCycle() const; + void setBillingCycle(const std::string &billingCycle); + +private: + std::string billingCycle_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYBILLREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillResult.h index e7e16509f..b8a83ea43 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillResult.h @@ -40,10 +40,10 @@ namespace AlibabaCloud float afterTaxAmount; std::string productCode; std::string productType; - float outstandingAmount; float deductedByCashCoupons; - float tax; + float outstandingAmount; std::string paymentCurrency; + float tax; float paymentAmount; float deductedByPrepaidCard; float invoiceDiscount; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionRequest.h index e749554e2..2615a31ea 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionRequest.h @@ -1,66 +1,60 @@ /* * 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_QUERYMONTHLYINSTANCECONSUMPTIONREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYINSTANCECONSUMPTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryMonthlyInstanceConsumptionRequest : public RpcServiceRequest - { - - public: - QueryMonthlyInstanceConsumptionRequest(); - ~QueryMonthlyInstanceConsumptionRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - std::string getBillingCycle()const; - void setBillingCycle(const std::string& billingCycle); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPageNum()const; - void setPageNum(int pageNum); - std::string getProductType()const; - void setProductType(const std::string& productType); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string productCode_; - std::string subscriptionType_; - std::string billingCycle_; - long ownerId_; - int pageNum_; - std::string productType_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYINSTANCECONSUMPTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYINSTANCECONSUMPTIONREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYINSTANCECONSUMPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryMonthlyInstanceConsumptionRequest : public RpcServiceRequest { +public: + QueryMonthlyInstanceConsumptionRequest(); + ~QueryMonthlyInstanceConsumptionRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + std::string getBillingCycle() const; + void setBillingCycle(const std::string &billingCycle); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getProductType() const; + void setProductType(const std::string &productType); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string productCode_; + std::string subscriptionType_; + std::string billingCycle_; + long ownerId_; + int pageNum_; + std::string productType_; + int pageSize_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYINSTANCECONSUMPTIONREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionResult.h index 7f59a0a1e..046d66650 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionResult.h @@ -40,22 +40,22 @@ namespace AlibabaCloud std::string instanceID; std::string productCode; std::string productType; - float tax; std::string paymentCurrency; + float tax; std::string payerAccount; float discountAmount; std::string subscriptionType; float pretaxGrossAmount; - std::string ownerID; float pretaxAmount; + std::string ownerID; std::string currency; std::string region; std::string tag; std::string resourceGroup; float pretaxAmountLocal; }; - int totalCount; std::string billingCycle; + int totalCount; int pageNum; int pageSize; std::vector items; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersRequest.h index b075afa51..139450a71 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersRequest.h @@ -1,75 +1,69 @@ /* * 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_QUERYORDERSREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYORDERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryOrdersRequest : public RpcServiceRequest - { - - public: - QueryOrdersRequest(); - ~QueryOrdersRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - int getPageNum()const; - void setPageNum(int pageNum); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getCreateTimeEnd()const; - void setCreateTimeEnd(const std::string& createTimeEnd); - std::string getProductType()const; - void setProductType(const std::string& productType); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getPaymentStatus()const; - void setPaymentStatus(const std::string& paymentStatus); - std::string getCreateTimeStart()const; - void setCreateTimeStart(const std::string& createTimeStart); - std::string getOrderType()const; - void setOrderType(const std::string& orderType); - - private: - std::string productCode_; - std::string subscriptionType_; - int pageNum_; - long ownerId_; - std::string createTimeEnd_; - std::string productType_; - int pageSize_; - std::string paymentStatus_; - std::string createTimeStart_; - std::string orderType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYORDERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYORDERSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYORDERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryOrdersRequest : public RpcServiceRequest { +public: + QueryOrdersRequest(); + ~QueryOrdersRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + int getPageNum() const; + void setPageNum(int pageNum); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCreateTimeEnd() const; + void setCreateTimeEnd(const std::string &createTimeEnd); + std::string getProductType() const; + void setProductType(const std::string &productType); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getPaymentStatus() const; + void setPaymentStatus(const std::string &paymentStatus); + std::string getCreateTimeStart() const; + void setCreateTimeStart(const std::string &createTimeStart); + std::string getOrderType() const; + void setOrderType(const std::string &orderType); + +private: + std::string productCode_; + std::string subscriptionType_; + int pageNum_; + long ownerId_; + std::string createTimeEnd_; + std::string productType_; + int pageSize_; + std::string paymentStatus_; + std::string createTimeStart_; + std::string orderType_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYORDERSREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersResult.h index ee3bae286..1bb5b1173 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersResult.h @@ -41,9 +41,9 @@ namespace AlibabaCloud std::string createTime; std::string productType; std::string relatedOrderId; + std::string paymentCurrency; std::string paymentTime; std::string tax; - std::string paymentCurrency; std::string orderId; std::string subscriptionType; std::string pretaxGrossAmount; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPermissionListRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPermissionListRequest.h index 2347c58e6..420c18788 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPermissionListRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPermissionListRequest.h @@ -1,48 +1,42 @@ /* * 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_QUERYPERMISSIONLISTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPERMISSIONLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryPermissionListRequest : public RpcServiceRequest - { - - public: - QueryPermissionListRequest(); - ~QueryPermissionListRequest(); - - long getRelationId()const; - void setRelationId(long relationId); - - private: - long relationId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPERMISSIONLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPERMISSIONLISTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPERMISSIONLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryPermissionListRequest : public RpcServiceRequest { +public: + QueryPermissionListRequest(); + ~QueryPermissionListRequest(); + long getRelationId() const; + void setRelationId(long relationId); + +private: + long relationId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPERMISSIONLISTREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPermissionListResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPermissionListResult.h index bacf63363..1e1d5e1d5 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPermissionListResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPermissionListResult.h @@ -46,8 +46,8 @@ namespace AlibabaCloud std::vector permissionList; std::string state; std::string relationType; - std::string setupTime; std::string startTime; + std::string setupTime; long masterId; }; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPrepaidCardsRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPrepaidCardsRequest.h index b004887e9..f6c1b306a 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPrepaidCardsRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPrepaidCardsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryPrepaidCardsRequest : public RpcServiceRequest - { - - public: - QueryPrepaidCardsRequest(); - ~QueryPrepaidCardsRequest(); - - std::string getExpiryTimeEnd()const; - void setExpiryTimeEnd(const std::string& expiryTimeEnd); - std::string getExpiryTimeStart()const; - void setExpiryTimeStart(const std::string& expiryTimeStart); - bool getEffectiveOrNot()const; - void setEffectiveOrNot(bool effectiveOrNot); - - private: - std::string expiryTimeEnd_; - std::string expiryTimeStart_; - bool effectiveOrNot_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryPrepaidCardsRequest : public RpcServiceRequest { +public: + QueryPrepaidCardsRequest(); + ~QueryPrepaidCardsRequest(); + std::string getExpiryTimeEnd() const; + void setExpiryTimeEnd(const std::string &expiryTimeEnd); + std::string getExpiryTimeStart() const; + void setExpiryTimeStart(const std::string &expiryTimeStart); + bool getEffectiveOrNot() const; + void setEffectiveOrNot(bool effectiveOrNot); + +private: + std::string expiryTimeEnd_; + std::string expiryTimeStart_; + bool effectiveOrNot_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryProductListRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryProductListRequest.h index a3ec12fea..0dd4f911f 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryProductListRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryProductListRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRODUCTLISTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRODUCTLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryProductListRequest : public RpcServiceRequest - { - - public: - QueryProductListRequest(); - ~QueryProductListRequest(); - - int getPageNum()const; - void setPageNum(int pageNum); - bool getQueryTotalCount()const; - void setQueryTotalCount(bool queryTotalCount); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNum_; - bool queryTotalCount_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRODUCTLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRODUCTLISTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRODUCTLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryProductListRequest : public RpcServiceRequest { +public: + QueryProductListRequest(); + ~QueryProductListRequest(); + int getPageNum() const; + void setPageNum(int pageNum); + bool getQueryTotalCount() const; + void setQueryTotalCount(bool queryTotalCount); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNum_; + bool queryTotalCount_; + int pageSize_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRODUCTLISTREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRIUtilizationDetailRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRIUtilizationDetailRequest.h index 283c87182..bce7b5d0b 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRIUtilizationDetailRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRIUtilizationDetailRequest.h @@ -1,69 +1,63 @@ /* * 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_QUERYRIUTILIZATIONDETAILREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRIUTILIZATIONDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryRIUtilizationDetailRequest : public RpcServiceRequest - { - - public: - QueryRIUtilizationDetailRequest(); - ~QueryRIUtilizationDetailRequest(); - - std::string getDeductedInstanceId()const; - void setDeductedInstanceId(const std::string& deductedInstanceId); - std::string getInstanceSpec()const; - void setInstanceSpec(const std::string& instanceSpec); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getRIInstanceId()const; - void setRIInstanceId(const std::string& rIInstanceId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - int getPageNum()const; - void setPageNum(int pageNum); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getRICommodityCode()const; - void setRICommodityCode(const std::string& rICommodityCode); - - private: - std::string deductedInstanceId_; - std::string instanceSpec_; - std::string endTime_; - std::string rIInstanceId_; - std::string startTime_; - int pageNum_; - int pageSize_; - std::string rICommodityCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRIUTILIZATIONDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRIUTILIZATIONDETAILREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRIUTILIZATIONDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryRIUtilizationDetailRequest : public RpcServiceRequest { +public: + QueryRIUtilizationDetailRequest(); + ~QueryRIUtilizationDetailRequest(); + std::string getDeductedInstanceId() const; + void setDeductedInstanceId(const std::string &deductedInstanceId); + std::string getInstanceSpec() const; + void setInstanceSpec(const std::string &instanceSpec); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getRIInstanceId() const; + void setRIInstanceId(const std::string &rIInstanceId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNum() const; + void setPageNum(int pageNum); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getRICommodityCode() const; + void setRICommodityCode(const std::string &rICommodityCode); + +private: + std::string deductedInstanceId_; + std::string instanceSpec_; + std::string endTime_; + std::string rIInstanceId_; + std::string startTime_; + int pageNum_; + int pageSize_; + std::string rICommodityCode_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRIUTILIZATIONDETAILREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRIUtilizationDetailResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRIUtilizationDetailResult.h index c49dbdc2d..b66a6af35 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRIUtilizationDetailResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRIUtilizationDetailResult.h @@ -43,8 +43,8 @@ namespace AlibabaCloud std::string deductedProductDetail; std::string deductedCommodityCode; std::string deductedInstanceId; - std::string deductHours; float deductQuantity; + std::string deductHours; }; long totalCount; long pageNum; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemRequest.h index 10fed890a..04cfed8aa 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemRequest.h @@ -1,60 +1,54 @@ /* * 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_QUERYREDEEMREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYREDEEMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryRedeemRequest : public RpcServiceRequest - { - - public: - QueryRedeemRequest(); - ~QueryRedeemRequest(); - - std::string getExpiryTimeEnd()const; - void setExpiryTimeEnd(const std::string& expiryTimeEnd); - std::string getExpiryTimeStart()const; - void setExpiryTimeStart(const std::string& expiryTimeStart); - int getPageNum()const; - void setPageNum(int pageNum); - bool getEffectiveOrNot()const; - void setEffectiveOrNot(bool effectiveOrNot); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string expiryTimeEnd_; - std::string expiryTimeStart_; - int pageNum_; - bool effectiveOrNot_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYREDEEMREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYREDEEMREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYREDEEMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryRedeemRequest : public RpcServiceRequest { +public: + QueryRedeemRequest(); + ~QueryRedeemRequest(); + std::string getExpiryTimeEnd() const; + void setExpiryTimeEnd(const std::string &expiryTimeEnd); + std::string getExpiryTimeStart() const; + void setExpiryTimeStart(const std::string &expiryTimeStart); + int getPageNum() const; + void setPageNum(int pageNum); + bool getEffectiveOrNot() const; + void setEffectiveOrNot(bool effectiveOrNot); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string expiryTimeEnd_; + std::string expiryTimeStart_; + int pageNum_; + bool effectiveOrNot_; + int pageSize_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYREDEEMREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemResult.h index 5d2c7f580..3030ff51b 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemResult.h @@ -42,10 +42,10 @@ namespace AlibabaCloud std::string nominalValue; std::string expiryTime; std::string specification; - std::string balance; std::string applicableProducts; - std::string redeemId; + std::string balance; std::string grantedTime; + std::string redeemId; }; long totalCount; long pageNum; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRelationListRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRelationListRequest.h index 2f18de61c..6abd240cc 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRelationListRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRelationListRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRELATIONLISTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRELATIONLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryRelationListRequest : public RpcServiceRequest - { - - public: - QueryRelationListRequest(); - ~QueryRelationListRequest(); - - std::vector getStatusList()const; - void setStatusList(const std::vector& statusList); - int getPageNum()const; - void setPageNum(int pageNum); - long getUserId()const; - void setUserId(long userId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::vector statusList_; - int pageNum_; - long userId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRELATIONLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRELATIONLISTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRELATIONLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryRelationListRequest : public RpcServiceRequest { +public: + QueryRelationListRequest(); + ~QueryRelationListRequest(); + std::vector getStatusList() const; + void setStatusList(const std::vector &statusList); + int getPageNum() const; + void setPageNum(int pageNum); + long getUserId() const; + void setUserId(long userId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::vector statusList_; + int pageNum_; + long userId_; + int pageSize_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRELATIONLISTREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRelationListResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRelationListResult.h index 8c12ce974..a366262ab 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRelationListResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRelationListResult.h @@ -40,11 +40,11 @@ namespace AlibabaCloud std::string endTime; std::string state; std::string relationType; - long relationId; - std::string setupTime; std::string startTime; - std::string accountType; + std::string setupTime; + long relationId; std::string accountNickName; + std::string accountType; std::string accountName; }; int totalCount; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaRequest.h index 7083aff0e..be13672ad 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaRequest.h @@ -1,51 +1,45 @@ /* * 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_QUERYRESELLERAVAILABLEQUOTAREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResellerAvailableQuotaRequest : public RpcServiceRequest - { - - public: - QueryResellerAvailableQuotaRequest(); - ~QueryResellerAvailableQuotaRequest(); - - std::string getItemCodes()const; - void setItemCodes(const std::string& itemCodes); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string itemCodes_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTAREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResellerAvailableQuotaRequest : public RpcServiceRequest { +public: + QueryResellerAvailableQuotaRequest(); + ~QueryResellerAvailableQuotaRequest(); + std::string getItemCodes() const; + void setItemCodes(const std::string &itemCodes); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string itemCodes_; + long ownerId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTAREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h index 6a7995d39..23957b186 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h @@ -1,63 +1,60 @@ /* * 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_QUERYRESOURCEPACKAGEINSTANCESREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESOURCEPACKAGEINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResourcePackageInstancesRequest : public RpcServiceRequest - { - - public: - QueryResourcePackageInstancesRequest(); - ~QueryResourcePackageInstancesRequest(); - - std::string getExpiryTimeEnd()const; - void setExpiryTimeEnd(const std::string& expiryTimeEnd); - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getExpiryTimeStart()const; - void setExpiryTimeStart(const std::string& expiryTimeStart); - int getPageNum()const; - void setPageNum(int pageNum); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string expiryTimeEnd_; - std::string productCode_; - long ownerId_; - std::string expiryTimeStart_; - int pageNum_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESOURCEPACKAGEINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESOURCEPACKAGEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESOURCEPACKAGEINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResourcePackageInstancesRequest : public RpcServiceRequest { +public: + QueryResourcePackageInstancesRequest(); + ~QueryResourcePackageInstancesRequest(); + std::string getExpiryTimeEnd() const; + void setExpiryTimeEnd(const std::string &expiryTimeEnd); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getExpiryTimeStart() const; + void setExpiryTimeStart(const std::string &expiryTimeStart); + int getPageNum() const; + void setPageNum(int pageNum); + bool getIncludePartner() const; + void setIncludePartner(bool includePartner); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string expiryTimeEnd_; + std::string productCode_; + long ownerId_; + std::string expiryTimeStart_; + int pageNum_; + bool includePartner_; + int pageSize_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESOURCEPACKAGEINSTANCESREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h index 992d8cfd9..280dfe82c 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h @@ -43,9 +43,9 @@ namespace AlibabaCloud std::string totalAmount; std::string remark; std::string remainingAmountUnit; - std::string totalAmountUnit; std::string packageType; std::string deductType; + std::string totalAmountUnit; std::string region; std::vector applicableProducts; std::string remainingAmount; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogRequest.h index 86fc02d57..2aab34712 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogRequest.h @@ -1,66 +1,60 @@ /* * 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_QUERYSAVINGSPLANSDEDUCTLOGREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySavingsPlansDeductLogRequest : public RpcServiceRequest - { - - public: - QuerySavingsPlansDeductLogRequest(); - ~QuerySavingsPlansDeductLogRequest(); - - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getLocale()const; - void setLocale(const std::string& locale); - int getPageNum()const; - void setPageNum(int pageNum); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - - private: - std::string endTime_; - std::string startTime_; - std::string locale_; - int pageNum_; - std::string instanceId_; - int pageSize_; - std::string instanceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySavingsPlansDeductLogRequest : public RpcServiceRequest { +public: + QuerySavingsPlansDeductLogRequest(); + ~QuerySavingsPlansDeductLogRequest(); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getLocale() const; + void setLocale(const std::string &locale); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + +private: + std::string endTime_; + std::string startTime_; + std::string locale_; + int pageNum_; + std::string instanceId_; + int pageSize_; + std::string instanceType_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogResult.h index 5e3cc6b42..a20b6c8b2 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogResult.h @@ -44,8 +44,8 @@ namespace AlibabaCloud long userId; std::string startTime; std::string deductRate; - std::string deductInstanceId; std::string discountRate; + std::string deductInstanceId; std::string savingsType; }; int totalCount; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceRequest.h index d6c026ccd..76e0666e5 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceRequest.h @@ -1,72 +1,64 @@ /* * 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_QUERYSAVINGSPLANSINSTANCEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySavingsPlansInstanceRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - QuerySavingsPlansInstanceRequest(); - ~QuerySavingsPlansInstanceRequest(); - - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getLocale()const; - void setLocale(const std::string& locale); - int getPageNum()const; - void setPageNum(int pageNum); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getTag()const; - void setTag(const std::vector& tag); - - private: - std::string endTime_; - std::string startTime_; - std::string locale_; - int pageNum_; - std::string instanceId_; - int pageSize_; - std::vector tag_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySavingsPlansInstanceRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + QuerySavingsPlansInstanceRequest(); + ~QuerySavingsPlansInstanceRequest(); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getLocale() const; + void setLocale(const std::string &locale); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::string endTime_; + std::string startTime_; + std::string locale_; + int pageNum_; + std::string instanceId_; + int pageSize_; + std::vector tag_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceResult.h index 076318096..31a5f770a 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceResult.h @@ -44,13 +44,18 @@ namespace AlibabaCloud std::string status; std::string allocationStatus; std::string endTime; + long startTimestamp; std::string instanceId; std::string instanceFamily; std::string startTime; std::string totalSave; std::string prepayFee; + long endTimestamp; + std::string lastBillTotalUsage; std::string payMode; + std::string cycle; std::string utilization; + std::string lastBillUtilization; std::string currency; std::string poolValue; std::string region; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettleBillRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettleBillRequest.h index 4bac88f9c..22db2e664 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettleBillRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettleBillRequest.h @@ -1,81 +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_BSSOPENAPI_MODEL_QUERYSETTLEBILLREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEBILLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySettleBillRequest : public RpcServiceRequest - { - - public: - QuerySettleBillRequest(); - ~QuerySettleBillRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - bool getIsHideZeroCharge()const; - void setIsHideZeroCharge(bool isHideZeroCharge); - bool getIsDisplayLocalCurrency()const; - void setIsDisplayLocalCurrency(bool isDisplayLocalCurrency); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - std::string getBillingCycle()const; - void setBillingCycle(const std::string& billingCycle); - std::string getType()const; - void setType(const std::string& type); - long getOwnerId()const; - void setOwnerId(long ownerId); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getProductType()const; - void setProductType(const std::string& productType); - std::string getRecordID()const; - void setRecordID(const std::string& recordID); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - std::string productCode_; - bool isHideZeroCharge_; - bool isDisplayLocalCurrency_; - std::string subscriptionType_; - std::string billingCycle_; - std::string type_; - long ownerId_; - long billOwnerId_; - std::string productType_; - std::string recordID_; - std::string nextToken_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEBILLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEBILLREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEBILLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySettleBillRequest : public RpcServiceRequest { +public: + QuerySettleBillRequest(); + ~QuerySettleBillRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + bool getIsHideZeroCharge() const; + void setIsHideZeroCharge(bool isHideZeroCharge); + bool getIsDisplayLocalCurrency() const; + void setIsDisplayLocalCurrency(bool isDisplayLocalCurrency); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + std::string getBillingCycle() const; + void setBillingCycle(const std::string &billingCycle); + std::string getType() const; + void setType(const std::string &type); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getProductType() const; + void setProductType(const std::string &productType); + std::string getRecordID() const; + void setRecordID(const std::string &recordID); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string productCode_; + bool isHideZeroCharge_; + bool isDisplayLocalCurrency_; + std::string subscriptionType_; + std::string billingCycle_; + std::string type_; + long ownerId_; + long billOwnerId_; + std::string productType_; + std::string recordID_; + std::string nextToken_; + int maxResults_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEBILLREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettleBillResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettleBillResult.h index a75bae332..6b1f0988b 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettleBillResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettleBillResult.h @@ -54,6 +54,7 @@ namespace AlibabaCloud std::string currency; std::string commodityCode; std::string usageStartTime; + float adjustAmount; std::string status; std::string paymentTransactionID; float deductedByCoupons; @@ -64,10 +65,11 @@ namespace AlibabaCloud float outstandingAmount; std::string bizType; std::string pipCode; - std::string ownerID; float pretaxAmount; + std::string ownerID; std::string billAccountName; std::string recordID; + float cashAmount; float pretaxAmountLocal; }; std::string billingCycle; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillRequest.h index e37c23e71..c2d7b81fe 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillRequest.h @@ -1,78 +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_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySettlementBillRequest : public RpcServiceRequest - { - - public: - QuerySettlementBillRequest(); - ~QuerySettlementBillRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - bool getIsHideZeroCharge()const; - void setIsHideZeroCharge(bool isHideZeroCharge); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getBillingCycle()const; - void setBillingCycle(const std::string& billingCycle); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPageNum()const; - void setPageNum(int pageNum); - std::string getType()const; - void setType(const std::string& type); - std::string getProductType()const; - void setProductType(const std::string& productType); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string productCode_; - bool isHideZeroCharge_; - std::string subscriptionType_; - std::string endTime_; - std::string billingCycle_; - std::string startTime_; - long ownerId_; - int pageNum_; - std::string type_; - std::string productType_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySettlementBillRequest : public RpcServiceRequest { +public: + QuerySettlementBillRequest(); + ~QuerySettlementBillRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + bool getIsHideZeroCharge() const; + void setIsHideZeroCharge(bool isHideZeroCharge); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getBillingCycle() const; + void setBillingCycle(const std::string &billingCycle); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getType() const; + void setType(const std::string &type); + std::string getProductType() const; + void setProductType(const std::string &productType); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string productCode_; + bool isHideZeroCharge_; + std::string subscriptionType_; + std::string endTime_; + std::string billingCycle_; + std::string startTime_; + long ownerId_; + int pageNum_; + std::string type_; + std::string productType_; + int pageSize_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillResult.h index 4c1b70f12..ebb0cc98d 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillResult.h @@ -39,15 +39,15 @@ namespace AlibabaCloud float afterTaxAmount; std::string config; std::string originalOrderID; - float accountDiscount; std::string clearedTime; + float accountDiscount; float deductedByCashCoupons; std::string paymentTime; float tax; std::string paymentCurrency; std::string payerAccount; - std::string orderID; std::string promotion; + std::string orderID; float paymentAmount; float deductedByPrepaidCard; std::string usageEndTime; @@ -69,19 +69,19 @@ namespace AlibabaCloud std::string productCode; std::string createTime; std::string productType; - std::string quantity; float chargeDiscount; float outstandingAmount; + std::string quantity; std::string invoiceNo; - std::string ownerID; float pretaxAmount; + std::string ownerID; std::string region; - std::string recordID; std::string seller; + std::string recordID; float pretaxAmountLocal; }; - int totalCount; std::string billingCycle; + int totalCount; int pageNum; int pageSize; std::vector items; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySplitItemBillRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySplitItemBillRequest.h index 2e2b4f54f..e7871d0f5 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySplitItemBillRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySplitItemBillRequest.h @@ -1,69 +1,63 @@ /* * 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_QUERYSPLITITEMBILLREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSPLITITEMBILLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySplitItemBillRequest : public RpcServiceRequest - { - - public: - QuerySplitItemBillRequest(); - ~QuerySplitItemBillRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - std::string getBillingCycle()const; - void setBillingCycle(const std::string& billingCycle); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPageNum()const; - void setPageNum(int pageNum); - long getBillOwnerId()const; - void setBillOwnerId(long billOwnerId); - std::string getProductType()const; - void setProductType(const std::string& productType); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string productCode_; - std::string subscriptionType_; - std::string billingCycle_; - long ownerId_; - int pageNum_; - long billOwnerId_; - std::string productType_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSPLITITEMBILLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSPLITITEMBILLREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSPLITITEMBILLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySplitItemBillRequest : public RpcServiceRequest { +public: + QuerySplitItemBillRequest(); + ~QuerySplitItemBillRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + std::string getBillingCycle() const; + void setBillingCycle(const std::string &billingCycle); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPageNum() const; + void setPageNum(int pageNum); + long getBillOwnerId() const; + void setBillOwnerId(long billOwnerId); + std::string getProductType() const; + void setProductType(const std::string &productType); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string productCode_; + std::string subscriptionType_; + std::string billingCycle_; + long ownerId_; + int pageNum_; + long billOwnerId_; + std::string productType_; + int pageSize_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSPLITITEMBILLREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySplitItemBillResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySplitItemBillResult.h index 0f14abb87..6d6341020 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySplitItemBillResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySplitItemBillResult.h @@ -41,10 +41,10 @@ namespace AlibabaCloud std::string instanceID; std::string splitCommodityCode; float deductedByCashCoupons; - std::string listPriceUnit; std::string billingDate; - std::string listPrice; + std::string listPriceUnit; float paymentAmount; + std::string listPrice; float deductedByPrepaidCard; float invoiceDiscount; std::string splitItemName; @@ -57,10 +57,11 @@ namespace AlibabaCloud std::string commodityCode; std::string costUnit; std::string resourceGroup; + float adjustAmount; std::string billingType; std::string splitAccountName; - std::string usage; float deductedByCoupons; + std::string usage; std::string splitAccountID; std::string productDetail; std::string productCode; @@ -69,19 +70,20 @@ namespace AlibabaCloud float outstandingAmount; std::string billingItem; std::string nickName; - std::string intranetIP; std::string pipCode; + std::string intranetIP; std::string servicePeriodUnit; std::string servicePeriod; std::string splitItemID; std::string deductedByResourcePackage; std::string splitBillingCycle; std::string usageUnit; - std::string ownerID; - float pretaxAmount; std::string internetIP; + float pretaxAmount; + std::string ownerID; std::string region; std::string tag; + float cashAmount; }; std::string billingCycle; int totalCount; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryUserOmsDataRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryUserOmsDataRequest.h index aa5b2f7ce..745e1d99c 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryUserOmsDataRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryUserOmsDataRequest.h @@ -1,66 +1,60 @@ /* * 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_QUERYUSEROMSDATAREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSEROMSDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryUserOmsDataRequest : public RpcServiceRequest - { - - public: - QueryUserOmsDataRequest(); - ~QueryUserOmsDataRequest(); - - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDataType()const; - void setDataType(const std::string& dataType); - std::string getMarker()const; - void setMarker(const std::string& marker); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getTable()const; - void setTable(const std::string& table); - - private: - std::string endTime_; - std::string startTime_; - long ownerId_; - std::string dataType_; - std::string marker_; - int pageSize_; - std::string table_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSEROMSDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSEROMSDATAREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSEROMSDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryUserOmsDataRequest : public RpcServiceRequest { +public: + QueryUserOmsDataRequest(); + ~QueryUserOmsDataRequest(); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDataType() const; + void setDataType(const std::string &dataType); + std::string getMarker() const; + void setMarker(const std::string &marker); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getTable() const; + void setTable(const std::string &table); + +private: + std::string endTime_; + std::string startTime_; + long ownerId_; + std::string dataType_; + std::string marker_; + int pageSize_; + std::string table_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSEROMSDATAREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/RefundInstanceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/RefundInstanceRequest.h new file mode 100644 index 000000000..f820ed231 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/RefundInstanceRequest.h @@ -0,0 +1,54 @@ +/* + * 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_REFUNDINSTANCEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_REFUNDINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT RefundInstanceRequest : public RpcServiceRequest { +public: + RefundInstanceRequest(); + ~RefundInstanceRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getImmediatelyRelease() const; + void setImmediatelyRelease(const std::string &immediatelyRelease); + std::string getProductType() const; + void setProductType(const std::string &productType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string productCode_; + std::string clientToken_; + std::string immediatelyRelease_; + std::string productType_; + std::string instanceId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_REFUNDINSTANCEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/RefundInstanceResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/RefundInstanceResult.h new file mode 100644 index 000000000..8675d6619 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/RefundInstanceResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_REFUNDINSTANCERESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_REFUNDINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT RefundInstanceResult : public ServiceResult + { + public: + struct Data + { + std::string hostId; + long orderId; + }; + + + RefundInstanceResult(); + explicit RefundInstanceResult(const std::string &payload); + ~RefundInstanceResult(); + 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_REFUNDINSTANCERESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/RelieveAccountRelationRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/RelieveAccountRelationRequest.h index 7ccc4ad4f..7b00f979f 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/RelieveAccountRelationRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/RelieveAccountRelationRequest.h @@ -1,57 +1,54 @@ /* * 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_RELIEVEACCOUNTRELATIONREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_RELIEVEACCOUNTRELATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT RelieveAccountRelationRequest : public RpcServiceRequest - { - - public: - RelieveAccountRelationRequest(); - ~RelieveAccountRelationRequest(); - - std::string getRelationType()const; - void setRelationType(const std::string& relationType); - long getParentUserId()const; - void setParentUserId(long parentUserId); - long getChildUserId()const; - void setChildUserId(long childUserId); - std::string getRequestId()const; - void setRequestId(const std::string& requestId); - - private: - std::string relationType_; - long parentUserId_; - long childUserId_; - std::string requestId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_RELIEVEACCOUNTRELATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_RELIEVEACCOUNTRELATIONREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_RELIEVEACCOUNTRELATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT RelieveAccountRelationRequest : public RpcServiceRequest { +public: + RelieveAccountRelationRequest(); + ~RelieveAccountRelationRequest(); + std::string getRelationType() const; + void setRelationType(const std::string &relationType); + long getParentUserId() const; + void setParentUserId(long parentUserId); + long getChildUserId() const; + void setChildUserId(long childUserId); + std::string getRequestId() const; + void setRequestId(const std::string &requestId); + long getRelationId() const; + void setRelationId(long relationId); + +private: + std::string relationType_; + long parentUserId_; + long childUserId_; + std::string requestId_; + long relationId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_RELIEVEACCOUNTRELATIONREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/RenewInstanceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/RenewInstanceRequest.h index ac7f06869..669f647c2 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/RenewInstanceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/RenewInstanceRequest.h @@ -1,63 +1,57 @@ /* * 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_RENEWINSTANCEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT RenewInstanceRequest : public RpcServiceRequest - { - - public: - RenewInstanceRequest(); - ~RenewInstanceRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getProductType()const; - void setProductType(const std::string& productType); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getRenewPeriod()const; - void setRenewPeriod(int renewPeriod); - - private: - std::string productCode_; - std::string clientToken_; - long ownerId_; - std::string productType_; - std::string instanceId_; - int renewPeriod_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWINSTANCEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT RenewInstanceRequest : public RpcServiceRequest { +public: + RenewInstanceRequest(); + ~RenewInstanceRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getProductType() const; + void setProductType(const std::string &productType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getRenewPeriod() const; + void setRenewPeriod(int renewPeriod); + +private: + std::string productCode_; + std::string clientToken_; + long ownerId_; + std::string productType_; + std::string instanceId_; + int renewPeriod_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWINSTANCEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/RenewResourcePackageRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/RenewResourcePackageRequest.h index 0096592ad..2d4701e7d 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/RenewResourcePackageRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/RenewResourcePackageRequest.h @@ -1,60 +1,54 @@ /* * 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_RENEWRESOURCEPACKAGEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWRESOURCEPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT RenewResourcePackageRequest : public RpcServiceRequest - { - - public: - RenewResourcePackageRequest(); - ~RenewResourcePackageRequest(); - - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getEffectiveDate()const; - void setEffectiveDate(const std::string& effectiveDate); - int getDuration()const; - void setDuration(int duration); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getPricingCycle()const; - void setPricingCycle(const std::string& pricingCycle); - - private: - long ownerId_; - std::string effectiveDate_; - int duration_; - std::string instanceId_; - std::string pricingCycle_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWRESOURCEPACKAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWRESOURCEPACKAGEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWRESOURCEPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT RenewResourcePackageRequest : public RpcServiceRequest { +public: + RenewResourcePackageRequest(); + ~RenewResourcePackageRequest(); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getEffectiveDate() const; + void setEffectiveDate(const std::string &effectiveDate); + int getDuration() const; + void setDuration(int duration); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + +private: + long ownerId_; + std::string effectiveDate_; + int duration_; + std::string instanceId_; + std::string pricingCycle_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWRESOURCEPACKAGEREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SaveUserCreditRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SaveUserCreditRequest.h index 1696aa51f..2820adc9a 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SaveUserCreditRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SaveUserCreditRequest.h @@ -1,69 +1,63 @@ /* * 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_SAVEUSERCREDITREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SaveUserCreditRequest : public RpcServiceRequest - { - - public: - SaveUserCreditRequest(); - ~SaveUserCreditRequest(); - - bool getAvoidExpiration()const; - void setAvoidExpiration(bool avoidExpiration); - std::string getDescription()const; - void setDescription(const std::string& description); - bool getAvoidPrepaidNotification()const; - void setAvoidPrepaidNotification(bool avoidPrepaidNotification); - bool getAvoidPrepaidExpiration()const; - void setAvoidPrepaidExpiration(bool avoidPrepaidExpiration); - bool getAvoidNotification()const; - void setAvoidNotification(bool avoidNotification); - std::string get_Operator()const; - void set_Operator(const std::string& _operator); - std::string getCreditValue()const; - void setCreditValue(const std::string& creditValue); - std::string getCreditType()const; - void setCreditType(const std::string& creditType); - - private: - bool avoidExpiration_; - std::string description_; - bool avoidPrepaidNotification_; - bool avoidPrepaidExpiration_; - bool avoidNotification_; - std::string _operator_; - std::string creditValue_; - std::string creditType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT SaveUserCreditRequest : public RpcServiceRequest { +public: + SaveUserCreditRequest(); + ~SaveUserCreditRequest(); + bool getAvoidExpiration() const; + void setAvoidExpiration(bool avoidExpiration); + std::string getDescription() const; + void setDescription(const std::string &description); + bool getAvoidPrepaidNotification() const; + void setAvoidPrepaidNotification(bool avoidPrepaidNotification); + bool getAvoidPrepaidExpiration() const; + void setAvoidPrepaidExpiration(bool avoidPrepaidExpiration); + bool getAvoidNotification() const; + void setAvoidNotification(bool avoidNotification); + std::string get_Operator() const; + void set_Operator(const std::string &_operator); + std::string getCreditValue() const; + void setCreditValue(const std::string &creditValue); + std::string getCreditType() const; + void setCreditType(const std::string &creditType); + +private: + bool avoidExpiration_; + std::string description_; + bool avoidPrepaidNotification_; + bool avoidPrepaidExpiration_; + bool avoidNotification_; + std::string _operator_; + std::string creditValue_; + std::string creditType_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetAllExpirationDayRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetAllExpirationDayRequest.h index 34c9b4bbf..aecfe34de 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SetAllExpirationDayRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetAllExpirationDayRequest.h @@ -1,51 +1,45 @@ /* * 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_SETALLEXPIRATIONDAYREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETALLEXPIRATIONDAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SetAllExpirationDayRequest : public RpcServiceRequest - { - - public: - SetAllExpirationDayRequest(); - ~SetAllExpirationDayRequest(); - - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getUnifyExpireDay()const; - void setUnifyExpireDay(const std::string& unifyExpireDay); - - private: - long ownerId_; - std::string unifyExpireDay_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETALLEXPIRATIONDAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETALLEXPIRATIONDAYREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETALLEXPIRATIONDAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT SetAllExpirationDayRequest : public RpcServiceRequest { +public: + SetAllExpirationDayRequest(); + ~SetAllExpirationDayRequest(); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getUnifyExpireDay() const; + void setUnifyExpireDay(const std::string &unifyExpireDay); + +private: + long ownerId_; + std::string unifyExpireDay_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETALLEXPIRATIONDAYREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetCreditLabelActionRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetCreditLabelActionRequest.h index feb68ea34..76e9bb3cf 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SetCreditLabelActionRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetCreditLabelActionRequest.h @@ -1,96 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SetCreditLabelActionRequest : public RpcServiceRequest - { - - public: - SetCreditLabelActionRequest(); - ~SetCreditLabelActionRequest(); - - std::string getActionType()const; - void setActionType(const std::string& actionType); - std::string getIsNeedSaveNotifyRule()const; - void setIsNeedSaveNotifyRule(const std::string& isNeedSaveNotifyRule); - std::string getIsNeedAdjustCreditAccount()const; - void setIsNeedAdjustCreditAccount(const std::string& isNeedAdjustCreditAccount); - bool getNewCreateMode()const; - void setNewCreateMode(bool newCreateMode); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getSource()const; - void setSource(const std::string& source); - std::string getCurrencyCode()const; - void setCurrencyCode(const std::string& currencyCode); - std::string getDailyCycle()const; - void setDailyCycle(const std::string& dailyCycle); - std::string get_Operator()const; - void set_Operator(const std::string& _operator); - std::string getUid()const; - void setUid(const std::string& uid); - std::string getSiteCode()const; - void setSiteCode(const std::string& siteCode); - std::string getClearCycle()const; - void setClearCycle(const std::string& clearCycle); - bool getNeedNotice()const; - void setNeedNotice(bool needNotice); - std::string getRequestId()const; - void setRequestId(const std::string& requestId); - std::string getIsNeedSetCreditAmount()const; - void setIsNeedSetCreditAmount(const std::string& isNeedSetCreditAmount); - std::string getCreditAmount()const; - void setCreditAmount(const std::string& creditAmount); - std::string getIsNeedAddSettleLabel()const; - void setIsNeedAddSettleLabel(const std::string& isNeedAddSettleLabel); - - private: - std::string actionType_; - std::string isNeedSaveNotifyRule_; - std::string isNeedAdjustCreditAccount_; - bool newCreateMode_; - std::string description_; - std::string source_; - std::string currencyCode_; - std::string dailyCycle_; - std::string _operator_; - std::string uid_; - std::string siteCode_; - std::string clearCycle_; - bool needNotice_; - std::string requestId_; - std::string isNeedSetCreditAmount_; - std::string creditAmount_; - std::string isNeedAddSettleLabel_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT SetCreditLabelActionRequest : public RpcServiceRequest { +public: + SetCreditLabelActionRequest(); + ~SetCreditLabelActionRequest(); + std::string getActionType() const; + void setActionType(const std::string &actionType); + std::string getIsNeedSaveNotifyRule() const; + void setIsNeedSaveNotifyRule(const std::string &isNeedSaveNotifyRule); + std::string getIsNeedAdjustCreditAccount() const; + void setIsNeedAdjustCreditAccount(const std::string &isNeedAdjustCreditAccount); + bool getNewCreateMode() const; + void setNewCreateMode(bool newCreateMode); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSource() const; + void setSource(const std::string &source); + std::string getCurrencyCode() const; + void setCurrencyCode(const std::string ¤cyCode); + std::string getDailyCycle() const; + void setDailyCycle(const std::string &dailyCycle); + std::string get_Operator() const; + void set_Operator(const std::string &_operator); + std::string getUid() const; + void setUid(const std::string &uid); + std::string getSiteCode() const; + void setSiteCode(const std::string &siteCode); + std::string getClearCycle() const; + void setClearCycle(const std::string &clearCycle); + bool getNeedNotice() const; + void setNeedNotice(bool needNotice); + std::string getRequestId() const; + void setRequestId(const std::string &requestId); + std::string getIsNeedSetCreditAmount() const; + void setIsNeedSetCreditAmount(const std::string &isNeedSetCreditAmount); + std::string getCreditAmount() const; + void setCreditAmount(const std::string &creditAmount); + std::string getIsNeedAddSettleLabel() const; + void setIsNeedAddSettleLabel(const std::string &isNeedAddSettleLabel); + +private: + std::string actionType_; + std::string isNeedSaveNotifyRule_; + std::string isNeedAdjustCreditAccount_; + bool newCreateMode_; + std::string description_; + std::string source_; + std::string currencyCode_; + std::string dailyCycle_; + std::string _operator_; + std::string uid_; + std::string siteCode_; + std::string clearCycle_; + bool needNotice_; + std::string requestId_; + std::string isNeedSetCreditAmount_; + std::string creditAmount_; + std::string isNeedAddSettleLabel_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetRenewalRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetRenewalRequest.h index e44bfae5e..a84a778e0 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SetRenewalRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetRenewalRequest.h @@ -1,69 +1,63 @@ /* * 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_SETRENEWALREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRENEWALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SetRenewalRequest : public RpcServiceRequest - { - - public: - SetRenewalRequest(); - ~SetRenewalRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getSubscriptionType()const; - void setSubscriptionType(const std::string& subscriptionType); - int getRenewalPeriod()const; - void setRenewalPeriod(int renewalPeriod); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getProductType()const; - void setProductType(const std::string& productType); - std::string getInstanceIDs()const; - void setInstanceIDs(const std::string& instanceIDs); - std::string getRenewalStatus()const; - void setRenewalStatus(const std::string& renewalStatus); - std::string getRenewalPeriodUnit()const; - void setRenewalPeriodUnit(const std::string& renewalPeriodUnit); - - private: - std::string productCode_; - std::string subscriptionType_; - int renewalPeriod_; - long ownerId_; - std::string productType_; - std::string instanceIDs_; - std::string renewalStatus_; - std::string renewalPeriodUnit_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRENEWALREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRENEWALREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRENEWALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT SetRenewalRequest : public RpcServiceRequest { +public: + SetRenewalRequest(); + ~SetRenewalRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getSubscriptionType() const; + void setSubscriptionType(const std::string &subscriptionType); + int getRenewalPeriod() const; + void setRenewalPeriod(int renewalPeriod); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getProductType() const; + void setProductType(const std::string &productType); + std::string getInstanceIDs() const; + void setInstanceIDs(const std::string &instanceIDs); + std::string getRenewalStatus() const; + void setRenewalStatus(const std::string &renewalStatus); + std::string getRenewalPeriodUnit() const; + void setRenewalPeriodUnit(const std::string &renewalPeriodUnit); + +private: + std::string productCode_; + std::string subscriptionType_; + int renewalPeriod_; + long ownerId_; + std::string productType_; + std::string instanceIDs_; + std::string renewalStatus_; + std::string renewalPeriodUnit_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRENEWALREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h index ae37de8fd..de323abd9 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserAlarmThresholdRequest : public RpcServiceRequest - { - - public: - SetResellerUserAlarmThresholdRequest(); - ~SetResellerUserAlarmThresholdRequest(); - - std::string getAlarmType()const; - void setAlarmType(const std::string& alarmType); - std::string getAlarmThresholds()const; - void setAlarmThresholds(const std::string& alarmThresholds); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string alarmType_; - std::string alarmThresholds_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserAlarmThresholdRequest : public RpcServiceRequest { +public: + SetResellerUserAlarmThresholdRequest(); + ~SetResellerUserAlarmThresholdRequest(); + std::string getAlarmType() const; + void setAlarmType(const std::string &alarmType); + std::string getAlarmThresholds() const; + void setAlarmThresholds(const std::string &alarmThresholds); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string alarmType_; + std::string alarmThresholds_; + long ownerId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaRequest.h index 38021b970..5767da708 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTAREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserQuotaRequest : public RpcServiceRequest - { - - public: - SetResellerUserQuotaRequest(); - ~SetResellerUserQuotaRequest(); - - std::string getAmount()const; - void setAmount(const std::string& amount); - std::string getOutBizId()const; - void setOutBizId(const std::string& outBizId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getCurrency()const; - void setCurrency(const std::string& currency); - - private: - std::string amount_; - std::string outBizId_; - long ownerId_; - std::string currency_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTAREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserQuotaRequest : public RpcServiceRequest { +public: + SetResellerUserQuotaRequest(); + ~SetResellerUserQuotaRequest(); + std::string getAmount() const; + void setAmount(const std::string &amount); + std::string getOutBizId() const; + void setOutBizId(const std::string &outBizId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCurrency() const; + void setCurrency(const std::string ¤cy); + +private: + std::string amount_; + std::string outBizId_; + long ownerId_; + std::string currency_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTAREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusRequest.h index 1c464f4bd..51621a8b4 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserStatusRequest : public RpcServiceRequest - { - - public: - SetResellerUserStatusRequest(); - ~SetResellerUserStatusRequest(); - - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getBusinessType()const; - void setBusinessType(const std::string& businessType); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string ownerId_; - std::string businessType_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserStatusRequest : public RpcServiceRequest { +public: + SetResellerUserStatusRequest(); + ~SetResellerUserStatusRequest(); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getBusinessType() const; + void setBusinessType(const std::string &businessType); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string ownerId_; + std::string businessType_; + std::string status_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SubscribeBillToOSSRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SubscribeBillToOSSRequest.h index e84476fe7..2ff133664 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SubscribeBillToOSSRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SubscribeBillToOSSRequest.h @@ -1,60 +1,54 @@ /* * 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_SUBSCRIBEBILLTOOSSREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SubscribeBillToOSSRequest : public RpcServiceRequest - { - - public: - SubscribeBillToOSSRequest(); - ~SubscribeBillToOSSRequest(); - - long getBucketOwnerId()const; - void setBucketOwnerId(long bucketOwnerId); - std::string getSubscribeType()const; - void setSubscribeType(const std::string& subscribeType); - std::string getSubscribeBucket()const; - void setSubscribeBucket(const std::string& subscribeBucket); - std::string getBeginBillingCycle()const; - void setBeginBillingCycle(const std::string& beginBillingCycle); - std::string getMultAccountRelSubscribe()const; - void setMultAccountRelSubscribe(const std::string& multAccountRelSubscribe); - - private: - long bucketOwnerId_; - std::string subscribeType_; - std::string subscribeBucket_; - std::string beginBillingCycle_; - std::string multAccountRelSubscribe_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT SubscribeBillToOSSRequest : public RpcServiceRequest { +public: + SubscribeBillToOSSRequest(); + ~SubscribeBillToOSSRequest(); + long getBucketOwnerId() const; + void setBucketOwnerId(long bucketOwnerId); + std::string getSubscribeType() const; + void setSubscribeType(const std::string &subscribeType); + std::string getSubscribeBucket() const; + void setSubscribeBucket(const std::string &subscribeBucket); + std::string getBeginBillingCycle() const; + void setBeginBillingCycle(const std::string &beginBillingCycle); + std::string getMultAccountRelSubscribe() const; + void setMultAccountRelSubscribe(const std::string &multAccountRelSubscribe); + +private: + long bucketOwnerId_; + std::string subscribeType_; + std::string subscribeBucket_; + std::string beginBillingCycle_; + std::string multAccountRelSubscribe_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/TagResourcesRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/TagResourcesRequest.h index 1014268d7..93e111a95 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/TagResourcesRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/TagResourcesRequest.h @@ -1,60 +1,52 @@ /* * 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_TAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_TAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT TagResourcesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - TagResourcesRequest(); - ~TagResourcesRequest(); - - std::vector getResourceId()const; - void setResourceId(const std::vector& resourceId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - - private: - std::vector resourceId_; - std::vector tag_; - std::string resourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::vector resourceId_; + std::vector tag_; + std::string resourceType_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSRequest.h index 47d5b2e4e..01d3c64d0 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSRequest.h @@ -1,51 +1,45 @@ /* * 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_UNSUBSCRIBEBILLTOOSSREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT UnsubscribeBillToOSSRequest : public RpcServiceRequest - { - - public: - UnsubscribeBillToOSSRequest(); - ~UnsubscribeBillToOSSRequest(); - - std::string getSubscribeType()const; - void setSubscribeType(const std::string& subscribeType); - std::string getMultAccountRelSubscribe()const; - void setMultAccountRelSubscribe(const std::string& multAccountRelSubscribe); - - private: - std::string subscribeType_; - std::string multAccountRelSubscribe_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT UnsubscribeBillToOSSRequest : public RpcServiceRequest { +public: + UnsubscribeBillToOSSRequest(); + ~UnsubscribeBillToOSSRequest(); + std::string getSubscribeType() const; + void setSubscribeType(const std::string &subscribeType); + std::string getMultAccountRelSubscribe() const; + void setMultAccountRelSubscribe(const std::string &multAccountRelSubscribe); + +private: + std::string subscribeType_; + std::string multAccountRelSubscribe_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/UntagResourcesRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/UntagResourcesRequest.h index 5dbd5dd40..7db1a4483 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/UntagResourcesRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/UntagResourcesRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_UNTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_UNTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT UntagResourcesRequest : public RpcServiceRequest - { - - public: - UntagResourcesRequest(); - ~UntagResourcesRequest(); - - bool getAll()const; - void setAll(bool all); - std::vector getResourceId()const; - void setResourceId(const std::vector& resourceId); - std::vector getTagKey()const; - void setTagKey(const std::vector& tagKey); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - - private: - bool all_; - std::vector resourceId_; - std::vector tagKey_; - std::string resourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT UntagResourcesRequest : public RpcServiceRequest { +public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + bool getAll() const; + void setAll(bool all); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + bool all_; + std::vector resourceId_; + std::vector tagKey_; + std::string resourceType_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/UpgradeResourcePackageRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/UpgradeResourcePackageRequest.h index b98022c5b..395ac5574 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/UpgradeResourcePackageRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/UpgradeResourcePackageRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_UPGRADERESOURCEPACKAGEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_UPGRADERESOURCEPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT UpgradeResourcePackageRequest : public RpcServiceRequest - { - - public: - UpgradeResourcePackageRequest(); - ~UpgradeResourcePackageRequest(); - - std::string getSpecification()const; - void setSpecification(const std::string& specification); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getEffectiveDate()const; - void setEffectiveDate(const std::string& effectiveDate); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string specification_; - long ownerId_; - std::string effectiveDate_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_UPGRADERESOURCEPACKAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_UPGRADERESOURCEPACKAGEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_UPGRADERESOURCEPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace BssOpenApi { +namespace Model { +class ALIBABACLOUD_BSSOPENAPI_EXPORT UpgradeResourcePackageRequest : public RpcServiceRequest { +public: + UpgradeResourcePackageRequest(); + ~UpgradeResourcePackageRequest(); + std::string getSpecification() const; + void setSpecification(const std::string &specification); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getEffectiveDate() const; + void setEffectiveDate(const std::string &effectiveDate); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string specification_; + long ownerId_; + std::string effectiveDate_; + std::string instanceId_; +}; +} // namespace Model +} // namespace BssOpenApi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_UPGRADERESOURCEPACKAGEREQUEST_H_ diff --git a/bssopenapi/src/BssOpenApiClient.cc b/bssopenapi/src/BssOpenApiClient.cc index 80d3ad014..7a7a6d444 100644 --- a/bssopenapi/src/BssOpenApiClient.cc +++ b/bssopenapi/src/BssOpenApiClient.cc @@ -483,6 +483,42 @@ BssOpenApiClient::CreateResourcePackageOutcomeCallable BssOpenApiClient::createR return task->get_future(); } +BssOpenApiClient::CreateSavingsPlansInstanceOutcome BssOpenApiClient::createSavingsPlansInstance(const CreateSavingsPlansInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSavingsPlansInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSavingsPlansInstanceOutcome(CreateSavingsPlansInstanceResult(outcome.result())); + else + return CreateSavingsPlansInstanceOutcome(outcome.error()); +} + +void BssOpenApiClient::createSavingsPlansInstanceAsync(const CreateSavingsPlansInstanceRequest& request, const CreateSavingsPlansInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSavingsPlansInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::CreateSavingsPlansInstanceOutcomeCallable BssOpenApiClient::createSavingsPlansInstanceCallable(const CreateSavingsPlansInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSavingsPlansInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + BssOpenApiClient::DeleteCostUnitOutcome BssOpenApiClient::deleteCostUnit(const DeleteCostUnitRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,6 +1023,42 @@ BssOpenApiClient::EnableBillGenerationOutcomeCallable BssOpenApiClient::enableBi return task->get_future(); } +BssOpenApiClient::GetAccountRelationOutcome BssOpenApiClient::getAccountRelation(const GetAccountRelationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAccountRelationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAccountRelationOutcome(GetAccountRelationResult(outcome.result())); + else + return GetAccountRelationOutcome(outcome.error()); +} + +void BssOpenApiClient::getAccountRelationAsync(const GetAccountRelationRequest& request, const GetAccountRelationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAccountRelation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::GetAccountRelationOutcomeCallable BssOpenApiClient::getAccountRelationCallable(const GetAccountRelationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAccountRelation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + BssOpenApiClient::GetCustomerAccountInfoOutcome BssOpenApiClient::getCustomerAccountInfo(const GetCustomerAccountInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,6 +1275,42 @@ BssOpenApiClient::GetSubscriptionPriceOutcomeCallable BssOpenApiClient::getSubsc return task->get_future(); } +BssOpenApiClient::InquiryPriceRefundInstanceOutcome BssOpenApiClient::inquiryPriceRefundInstance(const InquiryPriceRefundInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InquiryPriceRefundInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InquiryPriceRefundInstanceOutcome(InquiryPriceRefundInstanceResult(outcome.result())); + else + return InquiryPriceRefundInstanceOutcome(outcome.error()); +} + +void BssOpenApiClient::inquiryPriceRefundInstanceAsync(const InquiryPriceRefundInstanceRequest& request, const InquiryPriceRefundInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, inquiryPriceRefundInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::InquiryPriceRefundInstanceOutcomeCallable BssOpenApiClient::inquiryPriceRefundInstanceCallable(const InquiryPriceRefundInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->inquiryPriceRefundInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + BssOpenApiClient::ModifyAccountRelationOutcome BssOpenApiClient::modifyAccountRelation(const ModifyAccountRelationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2607,6 +2715,42 @@ BssOpenApiClient::QueryUserOmsDataOutcomeCallable BssOpenApiClient::queryUserOms return task->get_future(); } +BssOpenApiClient::RefundInstanceOutcome BssOpenApiClient::refundInstance(const RefundInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RefundInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RefundInstanceOutcome(RefundInstanceResult(outcome.result())); + else + return RefundInstanceOutcome(outcome.error()); +} + +void BssOpenApiClient::refundInstanceAsync(const RefundInstanceRequest& request, const RefundInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, refundInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::RefundInstanceOutcomeCallable BssOpenApiClient::refundInstanceCallable(const RefundInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->refundInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + BssOpenApiClient::RelieveAccountRelationOutcome BssOpenApiClient::relieveAccountRelation(const RelieveAccountRelationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/bssopenapi/src/model/AddAccountRelationRequest.cc b/bssopenapi/src/model/AddAccountRelationRequest.cc index c1a8a8d7e..2f279ef55 100644 --- a/bssopenapi/src/model/AddAccountRelationRequest.cc +++ b/bssopenapi/src/model/AddAccountRelationRequest.cc @@ -1,110 +1,88 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::AddAccountRelationRequest; - -AddAccountRelationRequest::AddAccountRelationRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "AddAccountRelation") -{ - setMethod(HttpRequest::Method::Post); -} - -AddAccountRelationRequest::~AddAccountRelationRequest() -{} - -std::string AddAccountRelationRequest::getChildNick()const -{ - return childNick_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::AddAccountRelationRequest; + +AddAccountRelationRequest::AddAccountRelationRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "AddAccountRelation") { + setMethod(HttpRequest::Method::Post); } -void AddAccountRelationRequest::setChildNick(const std::string& childNick) -{ - childNick_ = childNick; - setParameter("ChildNick", childNick); +AddAccountRelationRequest::~AddAccountRelationRequest() {} + +std::string AddAccountRelationRequest::getChildNick() const { + return childNick_; } -std::string AddAccountRelationRequest::getRelationType()const -{ - return relationType_; +void AddAccountRelationRequest::setChildNick(const std::string &childNick) { + childNick_ = childNick; + setParameter(std::string("ChildNick"), childNick); } -void AddAccountRelationRequest::setRelationType(const std::string& relationType) -{ - relationType_ = relationType; - setParameter("RelationType", relationType); +std::string AddAccountRelationRequest::getRelationType() const { + return relationType_; } -long AddAccountRelationRequest::getParentUserId()const -{ - return parentUserId_; +void AddAccountRelationRequest::setRelationType(const std::string &relationType) { + relationType_ = relationType; + setParameter(std::string("RelationType"), relationType); } -void AddAccountRelationRequest::setParentUserId(long parentUserId) -{ - parentUserId_ = parentUserId; - setParameter("ParentUserId", std::to_string(parentUserId)); +long AddAccountRelationRequest::getParentUserId() const { + return parentUserId_; } -long AddAccountRelationRequest::getChildUserId()const -{ - return childUserId_; +void AddAccountRelationRequest::setParentUserId(long parentUserId) { + parentUserId_ = parentUserId; + setParameter(std::string("ParentUserId"), std::to_string(parentUserId)); } -void AddAccountRelationRequest::setChildUserId(long childUserId) -{ - childUserId_ = childUserId; - setParameter("ChildUserId", std::to_string(childUserId)); +long AddAccountRelationRequest::getChildUserId() const { + return childUserId_; } -std::string AddAccountRelationRequest::getRequestId()const -{ - return requestId_; +void AddAccountRelationRequest::setChildUserId(long childUserId) { + childUserId_ = childUserId; + setParameter(std::string("ChildUserId"), std::to_string(childUserId)); } -void AddAccountRelationRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setParameter("RequestId", requestId); +std::string AddAccountRelationRequest::getRequestId() const { + return requestId_; } -std::vector AddAccountRelationRequest::getPermissionCodes()const -{ - return permissionCodes_; +void AddAccountRelationRequest::setRequestId(const std::string &requestId) { + requestId_ = requestId; + setParameter(std::string("RequestId"), requestId); } -void AddAccountRelationRequest::setPermissionCodes(const std::vector& permissionCodes) -{ - permissionCodes_ = permissionCodes; - for(int dep1 = 0; dep1!= permissionCodes.size(); dep1++) { - setParameter("PermissionCodes."+ std::to_string(dep1), permissionCodes.at(dep1)); - } +std::vector AddAccountRelationRequest::getPermissionCodes() const { + return permissionCodes_; } -std::vector AddAccountRelationRequest::getRoleCodes()const -{ - return roleCodes_; +void AddAccountRelationRequest::setPermissionCodes(const std::vector &permissionCodes) { + permissionCodes_ = permissionCodes; } -void AddAccountRelationRequest::setRoleCodes(const std::vector& roleCodes) -{ - roleCodes_ = roleCodes; - for(int dep1 = 0; dep1!= roleCodes.size(); dep1++) { - setParameter("RoleCodes."+ std::to_string(dep1), roleCodes.at(dep1)); - } +std::vector AddAccountRelationRequest::getRoleCodes() const { + return roleCodes_; +} + +void AddAccountRelationRequest::setRoleCodes(const std::vector &roleCodes) { + roleCodes_ = roleCodes; } diff --git a/bssopenapi/src/model/AddAccountRelationResult.cc b/bssopenapi/src/model/AddAccountRelationResult.cc index 76c103889..ac4d6850a 100644 --- a/bssopenapi/src/model/AddAccountRelationResult.cc +++ b/bssopenapi/src/model/AddAccountRelationResult.cc @@ -42,12 +42,14 @@ void AddAccountRelationResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["HostId"].isNull()) data_.hostId = dataNode["HostId"].asString(); + if(!dataNode["RelationId"].isNull()) + data_.relationId = std::stol(dataNode["RelationId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/AllocateCostUnitResourceRequest.cc b/bssopenapi/src/model/AllocateCostUnitResourceRequest.cc index 79c8c298a..2faefce66 100644 --- a/bssopenapi/src/model/AllocateCostUnitResourceRequest.cc +++ b/bssopenapi/src/model/AllocateCostUnitResourceRequest.cc @@ -1,91 +1,79 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::AllocateCostUnitResourceRequest; - -AllocateCostUnitResourceRequest::AllocateCostUnitResourceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "AllocateCostUnitResource") -{ - setMethod(HttpRequest::Method::Post); -} - -AllocateCostUnitResourceRequest::~AllocateCostUnitResourceRequest() -{} - -std::vector AllocateCostUnitResourceRequest::getResourceInstanceList()const -{ - return resourceInstanceList_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::AllocateCostUnitResourceRequest; + +AllocateCostUnitResourceRequest::AllocateCostUnitResourceRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "AllocateCostUnitResource") { + setMethod(HttpRequest::Method::Post); } -void AllocateCostUnitResourceRequest::setResourceInstanceList(const std::vector& resourceInstanceList) -{ - resourceInstanceList_ = resourceInstanceList; - for(int dep1 = 0; dep1!= resourceInstanceList.size(); dep1++) { - auto resourceInstanceListObj = resourceInstanceList.at(dep1); - std::string resourceInstanceListObjStr = "ResourceInstanceList." + std::to_string(dep1 + 1); - setParameter(resourceInstanceListObjStr + ".ResourceId", resourceInstanceListObj.resourceId); - setParameter(resourceInstanceListObjStr + ".CommodityCode", resourceInstanceListObj.commodityCode); - setParameter(resourceInstanceListObjStr + ".ApportionCode", resourceInstanceListObj.apportionCode); - setParameter(resourceInstanceListObjStr + ".ResourceUserId", std::to_string(resourceInstanceListObj.resourceUserId)); - } +AllocateCostUnitResourceRequest::~AllocateCostUnitResourceRequest() {} + +std::vector AllocateCostUnitResourceRequest::getResourceInstanceList() const { + return resourceInstanceList_; } -long AllocateCostUnitResourceRequest::getFromUnitId()const -{ - return fromUnitId_; +void AllocateCostUnitResourceRequest::setResourceInstanceList(const std::vector &resourceInstanceList) { + resourceInstanceList_ = resourceInstanceList; + for(int dep1 = 0; dep1 != resourceInstanceList.size(); dep1++) { + auto resourceInstanceListObj = resourceInstanceList.at(dep1); + std::string resourceInstanceListObjStr = std::string("ResourceInstanceList") + "." + std::to_string(dep1 + 1); + setParameter(resourceInstanceListObjStr + ".ResourceId", resourceInstanceListObj.resourceId); + setParameter(resourceInstanceListObjStr + ".CommodityCode", resourceInstanceListObj.commodityCode); + setParameter(resourceInstanceListObjStr + ".ApportionCode", resourceInstanceListObj.apportionCode); + setParameter(resourceInstanceListObjStr + ".ResourceUserId", std::to_string(resourceInstanceListObj.resourceUserId)); + } } -void AllocateCostUnitResourceRequest::setFromUnitId(long fromUnitId) -{ - fromUnitId_ = fromUnitId; - setParameter("FromUnitId", std::to_string(fromUnitId)); +long AllocateCostUnitResourceRequest::getFromUnitId() const { + return fromUnitId_; } -long AllocateCostUnitResourceRequest::getToUnitId()const -{ - return toUnitId_; +void AllocateCostUnitResourceRequest::setFromUnitId(long fromUnitId) { + fromUnitId_ = fromUnitId; + setParameter(std::string("FromUnitId"), std::to_string(fromUnitId)); } -void AllocateCostUnitResourceRequest::setToUnitId(long toUnitId) -{ - toUnitId_ = toUnitId; - setParameter("ToUnitId", std::to_string(toUnitId)); +long AllocateCostUnitResourceRequest::getToUnitId() const { + return toUnitId_; } -long AllocateCostUnitResourceRequest::getFromUnitUserId()const -{ - return fromUnitUserId_; +void AllocateCostUnitResourceRequest::setToUnitId(long toUnitId) { + toUnitId_ = toUnitId; + setParameter(std::string("ToUnitId"), std::to_string(toUnitId)); } -void AllocateCostUnitResourceRequest::setFromUnitUserId(long fromUnitUserId) -{ - fromUnitUserId_ = fromUnitUserId; - setParameter("FromUnitUserId", std::to_string(fromUnitUserId)); +long AllocateCostUnitResourceRequest::getFromUnitUserId() const { + return fromUnitUserId_; } -long AllocateCostUnitResourceRequest::getToUnitUserId()const -{ - return toUnitUserId_; +void AllocateCostUnitResourceRequest::setFromUnitUserId(long fromUnitUserId) { + fromUnitUserId_ = fromUnitUserId; + setParameter(std::string("FromUnitUserId"), std::to_string(fromUnitUserId)); } -void AllocateCostUnitResourceRequest::setToUnitUserId(long toUnitUserId) -{ - toUnitUserId_ = toUnitUserId; - setParameter("ToUnitUserId", std::to_string(toUnitUserId)); +long AllocateCostUnitResourceRequest::getToUnitUserId() const { + return toUnitUserId_; +} + +void AllocateCostUnitResourceRequest::setToUnitUserId(long toUnitUserId) { + toUnitUserId_ = toUnitUserId; + setParameter(std::string("ToUnitUserId"), std::to_string(toUnitUserId)); } diff --git a/bssopenapi/src/model/AllocateCostUnitResourceResult.cc b/bssopenapi/src/model/AllocateCostUnitResourceResult.cc index 9f99ec871..3d81a71fb 100644 --- a/bssopenapi/src/model/AllocateCostUnitResourceResult.cc +++ b/bssopenapi/src/model/AllocateCostUnitResourceResult.cc @@ -40,16 +40,16 @@ void AllocateCostUnitResourceResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["IsSuccess"].isNull()) - data_.isSuccess = dataNode["IsSuccess"].asString() == "true"; if(!dataNode["ToUnitUserId"].isNull()) data_.toUnitUserId = std::stol(dataNode["ToUnitUserId"].asString()); + if(!dataNode["IsSuccess"].isNull()) + data_.isSuccess = dataNode["IsSuccess"].asString() == "true"; if(!dataNode["ToUnitId"].isNull()) data_.toUnitId = std::stol(dataNode["ToUnitId"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].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"; diff --git a/bssopenapi/src/model/ApplyInvoiceRequest.cc b/bssopenapi/src/model/ApplyInvoiceRequest.cc index 1b723aee9..46be794fa 100644 --- a/bssopenapi/src/model/ApplyInvoiceRequest.cc +++ b/bssopenapi/src/model/ApplyInvoiceRequest.cc @@ -1,141 +1,116 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::ApplyInvoiceRequest; - -ApplyInvoiceRequest::ApplyInvoiceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "ApplyInvoice") -{ - setMethod(HttpRequest::Method::Post); -} - -ApplyInvoiceRequest::~ApplyInvoiceRequest() -{} - -int ApplyInvoiceRequest::getInvoicingType()const -{ - return invoicingType_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::ApplyInvoiceRequest; + +ApplyInvoiceRequest::ApplyInvoiceRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "ApplyInvoice") { + setMethod(HttpRequest::Method::Post); } -void ApplyInvoiceRequest::setInvoicingType(int invoicingType) -{ - invoicingType_ = invoicingType; - setParameter("InvoicingType", std::to_string(invoicingType)); +ApplyInvoiceRequest::~ApplyInvoiceRequest() {} + +int ApplyInvoiceRequest::getInvoicingType() const { + return invoicingType_; } -int ApplyInvoiceRequest::getProcessWay()const -{ - return processWay_; +void ApplyInvoiceRequest::setInvoicingType(int invoicingType) { + invoicingType_ = invoicingType; + setParameter(std::string("InvoicingType"), std::to_string(invoicingType)); } -void ApplyInvoiceRequest::setProcessWay(int processWay) -{ - processWay_ = processWay; - setParameter("ProcessWay", std::to_string(processWay)); +int ApplyInvoiceRequest::getProcessWay() const { + return processWay_; } -long ApplyInvoiceRequest::getOwnerId()const -{ - return ownerId_; +void ApplyInvoiceRequest::setProcessWay(int processWay) { + processWay_ = processWay; + setParameter(std::string("ProcessWay"), std::to_string(processWay)); } -void ApplyInvoiceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ApplyInvoiceRequest::getOwnerId() const { + return ownerId_; } -long ApplyInvoiceRequest::getInvoiceAmount()const -{ - return invoiceAmount_; +void ApplyInvoiceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ApplyInvoiceRequest::setInvoiceAmount(long invoiceAmount) -{ - invoiceAmount_ = invoiceAmount; - setParameter("InvoiceAmount", std::to_string(invoiceAmount)); +long ApplyInvoiceRequest::getInvoiceAmount() const { + return invoiceAmount_; } -long ApplyInvoiceRequest::getAddressId()const -{ - return addressId_; +void ApplyInvoiceRequest::setInvoiceAmount(long invoiceAmount) { + invoiceAmount_ = invoiceAmount; + setParameter(std::string("InvoiceAmount"), std::to_string(invoiceAmount)); } -void ApplyInvoiceRequest::setAddressId(long addressId) -{ - addressId_ = addressId; - setParameter("AddressId", std::to_string(addressId)); +long ApplyInvoiceRequest::getAddressId() const { + return addressId_; } -std::string ApplyInvoiceRequest::getApplyUserNick()const -{ - return applyUserNick_; +void ApplyInvoiceRequest::setAddressId(long addressId) { + addressId_ = addressId; + setParameter(std::string("AddressId"), std::to_string(addressId)); } -void ApplyInvoiceRequest::setApplyUserNick(const std::string& applyUserNick) -{ - applyUserNick_ = applyUserNick; - setParameter("ApplyUserNick", applyUserNick); +std::string ApplyInvoiceRequest::getApplyUserNick() const { + return applyUserNick_; } -bool ApplyInvoiceRequest::getInvoiceByAmount()const -{ - return invoiceByAmount_; +void ApplyInvoiceRequest::setApplyUserNick(const std::string &applyUserNick) { + applyUserNick_ = applyUserNick; + setParameter(std::string("ApplyUserNick"), applyUserNick); } -void ApplyInvoiceRequest::setInvoiceByAmount(bool invoiceByAmount) -{ - invoiceByAmount_ = invoiceByAmount; - setParameter("InvoiceByAmount", invoiceByAmount ? "true" : "false"); +bool ApplyInvoiceRequest::getInvoiceByAmount() const { + return invoiceByAmount_; } -long ApplyInvoiceRequest::getCustomerId()const -{ - return customerId_; +void ApplyInvoiceRequest::setInvoiceByAmount(bool invoiceByAmount) { + invoiceByAmount_ = invoiceByAmount; + setParameter(std::string("InvoiceByAmount"), invoiceByAmount ? "true" : "false"); } -void ApplyInvoiceRequest::setCustomerId(long customerId) -{ - customerId_ = customerId; - setParameter("CustomerId", std::to_string(customerId)); +long ApplyInvoiceRequest::getCustomerId() const { + return customerId_; } -std::vector ApplyInvoiceRequest::getSelectedIds()const -{ - return selectedIds_; +void ApplyInvoiceRequest::setCustomerId(long customerId) { + customerId_ = customerId; + setParameter(std::string("CustomerId"), std::to_string(customerId)); } -void ApplyInvoiceRequest::setSelectedIds(const std::vector& selectedIds) -{ - selectedIds_ = selectedIds; - for(int dep1 = 0; dep1!= selectedIds.size(); dep1++) { - setParameter("SelectedIds."+ std::to_string(dep1), std::to_string(selectedIds.at(dep1))); - } +std::vector ApplyInvoiceRequest::getSelectedIds() const { + return selectedIds_; } -std::string ApplyInvoiceRequest::getUserRemark()const -{ - return userRemark_; +void ApplyInvoiceRequest::setSelectedIds(const std::vector &selectedIds) { + selectedIds_ = selectedIds; } -void ApplyInvoiceRequest::setUserRemark(const std::string& userRemark) -{ - userRemark_ = userRemark; - setParameter("UserRemark", userRemark); +std::string ApplyInvoiceRequest::getUserRemark() const { + return userRemark_; +} + +void ApplyInvoiceRequest::setUserRemark(const std::string &userRemark) { + userRemark_ = userRemark; + setParameter(std::string("UserRemark"), userRemark); } diff --git a/bssopenapi/src/model/ApplyInvoiceResult.cc b/bssopenapi/src/model/ApplyInvoiceResult.cc index 50a41d73e..91beb5d64 100644 --- a/bssopenapi/src/model/ApplyInvoiceResult.cc +++ b/bssopenapi/src/model/ApplyInvoiceResult.cc @@ -42,12 +42,12 @@ void ApplyInvoiceResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["InvoiceApplyId"].isNull()) data_.invoiceApplyId = std::stol(dataNode["InvoiceApplyId"].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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/CancelOrderRequest.cc b/bssopenapi/src/model/CancelOrderRequest.cc index bf16b64a3..d610f28d8 100644 --- a/bssopenapi/src/model/CancelOrderRequest.cc +++ b/bssopenapi/src/model/CancelOrderRequest.cc @@ -1,51 +1,45 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::CancelOrderRequest; - -CancelOrderRequest::CancelOrderRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "CancelOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -CancelOrderRequest::~CancelOrderRequest() -{} - -std::string CancelOrderRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::CancelOrderRequest; + +CancelOrderRequest::CancelOrderRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "CancelOrder") { + setMethod(HttpRequest::Method::Post); } -void CancelOrderRequest::setOrderId(const std::string& orderId) -{ - orderId_ = orderId; - setParameter("OrderId", orderId); +CancelOrderRequest::~CancelOrderRequest() {} + +std::string CancelOrderRequest::getOrderId() const { + return orderId_; } -long CancelOrderRequest::getOwnerId()const -{ - return ownerId_; +void CancelOrderRequest::setOrderId(const std::string &orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), orderId); } -void CancelOrderRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CancelOrderRequest::getOwnerId() const { + return ownerId_; +} + +void CancelOrderRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/bssopenapi/src/model/CancelOrderResult.cc b/bssopenapi/src/model/CancelOrderResult.cc index 8dc0f29b2..bc2d6951e 100644 --- a/bssopenapi/src/model/CancelOrderResult.cc +++ b/bssopenapi/src/model/CancelOrderResult.cc @@ -42,12 +42,12 @@ void CancelOrderResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["HostId"].isNull()) data_.hostId = dataNode["HostId"].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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/ChangeResellerConsumeAmountRequest.cc b/bssopenapi/src/model/ChangeResellerConsumeAmountRequest.cc index c592926eb..6eaf1b55f 100644 --- a/bssopenapi/src/model/ChangeResellerConsumeAmountRequest.cc +++ b/bssopenapi/src/model/ChangeResellerConsumeAmountRequest.cc @@ -1,117 +1,99 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::ChangeResellerConsumeAmountRequest; - -ChangeResellerConsumeAmountRequest::ChangeResellerConsumeAmountRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "ChangeResellerConsumeAmount") -{ - setMethod(HttpRequest::Method::Post); -} - -ChangeResellerConsumeAmountRequest::~ChangeResellerConsumeAmountRequest() -{} - -std::string ChangeResellerConsumeAmountRequest::getAmount()const -{ - return amount_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::ChangeResellerConsumeAmountRequest; + +ChangeResellerConsumeAmountRequest::ChangeResellerConsumeAmountRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "ChangeResellerConsumeAmount") { + setMethod(HttpRequest::Method::Post); } -void ChangeResellerConsumeAmountRequest::setAmount(const std::string& amount) -{ - amount_ = amount; - setParameter("Amount", amount); +ChangeResellerConsumeAmountRequest::~ChangeResellerConsumeAmountRequest() {} + +std::string ChangeResellerConsumeAmountRequest::getAmount() const { + return amount_; } -std::string ChangeResellerConsumeAmountRequest::getOutBizId()const -{ - return outBizId_; +void ChangeResellerConsumeAmountRequest::setAmount(const std::string &amount) { + amount_ = amount; + setParameter(std::string("Amount"), amount); } -void ChangeResellerConsumeAmountRequest::setOutBizId(const std::string& outBizId) -{ - outBizId_ = outBizId; - setParameter("OutBizId", outBizId); +std::string ChangeResellerConsumeAmountRequest::getOutBizId() const { + return outBizId_; } -std::string ChangeResellerConsumeAmountRequest::getSource()const -{ - return source_; +void ChangeResellerConsumeAmountRequest::setOutBizId(const std::string &outBizId) { + outBizId_ = outBizId; + setParameter(std::string("OutBizId"), outBizId); } -void ChangeResellerConsumeAmountRequest::setSource(const std::string& source) -{ - source_ = source; - setParameter("Source", source); +std::string ChangeResellerConsumeAmountRequest::getSource() const { + return source_; } -long ChangeResellerConsumeAmountRequest::getOwnerId()const -{ - return ownerId_; +void ChangeResellerConsumeAmountRequest::setSource(const std::string &source) { + source_ = source; + setParameter(std::string("Source"), source); } -void ChangeResellerConsumeAmountRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ChangeResellerConsumeAmountRequest::getOwnerId() const { + return ownerId_; } -std::string ChangeResellerConsumeAmountRequest::getBusinessType()const -{ - return businessType_; +void ChangeResellerConsumeAmountRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ChangeResellerConsumeAmountRequest::setBusinessType(const std::string& businessType) -{ - businessType_ = businessType; - setParameter("BusinessType", businessType); +std::string ChangeResellerConsumeAmountRequest::getBusinessType() const { + return businessType_; } -std::string ChangeResellerConsumeAmountRequest::getAdjustType()const -{ - return adjustType_; +void ChangeResellerConsumeAmountRequest::setBusinessType(const std::string &businessType) { + businessType_ = businessType; + setParameter(std::string("BusinessType"), businessType); } -void ChangeResellerConsumeAmountRequest::setAdjustType(const std::string& adjustType) -{ - adjustType_ = adjustType; - setParameter("AdjustType", adjustType); +std::string ChangeResellerConsumeAmountRequest::getAdjustType() const { + return adjustType_; } -std::string ChangeResellerConsumeAmountRequest::getExtendMap()const -{ - return extendMap_; +void ChangeResellerConsumeAmountRequest::setAdjustType(const std::string &adjustType) { + adjustType_ = adjustType; + setParameter(std::string("AdjustType"), adjustType); } -void ChangeResellerConsumeAmountRequest::setExtendMap(const std::string& extendMap) -{ - extendMap_ = extendMap; - setParameter("ExtendMap", extendMap); +std::string ChangeResellerConsumeAmountRequest::getExtendMap() const { + return extendMap_; } -std::string ChangeResellerConsumeAmountRequest::getCurrency()const -{ - return currency_; +void ChangeResellerConsumeAmountRequest::setExtendMap(const std::string &extendMap) { + extendMap_ = extendMap; + setParameter(std::string("ExtendMap"), extendMap); } -void ChangeResellerConsumeAmountRequest::setCurrency(const std::string& currency) -{ - currency_ = currency; - setParameter("Currency", currency); +std::string ChangeResellerConsumeAmountRequest::getCurrency() const { + return currency_; +} + +void ChangeResellerConsumeAmountRequest::setCurrency(const std::string ¤cy) { + currency_ = currency; + setParameter(std::string("Currency"), currency); } diff --git a/bssopenapi/src/model/ChangeResellerConsumeAmountResult.cc b/bssopenapi/src/model/ChangeResellerConsumeAmountResult.cc index 11a10a5c9..ad171ddcf 100644 --- a/bssopenapi/src/model/ChangeResellerConsumeAmountResult.cc +++ b/bssopenapi/src/model/ChangeResellerConsumeAmountResult.cc @@ -43,10 +43,10 @@ void ChangeResellerConsumeAmountResult::parse(const std::string &payload) 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(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/ConfirmRelationRequest.cc b/bssopenapi/src/model/ConfirmRelationRequest.cc index 2a13137f0..89bdcc64b 100644 --- a/bssopenapi/src/model/ConfirmRelationRequest.cc +++ b/bssopenapi/src/model/ConfirmRelationRequest.cc @@ -1,97 +1,89 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::ConfirmRelationRequest; - -ConfirmRelationRequest::ConfirmRelationRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "ConfirmRelation") -{ - setMethod(HttpRequest::Method::Post); -} - -ConfirmRelationRequest::~ConfirmRelationRequest() -{} - -std::string ConfirmRelationRequest::getRelationType()const -{ - return relationType_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::ConfirmRelationRequest; + +ConfirmRelationRequest::ConfirmRelationRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "ConfirmRelation") { + setMethod(HttpRequest::Method::Post); } -void ConfirmRelationRequest::setRelationType(const std::string& relationType) -{ - relationType_ = relationType; - setParameter("RelationType", relationType); +ConfirmRelationRequest::~ConfirmRelationRequest() {} + +std::string ConfirmRelationRequest::getRelationType() const { + return relationType_; } -long ConfirmRelationRequest::getParentUserId()const -{ - return parentUserId_; +void ConfirmRelationRequest::setRelationType(const std::string &relationType) { + relationType_ = relationType; + setParameter(std::string("RelationType"), relationType); } -void ConfirmRelationRequest::setParentUserId(long parentUserId) -{ - parentUserId_ = parentUserId; - setParameter("ParentUserId", std::to_string(parentUserId)); +long ConfirmRelationRequest::getParentUserId() const { + return parentUserId_; } -std::string ConfirmRelationRequest::getConfirmCode()const -{ - return confirmCode_; +void ConfirmRelationRequest::setParentUserId(long parentUserId) { + parentUserId_ = parentUserId; + setParameter(std::string("ParentUserId"), std::to_string(parentUserId)); } -void ConfirmRelationRequest::setConfirmCode(const std::string& confirmCode) -{ - confirmCode_ = confirmCode; - setParameter("ConfirmCode", confirmCode); +std::string ConfirmRelationRequest::getConfirmCode() const { + return confirmCode_; } -long ConfirmRelationRequest::getChildUserId()const -{ - return childUserId_; +void ConfirmRelationRequest::setConfirmCode(const std::string &confirmCode) { + confirmCode_ = confirmCode; + setParameter(std::string("ConfirmCode"), confirmCode); } -void ConfirmRelationRequest::setChildUserId(long childUserId) -{ - childUserId_ = childUserId; - setParameter("ChildUserId", std::to_string(childUserId)); +long ConfirmRelationRequest::getChildUserId() const { + return childUserId_; } -std::string ConfirmRelationRequest::getRequestId()const -{ - return requestId_; +void ConfirmRelationRequest::setChildUserId(long childUserId) { + childUserId_ = childUserId; + setParameter(std::string("ChildUserId"), std::to_string(childUserId)); } -void ConfirmRelationRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setParameter("RequestId", requestId); +std::string ConfirmRelationRequest::getRequestId() const { + return requestId_; } -std::vector ConfirmRelationRequest::getPermissionCodes()const -{ - return permissionCodes_; +void ConfirmRelationRequest::setRequestId(const std::string &requestId) { + requestId_ = requestId; + setParameter(std::string("RequestId"), requestId); } -void ConfirmRelationRequest::setPermissionCodes(const std::vector& permissionCodes) -{ - permissionCodes_ = permissionCodes; - for(int dep1 = 0; dep1!= permissionCodes.size(); dep1++) { - setParameter("PermissionCodes."+ std::to_string(dep1), permissionCodes.at(dep1)); - } +std::vector ConfirmRelationRequest::getPermissionCodes() const { + return permissionCodes_; +} + +void ConfirmRelationRequest::setPermissionCodes(const std::vector &permissionCodes) { + permissionCodes_ = permissionCodes; +} + +long ConfirmRelationRequest::getRelationId() const { + return relationId_; +} + +void ConfirmRelationRequest::setRelationId(long relationId) { + relationId_ = relationId; + setParameter(std::string("RelationId"), std::to_string(relationId)); } diff --git a/bssopenapi/src/model/ConfirmRelationResult.cc b/bssopenapi/src/model/ConfirmRelationResult.cc index b960e1a70..2df43e444 100644 --- a/bssopenapi/src/model/ConfirmRelationResult.cc +++ b/bssopenapi/src/model/ConfirmRelationResult.cc @@ -44,10 +44,10 @@ void ConfirmRelationResult::parse(const std::string &payload) data_.hostId = dataNode["HostId"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/ConvertChargeTypeRequest.cc b/bssopenapi/src/model/ConvertChargeTypeRequest.cc index 2497646de..3d8da6eff 100644 --- a/bssopenapi/src/model/ConvertChargeTypeRequest.cc +++ b/bssopenapi/src/model/ConvertChargeTypeRequest.cc @@ -1,95 +1,81 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::ConvertChargeTypeRequest; - -ConvertChargeTypeRequest::ConvertChargeTypeRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "ConvertChargeType") -{ - setMethod(HttpRequest::Method::Post); -} - -ConvertChargeTypeRequest::~ConvertChargeTypeRequest() -{} - -int ConvertChargeTypeRequest::getPeriod()const -{ - return period_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::ConvertChargeTypeRequest; + +ConvertChargeTypeRequest::ConvertChargeTypeRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "ConvertChargeType") { + setMethod(HttpRequest::Method::Post); } -void ConvertChargeTypeRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +ConvertChargeTypeRequest::~ConvertChargeTypeRequest() {} + +int ConvertChargeTypeRequest::getPeriod() const { + return period_; } -std::string ConvertChargeTypeRequest::getProductCode()const -{ - return productCode_; +void ConvertChargeTypeRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void ConvertChargeTypeRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +std::string ConvertChargeTypeRequest::getProductCode() const { + return productCode_; } -std::string ConvertChargeTypeRequest::getSubscriptionType()const -{ - return subscriptionType_; +void ConvertChargeTypeRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void ConvertChargeTypeRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string ConvertChargeTypeRequest::getSubscriptionType() const { + return subscriptionType_; } -long ConvertChargeTypeRequest::getOwnerId()const -{ - return ownerId_; +void ConvertChargeTypeRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void ConvertChargeTypeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ConvertChargeTypeRequest::getOwnerId() const { + return ownerId_; } -std::string ConvertChargeTypeRequest::getProductType()const -{ - return productType_; +void ConvertChargeTypeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ConvertChargeTypeRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string ConvertChargeTypeRequest::getProductType() const { + return productType_; } -std::string ConvertChargeTypeRequest::getInstanceId()const -{ - return instanceId_; +void ConvertChargeTypeRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void ConvertChargeTypeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ConvertChargeTypeRequest::getInstanceId() const { + return instanceId_; +} + +void ConvertChargeTypeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/bssopenapi/src/model/ConvertChargeTypeResult.cc b/bssopenapi/src/model/ConvertChargeTypeResult.cc index e05231e72..73763b309 100644 --- a/bssopenapi/src/model/ConvertChargeTypeResult.cc +++ b/bssopenapi/src/model/ConvertChargeTypeResult.cc @@ -42,12 +42,12 @@ void ConvertChargeTypeResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["OrderId"].isNull()) data_.orderId = dataNode["OrderId"].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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/CreateAgAccountRequest.cc b/bssopenapi/src/model/CreateAgAccountRequest.cc index d26b089ad..64e61dea8 100644 --- a/bssopenapi/src/model/CreateAgAccountRequest.cc +++ b/bssopenapi/src/model/CreateAgAccountRequest.cc @@ -1,128 +1,108 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::CreateAgAccountRequest; - -CreateAgAccountRequest::CreateAgAccountRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "CreateAgAccount") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateAgAccountRequest::~CreateAgAccountRequest() -{} - -std::string CreateAgAccountRequest::getFirstName()const -{ - return firstName_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::CreateAgAccountRequest; + +CreateAgAccountRequest::CreateAgAccountRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "CreateAgAccount") { + setMethod(HttpRequest::Method::Post); } -void CreateAgAccountRequest::setFirstName(const std::string& firstName) -{ - firstName_ = firstName; - setParameter("FirstName", firstName); +CreateAgAccountRequest::~CreateAgAccountRequest() {} + +std::string CreateAgAccountRequest::getFirstName() const { + return firstName_; } -std::string CreateAgAccountRequest::getCityName()const -{ - return cityName_; +void CreateAgAccountRequest::setFirstName(const std::string &firstName) { + firstName_ = firstName; + setParameter(std::string("FirstName"), firstName); } -void CreateAgAccountRequest::setCityName(const std::string& cityName) -{ - cityName_ = cityName; - setParameter("CityName", cityName); +std::string CreateAgAccountRequest::getCityName() const { + return cityName_; } -std::string CreateAgAccountRequest::getPostcode()const -{ - return postcode_; +void CreateAgAccountRequest::setCityName(const std::string &cityName) { + cityName_ = cityName; + setParameter(std::string("CityName"), cityName); } -void CreateAgAccountRequest::setPostcode(const std::string& postcode) -{ - postcode_ = postcode; - setParameter("Postcode", postcode); +std::string CreateAgAccountRequest::getPostcode() const { + return postcode_; } -std::string CreateAgAccountRequest::getEnterpriseName()const -{ - return enterpriseName_; +void CreateAgAccountRequest::setPostcode(const std::string &postcode) { + postcode_ = postcode; + setParameter(std::string("Postcode"), postcode); } -void CreateAgAccountRequest::setEnterpriseName(const std::string& enterpriseName) -{ - enterpriseName_ = enterpriseName; - setParameter("EnterpriseName", enterpriseName); +std::string CreateAgAccountRequest::getEnterpriseName() const { + return enterpriseName_; } -std::string CreateAgAccountRequest::getNationCode()const -{ - return nationCode_; +void CreateAgAccountRequest::setEnterpriseName(const std::string &enterpriseName) { + enterpriseName_ = enterpriseName; + setParameter(std::string("EnterpriseName"), enterpriseName); } -void CreateAgAccountRequest::setNationCode(const std::string& nationCode) -{ - nationCode_ = nationCode; - setParameter("NationCode", nationCode); +std::string CreateAgAccountRequest::getNationCode() const { + return nationCode_; } -std::string CreateAgAccountRequest::getLastName()const -{ - return lastName_; +void CreateAgAccountRequest::setNationCode(const std::string &nationCode) { + nationCode_ = nationCode; + setParameter(std::string("NationCode"), nationCode); } -void CreateAgAccountRequest::setLastName(const std::string& lastName) -{ - lastName_ = lastName; - setParameter("LastName", lastName); +std::string CreateAgAccountRequest::getLastName() const { + return lastName_; } -std::string CreateAgAccountRequest::getLoginEmail()const -{ - return loginEmail_; +void CreateAgAccountRequest::setLastName(const std::string &lastName) { + lastName_ = lastName; + setParameter(std::string("LastName"), lastName); } -void CreateAgAccountRequest::setLoginEmail(const std::string& loginEmail) -{ - loginEmail_ = loginEmail; - setParameter("LoginEmail", loginEmail); +std::string CreateAgAccountRequest::getLoginEmail() const { + return loginEmail_; } -std::string CreateAgAccountRequest::getProvinceName()const -{ - return provinceName_; +void CreateAgAccountRequest::setLoginEmail(const std::string &loginEmail) { + loginEmail_ = loginEmail; + setParameter(std::string("LoginEmail"), loginEmail); } -void CreateAgAccountRequest::setProvinceName(const std::string& provinceName) -{ - provinceName_ = provinceName; - setParameter("ProvinceName", provinceName); +std::string CreateAgAccountRequest::getProvinceName() const { + return provinceName_; } -std::string CreateAgAccountRequest::getAccountAttr()const -{ - return accountAttr_; +void CreateAgAccountRequest::setProvinceName(const std::string &provinceName) { + provinceName_ = provinceName; + setParameter(std::string("ProvinceName"), provinceName); } -void CreateAgAccountRequest::setAccountAttr(const std::string& accountAttr) -{ - accountAttr_ = accountAttr; - setParameter("AccountAttr", accountAttr); +std::string CreateAgAccountRequest::getAccountAttr() const { + return accountAttr_; +} + +void CreateAgAccountRequest::setAccountAttr(const std::string &accountAttr) { + accountAttr_ = accountAttr; + setParameter(std::string("AccountAttr"), accountAttr); } diff --git a/bssopenapi/src/model/CreateAgAccountResult.cc b/bssopenapi/src/model/CreateAgAccountResult.cc index 2b68eba9e..ab500f30d 100644 --- a/bssopenapi/src/model/CreateAgAccountResult.cc +++ b/bssopenapi/src/model/CreateAgAccountResult.cc @@ -40,14 +40,14 @@ void CreateAgAccountResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto agRelationDtoNode = value["AgRelationDto"]; - if(!agRelationDtoNode["Pk"].isNull()) - agRelationDto_.pk = agRelationDtoNode["Pk"].asString(); if(!agRelationDtoNode["Type"].isNull()) agRelationDto_.type = agRelationDtoNode["Type"].asString(); - if(!agRelationDtoNode["Mpk"].isNull()) - agRelationDto_.mpk = agRelationDtoNode["Mpk"].asString(); + if(!agRelationDtoNode["Pk"].isNull()) + agRelationDto_.pk = agRelationDtoNode["Pk"].asString(); if(!agRelationDtoNode["RamAdminRoleName"].isNull()) agRelationDto_.ramAdminRoleName = agRelationDtoNode["RamAdminRoleName"].asString(); + if(!agRelationDtoNode["Mpk"].isNull()) + agRelationDto_.mpk = agRelationDtoNode["Mpk"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) diff --git a/bssopenapi/src/model/CreateCostUnitRequest.cc b/bssopenapi/src/model/CreateCostUnitRequest.cc index 1ed5fff2d..7de1da84e 100644 --- a/bssopenapi/src/model/CreateCostUnitRequest.cc +++ b/bssopenapi/src/model/CreateCostUnitRequest.cc @@ -1,46 +1,42 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::CreateCostUnitRequest; - -CreateCostUnitRequest::CreateCostUnitRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "CreateCostUnit") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateCostUnitRequest::~CreateCostUnitRequest() -{} - -std::vector CreateCostUnitRequest::getUnitEntityList()const -{ - return unitEntityList_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::CreateCostUnitRequest; + +CreateCostUnitRequest::CreateCostUnitRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "CreateCostUnit") { + setMethod(HttpRequest::Method::Post); } -void CreateCostUnitRequest::setUnitEntityList(const std::vector& unitEntityList) -{ - unitEntityList_ = unitEntityList; - for(int dep1 = 0; dep1!= unitEntityList.size(); dep1++) { - auto unitEntityListObj = unitEntityList.at(dep1); - std::string unitEntityListObjStr = "UnitEntityList." + std::to_string(dep1 + 1); - setParameter(unitEntityListObjStr + ".UnitName", unitEntityListObj.unitName); - setParameter(unitEntityListObjStr + ".ParentUnitId", std::to_string(unitEntityListObj.parentUnitId)); - setParameter(unitEntityListObjStr + ".OwnerUid", std::to_string(unitEntityListObj.ownerUid)); - } +CreateCostUnitRequest::~CreateCostUnitRequest() {} + +std::vector CreateCostUnitRequest::getUnitEntityList() const { + return unitEntityList_; +} + +void CreateCostUnitRequest::setUnitEntityList(const std::vector &unitEntityList) { + unitEntityList_ = unitEntityList; + for(int dep1 = 0; dep1 != unitEntityList.size(); dep1++) { + auto unitEntityListObj = unitEntityList.at(dep1); + std::string unitEntityListObjStr = std::string("UnitEntityList") + "." + std::to_string(dep1 + 1); + setParameter(unitEntityListObjStr + ".UnitName", unitEntityListObj.unitName); + setParameter(unitEntityListObjStr + ".ParentUnitId", std::to_string(unitEntityListObj.parentUnitId)); + setParameter(unitEntityListObjStr + ".OwnerUid", std::to_string(unitEntityListObj.ownerUid)); + } } diff --git a/bssopenapi/src/model/CreateCostUnitResult.cc b/bssopenapi/src/model/CreateCostUnitResult.cc index 0dafc6f34..8a3138ef3 100644 --- a/bssopenapi/src/model/CreateCostUnitResult.cc +++ b/bssopenapi/src/model/CreateCostUnitResult.cc @@ -44,20 +44,20 @@ void CreateCostUnitResult::parse(const std::string &payload) for (auto dataNodeCostUnitDtoListCostUnitDtoListItem : allCostUnitDtoListNode) { Data::CostUnitDtoListItem costUnitDtoListItemObject; - if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].isNull()) - costUnitDtoListItemObject.unitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].asString()); if(!dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].isNull()) costUnitDtoListItemObject.parentUnitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].asString()); - if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull()) - costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString()); if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].isNull()) costUnitDtoListItemObject.unitName = dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].asString(); + if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].isNull()) + costUnitDtoListItemObject.unitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].asString()); + if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull()) + costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString()); data_.costUnitDtoList.push_back(costUnitDtoListItemObject); } - if(!value["Message"].isNull()) - message_ = value["Message"].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"; diff --git a/bssopenapi/src/model/CreateInstanceRequest.cc b/bssopenapi/src/model/CreateInstanceRequest.cc index b05df776d..4bdb13595 100644 --- a/bssopenapi/src/model/CreateInstanceRequest.cc +++ b/bssopenapi/src/model/CreateInstanceRequest.cc @@ -1,144 +1,122 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::CreateInstanceRequest; - -CreateInstanceRequest::CreateInstanceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "CreateInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateInstanceRequest::~CreateInstanceRequest() -{} - -std::string CreateInstanceRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::CreateInstanceRequest; + +CreateInstanceRequest::CreateInstanceRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "CreateInstance") { + setMethod(HttpRequest::Method::Post); } -void CreateInstanceRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +CreateInstanceRequest::~CreateInstanceRequest() {} + +std::string CreateInstanceRequest::getProductCode() const { + return productCode_; } -int CreateInstanceRequest::getPeriod()const -{ - return period_; +void CreateInstanceRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void CreateInstanceRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int CreateInstanceRequest::getPeriod() const { + return period_; } -std::string CreateInstanceRequest::getClientToken()const -{ - return clientToken_; +void CreateInstanceRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void CreateInstanceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateInstanceRequest::getClientToken() const { + return clientToken_; } -std::string CreateInstanceRequest::getSubscriptionType()const -{ - return subscriptionType_; +void CreateInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateInstanceRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string CreateInstanceRequest::getSubscriptionType() const { + return subscriptionType_; } -std::string CreateInstanceRequest::getLogistics()const -{ - return logistics_; +void CreateInstanceRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void CreateInstanceRequest::setLogistics(const std::string& logistics) -{ - logistics_ = logistics; - setParameter("Logistics", logistics); +std::string CreateInstanceRequest::getLogistics() const { + return logistics_; } -long CreateInstanceRequest::getOwnerId()const -{ - return ownerId_; +void CreateInstanceRequest::setLogistics(const std::string &logistics) { + logistics_ = logistics; + setParameter(std::string("Logistics"), logistics); } -void CreateInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateInstanceRequest::getOwnerId() const { + return ownerId_; } -std::string CreateInstanceRequest::getProductType()const -{ - return productType_; +void CreateInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateInstanceRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string CreateInstanceRequest::getProductType() const { + return productType_; } -int CreateInstanceRequest::getRenewPeriod()const -{ - return renewPeriod_; +void CreateInstanceRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void CreateInstanceRequest::setRenewPeriod(int renewPeriod) -{ - renewPeriod_ = renewPeriod; - setParameter("RenewPeriod", std::to_string(renewPeriod)); +int CreateInstanceRequest::getRenewPeriod() const { + return renewPeriod_; } -std::vector CreateInstanceRequest::get_Parameter()const -{ - return _parameter_; +void CreateInstanceRequest::setRenewPeriod(int renewPeriod) { + renewPeriod_ = renewPeriod; + setParameter(std::string("RenewPeriod"), std::to_string(renewPeriod)); } -void CreateInstanceRequest::set_Parameter(const std::vector<_Parameter>& _parameter) -{ - _parameter_ = _parameter; - for(int dep1 = 0; dep1!= _parameter.size(); dep1++) { - auto _parameterObj = _parameter.at(dep1); - std::string _parameterObjStr = "Parameter." + std::to_string(dep1 + 1); - setParameter(_parameterObjStr + ".Code", _parameterObj.code); - setParameter(_parameterObjStr + ".Value", _parameterObj.value); - } +std::string CreateInstanceRequest::getRenewalStatus() const { + return renewalStatus_; } -std::string CreateInstanceRequest::getRenewalStatus()const -{ - return renewalStatus_; +void CreateInstanceRequest::setRenewalStatus(const std::string &renewalStatus) { + renewalStatus_ = renewalStatus; + setParameter(std::string("RenewalStatus"), renewalStatus); } -void CreateInstanceRequest::setRenewalStatus(const std::string& renewalStatus) -{ - renewalStatus_ = renewalStatus; - setParameter("RenewalStatus", renewalStatus); +std::vector CreateInstanceRequest::get_Parameter() const { + return _parameter_; +} + +void CreateInstanceRequest::set_Parameter(const std::vector &_parameter) { + _parameter_ = _parameter; + for(int dep1 = 0; dep1 != _parameter.size(); dep1++) { + auto _parameterObj = _parameter.at(dep1); + std::string _parameterObjStr = std::string("Parameter") + "." + std::to_string(dep1 + 1); + setParameter(_parameterObjStr + ".Code", _parameterObj.code); + setParameter(_parameterObjStr + ".Value", _parameterObj.value); + } } diff --git a/bssopenapi/src/model/CreateInstanceResult.cc b/bssopenapi/src/model/CreateInstanceResult.cc index 7f4c98c7e..8f0cfd96e 100644 --- a/bssopenapi/src/model/CreateInstanceResult.cc +++ b/bssopenapi/src/model/CreateInstanceResult.cc @@ -40,16 +40,16 @@ void CreateInstanceResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["InstanceId"].isNull()) - data_.instanceId = dataNode["InstanceId"].asString(); if(!dataNode["OrderId"].isNull()) data_.orderId = dataNode["OrderId"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].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"; } diff --git a/bssopenapi/src/model/CreateResellerUserQuotaRequest.cc b/bssopenapi/src/model/CreateResellerUserQuotaRequest.cc index 50172a262..2d3b7de99 100644 --- a/bssopenapi/src/model/CreateResellerUserQuotaRequest.cc +++ b/bssopenapi/src/model/CreateResellerUserQuotaRequest.cc @@ -1,73 +1,63 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::CreateResellerUserQuotaRequest; - -CreateResellerUserQuotaRequest::CreateResellerUserQuotaRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "CreateResellerUserQuota") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateResellerUserQuotaRequest::~CreateResellerUserQuotaRequest() -{} - -std::string CreateResellerUserQuotaRequest::getAmount()const -{ - return amount_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::CreateResellerUserQuotaRequest; + +CreateResellerUserQuotaRequest::CreateResellerUserQuotaRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "CreateResellerUserQuota") { + setMethod(HttpRequest::Method::Post); } -void CreateResellerUserQuotaRequest::setAmount(const std::string& amount) -{ - amount_ = amount; - setParameter("Amount", amount); +CreateResellerUserQuotaRequest::~CreateResellerUserQuotaRequest() {} + +std::string CreateResellerUserQuotaRequest::getAmount() const { + return amount_; } -std::string CreateResellerUserQuotaRequest::getOutBizId()const -{ - return outBizId_; +void CreateResellerUserQuotaRequest::setAmount(const std::string &amount) { + amount_ = amount; + setParameter(std::string("Amount"), amount); } -void CreateResellerUserQuotaRequest::setOutBizId(const std::string& outBizId) -{ - outBizId_ = outBizId; - setParameter("OutBizId", outBizId); +std::string CreateResellerUserQuotaRequest::getOutBizId() const { + return outBizId_; } -long CreateResellerUserQuotaRequest::getOwnerId()const -{ - return ownerId_; +void CreateResellerUserQuotaRequest::setOutBizId(const std::string &outBizId) { + outBizId_ = outBizId; + setParameter(std::string("OutBizId"), outBizId); } -void CreateResellerUserQuotaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateResellerUserQuotaRequest::getOwnerId() const { + return ownerId_; } -std::string CreateResellerUserQuotaRequest::getCurrency()const -{ - return currency_; +void CreateResellerUserQuotaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateResellerUserQuotaRequest::setCurrency(const std::string& currency) -{ - currency_ = currency; - setParameter("Currency", currency); +std::string CreateResellerUserQuotaRequest::getCurrency() const { + return currency_; +} + +void CreateResellerUserQuotaRequest::setCurrency(const std::string ¤cy) { + currency_ = currency; + setParameter(std::string("Currency"), currency); } diff --git a/bssopenapi/src/model/CreateResellerUserQuotaResult.cc b/bssopenapi/src/model/CreateResellerUserQuotaResult.cc index 7872207dd..180d243c3 100644 --- a/bssopenapi/src/model/CreateResellerUserQuotaResult.cc +++ b/bssopenapi/src/model/CreateResellerUserQuotaResult.cc @@ -43,10 +43,10 @@ void CreateResellerUserQuotaResult::parse(const std::string &payload) 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"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/CreateResourcePackageRequest.cc b/bssopenapi/src/model/CreateResourcePackageRequest.cc index c3a15a884..271e8b19b 100644 --- a/bssopenapi/src/model/CreateResourcePackageRequest.cc +++ b/bssopenapi/src/model/CreateResourcePackageRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::CreateResourcePackageRequest; - -CreateResourcePackageRequest::CreateResourcePackageRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "CreateResourcePackage") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateResourcePackageRequest::~CreateResourcePackageRequest() -{} - -std::string CreateResourcePackageRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::CreateResourcePackageRequest; + +CreateResourcePackageRequest::CreateResourcePackageRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "CreateResourcePackage") { + setMethod(HttpRequest::Method::Post); } -void CreateResourcePackageRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +CreateResourcePackageRequest::~CreateResourcePackageRequest() {} + +std::string CreateResourcePackageRequest::getProductCode() const { + return productCode_; } -std::string CreateResourcePackageRequest::getSpecification()const -{ - return specification_; +void CreateResourcePackageRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void CreateResourcePackageRequest::setSpecification(const std::string& specification) -{ - specification_ = specification; - setParameter("Specification", specification); +std::string CreateResourcePackageRequest::getSpecification() const { + return specification_; } -long CreateResourcePackageRequest::getOwnerId()const -{ - return ownerId_; +void CreateResourcePackageRequest::setSpecification(const std::string &specification) { + specification_ = specification; + setParameter(std::string("Specification"), specification); } -void CreateResourcePackageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateResourcePackageRequest::getOwnerId() const { + return ownerId_; } -std::string CreateResourcePackageRequest::getEffectiveDate()const -{ - return effectiveDate_; +void CreateResourcePackageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateResourcePackageRequest::setEffectiveDate(const std::string& effectiveDate) -{ - effectiveDate_ = effectiveDate; - setParameter("EffectiveDate", effectiveDate); +std::string CreateResourcePackageRequest::getEffectiveDate() const { + return effectiveDate_; } -int CreateResourcePackageRequest::getDuration()const -{ - return duration_; +void CreateResourcePackageRequest::setEffectiveDate(const std::string &effectiveDate) { + effectiveDate_ = effectiveDate; + setParameter(std::string("EffectiveDate"), effectiveDate); } -void CreateResourcePackageRequest::setDuration(int duration) -{ - duration_ = duration; - setParameter("Duration", std::to_string(duration)); +int CreateResourcePackageRequest::getDuration() const { + return duration_; } -std::string CreateResourcePackageRequest::getPackageType()const -{ - return packageType_; +void CreateResourcePackageRequest::setDuration(int duration) { + duration_ = duration; + setParameter(std::string("Duration"), std::to_string(duration)); } -void CreateResourcePackageRequest::setPackageType(const std::string& packageType) -{ - packageType_ = packageType; - setParameter("PackageType", packageType); +std::string CreateResourcePackageRequest::getPackageType() const { + return packageType_; } -std::string CreateResourcePackageRequest::getPricingCycle()const -{ - return pricingCycle_; +void CreateResourcePackageRequest::setPackageType(const std::string &packageType) { + packageType_ = packageType; + setParameter(std::string("PackageType"), packageType); } -void CreateResourcePackageRequest::setPricingCycle(const std::string& pricingCycle) -{ - pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); +std::string CreateResourcePackageRequest::getPricingCycle() const { + return pricingCycle_; +} + +void CreateResourcePackageRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); } diff --git a/bssopenapi/src/model/CreateResourcePackageResult.cc b/bssopenapi/src/model/CreateResourcePackageResult.cc index 10cf51d39..6f4220eea 100644 --- a/bssopenapi/src/model/CreateResourcePackageResult.cc +++ b/bssopenapi/src/model/CreateResourcePackageResult.cc @@ -44,14 +44,14 @@ void CreateResourcePackageResult::parse(const std::string &payload) data_.orderId = std::stol(dataNode["OrderId"].asString()); if(!dataNode["InstanceId"].isNull()) data_.instanceId = dataNode["InstanceId"].asString(); - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); } diff --git a/bssopenapi/src/model/CreateSavingsPlansInstanceRequest.cc b/bssopenapi/src/model/CreateSavingsPlansInstanceRequest.cc new file mode 100644 index 000000000..3ce65f30f --- /dev/null +++ b/bssopenapi/src/model/CreateSavingsPlansInstanceRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::CreateSavingsPlansInstanceRequest; + +CreateSavingsPlansInstanceRequest::CreateSavingsPlansInstanceRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "CreateSavingsPlansInstance") { + setMethod(HttpRequest::Method::Post); +} + +CreateSavingsPlansInstanceRequest::~CreateSavingsPlansInstanceRequest() {} + +std::string CreateSavingsPlansInstanceRequest::getSpecification() const { + return specification_; +} + +void CreateSavingsPlansInstanceRequest::setSpecification(const std::string &specification) { + specification_ = specification; + setParameter(std::string("Specification"), specification); +} + +std::string CreateSavingsPlansInstanceRequest::getPoolValue() const { + return poolValue_; +} + +void CreateSavingsPlansInstanceRequest::setPoolValue(const std::string &poolValue) { + poolValue_ = poolValue; + setParameter(std::string("PoolValue"), poolValue); +} + +std::string CreateSavingsPlansInstanceRequest::getCommodityCode() const { + return commodityCode_; +} + +void CreateSavingsPlansInstanceRequest::setCommodityCode(const std::string &commodityCode) { + commodityCode_ = commodityCode; + setParameter(std::string("CommodityCode"), commodityCode); +} + +std::string CreateSavingsPlansInstanceRequest::getType() const { + return type_; +} + +void CreateSavingsPlansInstanceRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string CreateSavingsPlansInstanceRequest::getEffectiveDate() const { + return effectiveDate_; +} + +void CreateSavingsPlansInstanceRequest::setEffectiveDate(const std::string &effectiveDate) { + effectiveDate_ = effectiveDate; + setParameter(std::string("EffectiveDate"), effectiveDate); +} + +std::string CreateSavingsPlansInstanceRequest::getDuration() const { + return duration_; +} + +void CreateSavingsPlansInstanceRequest::setDuration(const std::string &duration) { + duration_ = duration; + setParameter(std::string("Duration"), duration); +} + +std::string CreateSavingsPlansInstanceRequest::getSpecType() const { + return specType_; +} + +void CreateSavingsPlansInstanceRequest::setSpecType(const std::string &specType) { + specType_ = specType; + setParameter(std::string("SpecType"), specType); +} + +std::string CreateSavingsPlansInstanceRequest::getPayMode() const { + return payMode_; +} + +void CreateSavingsPlansInstanceRequest::setPayMode(const std::string &payMode) { + payMode_ = payMode; + setParameter(std::string("PayMode"), payMode); +} + +std::string CreateSavingsPlansInstanceRequest::getRegion() const { + return region_; +} + +void CreateSavingsPlansInstanceRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + +std::string CreateSavingsPlansInstanceRequest::getPricingCycle() const { + return pricingCycle_; +} + +void CreateSavingsPlansInstanceRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); +} + diff --git a/bssopenapi/src/model/CreateSavingsPlansInstanceResult.cc b/bssopenapi/src/model/CreateSavingsPlansInstanceResult.cc new file mode 100644 index 000000000..a2ecbce46 --- /dev/null +++ b/bssopenapi/src/model/CreateSavingsPlansInstanceResult.cc @@ -0,0 +1,73 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +CreateSavingsPlansInstanceResult::CreateSavingsPlansInstanceResult() : + ServiceResult() +{} + +CreateSavingsPlansInstanceResult::CreateSavingsPlansInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSavingsPlansInstanceResult::~CreateSavingsPlansInstanceResult() +{} + +void CreateSavingsPlansInstanceResult::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["OrderId"].isNull()) + data_.orderId = std::stol(dataNode["OrderId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateSavingsPlansInstanceResult::getMessage()const +{ + return message_; +} + +CreateSavingsPlansInstanceResult::Data CreateSavingsPlansInstanceResult::getData()const +{ + return data_; +} + +std::string CreateSavingsPlansInstanceResult::getCode()const +{ + return code_; +} + +bool CreateSavingsPlansInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/bssopenapi/src/model/DeleteCostUnitRequest.cc b/bssopenapi/src/model/DeleteCostUnitRequest.cc index 6e22f06a9..fd285b292 100644 --- a/bssopenapi/src/model/DeleteCostUnitRequest.cc +++ b/bssopenapi/src/model/DeleteCostUnitRequest.cc @@ -1,51 +1,45 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::DeleteCostUnitRequest; - -DeleteCostUnitRequest::DeleteCostUnitRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "DeleteCostUnit") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteCostUnitRequest::~DeleteCostUnitRequest() -{} - -long DeleteCostUnitRequest::getUnitId()const -{ - return unitId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::DeleteCostUnitRequest; + +DeleteCostUnitRequest::DeleteCostUnitRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "DeleteCostUnit") { + setMethod(HttpRequest::Method::Post); } -void DeleteCostUnitRequest::setUnitId(long unitId) -{ - unitId_ = unitId; - setParameter("UnitId", std::to_string(unitId)); +DeleteCostUnitRequest::~DeleteCostUnitRequest() {} + +long DeleteCostUnitRequest::getUnitId() const { + return unitId_; } -long DeleteCostUnitRequest::getOwnerUid()const -{ - return ownerUid_; +void DeleteCostUnitRequest::setUnitId(long unitId) { + unitId_ = unitId; + setParameter(std::string("UnitId"), std::to_string(unitId)); } -void DeleteCostUnitRequest::setOwnerUid(long ownerUid) -{ - ownerUid_ = ownerUid; - setParameter("OwnerUid", std::to_string(ownerUid)); +long DeleteCostUnitRequest::getOwnerUid() const { + return ownerUid_; +} + +void DeleteCostUnitRequest::setOwnerUid(long ownerUid) { + ownerUid_ = ownerUid; + setParameter(std::string("OwnerUid"), std::to_string(ownerUid)); } diff --git a/bssopenapi/src/model/DeleteCostUnitResult.cc b/bssopenapi/src/model/DeleteCostUnitResult.cc index 41031dc60..a554ca166 100644 --- a/bssopenapi/src/model/DeleteCostUnitResult.cc +++ b/bssopenapi/src/model/DeleteCostUnitResult.cc @@ -46,10 +46,10 @@ void DeleteCostUnitResult::parse(const std::string &payload) data_.unitId = std::stol(dataNode["UnitId"].asString()); if(!dataNode["OwnerUid"].isNull()) data_.ownerUid = std::stol(dataNode["OwnerUid"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].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"; diff --git a/bssopenapi/src/model/DescribeInstanceBillRequest.cc b/bssopenapi/src/model/DescribeInstanceBillRequest.cc index b4aafdeda..3c11f0660 100644 --- a/bssopenapi/src/model/DescribeInstanceBillRequest.cc +++ b/bssopenapi/src/model/DescribeInstanceBillRequest.cc @@ -1,172 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::DescribeInstanceBillRequest; - -DescribeInstanceBillRequest::DescribeInstanceBillRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeInstanceBill") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceBillRequest::~DescribeInstanceBillRequest() -{} - -std::string DescribeInstanceBillRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::DescribeInstanceBillRequest; + +DescribeInstanceBillRequest::DescribeInstanceBillRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeInstanceBill") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceBillRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +DescribeInstanceBillRequest::~DescribeInstanceBillRequest() {} + +std::string DescribeInstanceBillRequest::getProductCode() const { + return productCode_; } -bool DescribeInstanceBillRequest::getIsHideZeroCharge()const -{ - return isHideZeroCharge_; +void DescribeInstanceBillRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void DescribeInstanceBillRequest::setIsHideZeroCharge(bool isHideZeroCharge) -{ - isHideZeroCharge_ = isHideZeroCharge; - setParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false"); +bool DescribeInstanceBillRequest::getIsHideZeroCharge() const { + return isHideZeroCharge_; } -std::string DescribeInstanceBillRequest::getSubscriptionType()const -{ - return subscriptionType_; +void DescribeInstanceBillRequest::setIsHideZeroCharge(bool isHideZeroCharge) { + isHideZeroCharge_ = isHideZeroCharge; + setParameter(std::string("IsHideZeroCharge"), isHideZeroCharge ? "true" : "false"); } -void DescribeInstanceBillRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string DescribeInstanceBillRequest::getSubscriptionType() const { + return subscriptionType_; } -long DescribeInstanceBillRequest::getBillOwnerId()const -{ - return billOwnerId_; +void DescribeInstanceBillRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void DescribeInstanceBillRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long DescribeInstanceBillRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string DescribeInstanceBillRequest::getProductType()const -{ - return productType_; +void DescribeInstanceBillRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void DescribeInstanceBillRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string DescribeInstanceBillRequest::getProductType() const { + return productType_; } -std::string DescribeInstanceBillRequest::getNextToken()const -{ - return nextToken_; +void DescribeInstanceBillRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void DescribeInstanceBillRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeInstanceBillRequest::getNextToken() const { + return nextToken_; } -std::string DescribeInstanceBillRequest::getBillingCycle()const -{ - return billingCycle_; +void DescribeInstanceBillRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeInstanceBillRequest::setBillingCycle(const std::string& billingCycle) -{ - billingCycle_ = billingCycle; - setParameter("BillingCycle", billingCycle); +std::string DescribeInstanceBillRequest::getBillingCycle() const { + return billingCycle_; } -long DescribeInstanceBillRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstanceBillRequest::setBillingCycle(const std::string &billingCycle) { + billingCycle_ = billingCycle; + setParameter(std::string("BillingCycle"), billingCycle); } -void DescribeInstanceBillRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstanceBillRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeInstanceBillRequest::getBillingDate()const -{ - return billingDate_; +void DescribeInstanceBillRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstanceBillRequest::setBillingDate(const std::string& billingDate) -{ - billingDate_ = billingDate; - setParameter("BillingDate", billingDate); +std::string DescribeInstanceBillRequest::getBillingDate() const { + return billingDate_; } -bool DescribeInstanceBillRequest::getIsBillingItem()const -{ - return isBillingItem_; +void DescribeInstanceBillRequest::setBillingDate(const std::string &billingDate) { + billingDate_ = billingDate; + setParameter(std::string("BillingDate"), billingDate); } -void DescribeInstanceBillRequest::setIsBillingItem(bool isBillingItem) -{ - isBillingItem_ = isBillingItem; - setParameter("IsBillingItem", isBillingItem ? "true" : "false"); +bool DescribeInstanceBillRequest::getIsBillingItem() const { + return isBillingItem_; } -std::string DescribeInstanceBillRequest::getInstanceID()const -{ - return instanceID_; +void DescribeInstanceBillRequest::setIsBillingItem(bool isBillingItem) { + isBillingItem_ = isBillingItem; + setParameter(std::string("IsBillingItem"), isBillingItem ? "true" : "false"); } -void DescribeInstanceBillRequest::setInstanceID(const std::string& instanceID) -{ - instanceID_ = instanceID; - setParameter("InstanceID", instanceID); +std::string DescribeInstanceBillRequest::getInstanceID() const { + return instanceID_; } -std::string DescribeInstanceBillRequest::getGranularity()const -{ - return granularity_; +void DescribeInstanceBillRequest::setInstanceID(const std::string &instanceID) { + instanceID_ = instanceID; + setParameter(std::string("InstanceID"), instanceID); } -void DescribeInstanceBillRequest::setGranularity(const std::string& granularity) -{ - granularity_ = granularity; - setParameter("Granularity", granularity); +std::string DescribeInstanceBillRequest::getGranularity() const { + return granularity_; } -int DescribeInstanceBillRequest::getMaxResults()const -{ - return maxResults_; +void DescribeInstanceBillRequest::setGranularity(const std::string &granularity) { + granularity_ = granularity; + setParameter(std::string("Granularity"), granularity); } -void DescribeInstanceBillRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeInstanceBillRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeInstanceBillRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/bssopenapi/src/model/DescribeInstanceBillResult.cc b/bssopenapi/src/model/DescribeInstanceBillResult.cc index a8a98d3af..008915ce7 100644 --- a/bssopenapi/src/model/DescribeInstanceBillResult.cc +++ b/bssopenapi/src/model/DescribeInstanceBillResult.cc @@ -40,114 +40,122 @@ void DescribeInstanceBillResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["BillingCycle"].isNull()) - data_.billingCycle = dataNode["BillingCycle"].asString(); - if(!dataNode["AccountID"].isNull()) - data_.accountID = dataNode["AccountID"].asString(); - if(!dataNode["AccountName"].isNull()) - data_.accountName = dataNode["AccountName"].asString(); - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); if(!dataNode["NextToken"].isNull()) data_.nextToken = dataNode["NextToken"].asString(); + if(!dataNode["BillingCycle"].isNull()) + data_.billingCycle = dataNode["BillingCycle"].asString(); if(!dataNode["MaxResults"].isNull()) data_.maxResults = std::stoi(dataNode["MaxResults"].asString()); + if(!dataNode["AccountID"].isNull()) + data_.accountID = dataNode["AccountID"].asString(); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + if(!dataNode["AccountName"].isNull()) + data_.accountName = dataNode["AccountName"].asString(); auto allItemsNode = dataNode["Items"]["Item"]; for (auto dataNodeItemsItem : allItemsNode) { Data::Item itemObject; - if(!dataNodeItemsItem["InstanceID"].isNull()) - itemObject.instanceID = dataNodeItemsItem["InstanceID"].asString(); - if(!dataNodeItemsItem["BillingType"].isNull()) - itemObject.billingType = dataNodeItemsItem["BillingType"].asString(); - if(!dataNodeItemsItem["CostUnit"].isNull()) - itemObject.costUnit = dataNodeItemsItem["CostUnit"].asString(); - if(!dataNodeItemsItem["ProductCode"].isNull()) - itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); - if(!dataNodeItemsItem["ProductType"].isNull()) - itemObject.productType = dataNodeItemsItem["ProductType"].asString(); - if(!dataNodeItemsItem["SubscriptionType"].isNull()) - itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); - if(!dataNodeItemsItem["ProductName"].isNull()) - itemObject.productName = dataNodeItemsItem["ProductName"].asString(); - if(!dataNodeItemsItem["ProductDetail"].isNull()) - itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString(); - if(!dataNodeItemsItem["OwnerID"].isNull()) - itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); - if(!dataNodeItemsItem["BillingItem"].isNull()) - itemObject.billingItem = dataNodeItemsItem["BillingItem"].asString(); - if(!dataNodeItemsItem["ListPrice"].isNull()) - itemObject.listPrice = dataNodeItemsItem["ListPrice"].asString(); - if(!dataNodeItemsItem["ListPriceUnit"].isNull()) - itemObject.listPriceUnit = dataNodeItemsItem["ListPriceUnit"].asString(); - if(!dataNodeItemsItem["Usage"].isNull()) - itemObject.usage = dataNodeItemsItem["Usage"].asString(); - if(!dataNodeItemsItem["UsageUnit"].isNull()) - itemObject.usageUnit = dataNodeItemsItem["UsageUnit"].asString(); - if(!dataNodeItemsItem["DeductedByResourcePackage"].isNull()) - itemObject.deductedByResourcePackage = dataNodeItemsItem["DeductedByResourcePackage"].asString(); - if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) - itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); - if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) - itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); - if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) - itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); - if(!dataNodeItemsItem["PretaxAmount"].isNull()) - itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); - if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) - itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); - if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) - itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); - if(!dataNodeItemsItem["PaymentAmount"].isNull()) - itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); - if(!dataNodeItemsItem["OutstandingAmount"].isNull()) - itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); - if(!dataNodeItemsItem["Currency"].isNull()) - itemObject.currency = dataNodeItemsItem["Currency"].asString(); - if(!dataNodeItemsItem["NickName"].isNull()) - itemObject.nickName = dataNodeItemsItem["NickName"].asString(); - if(!dataNodeItemsItem["ResourceGroup"].isNull()) - itemObject.resourceGroup = dataNodeItemsItem["ResourceGroup"].asString(); - if(!dataNodeItemsItem["Tag"].isNull()) - itemObject.tag = dataNodeItemsItem["Tag"].asString(); - if(!dataNodeItemsItem["InstanceConfig"].isNull()) - itemObject.instanceConfig = dataNodeItemsItem["InstanceConfig"].asString(); - if(!dataNodeItemsItem["InstanceSpec"].isNull()) - itemObject.instanceSpec = dataNodeItemsItem["InstanceSpec"].asString(); - if(!dataNodeItemsItem["InternetIP"].isNull()) - itemObject.internetIP = dataNodeItemsItem["InternetIP"].asString(); - if(!dataNodeItemsItem["IntranetIP"].isNull()) - itemObject.intranetIP = dataNodeItemsItem["IntranetIP"].asString(); - if(!dataNodeItemsItem["Region"].isNull()) - itemObject.region = dataNodeItemsItem["Region"].asString(); - if(!dataNodeItemsItem["Zone"].isNull()) - itemObject.zone = dataNodeItemsItem["Zone"].asString(); - if(!dataNodeItemsItem["Item"].isNull()) - itemObject.item = dataNodeItemsItem["Item"].asString(); - if(!dataNodeItemsItem["ServicePeriod"].isNull()) - itemObject.servicePeriod = dataNodeItemsItem["ServicePeriod"].asString(); if(!dataNodeItemsItem["BillingDate"].isNull()) itemObject.billingDate = dataNodeItemsItem["BillingDate"].asString(); - if(!dataNodeItemsItem["ServicePeriodUnit"].isNull()) - itemObject.servicePeriodUnit = dataNodeItemsItem["ServicePeriodUnit"].asString(); - if(!dataNodeItemsItem["PipCode"].isNull()) - itemObject.pipCode = dataNodeItemsItem["PipCode"].asString(); - if(!dataNodeItemsItem["CommodityCode"].isNull()) - itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString(); - if(!dataNodeItemsItem["BillAccountID"].isNull()) - itemObject.billAccountID = dataNodeItemsItem["BillAccountID"].asString(); + if(!dataNodeItemsItem["InstanceConfig"].isNull()) + itemObject.instanceConfig = dataNodeItemsItem["InstanceConfig"].asString(); + if(!dataNodeItemsItem["InternetIP"].isNull()) + itemObject.internetIP = dataNodeItemsItem["InternetIP"].asString(); + if(!dataNodeItemsItem["Item"].isNull()) + itemObject.item = dataNodeItemsItem["Item"].asString(); + if(!dataNodeItemsItem["Tag"].isNull()) + itemObject.tag = dataNodeItemsItem["Tag"].asString(); + if(!dataNodeItemsItem["InstanceID"].isNull()) + itemObject.instanceID = dataNodeItemsItem["InstanceID"].asString(); + if(!dataNodeItemsItem["Currency"].isNull()) + itemObject.currency = dataNodeItemsItem["Currency"].asString(); if(!dataNodeItemsItem["BillAccountName"].isNull()) itemObject.billAccountName = dataNodeItemsItem["BillAccountName"].asString(); + if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) + itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); + if(!dataNodeItemsItem["SubscriptionType"].isNull()) + itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); if(!dataNodeItemsItem["BizType"].isNull()) itemObject.bizType = dataNodeItemsItem["BizType"].asString(); + if(!dataNodeItemsItem["InstanceSpec"].isNull()) + itemObject.instanceSpec = dataNodeItemsItem["InstanceSpec"].asString(); + if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) + itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); + if(!dataNodeItemsItem["BillingItem"].isNull()) + itemObject.billingItem = dataNodeItemsItem["BillingItem"].asString(); + if(!dataNodeItemsItem["BillingItemCode"].isNull()) + itemObject.billingItemCode = dataNodeItemsItem["BillingItemCode"].asString(); + if(!dataNodeItemsItem["Region"].isNull()) + itemObject.region = dataNodeItemsItem["Region"].asString(); + if(!dataNodeItemsItem["OutstandingAmount"].isNull()) + itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); + if(!dataNodeItemsItem["CostUnit"].isNull()) + itemObject.costUnit = dataNodeItemsItem["CostUnit"].asString(); + if(!dataNodeItemsItem["ListPriceUnit"].isNull()) + itemObject.listPriceUnit = dataNodeItemsItem["ListPriceUnit"].asString(); + if(!dataNodeItemsItem["ResourceGroup"].isNull()) + itemObject.resourceGroup = dataNodeItemsItem["ResourceGroup"].asString(); + if(!dataNodeItemsItem["PipCode"].isNull()) + itemObject.pipCode = dataNodeItemsItem["PipCode"].asString(); + if(!dataNodeItemsItem["ServicePeriodUnit"].isNull()) + itemObject.servicePeriodUnit = dataNodeItemsItem["ServicePeriodUnit"].asString(); + if(!dataNodeItemsItem["PretaxAmount"].isNull()) + itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); + if(!dataNodeItemsItem["CommodityCode"].isNull()) + itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString(); + if(!dataNodeItemsItem["ProductName"].isNull()) + itemObject.productName = dataNodeItemsItem["ProductName"].asString(); + if(!dataNodeItemsItem["AdjustAmount"].isNull()) + itemObject.adjustAmount = std::stof(dataNodeItemsItem["AdjustAmount"].asString()); + if(!dataNodeItemsItem["NickName"].isNull()) + itemObject.nickName = dataNodeItemsItem["NickName"].asString(); + if(!dataNodeItemsItem["ProductDetail"].isNull()) + itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString(); + if(!dataNodeItemsItem["Usage"].isNull()) + itemObject.usage = dataNodeItemsItem["Usage"].asString(); + if(!dataNodeItemsItem["IntranetIP"].isNull()) + itemObject.intranetIP = dataNodeItemsItem["IntranetIP"].asString(); + if(!dataNodeItemsItem["OwnerID"].isNull()) + itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); + if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) + itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); + if(!dataNodeItemsItem["UsageUnit"].isNull()) + itemObject.usageUnit = dataNodeItemsItem["UsageUnit"].asString(); + if(!dataNodeItemsItem["BillAccountID"].isNull()) + itemObject.billAccountID = dataNodeItemsItem["BillAccountID"].asString(); + if(!dataNodeItemsItem["PaymentAmount"].isNull()) + itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); + if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) + itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); + if(!dataNodeItemsItem["DeductedByResourcePackage"].isNull()) + itemObject.deductedByResourcePackage = dataNodeItemsItem["DeductedByResourcePackage"].asString(); + if(!dataNodeItemsItem["ProductType"].isNull()) + itemObject.productType = dataNodeItemsItem["ProductType"].asString(); + if(!dataNodeItemsItem["ServicePeriod"].isNull()) + itemObject.servicePeriod = dataNodeItemsItem["ServicePeriod"].asString(); + if(!dataNodeItemsItem["Zone"].isNull()) + itemObject.zone = dataNodeItemsItem["Zone"].asString(); + if(!dataNodeItemsItem["ListPrice"].isNull()) + itemObject.listPrice = dataNodeItemsItem["ListPrice"].asString(); + if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) + itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); + if(!dataNodeItemsItem["CashAmount"].isNull()) + itemObject.cashAmount = std::stof(dataNodeItemsItem["CashAmount"].asString()); + if(!dataNodeItemsItem["ProductCode"].isNull()) + itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); + if(!dataNodeItemsItem["BillingType"].isNull()) + itemObject.billingType = dataNodeItemsItem["BillingType"].asString(); + if(!dataNodeItemsItem["ItemName"].isNull()) + itemObject.itemName = dataNodeItemsItem["ItemName"].asString(); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/DescribePricingModuleRequest.cc b/bssopenapi/src/model/DescribePricingModuleRequest.cc index 3933a0acd..785cc3d2c 100644 --- a/bssopenapi/src/model/DescribePricingModuleRequest.cc +++ b/bssopenapi/src/model/DescribePricingModuleRequest.cc @@ -1,73 +1,63 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::DescribePricingModuleRequest; - -DescribePricingModuleRequest::DescribePricingModuleRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "DescribePricingModule") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePricingModuleRequest::~DescribePricingModuleRequest() -{} - -std::string DescribePricingModuleRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::DescribePricingModuleRequest; + +DescribePricingModuleRequest::DescribePricingModuleRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "DescribePricingModule") { + setMethod(HttpRequest::Method::Post); } -void DescribePricingModuleRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +DescribePricingModuleRequest::~DescribePricingModuleRequest() {} + +std::string DescribePricingModuleRequest::getProductCode() const { + return productCode_; } -std::string DescribePricingModuleRequest::getSubscriptionType()const -{ - return subscriptionType_; +void DescribePricingModuleRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void DescribePricingModuleRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string DescribePricingModuleRequest::getSubscriptionType() const { + return subscriptionType_; } -long DescribePricingModuleRequest::getOwnerId()const -{ - return ownerId_; +void DescribePricingModuleRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void DescribePricingModuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribePricingModuleRequest::getOwnerId() const { + return ownerId_; } -std::string DescribePricingModuleRequest::getProductType()const -{ - return productType_; +void DescribePricingModuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribePricingModuleRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string DescribePricingModuleRequest::getProductType() const { + return productType_; +} + +void DescribePricingModuleRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } diff --git a/bssopenapi/src/model/DescribePricingModuleResult.cc b/bssopenapi/src/model/DescribePricingModuleResult.cc index 22ef17e2b..2382a8219 100644 --- a/bssopenapi/src/model/DescribePricingModuleResult.cc +++ b/bssopenapi/src/model/DescribePricingModuleResult.cc @@ -44,14 +44,14 @@ void DescribePricingModuleResult::parse(const std::string &payload) for (auto dataNodeModuleListModule : allModuleListNode) { Data::Module moduleObject; - if(!dataNodeModuleListModule["ModuleCode"].isNull()) - moduleObject.moduleCode = dataNodeModuleListModule["ModuleCode"].asString(); if(!dataNodeModuleListModule["ModuleName"].isNull()) moduleObject.moduleName = dataNodeModuleListModule["ModuleName"].asString(); if(!dataNodeModuleListModule["PriceType"].isNull()) moduleObject.priceType = dataNodeModuleListModule["PriceType"].asString(); if(!dataNodeModuleListModule["Currency"].isNull()) moduleObject.currency = dataNodeModuleListModule["Currency"].asString(); + if(!dataNodeModuleListModule["ModuleCode"].isNull()) + moduleObject.moduleCode = dataNodeModuleListModule["ModuleCode"].asString(); auto allConfigList = value["ConfigList"]["ConfigList"]; for (auto value : allConfigList) moduleObject.configList.push_back(value.asString()); @@ -73,22 +73,22 @@ void DescribePricingModuleResult::parse(const std::string &payload) Data::Attribute::AttributeValue valuesObject; if(!dataNodeAttributeListAttributeValuesAttributeValue["Type"].isNull()) valuesObject.type = dataNodeAttributeListAttributeValuesAttributeValue["Type"].asString(); - if(!dataNodeAttributeListAttributeValuesAttributeValue["Name"].isNull()) - valuesObject.name = dataNodeAttributeListAttributeValuesAttributeValue["Name"].asString(); if(!dataNodeAttributeListAttributeValuesAttributeValue["Value"].isNull()) valuesObject.value = dataNodeAttributeListAttributeValuesAttributeValue["Value"].asString(); if(!dataNodeAttributeListAttributeValuesAttributeValue["Remark"].isNull()) valuesObject.remark = dataNodeAttributeListAttributeValuesAttributeValue["Remark"].asString(); + if(!dataNodeAttributeListAttributeValuesAttributeValue["Name"].isNull()) + valuesObject.name = dataNodeAttributeListAttributeValuesAttributeValue["Name"].asString(); attributeObject.values.push_back(valuesObject); } data_.attributeList.push_back(attributeObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/DescribeResourceCoverageDetailRequest.cc b/bssopenapi/src/model/DescribeResourceCoverageDetailRequest.cc index 31a1dbba8..5f09341df 100644 --- a/bssopenapi/src/model/DescribeResourceCoverageDetailRequest.cc +++ b/bssopenapi/src/model/DescribeResourceCoverageDetailRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::DescribeResourceCoverageDetailRequest; - -DescribeResourceCoverageDetailRequest::DescribeResourceCoverageDetailRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeResourceCoverageDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeResourceCoverageDetailRequest::~DescribeResourceCoverageDetailRequest() -{} - -std::string DescribeResourceCoverageDetailRequest::getPeriodType()const -{ - return periodType_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::DescribeResourceCoverageDetailRequest; + +DescribeResourceCoverageDetailRequest::DescribeResourceCoverageDetailRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeResourceCoverageDetail") { + setMethod(HttpRequest::Method::Post); } -void DescribeResourceCoverageDetailRequest::setPeriodType(const std::string& periodType) -{ - periodType_ = periodType; - setParameter("PeriodType", periodType); +DescribeResourceCoverageDetailRequest::~DescribeResourceCoverageDetailRequest() {} + +std::string DescribeResourceCoverageDetailRequest::getPeriodType() const { + return periodType_; } -long DescribeResourceCoverageDetailRequest::getBillOwnerId()const -{ - return billOwnerId_; +void DescribeResourceCoverageDetailRequest::setPeriodType(const std::string &periodType) { + periodType_ = periodType; + setParameter(std::string("PeriodType"), periodType); } -void DescribeResourceCoverageDetailRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long DescribeResourceCoverageDetailRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string DescribeResourceCoverageDetailRequest::getResourceType()const -{ - return resourceType_; +void DescribeResourceCoverageDetailRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void DescribeResourceCoverageDetailRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string DescribeResourceCoverageDetailRequest::getResourceType() const { + return resourceType_; } -std::string DescribeResourceCoverageDetailRequest::getStartPeriod()const -{ - return startPeriod_; +void DescribeResourceCoverageDetailRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void DescribeResourceCoverageDetailRequest::setStartPeriod(const std::string& startPeriod) -{ - startPeriod_ = startPeriod; - setParameter("StartPeriod", startPeriod); +std::string DescribeResourceCoverageDetailRequest::getStartPeriod() const { + return startPeriod_; } -std::string DescribeResourceCoverageDetailRequest::getEndPeriod()const -{ - return endPeriod_; +void DescribeResourceCoverageDetailRequest::setStartPeriod(const std::string &startPeriod) { + startPeriod_ = startPeriod; + setParameter(std::string("StartPeriod"), startPeriod); } -void DescribeResourceCoverageDetailRequest::setEndPeriod(const std::string& endPeriod) -{ - endPeriod_ = endPeriod; - setParameter("EndPeriod", endPeriod); +std::string DescribeResourceCoverageDetailRequest::getEndPeriod() const { + return endPeriod_; } -std::string DescribeResourceCoverageDetailRequest::getNextToken()const -{ - return nextToken_; +void DescribeResourceCoverageDetailRequest::setEndPeriod(const std::string &endPeriod) { + endPeriod_ = endPeriod; + setParameter(std::string("EndPeriod"), endPeriod); } -void DescribeResourceCoverageDetailRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeResourceCoverageDetailRequest::getNextToken() const { + return nextToken_; } -int DescribeResourceCoverageDetailRequest::getMaxResults()const -{ - return maxResults_; +void DescribeResourceCoverageDetailRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeResourceCoverageDetailRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeResourceCoverageDetailRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeResourceCoverageDetailRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/bssopenapi/src/model/DescribeResourceCoverageDetailResult.cc b/bssopenapi/src/model/DescribeResourceCoverageDetailResult.cc index 885fc1dd9..b0f81a4e6 100644 --- a/bssopenapi/src/model/DescribeResourceCoverageDetailResult.cc +++ b/bssopenapi/src/model/DescribeResourceCoverageDetailResult.cc @@ -40,64 +40,64 @@ void DescribeResourceCoverageDetailResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); if(!dataNode["NextToken"].isNull()) data_.nextToken = dataNode["NextToken"].asString(); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); if(!dataNode["MaxResults"].isNull()) data_.maxResults = std::stoi(dataNode["MaxResults"].asString()); auto allItemsNode = dataNode["Items"]["Item"]; for (auto dataNodeItemsItem : allItemsNode) { Data::Item itemObject; - if(!dataNodeItemsItem["UserId"].isNull()) - itemObject.userId = dataNodeItemsItem["UserId"].asString(); - if(!dataNodeItemsItem["UserName"].isNull()) - itemObject.userName = dataNodeItemsItem["UserName"].asString(); - if(!dataNodeItemsItem["ProductCode"].isNull()) - itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); - if(!dataNodeItemsItem["ProductName"].isNull()) - itemObject.productName = dataNodeItemsItem["ProductName"].asString(); if(!dataNodeItemsItem["CommodityCode"].isNull()) itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString(); - if(!dataNodeItemsItem["CommodityName"].isNull()) - itemObject.commodityName = dataNodeItemsItem["CommodityName"].asString(); - if(!dataNodeItemsItem["InstanceId"].isNull()) - itemObject.instanceId = dataNodeItemsItem["InstanceId"].asString(); - if(!dataNodeItemsItem["Region"].isNull()) - itemObject.region = dataNodeItemsItem["Region"].asString(); + if(!dataNodeItemsItem["ProductName"].isNull()) + itemObject.productName = dataNodeItemsItem["ProductName"].asString(); + if(!dataNodeItemsItem["TotalQuantity"].isNull()) + itemObject.totalQuantity = std::stof(dataNodeItemsItem["TotalQuantity"].asString()); if(!dataNodeItemsItem["RegionNo"].isNull()) itemObject.regionNo = dataNodeItemsItem["RegionNo"].asString(); - if(!dataNodeItemsItem["Zone"].isNull()) - itemObject.zone = dataNodeItemsItem["Zone"].asString(); + if(!dataNodeItemsItem["UserId"].isNull()) + itemObject.userId = dataNodeItemsItem["UserId"].asString(); + if(!dataNodeItemsItem["CommodityName"].isNull()) + itemObject.commodityName = dataNodeItemsItem["CommodityName"].asString(); + if(!dataNodeItemsItem["CapacityUnit"].isNull()) + itemObject.capacityUnit = dataNodeItemsItem["CapacityUnit"].asString(); + if(!dataNodeItemsItem["InstanceId"].isNull()) + itemObject.instanceId = dataNodeItemsItem["InstanceId"].asString(); + if(!dataNodeItemsItem["Currency"].isNull()) + itemObject.currency = dataNodeItemsItem["Currency"].asString(); if(!dataNodeItemsItem["ZoneName"].isNull()) itemObject.zoneName = dataNodeItemsItem["ZoneName"].asString(); if(!dataNodeItemsItem["InstanceSpec"].isNull()) itemObject.instanceSpec = dataNodeItemsItem["InstanceSpec"].asString(); - if(!dataNodeItemsItem["Currency"].isNull()) - itemObject.currency = dataNodeItemsItem["Currency"].asString(); - if(!dataNodeItemsItem["CoveragePercentage"].isNull()) - itemObject.coveragePercentage = std::stof(dataNodeItemsItem["CoveragePercentage"].asString()); - if(!dataNodeItemsItem["PaymentAmount"].isNull()) - itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); - if(!dataNodeItemsItem["DeductQuantity"].isNull()) - itemObject.deductQuantity = std::stof(dataNodeItemsItem["DeductQuantity"].asString()); - if(!dataNodeItemsItem["TotalQuantity"].isNull()) - itemObject.totalQuantity = std::stof(dataNodeItemsItem["TotalQuantity"].asString()); - if(!dataNodeItemsItem["CapacityUnit"].isNull()) - itemObject.capacityUnit = dataNodeItemsItem["CapacityUnit"].asString(); - if(!dataNodeItemsItem["StartTime"].isNull()) - itemObject.startTime = dataNodeItemsItem["StartTime"].asString(); if(!dataNodeItemsItem["EndTime"].isNull()) itemObject.endTime = dataNodeItemsItem["EndTime"].asString(); + if(!dataNodeItemsItem["StartTime"].isNull()) + itemObject.startTime = dataNodeItemsItem["StartTime"].asString(); + if(!dataNodeItemsItem["PaymentAmount"].isNull()) + itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); + if(!dataNodeItemsItem["CoveragePercentage"].isNull()) + itemObject.coveragePercentage = std::stof(dataNodeItemsItem["CoveragePercentage"].asString()); + if(!dataNodeItemsItem["Region"].isNull()) + itemObject.region = dataNodeItemsItem["Region"].asString(); + if(!dataNodeItemsItem["DeductQuantity"].isNull()) + itemObject.deductQuantity = std::stof(dataNodeItemsItem["DeductQuantity"].asString()); + if(!dataNodeItemsItem["Zone"].isNull()) + itemObject.zone = dataNodeItemsItem["Zone"].asString(); + if(!dataNodeItemsItem["UserName"].isNull()) + itemObject.userName = dataNodeItemsItem["UserName"].asString(); + if(!dataNodeItemsItem["ProductCode"].isNull()) + itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/DescribeResourceCoverageTotalRequest.cc b/bssopenapi/src/model/DescribeResourceCoverageTotalRequest.cc index ce1b63932..00d811605 100644 --- a/bssopenapi/src/model/DescribeResourceCoverageTotalRequest.cc +++ b/bssopenapi/src/model/DescribeResourceCoverageTotalRequest.cc @@ -1,84 +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. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::DescribeResourceCoverageTotalRequest; - -DescribeResourceCoverageTotalRequest::DescribeResourceCoverageTotalRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeResourceCoverageTotal") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeResourceCoverageTotalRequest::~DescribeResourceCoverageTotalRequest() -{} - -std::string DescribeResourceCoverageTotalRequest::getPeriodType()const -{ - return periodType_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::DescribeResourceCoverageTotalRequest; + +DescribeResourceCoverageTotalRequest::DescribeResourceCoverageTotalRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeResourceCoverageTotal") { + setMethod(HttpRequest::Method::Post); } -void DescribeResourceCoverageTotalRequest::setPeriodType(const std::string& periodType) -{ - periodType_ = periodType; - setParameter("PeriodType", periodType); +DescribeResourceCoverageTotalRequest::~DescribeResourceCoverageTotalRequest() {} + +std::string DescribeResourceCoverageTotalRequest::getPeriodType() const { + return periodType_; } -long DescribeResourceCoverageTotalRequest::getBillOwnerId()const -{ - return billOwnerId_; +void DescribeResourceCoverageTotalRequest::setPeriodType(const std::string &periodType) { + periodType_ = periodType; + setParameter(std::string("PeriodType"), periodType); } -void DescribeResourceCoverageTotalRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long DescribeResourceCoverageTotalRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string DescribeResourceCoverageTotalRequest::getResourceType()const -{ - return resourceType_; +void DescribeResourceCoverageTotalRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void DescribeResourceCoverageTotalRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string DescribeResourceCoverageTotalRequest::getResourceType() const { + return resourceType_; } -std::string DescribeResourceCoverageTotalRequest::getStartPeriod()const -{ - return startPeriod_; +void DescribeResourceCoverageTotalRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void DescribeResourceCoverageTotalRequest::setStartPeriod(const std::string& startPeriod) -{ - startPeriod_ = startPeriod; - setParameter("StartPeriod", startPeriod); +std::string DescribeResourceCoverageTotalRequest::getStartPeriod() const { + return startPeriod_; } -std::string DescribeResourceCoverageTotalRequest::getEndPeriod()const -{ - return endPeriod_; +void DescribeResourceCoverageTotalRequest::setStartPeriod(const std::string &startPeriod) { + startPeriod_ = startPeriod; + setParameter(std::string("StartPeriod"), startPeriod); } -void DescribeResourceCoverageTotalRequest::setEndPeriod(const std::string& endPeriod) -{ - endPeriod_ = endPeriod; - setParameter("EndPeriod", endPeriod); +std::string DescribeResourceCoverageTotalRequest::getEndPeriod() const { + return endPeriod_; +} + +void DescribeResourceCoverageTotalRequest::setEndPeriod(const std::string &endPeriod) { + endPeriod_ = endPeriod; + setParameter(std::string("EndPeriod"), endPeriod); } diff --git a/bssopenapi/src/model/DescribeResourceCoverageTotalResult.cc b/bssopenapi/src/model/DescribeResourceCoverageTotalResult.cc index 19e70f1e9..21549f8ce 100644 --- a/bssopenapi/src/model/DescribeResourceCoverageTotalResult.cc +++ b/bssopenapi/src/model/DescribeResourceCoverageTotalResult.cc @@ -44,27 +44,27 @@ void DescribeResourceCoverageTotalResult::parse(const std::string &payload) for (auto dataNodePeriodCoverageItem : allPeriodCoverageNode) { Data::Item itemObject; - if(!dataNodePeriodCoverageItem["Period"].isNull()) - itemObject.period = dataNodePeriodCoverageItem["Period"].asString(); if(!dataNodePeriodCoverageItem["CoveragePercentage"].isNull()) itemObject.coveragePercentage = std::stof(dataNodePeriodCoverageItem["CoveragePercentage"].asString()); + if(!dataNodePeriodCoverageItem["Period"].isNull()) + itemObject.period = dataNodePeriodCoverageItem["Period"].asString(); data_.periodCoverage.push_back(itemObject); } auto totalCoverageNode = dataNode["TotalCoverage"]; - if(!totalCoverageNode["CoveragePercentage"].isNull()) - data_.totalCoverage.coveragePercentage = std::stof(totalCoverageNode["CoveragePercentage"].asString()); - if(!totalCoverageNode["DeductQuantity"].isNull()) - data_.totalCoverage.deductQuantity = std::stof(totalCoverageNode["DeductQuantity"].asString()); - if(!totalCoverageNode["TotalQuantity"].isNull()) - data_.totalCoverage.totalQuantity = std::stof(totalCoverageNode["TotalQuantity"].asString()); if(!totalCoverageNode["CapacityUnit"].isNull()) data_.totalCoverage.capacityUnit = totalCoverageNode["CapacityUnit"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!totalCoverageNode["DeductQuantity"].isNull()) + data_.totalCoverage.deductQuantity = std::stof(totalCoverageNode["DeductQuantity"].asString()); + if(!totalCoverageNode["CoveragePercentage"].isNull()) + data_.totalCoverage.coveragePercentage = std::stof(totalCoverageNode["CoveragePercentage"].asString()); + if(!totalCoverageNode["TotalQuantity"].isNull()) + data_.totalCoverage.totalQuantity = std::stof(totalCoverageNode["TotalQuantity"].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"; } diff --git a/bssopenapi/src/model/DescribeResourcePackageProductRequest.cc b/bssopenapi/src/model/DescribeResourcePackageProductRequest.cc index 3fe426306..400863068 100644 --- a/bssopenapi/src/model/DescribeResourcePackageProductRequest.cc +++ b/bssopenapi/src/model/DescribeResourcePackageProductRequest.cc @@ -1,40 +1,36 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::DescribeResourcePackageProductRequest; - -DescribeResourcePackageProductRequest::DescribeResourcePackageProductRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeResourcePackageProduct") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeResourcePackageProductRequest::~DescribeResourcePackageProductRequest() -{} - -std::string DescribeResourcePackageProductRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::DescribeResourcePackageProductRequest; + +DescribeResourcePackageProductRequest::DescribeResourcePackageProductRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeResourcePackageProduct") { + setMethod(HttpRequest::Method::Post); } -void DescribeResourcePackageProductRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +DescribeResourcePackageProductRequest::~DescribeResourcePackageProductRequest() {} + +std::string DescribeResourcePackageProductRequest::getProductCode() const { + return productCode_; +} + +void DescribeResourcePackageProductRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } diff --git a/bssopenapi/src/model/DescribeResourcePackageProductResult.cc b/bssopenapi/src/model/DescribeResourcePackageProductResult.cc index c24e0ddfc..e5c41f6a4 100644 --- a/bssopenapi/src/model/DescribeResourcePackageProductResult.cc +++ b/bssopenapi/src/model/DescribeResourcePackageProductResult.cc @@ -44,20 +44,20 @@ void DescribeResourcePackageProductResult::parse(const std::string &payload) for (auto dataNodeResourcePackagesResourcePackage : allResourcePackagesNode) { Data::ResourcePackage resourcePackageObject; - if(!dataNodeResourcePackagesResourcePackage["ProductCode"].isNull()) - resourcePackageObject.productCode = dataNodeResourcePackagesResourcePackage["ProductCode"].asString(); if(!dataNodeResourcePackagesResourcePackage["ProductType"].isNull()) resourcePackageObject.productType = dataNodeResourcePackagesResourcePackage["ProductType"].asString(); if(!dataNodeResourcePackagesResourcePackage["Name"].isNull()) resourcePackageObject.name = dataNodeResourcePackagesResourcePackage["Name"].asString(); + if(!dataNodeResourcePackagesResourcePackage["ProductCode"].isNull()) + resourcePackageObject.productCode = dataNodeResourcePackagesResourcePackage["ProductCode"].asString(); auto allPackageTypesNode = dataNodeResourcePackagesResourcePackage["PackageTypes"]["PackageType"]; for (auto dataNodeResourcePackagesResourcePackagePackageTypesPackageType : allPackageTypesNode) { Data::ResourcePackage::PackageType packageTypesObject; - if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Name"].isNull()) - packageTypesObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Name"].asString(); if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Code"].isNull()) packageTypesObject.code = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Code"].asString(); + if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Name"].isNull()) + packageTypesObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Name"].asString(); auto allPropertiesNode = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Properties"]["Property"]; for (auto dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty : allPropertiesNode) { @@ -80,10 +80,10 @@ void DescribeResourcePackageProductResult::parse(const std::string &payload) for (auto dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration : allAvailableDurationsNode) { Data::ResourcePackage::PackageType::Specification::AvailableDuration availableDurationsObject; - if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Name"].isNull()) - availableDurationsObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Name"].asString(); if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Value"].isNull()) availableDurationsObject.value = std::stoi(dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Value"].asString()); + if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Name"].isNull()) + availableDurationsObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Name"].asString(); if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Unit"].isNull()) availableDurationsObject.unit = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Unit"].asString(); specificationsObject.availableDurations.push_back(availableDurationsObject); @@ -94,14 +94,14 @@ void DescribeResourcePackageProductResult::parse(const std::string &payload) } data_.resourcePackages.push_back(resourcePackageObject); } - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); } diff --git a/bssopenapi/src/model/DescribeResourceUsageDetailRequest.cc b/bssopenapi/src/model/DescribeResourceUsageDetailRequest.cc index de5186629..8cda20278 100644 --- a/bssopenapi/src/model/DescribeResourceUsageDetailRequest.cc +++ b/bssopenapi/src/model/DescribeResourceUsageDetailRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::DescribeResourceUsageDetailRequest; - -DescribeResourceUsageDetailRequest::DescribeResourceUsageDetailRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeResourceUsageDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeResourceUsageDetailRequest::~DescribeResourceUsageDetailRequest() -{} - -std::string DescribeResourceUsageDetailRequest::getPeriodType()const -{ - return periodType_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::DescribeResourceUsageDetailRequest; + +DescribeResourceUsageDetailRequest::DescribeResourceUsageDetailRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeResourceUsageDetail") { + setMethod(HttpRequest::Method::Post); } -void DescribeResourceUsageDetailRequest::setPeriodType(const std::string& periodType) -{ - periodType_ = periodType; - setParameter("PeriodType", periodType); +DescribeResourceUsageDetailRequest::~DescribeResourceUsageDetailRequest() {} + +std::string DescribeResourceUsageDetailRequest::getPeriodType() const { + return periodType_; } -long DescribeResourceUsageDetailRequest::getBillOwnerId()const -{ - return billOwnerId_; +void DescribeResourceUsageDetailRequest::setPeriodType(const std::string &periodType) { + periodType_ = periodType; + setParameter(std::string("PeriodType"), periodType); } -void DescribeResourceUsageDetailRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long DescribeResourceUsageDetailRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string DescribeResourceUsageDetailRequest::getResourceType()const -{ - return resourceType_; +void DescribeResourceUsageDetailRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void DescribeResourceUsageDetailRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string DescribeResourceUsageDetailRequest::getResourceType() const { + return resourceType_; } -std::string DescribeResourceUsageDetailRequest::getStartPeriod()const -{ - return startPeriod_; +void DescribeResourceUsageDetailRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void DescribeResourceUsageDetailRequest::setStartPeriod(const std::string& startPeriod) -{ - startPeriod_ = startPeriod; - setParameter("StartPeriod", startPeriod); +std::string DescribeResourceUsageDetailRequest::getStartPeriod() const { + return startPeriod_; } -std::string DescribeResourceUsageDetailRequest::getEndPeriod()const -{ - return endPeriod_; +void DescribeResourceUsageDetailRequest::setStartPeriod(const std::string &startPeriod) { + startPeriod_ = startPeriod; + setParameter(std::string("StartPeriod"), startPeriod); } -void DescribeResourceUsageDetailRequest::setEndPeriod(const std::string& endPeriod) -{ - endPeriod_ = endPeriod; - setParameter("EndPeriod", endPeriod); +std::string DescribeResourceUsageDetailRequest::getEndPeriod() const { + return endPeriod_; } -std::string DescribeResourceUsageDetailRequest::getNextToken()const -{ - return nextToken_; +void DescribeResourceUsageDetailRequest::setEndPeriod(const std::string &endPeriod) { + endPeriod_ = endPeriod; + setParameter(std::string("EndPeriod"), endPeriod); } -void DescribeResourceUsageDetailRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeResourceUsageDetailRequest::getNextToken() const { + return nextToken_; } -int DescribeResourceUsageDetailRequest::getMaxResults()const -{ - return maxResults_; +void DescribeResourceUsageDetailRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeResourceUsageDetailRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeResourceUsageDetailRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeResourceUsageDetailRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/bssopenapi/src/model/DescribeResourceUsageDetailResult.cc b/bssopenapi/src/model/DescribeResourceUsageDetailResult.cc index 40b151500..1c8ad5c72 100644 --- a/bssopenapi/src/model/DescribeResourceUsageDetailResult.cc +++ b/bssopenapi/src/model/DescribeResourceUsageDetailResult.cc @@ -40,70 +40,70 @@ void DescribeResourceUsageDetailResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); if(!dataNode["NextToken"].isNull()) data_.nextToken = dataNode["NextToken"].asString(); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); if(!dataNode["MaxResults"].isNull()) data_.maxResults = std::stoi(dataNode["MaxResults"].asString()); auto allItemsNode = dataNode["Items"]["Item"]; for (auto dataNodeItemsItem : allItemsNode) { Data::Item itemObject; - if(!dataNodeItemsItem["UserId"].isNull()) - itemObject.userId = dataNodeItemsItem["UserId"].asString(); - if(!dataNodeItemsItem["UserName"].isNull()) - itemObject.userName = dataNodeItemsItem["UserName"].asString(); - if(!dataNodeItemsItem["ResourceInstanceId"].isNull()) - itemObject.resourceInstanceId = dataNodeItemsItem["ResourceInstanceId"].asString(); - if(!dataNodeItemsItem["StartTime"].isNull()) - itemObject.startTime = dataNodeItemsItem["StartTime"].asString(); - if(!dataNodeItemsItem["EndTime"].isNull()) - itemObject.endTime = dataNodeItemsItem["EndTime"].asString(); if(!dataNodeItemsItem["Status"].isNull()) itemObject.status = dataNodeItemsItem["Status"].asString(); - if(!dataNodeItemsItem["StatusName"].isNull()) - itemObject.statusName = dataNodeItemsItem["StatusName"].asString(); - if(!dataNodeItemsItem["Region"].isNull()) - itemObject.region = dataNodeItemsItem["Region"].asString(); + if(!dataNodeItemsItem["UsagePercentage"].isNull()) + itemObject.usagePercentage = std::stof(dataNodeItemsItem["UsagePercentage"].asString()); + if(!dataNodeItemsItem["ResourceInstanceId"].isNull()) + itemObject.resourceInstanceId = dataNodeItemsItem["ResourceInstanceId"].asString(); + if(!dataNodeItemsItem["TotalQuantity"].isNull()) + itemObject.totalQuantity = std::stof(dataNodeItemsItem["TotalQuantity"].asString()); + if(!dataNodeItemsItem["ReservationCost"].isNull()) + itemObject.reservationCost = dataNodeItemsItem["ReservationCost"].asString(); if(!dataNodeItemsItem["RegionNo"].isNull()) itemObject.regionNo = dataNodeItemsItem["RegionNo"].asString(); - if(!dataNodeItemsItem["Zone"].isNull()) - itemObject.zone = dataNodeItemsItem["Zone"].asString(); + if(!dataNodeItemsItem["UserId"].isNull()) + itemObject.userId = dataNodeItemsItem["UserId"].asString(); + if(!dataNodeItemsItem["StatusName"].isNull()) + itemObject.statusName = dataNodeItemsItem["StatusName"].asString(); + if(!dataNodeItemsItem["CapacityUnit"].isNull()) + itemObject.capacityUnit = dataNodeItemsItem["CapacityUnit"].asString(); + if(!dataNodeItemsItem["PotentialSavedCost"].isNull()) + itemObject.potentialSavedCost = dataNodeItemsItem["PotentialSavedCost"].asString(); + if(!dataNodeItemsItem["Currency"].isNull()) + itemObject.currency = dataNodeItemsItem["Currency"].asString(); if(!dataNodeItemsItem["ZoneName"].isNull()) itemObject.zoneName = dataNodeItemsItem["ZoneName"].asString(); if(!dataNodeItemsItem["InstanceSpec"].isNull()) itemObject.instanceSpec = dataNodeItemsItem["InstanceSpec"].asString(); - if(!dataNodeItemsItem["Quantity"].isNull()) - itemObject.quantity = std::stol(dataNodeItemsItem["Quantity"].asString()); - if(!dataNodeItemsItem["ImageType"].isNull()) - itemObject.imageType = dataNodeItemsItem["ImageType"].asString(); - if(!dataNodeItemsItem["UsagePercentage"].isNull()) - itemObject.usagePercentage = std::stof(dataNodeItemsItem["UsagePercentage"].asString()); - if(!dataNodeItemsItem["DeductQuantity"].isNull()) - itemObject.deductQuantity = std::stof(dataNodeItemsItem["DeductQuantity"].asString()); - if(!dataNodeItemsItem["TotalQuantity"].isNull()) - itemObject.totalQuantity = std::stof(dataNodeItemsItem["TotalQuantity"].asString()); - if(!dataNodeItemsItem["CapacityUnit"].isNull()) - itemObject.capacityUnit = dataNodeItemsItem["CapacityUnit"].asString(); - if(!dataNodeItemsItem["Currency"].isNull()) - itemObject.currency = dataNodeItemsItem["Currency"].asString(); - if(!dataNodeItemsItem["ReservationCost"].isNull()) - itemObject.reservationCost = dataNodeItemsItem["ReservationCost"].asString(); + if(!dataNodeItemsItem["EndTime"].isNull()) + itemObject.endTime = dataNodeItemsItem["EndTime"].asString(); if(!dataNodeItemsItem["PostpaidCost"].isNull()) itemObject.postpaidCost = dataNodeItemsItem["PostpaidCost"].asString(); + if(!dataNodeItemsItem["ImageType"].isNull()) + itemObject.imageType = dataNodeItemsItem["ImageType"].asString(); + if(!dataNodeItemsItem["StartTime"].isNull()) + itemObject.startTime = dataNodeItemsItem["StartTime"].asString(); + if(!dataNodeItemsItem["Region"].isNull()) + itemObject.region = dataNodeItemsItem["Region"].asString(); + if(!dataNodeItemsItem["DeductQuantity"].isNull()) + itemObject.deductQuantity = std::stof(dataNodeItemsItem["DeductQuantity"].asString()); if(!dataNodeItemsItem["SavedCost"].isNull()) itemObject.savedCost = dataNodeItemsItem["SavedCost"].asString(); - if(!dataNodeItemsItem["PotentialSavedCost"].isNull()) - itemObject.potentialSavedCost = dataNodeItemsItem["PotentialSavedCost"].asString(); + if(!dataNodeItemsItem["Zone"].isNull()) + itemObject.zone = dataNodeItemsItem["Zone"].asString(); + if(!dataNodeItemsItem["UserName"].isNull()) + itemObject.userName = dataNodeItemsItem["UserName"].asString(); + if(!dataNodeItemsItem["Quantity"].isNull()) + itemObject.quantity = std::stol(dataNodeItemsItem["Quantity"].asString()); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/DescribeResourceUsageTotalRequest.cc b/bssopenapi/src/model/DescribeResourceUsageTotalRequest.cc index f851db7e7..76862c3aa 100644 --- a/bssopenapi/src/model/DescribeResourceUsageTotalRequest.cc +++ b/bssopenapi/src/model/DescribeResourceUsageTotalRequest.cc @@ -1,84 +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. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::DescribeResourceUsageTotalRequest; - -DescribeResourceUsageTotalRequest::DescribeResourceUsageTotalRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeResourceUsageTotal") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeResourceUsageTotalRequest::~DescribeResourceUsageTotalRequest() -{} - -std::string DescribeResourceUsageTotalRequest::getPeriodType()const -{ - return periodType_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::DescribeResourceUsageTotalRequest; + +DescribeResourceUsageTotalRequest::DescribeResourceUsageTotalRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeResourceUsageTotal") { + setMethod(HttpRequest::Method::Post); } -void DescribeResourceUsageTotalRequest::setPeriodType(const std::string& periodType) -{ - periodType_ = periodType; - setParameter("PeriodType", periodType); +DescribeResourceUsageTotalRequest::~DescribeResourceUsageTotalRequest() {} + +std::string DescribeResourceUsageTotalRequest::getPeriodType() const { + return periodType_; } -long DescribeResourceUsageTotalRequest::getBillOwnerId()const -{ - return billOwnerId_; +void DescribeResourceUsageTotalRequest::setPeriodType(const std::string &periodType) { + periodType_ = periodType; + setParameter(std::string("PeriodType"), periodType); } -void DescribeResourceUsageTotalRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long DescribeResourceUsageTotalRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string DescribeResourceUsageTotalRequest::getResourceType()const -{ - return resourceType_; +void DescribeResourceUsageTotalRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void DescribeResourceUsageTotalRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string DescribeResourceUsageTotalRequest::getResourceType() const { + return resourceType_; } -std::string DescribeResourceUsageTotalRequest::getStartPeriod()const -{ - return startPeriod_; +void DescribeResourceUsageTotalRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void DescribeResourceUsageTotalRequest::setStartPeriod(const std::string& startPeriod) -{ - startPeriod_ = startPeriod; - setParameter("StartPeriod", startPeriod); +std::string DescribeResourceUsageTotalRequest::getStartPeriod() const { + return startPeriod_; } -std::string DescribeResourceUsageTotalRequest::getEndPeriod()const -{ - return endPeriod_; +void DescribeResourceUsageTotalRequest::setStartPeriod(const std::string &startPeriod) { + startPeriod_ = startPeriod; + setParameter(std::string("StartPeriod"), startPeriod); } -void DescribeResourceUsageTotalRequest::setEndPeriod(const std::string& endPeriod) -{ - endPeriod_ = endPeriod; - setParameter("EndPeriod", endPeriod); +std::string DescribeResourceUsageTotalRequest::getEndPeriod() const { + return endPeriod_; +} + +void DescribeResourceUsageTotalRequest::setEndPeriod(const std::string &endPeriod) { + endPeriod_ = endPeriod; + setParameter(std::string("EndPeriod"), endPeriod); } diff --git a/bssopenapi/src/model/DescribeResourceUsageTotalResult.cc b/bssopenapi/src/model/DescribeResourceUsageTotalResult.cc index 102ba11ff..3695a3171 100644 --- a/bssopenapi/src/model/DescribeResourceUsageTotalResult.cc +++ b/bssopenapi/src/model/DescribeResourceUsageTotalResult.cc @@ -44,29 +44,29 @@ void DescribeResourceUsageTotalResult::parse(const std::string &payload) for (auto dataNodePeriodCoverageItem : allPeriodCoverageNode) { Data::Item itemObject; - if(!dataNodePeriodCoverageItem["Period"].isNull()) - itemObject.period = dataNodePeriodCoverageItem["Period"].asString(); if(!dataNodePeriodCoverageItem["UsagePercentage"].isNull()) itemObject.usagePercentage = std::stof(dataNodePeriodCoverageItem["UsagePercentage"].asString()); + if(!dataNodePeriodCoverageItem["Period"].isNull()) + itemObject.period = dataNodePeriodCoverageItem["Period"].asString(); data_.periodCoverage.push_back(itemObject); } auto totalUsageNode = dataNode["TotalUsage"]; - if(!totalUsageNode["UsagePercentage"].isNull()) - data_.totalUsage.usagePercentage = std::stof(totalUsageNode["UsagePercentage"].asString()); if(!totalUsageNode["PostpaidCost"].isNull()) data_.totalUsage.postpaidCost = std::stof(totalUsageNode["PostpaidCost"].asString()); - if(!totalUsageNode["ReservationCost"].isNull()) - data_.totalUsage.reservationCost = std::stof(totalUsageNode["ReservationCost"].asString()); if(!totalUsageNode["SavedCost"].isNull()) data_.totalUsage.savedCost = std::stof(totalUsageNode["SavedCost"].asString()); + if(!totalUsageNode["UsagePercentage"].isNull()) + data_.totalUsage.usagePercentage = std::stof(totalUsageNode["UsagePercentage"].asString()); if(!totalUsageNode["PotentialSavedCost"].isNull()) data_.totalUsage.potentialSavedCost = std::stof(totalUsageNode["PotentialSavedCost"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!totalUsageNode["ReservationCost"].isNull()) + data_.totalUsage.reservationCost = std::stof(totalUsageNode["ReservationCost"].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"; } diff --git a/bssopenapi/src/model/DescribeSavingsPlansCoverageDetailRequest.cc b/bssopenapi/src/model/DescribeSavingsPlansCoverageDetailRequest.cc index bc74a9b03..39048069f 100644 --- a/bssopenapi/src/model/DescribeSavingsPlansCoverageDetailRequest.cc +++ b/bssopenapi/src/model/DescribeSavingsPlansCoverageDetailRequest.cc @@ -1,95 +1,81 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::DescribeSavingsPlansCoverageDetailRequest; - -DescribeSavingsPlansCoverageDetailRequest::DescribeSavingsPlansCoverageDetailRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeSavingsPlansCoverageDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSavingsPlansCoverageDetailRequest::~DescribeSavingsPlansCoverageDetailRequest() -{} - -std::string DescribeSavingsPlansCoverageDetailRequest::getPeriodType()const -{ - return periodType_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::DescribeSavingsPlansCoverageDetailRequest; + +DescribeSavingsPlansCoverageDetailRequest::DescribeSavingsPlansCoverageDetailRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeSavingsPlansCoverageDetail") { + setMethod(HttpRequest::Method::Post); } -void DescribeSavingsPlansCoverageDetailRequest::setPeriodType(const std::string& periodType) -{ - periodType_ = periodType; - setParameter("PeriodType", periodType); +DescribeSavingsPlansCoverageDetailRequest::~DescribeSavingsPlansCoverageDetailRequest() {} + +std::string DescribeSavingsPlansCoverageDetailRequest::getPeriodType() const { + return periodType_; } -long DescribeSavingsPlansCoverageDetailRequest::getBillOwnerId()const -{ - return billOwnerId_; +void DescribeSavingsPlansCoverageDetailRequest::setPeriodType(const std::string &periodType) { + periodType_ = periodType; + setParameter(std::string("PeriodType"), periodType); } -void DescribeSavingsPlansCoverageDetailRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long DescribeSavingsPlansCoverageDetailRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string DescribeSavingsPlansCoverageDetailRequest::getStartPeriod()const -{ - return startPeriod_; +void DescribeSavingsPlansCoverageDetailRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void DescribeSavingsPlansCoverageDetailRequest::setStartPeriod(const std::string& startPeriod) -{ - startPeriod_ = startPeriod; - setParameter("StartPeriod", startPeriod); +std::string DescribeSavingsPlansCoverageDetailRequest::getStartPeriod() const { + return startPeriod_; } -std::string DescribeSavingsPlansCoverageDetailRequest::getEndPeriod()const -{ - return endPeriod_; +void DescribeSavingsPlansCoverageDetailRequest::setStartPeriod(const std::string &startPeriod) { + startPeriod_ = startPeriod; + setParameter(std::string("StartPeriod"), startPeriod); } -void DescribeSavingsPlansCoverageDetailRequest::setEndPeriod(const std::string& endPeriod) -{ - endPeriod_ = endPeriod; - setParameter("EndPeriod", endPeriod); +std::string DescribeSavingsPlansCoverageDetailRequest::getEndPeriod() const { + return endPeriod_; } -std::string DescribeSavingsPlansCoverageDetailRequest::getToken()const -{ - return token_; +void DescribeSavingsPlansCoverageDetailRequest::setEndPeriod(const std::string &endPeriod) { + endPeriod_ = endPeriod; + setParameter(std::string("EndPeriod"), endPeriod); } -void DescribeSavingsPlansCoverageDetailRequest::setToken(const std::string& token) -{ - token_ = token; - setParameter("Token", token); +std::string DescribeSavingsPlansCoverageDetailRequest::getToken() const { + return token_; } -int DescribeSavingsPlansCoverageDetailRequest::getMaxResults()const -{ - return maxResults_; +void DescribeSavingsPlansCoverageDetailRequest::setToken(const std::string &token) { + token_ = token; + setParameter(std::string("Token"), token); } -void DescribeSavingsPlansCoverageDetailRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeSavingsPlansCoverageDetailRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeSavingsPlansCoverageDetailRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/bssopenapi/src/model/DescribeSavingsPlansCoverageDetailResult.cc b/bssopenapi/src/model/DescribeSavingsPlansCoverageDetailResult.cc index fa2c9c88f..49a6f6f0f 100644 --- a/bssopenapi/src/model/DescribeSavingsPlansCoverageDetailResult.cc +++ b/bssopenapi/src/model/DescribeSavingsPlansCoverageDetailResult.cc @@ -50,36 +50,36 @@ void DescribeSavingsPlansCoverageDetailResult::parse(const std::string &payload) Data::Item itemObject; if(!dataNodeItemsItem["UserId"].isNull()) itemObject.userId = std::stol(dataNodeItemsItem["UserId"].asString()); - if(!dataNodeItemsItem["UserName"].isNull()) - itemObject.userName = dataNodeItemsItem["UserName"].asString(); if(!dataNodeItemsItem["InstanceId"].isNull()) itemObject.instanceId = dataNodeItemsItem["InstanceId"].asString(); - if(!dataNodeItemsItem["Region"].isNull()) - itemObject.region = dataNodeItemsItem["Region"].asString(); - if(!dataNodeItemsItem["InstanceSpec"].isNull()) - itemObject.instanceSpec = dataNodeItemsItem["InstanceSpec"].asString(); if(!dataNodeItemsItem["Currency"].isNull()) itemObject.currency = dataNodeItemsItem["Currency"].asString(); - if(!dataNodeItemsItem["CoveragePercentage"].isNull()) - itemObject.coveragePercentage = std::stof(dataNodeItemsItem["CoveragePercentage"].asString()); - if(!dataNodeItemsItem["DeductAmount"].isNull()) - itemObject.deductAmount = std::stof(dataNodeItemsItem["DeductAmount"].asString()); - if(!dataNodeItemsItem["TotalAmount"].isNull()) - itemObject.totalAmount = std::stof(dataNodeItemsItem["TotalAmount"].asString()); + if(!dataNodeItemsItem["InstanceSpec"].isNull()) + itemObject.instanceSpec = dataNodeItemsItem["InstanceSpec"].asString(); if(!dataNodeItemsItem["PostpaidCost"].isNull()) itemObject.postpaidCost = std::stof(dataNodeItemsItem["PostpaidCost"].asString()); + if(!dataNodeItemsItem["CoveragePercentage"].isNull()) + itemObject.coveragePercentage = std::stof(dataNodeItemsItem["CoveragePercentage"].asString()); + if(!dataNodeItemsItem["Region"].isNull()) + itemObject.region = dataNodeItemsItem["Region"].asString(); + if(!dataNodeItemsItem["DeductAmount"].isNull()) + itemObject.deductAmount = std::stof(dataNodeItemsItem["DeductAmount"].asString()); if(!dataNodeItemsItem["StartPeriod"].isNull()) itemObject.startPeriod = dataNodeItemsItem["StartPeriod"].asString(); + if(!dataNodeItemsItem["TotalAmount"].isNull()) + itemObject.totalAmount = std::stof(dataNodeItemsItem["TotalAmount"].asString()); + if(!dataNodeItemsItem["UserName"].isNull()) + itemObject.userName = dataNodeItemsItem["UserName"].asString(); if(!dataNodeItemsItem["EndPeriod"].isNull()) itemObject.endPeriod = dataNodeItemsItem["EndPeriod"].asString(); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/DescribeSavingsPlansCoverageTotalRequest.cc b/bssopenapi/src/model/DescribeSavingsPlansCoverageTotalRequest.cc index e7727e4c5..7ef24de5c 100644 --- a/bssopenapi/src/model/DescribeSavingsPlansCoverageTotalRequest.cc +++ b/bssopenapi/src/model/DescribeSavingsPlansCoverageTotalRequest.cc @@ -1,73 +1,63 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::DescribeSavingsPlansCoverageTotalRequest; - -DescribeSavingsPlansCoverageTotalRequest::DescribeSavingsPlansCoverageTotalRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeSavingsPlansCoverageTotal") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSavingsPlansCoverageTotalRequest::~DescribeSavingsPlansCoverageTotalRequest() -{} - -std::string DescribeSavingsPlansCoverageTotalRequest::getPeriodType()const -{ - return periodType_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::DescribeSavingsPlansCoverageTotalRequest; + +DescribeSavingsPlansCoverageTotalRequest::DescribeSavingsPlansCoverageTotalRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeSavingsPlansCoverageTotal") { + setMethod(HttpRequest::Method::Post); } -void DescribeSavingsPlansCoverageTotalRequest::setPeriodType(const std::string& periodType) -{ - periodType_ = periodType; - setParameter("PeriodType", periodType); +DescribeSavingsPlansCoverageTotalRequest::~DescribeSavingsPlansCoverageTotalRequest() {} + +std::string DescribeSavingsPlansCoverageTotalRequest::getPeriodType() const { + return periodType_; } -long DescribeSavingsPlansCoverageTotalRequest::getBillOwnerId()const -{ - return billOwnerId_; +void DescribeSavingsPlansCoverageTotalRequest::setPeriodType(const std::string &periodType) { + periodType_ = periodType; + setParameter(std::string("PeriodType"), periodType); } -void DescribeSavingsPlansCoverageTotalRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long DescribeSavingsPlansCoverageTotalRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string DescribeSavingsPlansCoverageTotalRequest::getStartPeriod()const -{ - return startPeriod_; +void DescribeSavingsPlansCoverageTotalRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void DescribeSavingsPlansCoverageTotalRequest::setStartPeriod(const std::string& startPeriod) -{ - startPeriod_ = startPeriod; - setParameter("StartPeriod", startPeriod); +std::string DescribeSavingsPlansCoverageTotalRequest::getStartPeriod() const { + return startPeriod_; } -std::string DescribeSavingsPlansCoverageTotalRequest::getEndPeriod()const -{ - return endPeriod_; +void DescribeSavingsPlansCoverageTotalRequest::setStartPeriod(const std::string &startPeriod) { + startPeriod_ = startPeriod; + setParameter(std::string("StartPeriod"), startPeriod); } -void DescribeSavingsPlansCoverageTotalRequest::setEndPeriod(const std::string& endPeriod) -{ - endPeriod_ = endPeriod; - setParameter("EndPeriod", endPeriod); +std::string DescribeSavingsPlansCoverageTotalRequest::getEndPeriod() const { + return endPeriod_; +} + +void DescribeSavingsPlansCoverageTotalRequest::setEndPeriod(const std::string &endPeriod) { + endPeriod_ = endPeriod; + setParameter(std::string("EndPeriod"), endPeriod); } diff --git a/bssopenapi/src/model/DescribeSavingsPlansCoverageTotalResult.cc b/bssopenapi/src/model/DescribeSavingsPlansCoverageTotalResult.cc index c7dbe3809..c7f1a46ce 100644 --- a/bssopenapi/src/model/DescribeSavingsPlansCoverageTotalResult.cc +++ b/bssopenapi/src/model/DescribeSavingsPlansCoverageTotalResult.cc @@ -44,10 +44,10 @@ void DescribeSavingsPlansCoverageTotalResult::parse(const std::string &payload) for (auto dataNodePeriodCoverageItem : allPeriodCoverageNode) { Data::Item itemObject; - if(!dataNodePeriodCoverageItem["Period"].isNull()) - itemObject.period = dataNodePeriodCoverageItem["Period"].asString(); if(!dataNodePeriodCoverageItem["Percentage"].isNull()) itemObject.percentage = std::stof(dataNodePeriodCoverageItem["Percentage"].asString()); + if(!dataNodePeriodCoverageItem["Period"].isNull()) + itemObject.period = dataNodePeriodCoverageItem["Period"].asString(); data_.periodCoverage.push_back(itemObject); } auto totalCoverageNode = dataNode["TotalCoverage"]; @@ -55,12 +55,12 @@ void DescribeSavingsPlansCoverageTotalResult::parse(const std::string &payload) data_.totalCoverage.coveragePercentage = std::stof(totalCoverageNode["CoveragePercentage"].asString()); if(!totalCoverageNode["DeductAmount"].isNull()) data_.totalCoverage.deductAmount = std::stof(totalCoverageNode["DeductAmount"].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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/DescribeSavingsPlansUsageDetailRequest.cc b/bssopenapi/src/model/DescribeSavingsPlansUsageDetailRequest.cc index 4972cc5e3..e244e88b8 100644 --- a/bssopenapi/src/model/DescribeSavingsPlansUsageDetailRequest.cc +++ b/bssopenapi/src/model/DescribeSavingsPlansUsageDetailRequest.cc @@ -1,95 +1,81 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::DescribeSavingsPlansUsageDetailRequest; - -DescribeSavingsPlansUsageDetailRequest::DescribeSavingsPlansUsageDetailRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeSavingsPlansUsageDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSavingsPlansUsageDetailRequest::~DescribeSavingsPlansUsageDetailRequest() -{} - -std::string DescribeSavingsPlansUsageDetailRequest::getPeriodType()const -{ - return periodType_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::DescribeSavingsPlansUsageDetailRequest; + +DescribeSavingsPlansUsageDetailRequest::DescribeSavingsPlansUsageDetailRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeSavingsPlansUsageDetail") { + setMethod(HttpRequest::Method::Post); } -void DescribeSavingsPlansUsageDetailRequest::setPeriodType(const std::string& periodType) -{ - periodType_ = periodType; - setParameter("PeriodType", periodType); +DescribeSavingsPlansUsageDetailRequest::~DescribeSavingsPlansUsageDetailRequest() {} + +std::string DescribeSavingsPlansUsageDetailRequest::getPeriodType() const { + return periodType_; } -long DescribeSavingsPlansUsageDetailRequest::getBillOwnerId()const -{ - return billOwnerId_; +void DescribeSavingsPlansUsageDetailRequest::setPeriodType(const std::string &periodType) { + periodType_ = periodType; + setParameter(std::string("PeriodType"), periodType); } -void DescribeSavingsPlansUsageDetailRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long DescribeSavingsPlansUsageDetailRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string DescribeSavingsPlansUsageDetailRequest::getStartPeriod()const -{ - return startPeriod_; +void DescribeSavingsPlansUsageDetailRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void DescribeSavingsPlansUsageDetailRequest::setStartPeriod(const std::string& startPeriod) -{ - startPeriod_ = startPeriod; - setParameter("StartPeriod", startPeriod); +std::string DescribeSavingsPlansUsageDetailRequest::getStartPeriod() const { + return startPeriod_; } -std::string DescribeSavingsPlansUsageDetailRequest::getEndPeriod()const -{ - return endPeriod_; +void DescribeSavingsPlansUsageDetailRequest::setStartPeriod(const std::string &startPeriod) { + startPeriod_ = startPeriod; + setParameter(std::string("StartPeriod"), startPeriod); } -void DescribeSavingsPlansUsageDetailRequest::setEndPeriod(const std::string& endPeriod) -{ - endPeriod_ = endPeriod; - setParameter("EndPeriod", endPeriod); +std::string DescribeSavingsPlansUsageDetailRequest::getEndPeriod() const { + return endPeriod_; } -std::string DescribeSavingsPlansUsageDetailRequest::getToken()const -{ - return token_; +void DescribeSavingsPlansUsageDetailRequest::setEndPeriod(const std::string &endPeriod) { + endPeriod_ = endPeriod; + setParameter(std::string("EndPeriod"), endPeriod); } -void DescribeSavingsPlansUsageDetailRequest::setToken(const std::string& token) -{ - token_ = token; - setParameter("Token", token); +std::string DescribeSavingsPlansUsageDetailRequest::getToken() const { + return token_; } -int DescribeSavingsPlansUsageDetailRequest::getMaxResults()const -{ - return maxResults_; +void DescribeSavingsPlansUsageDetailRequest::setToken(const std::string &token) { + token_ = token; + setParameter(std::string("Token"), token); } -void DescribeSavingsPlansUsageDetailRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeSavingsPlansUsageDetailRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeSavingsPlansUsageDetailRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/bssopenapi/src/model/DescribeSavingsPlansUsageDetailResult.cc b/bssopenapi/src/model/DescribeSavingsPlansUsageDetailResult.cc index 3bc2925aa..daf1db945 100644 --- a/bssopenapi/src/model/DescribeSavingsPlansUsageDetailResult.cc +++ b/bssopenapi/src/model/DescribeSavingsPlansUsageDetailResult.cc @@ -48,40 +48,40 @@ void DescribeSavingsPlansUsageDetailResult::parse(const std::string &payload) for (auto dataNodeItemsItem : allItemsNode) { Data::Item itemObject; - if(!dataNodeItemsItem["UserId"].isNull()) - itemObject.userId = std::stol(dataNodeItemsItem["UserId"].asString()); - if(!dataNodeItemsItem["UserName"].isNull()) - itemObject.userName = dataNodeItemsItem["UserName"].asString(); - if(!dataNodeItemsItem["InstanceId"].isNull()) - itemObject.instanceId = dataNodeItemsItem["InstanceId"].asString(); - if(!dataNodeItemsItem["StartPeriod"].isNull()) - itemObject.startPeriod = dataNodeItemsItem["StartPeriod"].asString(); - if(!dataNodeItemsItem["EndPeriod"].isNull()) - itemObject.endPeriod = dataNodeItemsItem["EndPeriod"].asString(); if(!dataNodeItemsItem["Status"].isNull()) itemObject.status = dataNodeItemsItem["Status"].asString(); if(!dataNodeItemsItem["Type"].isNull()) itemObject.type = dataNodeItemsItem["Type"].asString(); if(!dataNodeItemsItem["UsagePercentage"].isNull()) itemObject.usagePercentage = std::stof(dataNodeItemsItem["UsagePercentage"].asString()); - if(!dataNodeItemsItem["PoolValue"].isNull()) - itemObject.poolValue = std::stof(dataNodeItemsItem["PoolValue"].asString()); - if(!dataNodeItemsItem["DeductValue"].isNull()) - itemObject.deductValue = std::stof(dataNodeItemsItem["DeductValue"].asString()); - if(!dataNodeItemsItem["PostpaidCost"].isNull()) - itemObject.postpaidCost = std::stof(dataNodeItemsItem["PostpaidCost"].asString()); - if(!dataNodeItemsItem["SavedCost"].isNull()) - itemObject.savedCost = std::stof(dataNodeItemsItem["SavedCost"].asString()); + if(!dataNodeItemsItem["UserId"].isNull()) + itemObject.userId = std::stol(dataNodeItemsItem["UserId"].asString()); + if(!dataNodeItemsItem["InstanceId"].isNull()) + itemObject.instanceId = dataNodeItemsItem["InstanceId"].asString(); if(!dataNodeItemsItem["Currency"].isNull()) itemObject.currency = dataNodeItemsItem["Currency"].asString(); + if(!dataNodeItemsItem["PostpaidCost"].isNull()) + itemObject.postpaidCost = std::stof(dataNodeItemsItem["PostpaidCost"].asString()); + if(!dataNodeItemsItem["DeductValue"].isNull()) + itemObject.deductValue = std::stof(dataNodeItemsItem["DeductValue"].asString()); + if(!dataNodeItemsItem["StartPeriod"].isNull()) + itemObject.startPeriod = dataNodeItemsItem["StartPeriod"].asString(); + if(!dataNodeItemsItem["SavedCost"].isNull()) + itemObject.savedCost = std::stof(dataNodeItemsItem["SavedCost"].asString()); + if(!dataNodeItemsItem["PoolValue"].isNull()) + itemObject.poolValue = std::stof(dataNodeItemsItem["PoolValue"].asString()); + if(!dataNodeItemsItem["UserName"].isNull()) + itemObject.userName = dataNodeItemsItem["UserName"].asString(); + if(!dataNodeItemsItem["EndPeriod"].isNull()) + itemObject.endPeriod = dataNodeItemsItem["EndPeriod"].asString(); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/DescribeSavingsPlansUsageTotalRequest.cc b/bssopenapi/src/model/DescribeSavingsPlansUsageTotalRequest.cc index cf993c75b..ef40d84a6 100644 --- a/bssopenapi/src/model/DescribeSavingsPlansUsageTotalRequest.cc +++ b/bssopenapi/src/model/DescribeSavingsPlansUsageTotalRequest.cc @@ -1,73 +1,63 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::DescribeSavingsPlansUsageTotalRequest; - -DescribeSavingsPlansUsageTotalRequest::DescribeSavingsPlansUsageTotalRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeSavingsPlansUsageTotal") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSavingsPlansUsageTotalRequest::~DescribeSavingsPlansUsageTotalRequest() -{} - -std::string DescribeSavingsPlansUsageTotalRequest::getPeriodType()const -{ - return periodType_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::DescribeSavingsPlansUsageTotalRequest; + +DescribeSavingsPlansUsageTotalRequest::DescribeSavingsPlansUsageTotalRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeSavingsPlansUsageTotal") { + setMethod(HttpRequest::Method::Post); } -void DescribeSavingsPlansUsageTotalRequest::setPeriodType(const std::string& periodType) -{ - periodType_ = periodType; - setParameter("PeriodType", periodType); +DescribeSavingsPlansUsageTotalRequest::~DescribeSavingsPlansUsageTotalRequest() {} + +std::string DescribeSavingsPlansUsageTotalRequest::getPeriodType() const { + return periodType_; } -long DescribeSavingsPlansUsageTotalRequest::getBillOwnerId()const -{ - return billOwnerId_; +void DescribeSavingsPlansUsageTotalRequest::setPeriodType(const std::string &periodType) { + periodType_ = periodType; + setParameter(std::string("PeriodType"), periodType); } -void DescribeSavingsPlansUsageTotalRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long DescribeSavingsPlansUsageTotalRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string DescribeSavingsPlansUsageTotalRequest::getStartPeriod()const -{ - return startPeriod_; +void DescribeSavingsPlansUsageTotalRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void DescribeSavingsPlansUsageTotalRequest::setStartPeriod(const std::string& startPeriod) -{ - startPeriod_ = startPeriod; - setParameter("StartPeriod", startPeriod); +std::string DescribeSavingsPlansUsageTotalRequest::getStartPeriod() const { + return startPeriod_; } -std::string DescribeSavingsPlansUsageTotalRequest::getEndPeriod()const -{ - return endPeriod_; +void DescribeSavingsPlansUsageTotalRequest::setStartPeriod(const std::string &startPeriod) { + startPeriod_ = startPeriod; + setParameter(std::string("StartPeriod"), startPeriod); } -void DescribeSavingsPlansUsageTotalRequest::setEndPeriod(const std::string& endPeriod) -{ - endPeriod_ = endPeriod; - setParameter("EndPeriod", endPeriod); +std::string DescribeSavingsPlansUsageTotalRequest::getEndPeriod() const { + return endPeriod_; +} + +void DescribeSavingsPlansUsageTotalRequest::setEndPeriod(const std::string &endPeriod) { + endPeriod_ = endPeriod; + setParameter(std::string("EndPeriod"), endPeriod); } diff --git a/bssopenapi/src/model/DescribeSavingsPlansUsageTotalResult.cc b/bssopenapi/src/model/DescribeSavingsPlansUsageTotalResult.cc index 41ea344c8..03f720e3e 100644 --- a/bssopenapi/src/model/DescribeSavingsPlansUsageTotalResult.cc +++ b/bssopenapi/src/model/DescribeSavingsPlansUsageTotalResult.cc @@ -44,27 +44,27 @@ void DescribeSavingsPlansUsageTotalResult::parse(const std::string &payload) for (auto dataNodePeriodCoverageItem : allPeriodCoverageNode) { Data::Item itemObject; - if(!dataNodePeriodCoverageItem["Period"].isNull()) - itemObject.period = dataNodePeriodCoverageItem["Period"].asString(); if(!dataNodePeriodCoverageItem["Percentage"].isNull()) itemObject.percentage = std::stof(dataNodePeriodCoverageItem["Percentage"].asString()); + if(!dataNodePeriodCoverageItem["Period"].isNull()) + itemObject.period = dataNodePeriodCoverageItem["Period"].asString(); data_.periodCoverage.push_back(itemObject); } auto totalUsageNode = dataNode["TotalUsage"]; - if(!totalUsageNode["UsagePercentage"].isNull()) - data_.totalUsage.usagePercentage = std::stof(totalUsageNode["UsagePercentage"].asString()); if(!totalUsageNode["PostpaidCost"].isNull()) data_.totalUsage.postpaidCost = std::stof(totalUsageNode["PostpaidCost"].asString()); - if(!totalUsageNode["PoolValue"].isNull()) - data_.totalUsage.poolValue = std::stof(totalUsageNode["PoolValue"].asString()); if(!totalUsageNode["SavedCost"].isNull()) data_.totalUsage.savedCost = std::stof(totalUsageNode["SavedCost"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!totalUsageNode["UsagePercentage"].isNull()) + data_.totalUsage.usagePercentage = std::stof(totalUsageNode["UsagePercentage"].asString()); + if(!totalUsageNode["PoolValue"].isNull()) + data_.totalUsage.poolValue = std::stof(totalUsageNode["PoolValue"].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"; } diff --git a/bssopenapi/src/model/DescribeSplitItemBillRequest.cc b/bssopenapi/src/model/DescribeSplitItemBillRequest.cc index 03efcab9c..f47940519 100644 --- a/bssopenapi/src/model/DescribeSplitItemBillRequest.cc +++ b/bssopenapi/src/model/DescribeSplitItemBillRequest.cc @@ -1,179 +1,148 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::DescribeSplitItemBillRequest; - -DescribeSplitItemBillRequest::DescribeSplitItemBillRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeSplitItemBill") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSplitItemBillRequest::~DescribeSplitItemBillRequest() -{} - -std::string DescribeSplitItemBillRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::DescribeSplitItemBillRequest; + +DescribeSplitItemBillRequest::DescribeSplitItemBillRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeSplitItemBill") { + setMethod(HttpRequest::Method::Post); } -void DescribeSplitItemBillRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +DescribeSplitItemBillRequest::~DescribeSplitItemBillRequest() {} + +std::string DescribeSplitItemBillRequest::getProductCode() const { + return productCode_; } -std::string DescribeSplitItemBillRequest::getSubscriptionType()const -{ - return subscriptionType_; +void DescribeSplitItemBillRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void DescribeSplitItemBillRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string DescribeSplitItemBillRequest::getSubscriptionType() const { + return subscriptionType_; } -long DescribeSplitItemBillRequest::getBillOwnerId()const -{ - return billOwnerId_; +void DescribeSplitItemBillRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void DescribeSplitItemBillRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long DescribeSplitItemBillRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string DescribeSplitItemBillRequest::getProductType()const -{ - return productType_; +void DescribeSplitItemBillRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void DescribeSplitItemBillRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string DescribeSplitItemBillRequest::getProductType() const { + return productType_; } -std::string DescribeSplitItemBillRequest::getNextToken()const -{ - return nextToken_; +void DescribeSplitItemBillRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void DescribeSplitItemBillRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeSplitItemBillRequest::getNextToken() const { + return nextToken_; } -std::string DescribeSplitItemBillRequest::getSplitItemID()const -{ - return splitItemID_; +void DescribeSplitItemBillRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeSplitItemBillRequest::setSplitItemID(const std::string& splitItemID) -{ - splitItemID_ = splitItemID; - setParameter("SplitItemID", splitItemID); +std::string DescribeSplitItemBillRequest::getSplitItemID() const { + return splitItemID_; } -std::string DescribeSplitItemBillRequest::getBillingCycle()const -{ - return billingCycle_; +void DescribeSplitItemBillRequest::setSplitItemID(const std::string &splitItemID) { + splitItemID_ = splitItemID; + setParameter(std::string("SplitItemID"), splitItemID); } -void DescribeSplitItemBillRequest::setBillingCycle(const std::string& billingCycle) -{ - billingCycle_ = billingCycle; - setParameter("BillingCycle", billingCycle); +std::string DescribeSplitItemBillRequest::getBillingCycle() const { + return billingCycle_; } -long DescribeSplitItemBillRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSplitItemBillRequest::setBillingCycle(const std::string &billingCycle) { + billingCycle_ = billingCycle; + setParameter(std::string("BillingCycle"), billingCycle); } -void DescribeSplitItemBillRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSplitItemBillRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeSplitItemBillRequest::getTagFilter()const -{ - return tagFilter_; +void DescribeSplitItemBillRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSplitItemBillRequest::setTagFilter(const std::vector& tagFilter) -{ - tagFilter_ = tagFilter; - for(int dep1 = 0; dep1!= tagFilter.size(); dep1++) { - auto tagFilterObj = tagFilter.at(dep1); - std::string tagFilterObjStr = "TagFilter." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= tagFilterObj.tagValues.size(); dep2++) { - setParameter(tagFilterObjStr + ".TagValues."+ std::to_string(dep2), tagFilterObj.tagValues.at(dep2)); - } - setParameter(tagFilterObjStr + ".TagKey", tagFilterObj.tagKey); - } +std::vector DescribeSplitItemBillRequest::getTagFilter() const { + return tagFilter_; } -std::string DescribeSplitItemBillRequest::getBillingDate()const -{ - return billingDate_; +void DescribeSplitItemBillRequest::setTagFilter(const std::vector &tagFilter) { + tagFilter_ = tagFilter; + for(int dep1 = 0; dep1 != tagFilter.size(); dep1++) { + auto tagFilterObj = tagFilter.at(dep1); + std::string tagFilterObjStr = std::string("TagFilter") + "." + std::to_string(dep1 + 1); + setParameter(tagFilterObjStr + ".TagKey", tagFilterObj.tagKey); + } } -void DescribeSplitItemBillRequest::setBillingDate(const std::string& billingDate) -{ - billingDate_ = billingDate; - setParameter("BillingDate", billingDate); +std::string DescribeSplitItemBillRequest::getBillingDate() const { + return billingDate_; } -std::string DescribeSplitItemBillRequest::getInstanceID()const -{ - return instanceID_; +void DescribeSplitItemBillRequest::setBillingDate(const std::string &billingDate) { + billingDate_ = billingDate; + setParameter(std::string("BillingDate"), billingDate); } -void DescribeSplitItemBillRequest::setInstanceID(const std::string& instanceID) -{ - instanceID_ = instanceID; - setParameter("InstanceID", instanceID); +std::string DescribeSplitItemBillRequest::getInstanceID() const { + return instanceID_; } -std::string DescribeSplitItemBillRequest::getGranularity()const -{ - return granularity_; +void DescribeSplitItemBillRequest::setInstanceID(const std::string &instanceID) { + instanceID_ = instanceID; + setParameter(std::string("InstanceID"), instanceID); } -void DescribeSplitItemBillRequest::setGranularity(const std::string& granularity) -{ - granularity_ = granularity; - setParameter("Granularity", granularity); +std::string DescribeSplitItemBillRequest::getGranularity() const { + return granularity_; } -int DescribeSplitItemBillRequest::getMaxResults()const -{ - return maxResults_; +void DescribeSplitItemBillRequest::setGranularity(const std::string &granularity) { + granularity_ = granularity; + setParameter(std::string("Granularity"), granularity); } -void DescribeSplitItemBillRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeSplitItemBillRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeSplitItemBillRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/bssopenapi/src/model/DescribeSplitItemBillResult.cc b/bssopenapi/src/model/DescribeSplitItemBillResult.cc index 3b6b64bbd..30053752a 100644 --- a/bssopenapi/src/model/DescribeSplitItemBillResult.cc +++ b/bssopenapi/src/model/DescribeSplitItemBillResult.cc @@ -40,130 +40,138 @@ void DescribeSplitItemBillResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["BillingCycle"].isNull()) - data_.billingCycle = dataNode["BillingCycle"].asString(); - if(!dataNode["AccountID"].isNull()) - data_.accountID = dataNode["AccountID"].asString(); - if(!dataNode["AccountName"].isNull()) - data_.accountName = dataNode["AccountName"].asString(); - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); if(!dataNode["NextToken"].isNull()) data_.nextToken = dataNode["NextToken"].asString(); + if(!dataNode["BillingCycle"].isNull()) + data_.billingCycle = dataNode["BillingCycle"].asString(); if(!dataNode["MaxResults"].isNull()) data_.maxResults = std::stoi(dataNode["MaxResults"].asString()); + if(!dataNode["AccountID"].isNull()) + data_.accountID = dataNode["AccountID"].asString(); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + if(!dataNode["AccountName"].isNull()) + data_.accountName = dataNode["AccountName"].asString(); auto allItemsNode = dataNode["Items"]["Item"]; for (auto dataNodeItemsItem : allItemsNode) { Data::Item itemObject; - if(!dataNodeItemsItem["InstanceID"].isNull()) - itemObject.instanceID = dataNodeItemsItem["InstanceID"].asString(); - if(!dataNodeItemsItem["BillingType"].isNull()) - itemObject.billingType = dataNodeItemsItem["BillingType"].asString(); - if(!dataNodeItemsItem["CostUnit"].isNull()) - itemObject.costUnit = dataNodeItemsItem["CostUnit"].asString(); - if(!dataNodeItemsItem["ProductCode"].isNull()) - itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); - if(!dataNodeItemsItem["ProductType"].isNull()) - itemObject.productType = dataNodeItemsItem["ProductType"].asString(); + if(!dataNodeItemsItem["SplitAccountID"].isNull()) + itemObject.splitAccountID = dataNodeItemsItem["SplitAccountID"].asString(); + if(!dataNodeItemsItem["BillAccountName"].isNull()) + itemObject.billAccountName = dataNodeItemsItem["BillAccountName"].asString(); if(!dataNodeItemsItem["SubscriptionType"].isNull()) itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); - if(!dataNodeItemsItem["ProductName"].isNull()) - itemObject.productName = dataNodeItemsItem["ProductName"].asString(); - if(!dataNodeItemsItem["ProductDetail"].isNull()) - itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString(); - if(!dataNodeItemsItem["OwnerID"].isNull()) - itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); - if(!dataNodeItemsItem["BillingItem"].isNull()) - itemObject.billingItem = dataNodeItemsItem["BillingItem"].asString(); - if(!dataNodeItemsItem["ListPrice"].isNull()) - itemObject.listPrice = dataNodeItemsItem["ListPrice"].asString(); - if(!dataNodeItemsItem["ListPriceUnit"].isNull()) - itemObject.listPriceUnit = dataNodeItemsItem["ListPriceUnit"].asString(); - if(!dataNodeItemsItem["Usage"].isNull()) - itemObject.usage = dataNodeItemsItem["Usage"].asString(); - if(!dataNodeItemsItem["UsageUnit"].isNull()) - itemObject.usageUnit = dataNodeItemsItem["UsageUnit"].asString(); - if(!dataNodeItemsItem["DeductedByResourcePackage"].isNull()) - itemObject.deductedByResourcePackage = dataNodeItemsItem["DeductedByResourcePackage"].asString(); - if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) - itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); - if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) - itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); - if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) - itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); - if(!dataNodeItemsItem["PretaxAmount"].isNull()) - itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); - if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) - itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); - if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) - itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); - if(!dataNodeItemsItem["PaymentAmount"].isNull()) - itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); - if(!dataNodeItemsItem["OutstandingAmount"].isNull()) - itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); - if(!dataNodeItemsItem["Currency"].isNull()) - itemObject.currency = dataNodeItemsItem["Currency"].asString(); - if(!dataNodeItemsItem["NickName"].isNull()) - itemObject.nickName = dataNodeItemsItem["NickName"].asString(); - if(!dataNodeItemsItem["ResourceGroup"].isNull()) - itemObject.resourceGroup = dataNodeItemsItem["ResourceGroup"].asString(); - if(!dataNodeItemsItem["Tag"].isNull()) - itemObject.tag = dataNodeItemsItem["Tag"].asString(); - if(!dataNodeItemsItem["InstanceConfig"].isNull()) - itemObject.instanceConfig = dataNodeItemsItem["InstanceConfig"].asString(); if(!dataNodeItemsItem["InstanceSpec"].isNull()) itemObject.instanceSpec = dataNodeItemsItem["InstanceSpec"].asString(); - if(!dataNodeItemsItem["InternetIP"].isNull()) - itemObject.internetIP = dataNodeItemsItem["InternetIP"].asString(); - if(!dataNodeItemsItem["IntranetIP"].isNull()) - itemObject.intranetIP = dataNodeItemsItem["IntranetIP"].asString(); + if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) + itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); if(!dataNodeItemsItem["Region"].isNull()) itemObject.region = dataNodeItemsItem["Region"].asString(); - if(!dataNodeItemsItem["Zone"].isNull()) - itemObject.zone = dataNodeItemsItem["Zone"].asString(); - if(!dataNodeItemsItem["Item"].isNull()) - itemObject.item = dataNodeItemsItem["Item"].asString(); - if(!dataNodeItemsItem["ServicePeriod"].isNull()) - itemObject.servicePeriod = dataNodeItemsItem["ServicePeriod"].asString(); - if(!dataNodeItemsItem["BillingDate"].isNull()) - itemObject.billingDate = dataNodeItemsItem["BillingDate"].asString(); - if(!dataNodeItemsItem["SplitItemID"].isNull()) - itemObject.splitItemID = dataNodeItemsItem["SplitItemID"].asString(); - if(!dataNodeItemsItem["SplitItemName"].isNull()) - itemObject.splitItemName = dataNodeItemsItem["SplitItemName"].asString(); + if(!dataNodeItemsItem["OutstandingAmount"].isNull()) + itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); if(!dataNodeItemsItem["PipCode"].isNull()) itemObject.pipCode = dataNodeItemsItem["PipCode"].asString(); if(!dataNodeItemsItem["CommodityCode"].isNull()) itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString(); - if(!dataNodeItemsItem["ServicePeriodUnit"].isNull()) - itemObject.servicePeriodUnit = dataNodeItemsItem["ServicePeriodUnit"].asString(); + if(!dataNodeItemsItem["NickName"].isNull()) + itemObject.nickName = dataNodeItemsItem["NickName"].asString(); + if(!dataNodeItemsItem["ProductDetail"].isNull()) + itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString(); + if(!dataNodeItemsItem["Usage"].isNull()) + itemObject.usage = dataNodeItemsItem["Usage"].asString(); + if(!dataNodeItemsItem["IntranetIP"].isNull()) + itemObject.intranetIP = dataNodeItemsItem["IntranetIP"].asString(); + if(!dataNodeItemsItem["UsageUnit"].isNull()) + itemObject.usageUnit = dataNodeItemsItem["UsageUnit"].asString(); if(!dataNodeItemsItem["SplitCommodityCode"].isNull()) itemObject.splitCommodityCode = dataNodeItemsItem["SplitCommodityCode"].asString(); - if(!dataNodeItemsItem["SplitProductDetail"].isNull()) - itemObject.splitProductDetail = dataNodeItemsItem["SplitProductDetail"].asString(); - if(!dataNodeItemsItem["SplitAccountID"].isNull()) - itemObject.splitAccountID = dataNodeItemsItem["SplitAccountID"].asString(); - if(!dataNodeItemsItem["SplitAccountName"].isNull()) - itemObject.splitAccountName = dataNodeItemsItem["SplitAccountName"].asString(); - if(!dataNodeItemsItem["SplitBillingCycle"].isNull()) - itemObject.splitBillingCycle = dataNodeItemsItem["SplitBillingCycle"].asString(); - if(!dataNodeItemsItem["SplitBillingDate"].isNull()) - itemObject.splitBillingDate = dataNodeItemsItem["SplitBillingDate"].asString(); - if(!dataNodeItemsItem["BizType"].isNull()) - itemObject.bizType = dataNodeItemsItem["BizType"].asString(); if(!dataNodeItemsItem["BillAccountID"].isNull()) itemObject.billAccountID = dataNodeItemsItem["BillAccountID"].asString(); - if(!dataNodeItemsItem["BillAccountName"].isNull()) - itemObject.billAccountName = dataNodeItemsItem["BillAccountName"].asString(); + if(!dataNodeItemsItem["ProductType"].isNull()) + itemObject.productType = dataNodeItemsItem["ProductType"].asString(); + if(!dataNodeItemsItem["DeductedByResourcePackage"].isNull()) + itemObject.deductedByResourcePackage = dataNodeItemsItem["DeductedByResourcePackage"].asString(); + if(!dataNodeItemsItem["PaymentAmount"].isNull()) + itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); + if(!dataNodeItemsItem["SplitBillingCycle"].isNull()) + itemObject.splitBillingCycle = dataNodeItemsItem["SplitBillingCycle"].asString(); + if(!dataNodeItemsItem["ServicePeriod"].isNull()) + itemObject.servicePeriod = dataNodeItemsItem["ServicePeriod"].asString(); + if(!dataNodeItemsItem["SplitItemName"].isNull()) + itemObject.splitItemName = dataNodeItemsItem["SplitItemName"].asString(); + if(!dataNodeItemsItem["ListPrice"].isNull()) + itemObject.listPrice = dataNodeItemsItem["ListPrice"].asString(); + if(!dataNodeItemsItem["Zone"].isNull()) + itemObject.zone = dataNodeItemsItem["Zone"].asString(); + if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) + itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); + if(!dataNodeItemsItem["CashAmount"].isNull()) + itemObject.cashAmount = std::stof(dataNodeItemsItem["CashAmount"].asString()); + if(!dataNodeItemsItem["InstanceConfig"].isNull()) + itemObject.instanceConfig = dataNodeItemsItem["InstanceConfig"].asString(); + if(!dataNodeItemsItem["BillingDate"].isNull()) + itemObject.billingDate = dataNodeItemsItem["BillingDate"].asString(); + if(!dataNodeItemsItem["InternetIP"].isNull()) + itemObject.internetIP = dataNodeItemsItem["InternetIP"].asString(); + if(!dataNodeItemsItem["Item"].isNull()) + itemObject.item = dataNodeItemsItem["Item"].asString(); + if(!dataNodeItemsItem["SplitItemID"].isNull()) + itemObject.splitItemID = dataNodeItemsItem["SplitItemID"].asString(); + if(!dataNodeItemsItem["InstanceID"].isNull()) + itemObject.instanceID = dataNodeItemsItem["InstanceID"].asString(); + if(!dataNodeItemsItem["Tag"].isNull()) + itemObject.tag = dataNodeItemsItem["Tag"].asString(); + if(!dataNodeItemsItem["Currency"].isNull()) + itemObject.currency = dataNodeItemsItem["Currency"].asString(); + if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) + itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); + if(!dataNodeItemsItem["BizType"].isNull()) + itemObject.bizType = dataNodeItemsItem["BizType"].asString(); + if(!dataNodeItemsItem["BillingItem"].isNull()) + itemObject.billingItem = dataNodeItemsItem["BillingItem"].asString(); + if(!dataNodeItemsItem["BillingItemCode"].isNull()) + itemObject.billingItemCode = dataNodeItemsItem["BillingItemCode"].asString(); + if(!dataNodeItemsItem["CostUnit"].isNull()) + itemObject.costUnit = dataNodeItemsItem["CostUnit"].asString(); + if(!dataNodeItemsItem["ListPriceUnit"].isNull()) + itemObject.listPriceUnit = dataNodeItemsItem["ListPriceUnit"].asString(); + if(!dataNodeItemsItem["ResourceGroup"].isNull()) + itemObject.resourceGroup = dataNodeItemsItem["ResourceGroup"].asString(); + if(!dataNodeItemsItem["PretaxAmount"].isNull()) + itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); + if(!dataNodeItemsItem["ServicePeriodUnit"].isNull()) + itemObject.servicePeriodUnit = dataNodeItemsItem["ServicePeriodUnit"].asString(); + if(!dataNodeItemsItem["SplitBillingDate"].isNull()) + itemObject.splitBillingDate = dataNodeItemsItem["SplitBillingDate"].asString(); + if(!dataNodeItemsItem["ProductName"].isNull()) + itemObject.productName = dataNodeItemsItem["ProductName"].asString(); + if(!dataNodeItemsItem["SplitProductDetail"].isNull()) + itemObject.splitProductDetail = dataNodeItemsItem["SplitProductDetail"].asString(); + if(!dataNodeItemsItem["AdjustAmount"].isNull()) + itemObject.adjustAmount = std::stof(dataNodeItemsItem["AdjustAmount"].asString()); + if(!dataNodeItemsItem["OwnerID"].isNull()) + itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); + if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) + itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); + if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) + itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); + if(!dataNodeItemsItem["SplitAccountName"].isNull()) + itemObject.splitAccountName = dataNodeItemsItem["SplitAccountName"].asString(); + if(!dataNodeItemsItem["BillingType"].isNull()) + itemObject.billingType = dataNodeItemsItem["BillingType"].asString(); + if(!dataNodeItemsItem["ProductCode"].isNull()) + itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); + if(!dataNodeItemsItem["ItemName"].isNull()) + itemObject.itemName = dataNodeItemsItem["ItemName"].asString(); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/EnableBillGenerationRequest.cc b/bssopenapi/src/model/EnableBillGenerationRequest.cc index a589f9fc0..d14188b16 100644 --- a/bssopenapi/src/model/EnableBillGenerationRequest.cc +++ b/bssopenapi/src/model/EnableBillGenerationRequest.cc @@ -1,51 +1,45 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::EnableBillGenerationRequest; - -EnableBillGenerationRequest::EnableBillGenerationRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "EnableBillGeneration") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableBillGenerationRequest::~EnableBillGenerationRequest() -{} - -std::string EnableBillGenerationRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::EnableBillGenerationRequest; + +EnableBillGenerationRequest::EnableBillGenerationRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "EnableBillGeneration") { + setMethod(HttpRequest::Method::Post); } -void EnableBillGenerationRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +EnableBillGenerationRequest::~EnableBillGenerationRequest() {} + +std::string EnableBillGenerationRequest::getProductCode() const { + return productCode_; } -long EnableBillGenerationRequest::getOwnerId()const -{ - return ownerId_; +void EnableBillGenerationRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void EnableBillGenerationRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long EnableBillGenerationRequest::getOwnerId() const { + return ownerId_; +} + +void EnableBillGenerationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/bssopenapi/src/model/EnableBillGenerationResult.cc b/bssopenapi/src/model/EnableBillGenerationResult.cc index c42336d66..de20c30f4 100644 --- a/bssopenapi/src/model/EnableBillGenerationResult.cc +++ b/bssopenapi/src/model/EnableBillGenerationResult.cc @@ -42,12 +42,12 @@ void EnableBillGenerationResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["Boolean"].isNull()) data_.boolean = dataNode["Boolean"].asString() == "true"; - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/GetAccountRelationRequest.cc b/bssopenapi/src/model/GetAccountRelationRequest.cc new file mode 100644 index 000000000..8a0e8dbd0 --- /dev/null +++ b/bssopenapi/src/model/GetAccountRelationRequest.cc @@ -0,0 +1,45 @@ +/* + * 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 + +using AlibabaCloud::BssOpenApi::Model::GetAccountRelationRequest; + +GetAccountRelationRequest::GetAccountRelationRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "GetAccountRelation") { + setMethod(HttpRequest::Method::Get); +} + +GetAccountRelationRequest::~GetAccountRelationRequest() {} + +std::string GetAccountRelationRequest::getRequestId() const { + return requestId_; +} + +void GetAccountRelationRequest::setRequestId(const std::string &requestId) { + requestId_ = requestId; + setParameter(std::string("RequestId"), requestId); +} + +long GetAccountRelationRequest::getRelationId() const { + return relationId_; +} + +void GetAccountRelationRequest::setRelationId(long relationId) { + relationId_ = relationId; + setParameter(std::string("RelationId"), std::to_string(relationId)); +} + diff --git a/bssopenapi/src/model/GetAccountRelationResult.cc b/bssopenapi/src/model/GetAccountRelationResult.cc new file mode 100644 index 000000000..19db03694 --- /dev/null +++ b/bssopenapi/src/model/GetAccountRelationResult.cc @@ -0,0 +1,87 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +GetAccountRelationResult::GetAccountRelationResult() : + ServiceResult() +{} + +GetAccountRelationResult::GetAccountRelationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAccountRelationResult::~GetAccountRelationResult() +{} + +void GetAccountRelationResult::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["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["ParentUserId"].isNull()) + data_.parentUserId = std::stol(dataNode["ParentUserId"].asString()); + if(!dataNode["ChildUserId"].isNull()) + data_.childUserId = std::stol(dataNode["ChildUserId"].asString()); + if(!dataNode["StartTime"].isNull()) + data_.startTime = std::stol(dataNode["StartTime"].asString()); + if(!dataNode["EndTime"].isNull()) + data_.endTime = std::stol(dataNode["EndTime"].asString()); + if(!dataNode["Type"].isNull()) + data_.type = dataNode["Type"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["GmtModified"].isNull()) + data_.gmtModified = std::stol(dataNode["GmtModified"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetAccountRelationResult::getMessage()const +{ + return message_; +} + +GetAccountRelationResult::Data GetAccountRelationResult::getData()const +{ + return data_; +} + +std::string GetAccountRelationResult::getCode()const +{ + return code_; +} + +bool GetAccountRelationResult::getSuccess()const +{ + return success_; +} + diff --git a/bssopenapi/src/model/GetCustomerAccountInfoRequest.cc b/bssopenapi/src/model/GetCustomerAccountInfoRequest.cc index 5a5ad0a87..231aedf50 100644 --- a/bssopenapi/src/model/GetCustomerAccountInfoRequest.cc +++ b/bssopenapi/src/model/GetCustomerAccountInfoRequest.cc @@ -1,40 +1,36 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::GetCustomerAccountInfoRequest; - -GetCustomerAccountInfoRequest::GetCustomerAccountInfoRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerAccountInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -GetCustomerAccountInfoRequest::~GetCustomerAccountInfoRequest() -{} - -long GetCustomerAccountInfoRequest::getOwnerId()const -{ - return ownerId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::GetCustomerAccountInfoRequest; + +GetCustomerAccountInfoRequest::GetCustomerAccountInfoRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerAccountInfo") { + setMethod(HttpRequest::Method::Post); } -void GetCustomerAccountInfoRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +GetCustomerAccountInfoRequest::~GetCustomerAccountInfoRequest() {} + +long GetCustomerAccountInfoRequest::getOwnerId() const { + return ownerId_; +} + +void GetCustomerAccountInfoRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/bssopenapi/src/model/GetCustomerAccountInfoResult.cc b/bssopenapi/src/model/GetCustomerAccountInfoResult.cc index 5b83a2218..0662d115c 100644 --- a/bssopenapi/src/model/GetCustomerAccountInfoResult.cc +++ b/bssopenapi/src/model/GetCustomerAccountInfoResult.cc @@ -40,24 +40,24 @@ void GetCustomerAccountInfoResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["LoginEmail"].isNull()) - data_.loginEmail = dataNode["LoginEmail"].asString(); - if(!dataNode["AccountType"].isNull()) - data_.accountType = dataNode["AccountType"].asString(); if(!dataNode["Mpk"].isNull()) data_.mpk = std::stol(dataNode["Mpk"].asString()); + if(!dataNode["LoginEmail"].isNull()) + data_.loginEmail = dataNode["LoginEmail"].asString(); if(!dataNode["HostingStatus"].isNull()) data_.hostingStatus = dataNode["HostingStatus"].asString(); + if(!dataNode["AccountType"].isNull()) + data_.accountType = dataNode["AccountType"].asString(); if(!dataNode["CreditLimitStatus"].isNull()) data_.creditLimitStatus = dataNode["CreditLimitStatus"].asString(); if(!dataNode["IsCertified"].isNull()) data_.isCertified = dataNode["IsCertified"].asString() == "true"; - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/GetCustomerListRequest.cc b/bssopenapi/src/model/GetCustomerListRequest.cc index 518c85f72..58c757b6a 100644 --- a/bssopenapi/src/model/GetCustomerListRequest.cc +++ b/bssopenapi/src/model/GetCustomerListRequest.cc @@ -1,29 +1,27 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::GetCustomerListRequest; - -GetCustomerListRequest::GetCustomerListRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerList") -{ - setMethod(HttpRequest::Method::Post); -} - -GetCustomerListRequest::~GetCustomerListRequest() -{} - + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::GetCustomerListRequest; + +GetCustomerListRequest::GetCustomerListRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerList") { + setMethod(HttpRequest::Method::Post); +} + +GetCustomerListRequest::~GetCustomerListRequest() {} + diff --git a/bssopenapi/src/model/GetCustomerListResult.cc b/bssopenapi/src/model/GetCustomerListResult.cc index cc1dae365..c3b7cc8cc 100644 --- a/bssopenapi/src/model/GetCustomerListResult.cc +++ b/bssopenapi/src/model/GetCustomerListResult.cc @@ -43,12 +43,12 @@ void GetCustomerListResult::parse(const std::string &payload) auto allUidList = dataNode["UidList"]["Item"]; for (auto value : allUidList) data_.uidList.push_back(value.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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/GetOrderDetailRequest.cc b/bssopenapi/src/model/GetOrderDetailRequest.cc index eab412429..ce19c469a 100644 --- a/bssopenapi/src/model/GetOrderDetailRequest.cc +++ b/bssopenapi/src/model/GetOrderDetailRequest.cc @@ -1,51 +1,45 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::GetOrderDetailRequest; - -GetOrderDetailRequest::GetOrderDetailRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "GetOrderDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -GetOrderDetailRequest::~GetOrderDetailRequest() -{} - -std::string GetOrderDetailRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::GetOrderDetailRequest; + +GetOrderDetailRequest::GetOrderDetailRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "GetOrderDetail") { + setMethod(HttpRequest::Method::Post); } -void GetOrderDetailRequest::setOrderId(const std::string& orderId) -{ - orderId_ = orderId; - setParameter("OrderId", orderId); +GetOrderDetailRequest::~GetOrderDetailRequest() {} + +std::string GetOrderDetailRequest::getOrderId() const { + return orderId_; } -long GetOrderDetailRequest::getOwnerId()const -{ - return ownerId_; +void GetOrderDetailRequest::setOrderId(const std::string &orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), orderId); } -void GetOrderDetailRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetOrderDetailRequest::getOwnerId() const { + return ownerId_; +} + +void GetOrderDetailRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/bssopenapi/src/model/GetOrderDetailResult.cc b/bssopenapi/src/model/GetOrderDetailResult.cc index af27a6623..e57183e29 100644 --- a/bssopenapi/src/model/GetOrderDetailResult.cc +++ b/bssopenapi/src/model/GetOrderDetailResult.cc @@ -40,78 +40,78 @@ void GetOrderDetailResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - if(!dataNode["PageSize"].isNull()) - data_.pageSize = std::stoi(dataNode["PageSize"].asString()); - if(!dataNode["PageNum"].isNull()) - data_.pageNum = std::stoi(dataNode["PageNum"].asString()); if(!dataNode["HostName"].isNull()) data_.hostName = dataNode["HostName"].asString(); + if(!dataNode["PageNum"].isNull()) + data_.pageNum = std::stoi(dataNode["PageNum"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); auto allOrderListNode = dataNode["OrderList"]["Order"]; for (auto dataNodeOrderListOrder : allOrderListNode) { Data::Order orderObject; - if(!dataNodeOrderListOrder["Operator"].isNull()) - orderObject._operator = dataNodeOrderListOrder["Operator"].asString(); - if(!dataNodeOrderListOrder["AfterTaxAmount"].isNull()) - orderObject.afterTaxAmount = dataNodeOrderListOrder["AfterTaxAmount"].asString(); - if(!dataNodeOrderListOrder["SubOrderId"].isNull()) - orderObject.subOrderId = dataNodeOrderListOrder["SubOrderId"].asString(); - if(!dataNodeOrderListOrder["Config"].isNull()) - orderObject.config = dataNodeOrderListOrder["Config"].asString(); - if(!dataNodeOrderListOrder["Tax"].isNull()) - orderObject.tax = dataNodeOrderListOrder["Tax"].asString(); - if(!dataNodeOrderListOrder["PaymentTime"].isNull()) - orderObject.paymentTime = dataNodeOrderListOrder["PaymentTime"].asString(); - if(!dataNodeOrderListOrder["PaymentCurrency"].isNull()) - orderObject.paymentCurrency = dataNodeOrderListOrder["PaymentCurrency"].asString(); - if(!dataNodeOrderListOrder["UsageEndTime"].isNull()) - orderObject.usageEndTime = dataNodeOrderListOrder["UsageEndTime"].asString(); - if(!dataNodeOrderListOrder["SubscriptionType"].isNull()) - orderObject.subscriptionType = dataNodeOrderListOrder["SubscriptionType"].asString(); - if(!dataNodeOrderListOrder["PretaxGrossAmount"].isNull()) - orderObject.pretaxGrossAmount = dataNodeOrderListOrder["PretaxGrossAmount"].asString(); - if(!dataNodeOrderListOrder["OrderType"].isNull()) - orderObject.orderType = dataNodeOrderListOrder["OrderType"].asString(); - if(!dataNodeOrderListOrder["Currency"].isNull()) - orderObject.currency = dataNodeOrderListOrder["Currency"].asString(); - if(!dataNodeOrderListOrder["UsageStartTime"].isNull()) - orderObject.usageStartTime = dataNodeOrderListOrder["UsageStartTime"].asString(); - if(!dataNodeOrderListOrder["OriginalConfig"].isNull()) - orderObject.originalConfig = dataNodeOrderListOrder["OriginalConfig"].asString(); - if(!dataNodeOrderListOrder["PaymentStatus"].isNull()) - orderObject.paymentStatus = dataNodeOrderListOrder["PaymentStatus"].asString(); - if(!dataNodeOrderListOrder["ProductCode"].isNull()) - orderObject.productCode = dataNodeOrderListOrder["ProductCode"].asString(); - if(!dataNodeOrderListOrder["CreateTime"].isNull()) - orderObject.createTime = dataNodeOrderListOrder["CreateTime"].asString(); - if(!dataNodeOrderListOrder["ProductType"].isNull()) - orderObject.productType = dataNodeOrderListOrder["ProductType"].asString(); - if(!dataNodeOrderListOrder["RelatedOrderId"].isNull()) - orderObject.relatedOrderId = dataNodeOrderListOrder["RelatedOrderId"].asString(); - if(!dataNodeOrderListOrder["Quantity"].isNull()) - orderObject.quantity = dataNodeOrderListOrder["Quantity"].asString(); - if(!dataNodeOrderListOrder["OrderId"].isNull()) - orderObject.orderId = dataNodeOrderListOrder["OrderId"].asString(); - if(!dataNodeOrderListOrder["PretaxAmount"].isNull()) - orderObject.pretaxAmount = dataNodeOrderListOrder["PretaxAmount"].asString(); if(!dataNodeOrderListOrder["OrderSubType"].isNull()) orderObject.orderSubType = dataNodeOrderListOrder["OrderSubType"].asString(); + if(!dataNodeOrderListOrder["CreateTime"].isNull()) + orderObject.createTime = dataNodeOrderListOrder["CreateTime"].asString(); + if(!dataNodeOrderListOrder["Currency"].isNull()) + orderObject.currency = dataNodeOrderListOrder["Currency"].asString(); + if(!dataNodeOrderListOrder["Config"].isNull()) + orderObject.config = dataNodeOrderListOrder["Config"].asString(); + if(!dataNodeOrderListOrder["SubscriptionType"].isNull()) + orderObject.subscriptionType = dataNodeOrderListOrder["SubscriptionType"].asString(); + if(!dataNodeOrderListOrder["UsageStartTime"].isNull()) + orderObject.usageStartTime = dataNodeOrderListOrder["UsageStartTime"].asString(); + if(!dataNodeOrderListOrder["UsageEndTime"].isNull()) + orderObject.usageEndTime = dataNodeOrderListOrder["UsageEndTime"].asString(); + if(!dataNodeOrderListOrder["SubOrderId"].isNull()) + orderObject.subOrderId = dataNodeOrderListOrder["SubOrderId"].asString(); if(!dataNodeOrderListOrder["Region"].isNull()) orderObject.region = dataNodeOrderListOrder["Region"].asString(); - if(!dataNodeOrderListOrder["InstanceIDs"].isNull()) - orderObject.instanceIDs = dataNodeOrderListOrder["InstanceIDs"].asString(); + if(!dataNodeOrderListOrder["AfterTaxAmount"].isNull()) + orderObject.afterTaxAmount = dataNodeOrderListOrder["AfterTaxAmount"].asString(); + if(!dataNodeOrderListOrder["PaymentTime"].isNull()) + orderObject.paymentTime = dataNodeOrderListOrder["PaymentTime"].asString(); + if(!dataNodeOrderListOrder["Operator"].isNull()) + orderObject._operator = dataNodeOrderListOrder["Operator"].asString(); + if(!dataNodeOrderListOrder["OrderType"].isNull()) + orderObject.orderType = dataNodeOrderListOrder["OrderType"].asString(); + if(!dataNodeOrderListOrder["PaymentStatus"].isNull()) + orderObject.paymentStatus = dataNodeOrderListOrder["PaymentStatus"].asString(); + if(!dataNodeOrderListOrder["Quantity"].isNull()) + orderObject.quantity = dataNodeOrderListOrder["Quantity"].asString(); if(!dataNodeOrderListOrder["PretaxAmountLocal"].isNull()) orderObject.pretaxAmountLocal = dataNodeOrderListOrder["PretaxAmountLocal"].asString(); + if(!dataNodeOrderListOrder["Tax"].isNull()) + orderObject.tax = dataNodeOrderListOrder["Tax"].asString(); + if(!dataNodeOrderListOrder["OriginalConfig"].isNull()) + orderObject.originalConfig = dataNodeOrderListOrder["OriginalConfig"].asString(); + if(!dataNodeOrderListOrder["PretaxAmount"].isNull()) + orderObject.pretaxAmount = dataNodeOrderListOrder["PretaxAmount"].asString(); if(!dataNodeOrderListOrder["CommodityCode"].isNull()) orderObject.commodityCode = dataNodeOrderListOrder["CommodityCode"].asString(); + if(!dataNodeOrderListOrder["RelatedOrderId"].isNull()) + orderObject.relatedOrderId = dataNodeOrderListOrder["RelatedOrderId"].asString(); + if(!dataNodeOrderListOrder["PaymentCurrency"].isNull()) + orderObject.paymentCurrency = dataNodeOrderListOrder["PaymentCurrency"].asString(); + if(!dataNodeOrderListOrder["ProductType"].isNull()) + orderObject.productType = dataNodeOrderListOrder["ProductType"].asString(); + if(!dataNodeOrderListOrder["InstanceIDs"].isNull()) + orderObject.instanceIDs = dataNodeOrderListOrder["InstanceIDs"].asString(); + if(!dataNodeOrderListOrder["PretaxGrossAmount"].isNull()) + orderObject.pretaxGrossAmount = dataNodeOrderListOrder["PretaxGrossAmount"].asString(); + if(!dataNodeOrderListOrder["OrderId"].isNull()) + orderObject.orderId = dataNodeOrderListOrder["OrderId"].asString(); + if(!dataNodeOrderListOrder["ProductCode"].isNull()) + orderObject.productCode = dataNodeOrderListOrder["ProductCode"].asString(); data_.orderList.push_back(orderObject); } - if(!value["Message"].isNull()) - message_ = value["Message"].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"; diff --git a/bssopenapi/src/model/GetPayAsYouGoPriceRequest.cc b/bssopenapi/src/model/GetPayAsYouGoPriceRequest.cc index b0ec96819..7d3a67e3a 100644 --- a/bssopenapi/src/model/GetPayAsYouGoPriceRequest.cc +++ b/bssopenapi/src/model/GetPayAsYouGoPriceRequest.cc @@ -1,101 +1,87 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::GetPayAsYouGoPriceRequest; - -GetPayAsYouGoPriceRequest::GetPayAsYouGoPriceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "GetPayAsYouGoPrice") -{ - setMethod(HttpRequest::Method::Post); -} - -GetPayAsYouGoPriceRequest::~GetPayAsYouGoPriceRequest() -{} - -std::string GetPayAsYouGoPriceRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::GetPayAsYouGoPriceRequest; + +GetPayAsYouGoPriceRequest::GetPayAsYouGoPriceRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "GetPayAsYouGoPrice") { + setMethod(HttpRequest::Method::Post); } -void GetPayAsYouGoPriceRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +GetPayAsYouGoPriceRequest::~GetPayAsYouGoPriceRequest() {} + +std::string GetPayAsYouGoPriceRequest::getProductCode() const { + return productCode_; } -std::string GetPayAsYouGoPriceRequest::getSubscriptionType()const -{ - return subscriptionType_; +void GetPayAsYouGoPriceRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void GetPayAsYouGoPriceRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string GetPayAsYouGoPriceRequest::getSubscriptionType() const { + return subscriptionType_; } -std::vector GetPayAsYouGoPriceRequest::getModuleList()const -{ - return moduleList_; +void GetPayAsYouGoPriceRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void GetPayAsYouGoPriceRequest::setModuleList(const std::vector& moduleList) -{ - moduleList_ = moduleList; - for(int dep1 = 0; dep1!= moduleList.size(); dep1++) { - auto moduleListObj = moduleList.at(dep1); - std::string moduleListObjStr = "ModuleList." + std::to_string(dep1 + 1); - setParameter(moduleListObjStr + ".ModuleCode", moduleListObj.moduleCode); - setParameter(moduleListObjStr + ".PriceType", moduleListObj.priceType); - setParameter(moduleListObjStr + ".Config", moduleListObj.config); - } +std::vector GetPayAsYouGoPriceRequest::getModuleList() const { + return moduleList_; } -long GetPayAsYouGoPriceRequest::getOwnerId()const -{ - return ownerId_; +void GetPayAsYouGoPriceRequest::setModuleList(const std::vector &moduleList) { + moduleList_ = moduleList; + for(int dep1 = 0; dep1 != moduleList.size(); dep1++) { + auto moduleListObj = moduleList.at(dep1); + std::string moduleListObjStr = std::string("ModuleList") + "." + std::to_string(dep1 + 1); + setParameter(moduleListObjStr + ".ModuleCode", moduleListObj.moduleCode); + setParameter(moduleListObjStr + ".PriceType", moduleListObj.priceType); + setParameter(moduleListObjStr + ".Config", moduleListObj.config); + } } -void GetPayAsYouGoPriceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetPayAsYouGoPriceRequest::getOwnerId() const { + return ownerId_; } -std::string GetPayAsYouGoPriceRequest::getProductType()const -{ - return productType_; +void GetPayAsYouGoPriceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GetPayAsYouGoPriceRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string GetPayAsYouGoPriceRequest::getProductType() const { + return productType_; } -std::string GetPayAsYouGoPriceRequest::getRegion()const -{ - return region_; +void GetPayAsYouGoPriceRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void GetPayAsYouGoPriceRequest::setRegion(const std::string& region) -{ - region_ = region; - setParameter("Region", region); +std::string GetPayAsYouGoPriceRequest::getRegion() const { + return region_; +} + +void GetPayAsYouGoPriceRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); } diff --git a/bssopenapi/src/model/GetPayAsYouGoPriceResult.cc b/bssopenapi/src/model/GetPayAsYouGoPriceResult.cc index 293debfc0..d9c18b697 100644 --- a/bssopenapi/src/model/GetPayAsYouGoPriceResult.cc +++ b/bssopenapi/src/model/GetPayAsYouGoPriceResult.cc @@ -46,36 +46,36 @@ void GetPayAsYouGoPriceResult::parse(const std::string &payload) for (auto dataNodeModuleDetailsModuleDetail : allModuleDetailsNode) { Data::ModuleDetail moduleDetailObject; - if(!dataNodeModuleDetailsModuleDetail["ModuleCode"].isNull()) - moduleDetailObject.moduleCode = dataNodeModuleDetailsModuleDetail["ModuleCode"].asString(); - if(!dataNodeModuleDetailsModuleDetail["OriginalCost"].isNull()) - moduleDetailObject.originalCost = std::stof(dataNodeModuleDetailsModuleDetail["OriginalCost"].asString()); - if(!dataNodeModuleDetailsModuleDetail["InvoiceDiscount"].isNull()) - moduleDetailObject.invoiceDiscount = std::stof(dataNodeModuleDetailsModuleDetail["InvoiceDiscount"].asString()); if(!dataNodeModuleDetailsModuleDetail["CostAfterDiscount"].isNull()) moduleDetailObject.costAfterDiscount = std::stof(dataNodeModuleDetailsModuleDetail["CostAfterDiscount"].asString()); + if(!dataNodeModuleDetailsModuleDetail["InvoiceDiscount"].isNull()) + moduleDetailObject.invoiceDiscount = std::stof(dataNodeModuleDetailsModuleDetail["InvoiceDiscount"].asString()); if(!dataNodeModuleDetailsModuleDetail["UnitPrice"].isNull()) moduleDetailObject.unitPrice = std::stof(dataNodeModuleDetailsModuleDetail["UnitPrice"].asString()); + if(!dataNodeModuleDetailsModuleDetail["OriginalCost"].isNull()) + moduleDetailObject.originalCost = std::stof(dataNodeModuleDetailsModuleDetail["OriginalCost"].asString()); + if(!dataNodeModuleDetailsModuleDetail["ModuleCode"].isNull()) + moduleDetailObject.moduleCode = dataNodeModuleDetailsModuleDetail["ModuleCode"].asString(); data_.moduleDetails.push_back(moduleDetailObject); } auto allPromotionDetailsNode = dataNode["PromotionDetails"]["PromotionDetail"]; for (auto dataNodePromotionDetailsPromotionDetail : allPromotionDetailsNode) { Data::PromotionDetail promotionDetailObject; - if(!dataNodePromotionDetailsPromotionDetail["PromotionName"].isNull()) - promotionDetailObject.promotionName = dataNodePromotionDetailsPromotionDetail["PromotionName"].asString(); if(!dataNodePromotionDetailsPromotionDetail["PromotionDesc"].isNull()) promotionDetailObject.promotionDesc = dataNodePromotionDetailsPromotionDetail["PromotionDesc"].asString(); if(!dataNodePromotionDetailsPromotionDetail["PromotionId"].isNull()) promotionDetailObject.promotionId = std::stol(dataNodePromotionDetailsPromotionDetail["PromotionId"].asString()); + if(!dataNodePromotionDetailsPromotionDetail["PromotionName"].isNull()) + promotionDetailObject.promotionName = dataNodePromotionDetailsPromotionDetail["PromotionName"].asString(); data_.promotionDetails.push_back(promotionDetailObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/GetResourcePackagePriceRequest.cc b/bssopenapi/src/model/GetResourcePackagePriceRequest.cc index 03f24ce8c..c36836988 100644 --- a/bssopenapi/src/model/GetResourcePackagePriceRequest.cc +++ b/bssopenapi/src/model/GetResourcePackagePriceRequest.cc @@ -1,128 +1,108 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::GetResourcePackagePriceRequest; - -GetResourcePackagePriceRequest::GetResourcePackagePriceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "GetResourcePackagePrice") -{ - setMethod(HttpRequest::Method::Post); -} - -GetResourcePackagePriceRequest::~GetResourcePackagePriceRequest() -{} - -std::string GetResourcePackagePriceRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::GetResourcePackagePriceRequest; + +GetResourcePackagePriceRequest::GetResourcePackagePriceRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "GetResourcePackagePrice") { + setMethod(HttpRequest::Method::Post); } -void GetResourcePackagePriceRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +GetResourcePackagePriceRequest::~GetResourcePackagePriceRequest() {} + +std::string GetResourcePackagePriceRequest::getProductCode() const { + return productCode_; } -std::string GetResourcePackagePriceRequest::getSpecification()const -{ - return specification_; +void GetResourcePackagePriceRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void GetResourcePackagePriceRequest::setSpecification(const std::string& specification) -{ - specification_ = specification; - setParameter("Specification", specification); +std::string GetResourcePackagePriceRequest::getSpecification() const { + return specification_; } -long GetResourcePackagePriceRequest::getOwnerId()const -{ - return ownerId_; +void GetResourcePackagePriceRequest::setSpecification(const std::string &specification) { + specification_ = specification; + setParameter(std::string("Specification"), specification); } -void GetResourcePackagePriceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetResourcePackagePriceRequest::getOwnerId() const { + return ownerId_; } -std::string GetResourcePackagePriceRequest::getEffectiveDate()const -{ - return effectiveDate_; +void GetResourcePackagePriceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GetResourcePackagePriceRequest::setEffectiveDate(const std::string& effectiveDate) -{ - effectiveDate_ = effectiveDate; - setParameter("EffectiveDate", effectiveDate); +std::string GetResourcePackagePriceRequest::getEffectiveDate() const { + return effectiveDate_; } -int GetResourcePackagePriceRequest::getDuration()const -{ - return duration_; +void GetResourcePackagePriceRequest::setEffectiveDate(const std::string &effectiveDate) { + effectiveDate_ = effectiveDate; + setParameter(std::string("EffectiveDate"), effectiveDate); } -void GetResourcePackagePriceRequest::setDuration(int duration) -{ - duration_ = duration; - setParameter("Duration", std::to_string(duration)); +int GetResourcePackagePriceRequest::getDuration() const { + return duration_; } -std::string GetResourcePackagePriceRequest::getInstanceId()const -{ - return instanceId_; +void GetResourcePackagePriceRequest::setDuration(int duration) { + duration_ = duration; + setParameter(std::string("Duration"), std::to_string(duration)); } -void GetResourcePackagePriceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string GetResourcePackagePriceRequest::getInstanceId() const { + return instanceId_; } -std::string GetResourcePackagePriceRequest::getPackageType()const -{ - return packageType_; +void GetResourcePackagePriceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void GetResourcePackagePriceRequest::setPackageType(const std::string& packageType) -{ - packageType_ = packageType; - setParameter("PackageType", packageType); +std::string GetResourcePackagePriceRequest::getPackageType() const { + return packageType_; } -std::string GetResourcePackagePriceRequest::getPricingCycle()const -{ - return pricingCycle_; +void GetResourcePackagePriceRequest::setPackageType(const std::string &packageType) { + packageType_ = packageType; + setParameter(std::string("PackageType"), packageType); } -void GetResourcePackagePriceRequest::setPricingCycle(const std::string& pricingCycle) -{ - pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); +std::string GetResourcePackagePriceRequest::getPricingCycle() const { + return pricingCycle_; } -std::string GetResourcePackagePriceRequest::getOrderType()const -{ - return orderType_; +void GetResourcePackagePriceRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); } -void GetResourcePackagePriceRequest::setOrderType(const std::string& orderType) -{ - orderType_ = orderType; - setParameter("OrderType", orderType); +std::string GetResourcePackagePriceRequest::getOrderType() const { + return orderType_; +} + +void GetResourcePackagePriceRequest::setOrderType(const std::string &orderType) { + orderType_ = orderType; + setParameter(std::string("OrderType"), orderType); } diff --git a/bssopenapi/src/model/GetResourcePackagePriceResult.cc b/bssopenapi/src/model/GetResourcePackagePriceResult.cc index 2ddb1feba..fa04c5b88 100644 --- a/bssopenapi/src/model/GetResourcePackagePriceResult.cc +++ b/bssopenapi/src/model/GetResourcePackagePriceResult.cc @@ -40,30 +40,30 @@ void GetResourcePackagePriceResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["Currency"].isNull()) - data_.currency = dataNode["Currency"].asString(); if(!dataNode["OriginalPrice"].isNull()) data_.originalPrice = std::stof(dataNode["OriginalPrice"].asString()); - if(!dataNode["TradePrice"].isNull()) - data_.tradePrice = std::stof(dataNode["TradePrice"].asString()); if(!dataNode["DiscountPrice"].isNull()) data_.discountPrice = std::stof(dataNode["DiscountPrice"].asString()); + if(!dataNode["Currency"].isNull()) + data_.currency = dataNode["Currency"].asString(); + if(!dataNode["TradePrice"].isNull()) + data_.tradePrice = std::stof(dataNode["TradePrice"].asString()); auto allPromotionsNode = dataNode["Promotions"]["Promotion"]; for (auto dataNodePromotionsPromotion : allPromotionsNode) { Data::Promotion promotionObject; - if(!dataNodePromotionsPromotion["Id"].isNull()) - promotionObject.id = std::stol(dataNodePromotionsPromotion["Id"].asString()); if(!dataNodePromotionsPromotion["Name"].isNull()) promotionObject.name = dataNodePromotionsPromotion["Name"].asString(); + if(!dataNodePromotionsPromotion["Id"].isNull()) + promotionObject.id = std::stol(dataNodePromotionsPromotion["Id"].asString()); data_.promotions.push_back(promotionObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/GetSubscriptionPriceRequest.cc b/bssopenapi/src/model/GetSubscriptionPriceRequest.cc index e2c8c2b9f..3f37def1e 100644 --- a/bssopenapi/src/model/GetSubscriptionPriceRequest.cc +++ b/bssopenapi/src/model/GetSubscriptionPriceRequest.cc @@ -1,157 +1,133 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::GetSubscriptionPriceRequest; - -GetSubscriptionPriceRequest::GetSubscriptionPriceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "GetSubscriptionPrice") -{ - setMethod(HttpRequest::Method::Post); -} - -GetSubscriptionPriceRequest::~GetSubscriptionPriceRequest() -{} - -std::string GetSubscriptionPriceRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::GetSubscriptionPriceRequest; + +GetSubscriptionPriceRequest::GetSubscriptionPriceRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "GetSubscriptionPrice") { + setMethod(HttpRequest::Method::Post); } -void GetSubscriptionPriceRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +GetSubscriptionPriceRequest::~GetSubscriptionPriceRequest() {} + +std::string GetSubscriptionPriceRequest::getProductCode() const { + return productCode_; } -int GetSubscriptionPriceRequest::getQuantity()const -{ - return quantity_; +void GetSubscriptionPriceRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void GetSubscriptionPriceRequest::setQuantity(int quantity) -{ - quantity_ = quantity; - setParameter("Quantity", std::to_string(quantity)); +int GetSubscriptionPriceRequest::getQuantity() const { + return quantity_; } -std::string GetSubscriptionPriceRequest::getSubscriptionType()const -{ - return subscriptionType_; +void GetSubscriptionPriceRequest::setQuantity(int quantity) { + quantity_ = quantity; + setParameter(std::string("Quantity"), std::to_string(quantity)); } -void GetSubscriptionPriceRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string GetSubscriptionPriceRequest::getSubscriptionType() const { + return subscriptionType_; } -std::vector GetSubscriptionPriceRequest::getModuleList()const -{ - return moduleList_; +void GetSubscriptionPriceRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void GetSubscriptionPriceRequest::setModuleList(const std::vector& moduleList) -{ - moduleList_ = moduleList; - for(int dep1 = 0; dep1!= moduleList.size(); dep1++) { - auto moduleListObj = moduleList.at(dep1); - std::string moduleListObjStr = "ModuleList." + std::to_string(dep1 + 1); - setParameter(moduleListObjStr + ".ModuleCode", moduleListObj.moduleCode); - setParameter(moduleListObjStr + ".ModuleStatus", std::to_string(moduleListObj.moduleStatus)); - setParameter(moduleListObjStr + ".Tag", moduleListObj.tag); - setParameter(moduleListObjStr + ".Config", moduleListObj.config); - } +std::vector GetSubscriptionPriceRequest::getModuleList() const { + return moduleList_; } -long GetSubscriptionPriceRequest::getOwnerId()const -{ - return ownerId_; +void GetSubscriptionPriceRequest::setModuleList(const std::vector &moduleList) { + moduleList_ = moduleList; + for(int dep1 = 0; dep1 != moduleList.size(); dep1++) { + auto moduleListObj = moduleList.at(dep1); + std::string moduleListObjStr = std::string("ModuleList") + "." + std::to_string(dep1 + 1); + setParameter(moduleListObjStr + ".ModuleCode", moduleListObj.moduleCode); + setParameter(moduleListObjStr + ".ModuleStatus", std::to_string(moduleListObj.moduleStatus)); + setParameter(moduleListObjStr + ".Tag", moduleListObj.tag); + setParameter(moduleListObjStr + ".Config", moduleListObj.config); + } } -void GetSubscriptionPriceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetSubscriptionPriceRequest::getOwnerId() const { + return ownerId_; } -std::string GetSubscriptionPriceRequest::getProductType()const -{ - return productType_; +void GetSubscriptionPriceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GetSubscriptionPriceRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string GetSubscriptionPriceRequest::getProductType() const { + return productType_; } -int GetSubscriptionPriceRequest::getServicePeriodQuantity()const -{ - return servicePeriodQuantity_; +void GetSubscriptionPriceRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void GetSubscriptionPriceRequest::setServicePeriodQuantity(int servicePeriodQuantity) -{ - servicePeriodQuantity_ = servicePeriodQuantity; - setParameter("ServicePeriodQuantity", std::to_string(servicePeriodQuantity)); +int GetSubscriptionPriceRequest::getServicePeriodQuantity() const { + return servicePeriodQuantity_; } -std::string GetSubscriptionPriceRequest::getInstanceId()const -{ - return instanceId_; +void GetSubscriptionPriceRequest::setServicePeriodQuantity(int servicePeriodQuantity) { + servicePeriodQuantity_ = servicePeriodQuantity; + setParameter(std::string("ServicePeriodQuantity"), std::to_string(servicePeriodQuantity)); } -void GetSubscriptionPriceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string GetSubscriptionPriceRequest::getInstanceId() const { + return instanceId_; } -std::string GetSubscriptionPriceRequest::getServicePeriodUnit()const -{ - return servicePeriodUnit_; +void GetSubscriptionPriceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void GetSubscriptionPriceRequest::setServicePeriodUnit(const std::string& servicePeriodUnit) -{ - servicePeriodUnit_ = servicePeriodUnit; - setParameter("ServicePeriodUnit", servicePeriodUnit); +std::string GetSubscriptionPriceRequest::getServicePeriodUnit() const { + return servicePeriodUnit_; } -std::string GetSubscriptionPriceRequest::getRegion()const -{ - return region_; +void GetSubscriptionPriceRequest::setServicePeriodUnit(const std::string &servicePeriodUnit) { + servicePeriodUnit_ = servicePeriodUnit; + setParameter(std::string("ServicePeriodUnit"), servicePeriodUnit); } -void GetSubscriptionPriceRequest::setRegion(const std::string& region) -{ - region_ = region; - setParameter("Region", region); +std::string GetSubscriptionPriceRequest::getRegion() const { + return region_; } -std::string GetSubscriptionPriceRequest::getOrderType()const -{ - return orderType_; +void GetSubscriptionPriceRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); } -void GetSubscriptionPriceRequest::setOrderType(const std::string& orderType) -{ - orderType_ = orderType; - setParameter("OrderType", orderType); +std::string GetSubscriptionPriceRequest::getOrderType() const { + return orderType_; +} + +void GetSubscriptionPriceRequest::setOrderType(const std::string &orderType) { + orderType_ = orderType; + setParameter(std::string("OrderType"), orderType); } diff --git a/bssopenapi/src/model/GetSubscriptionPriceResult.cc b/bssopenapi/src/model/GetSubscriptionPriceResult.cc index 11a3fd528..5bed07ffd 100644 --- a/bssopenapi/src/model/GetSubscriptionPriceResult.cc +++ b/bssopenapi/src/model/GetSubscriptionPriceResult.cc @@ -44,46 +44,46 @@ void GetSubscriptionPriceResult::parse(const std::string &payload) data_.originalPrice = std::stof(dataNode["OriginalPrice"].asString()); if(!dataNode["DiscountPrice"].isNull()) data_.discountPrice = std::stof(dataNode["DiscountPrice"].asString()); - if(!dataNode["TradePrice"].isNull()) - data_.tradePrice = std::stof(dataNode["TradePrice"].asString()); if(!dataNode["Currency"].isNull()) data_.currency = dataNode["Currency"].asString(); if(!dataNode["Quantity"].isNull()) data_.quantity = std::stoi(dataNode["Quantity"].asString()); + if(!dataNode["TradePrice"].isNull()) + data_.tradePrice = std::stof(dataNode["TradePrice"].asString()); auto allModuleDetailsNode = dataNode["ModuleDetails"]["ModuleDetail"]; for (auto dataNodeModuleDetailsModuleDetail : allModuleDetailsNode) { Data::ModuleDetail moduleDetailObject; - if(!dataNodeModuleDetailsModuleDetail["ModuleCode"].isNull()) - moduleDetailObject.moduleCode = dataNodeModuleDetailsModuleDetail["ModuleCode"].asString(); - if(!dataNodeModuleDetailsModuleDetail["OriginalCost"].isNull()) - moduleDetailObject.originalCost = std::stof(dataNodeModuleDetailsModuleDetail["OriginalCost"].asString()); - if(!dataNodeModuleDetailsModuleDetail["InvoiceDiscount"].isNull()) - moduleDetailObject.invoiceDiscount = std::stof(dataNodeModuleDetailsModuleDetail["InvoiceDiscount"].asString()); if(!dataNodeModuleDetailsModuleDetail["CostAfterDiscount"].isNull()) moduleDetailObject.costAfterDiscount = std::stof(dataNodeModuleDetailsModuleDetail["CostAfterDiscount"].asString()); + if(!dataNodeModuleDetailsModuleDetail["InvoiceDiscount"].isNull()) + moduleDetailObject.invoiceDiscount = std::stof(dataNodeModuleDetailsModuleDetail["InvoiceDiscount"].asString()); if(!dataNodeModuleDetailsModuleDetail["UnitPrice"].isNull()) moduleDetailObject.unitPrice = std::stof(dataNodeModuleDetailsModuleDetail["UnitPrice"].asString()); + if(!dataNodeModuleDetailsModuleDetail["OriginalCost"].isNull()) + moduleDetailObject.originalCost = std::stof(dataNodeModuleDetailsModuleDetail["OriginalCost"].asString()); + if(!dataNodeModuleDetailsModuleDetail["ModuleCode"].isNull()) + moduleDetailObject.moduleCode = dataNodeModuleDetailsModuleDetail["ModuleCode"].asString(); data_.moduleDetails.push_back(moduleDetailObject); } auto allPromotionDetailsNode = dataNode["PromotionDetails"]["PromotionDetail"]; for (auto dataNodePromotionDetailsPromotionDetail : allPromotionDetailsNode) { Data::PromotionDetail promotionDetailObject; - if(!dataNodePromotionDetailsPromotionDetail["PromotionName"].isNull()) - promotionDetailObject.promotionName = dataNodePromotionDetailsPromotionDetail["PromotionName"].asString(); if(!dataNodePromotionDetailsPromotionDetail["PromotionDesc"].isNull()) promotionDetailObject.promotionDesc = dataNodePromotionDetailsPromotionDetail["PromotionDesc"].asString(); if(!dataNodePromotionDetailsPromotionDetail["PromotionId"].isNull()) promotionDetailObject.promotionId = std::stol(dataNodePromotionDetailsPromotionDetail["PromotionId"].asString()); + if(!dataNodePromotionDetailsPromotionDetail["PromotionName"].isNull()) + promotionDetailObject.promotionName = dataNodePromotionDetailsPromotionDetail["PromotionName"].asString(); data_.promotionDetails.push_back(promotionDetailObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/InquiryPriceRefundInstanceRequest.cc b/bssopenapi/src/model/InquiryPriceRefundInstanceRequest.cc new file mode 100644 index 000000000..cb0f096c9 --- /dev/null +++ b/bssopenapi/src/model/InquiryPriceRefundInstanceRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::BssOpenApi::Model::InquiryPriceRefundInstanceRequest; + +InquiryPriceRefundInstanceRequest::InquiryPriceRefundInstanceRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "InquiryPriceRefundInstance") { + setMethod(HttpRequest::Method::Post); +} + +InquiryPriceRefundInstanceRequest::~InquiryPriceRefundInstanceRequest() {} + +std::string InquiryPriceRefundInstanceRequest::getProductCode() const { + return productCode_; +} + +void InquiryPriceRefundInstanceRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); +} + +std::string InquiryPriceRefundInstanceRequest::getClientToken() const { + return clientToken_; +} + +void InquiryPriceRefundInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string InquiryPriceRefundInstanceRequest::getProductType() const { + return productType_; +} + +void InquiryPriceRefundInstanceRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); +} + +std::string InquiryPriceRefundInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void InquiryPriceRefundInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/bssopenapi/src/model/InquiryPriceRefundInstanceResult.cc b/bssopenapi/src/model/InquiryPriceRefundInstanceResult.cc new file mode 100644 index 000000000..2ac56003c --- /dev/null +++ b/bssopenapi/src/model/InquiryPriceRefundInstanceResult.cc @@ -0,0 +1,79 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +InquiryPriceRefundInstanceResult::InquiryPriceRefundInstanceResult() : + ServiceResult() +{} + +InquiryPriceRefundInstanceResult::InquiryPriceRefundInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InquiryPriceRefundInstanceResult::~InquiryPriceRefundInstanceResult() +{} + +void InquiryPriceRefundInstanceResult::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["HostId"].isNull()) + data_.hostId = dataNode["HostId"].asString(); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["Currency"].isNull()) + data_.currency = dataNode["Currency"].asString(); + if(!dataNode["RefundAmount"].isNull()) + data_.refundAmount = dataNode["RefundAmount"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string InquiryPriceRefundInstanceResult::getMessage()const +{ + return message_; +} + +InquiryPriceRefundInstanceResult::Data InquiryPriceRefundInstanceResult::getData()const +{ + return data_; +} + +std::string InquiryPriceRefundInstanceResult::getCode()const +{ + return code_; +} + +bool InquiryPriceRefundInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/bssopenapi/src/model/ModifyAccountRelationRequest.cc b/bssopenapi/src/model/ModifyAccountRelationRequest.cc index fe13061b8..6af5a8771 100644 --- a/bssopenapi/src/model/ModifyAccountRelationRequest.cc +++ b/bssopenapi/src/model/ModifyAccountRelationRequest.cc @@ -1,121 +1,106 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::ModifyAccountRelationRequest; - -ModifyAccountRelationRequest::ModifyAccountRelationRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "ModifyAccountRelation") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyAccountRelationRequest::~ModifyAccountRelationRequest() -{} - -std::string ModifyAccountRelationRequest::getChildNick()const -{ - return childNick_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::ModifyAccountRelationRequest; + +ModifyAccountRelationRequest::ModifyAccountRelationRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "ModifyAccountRelation") { + setMethod(HttpRequest::Method::Post); } -void ModifyAccountRelationRequest::setChildNick(const std::string& childNick) -{ - childNick_ = childNick; - setParameter("ChildNick", childNick); +ModifyAccountRelationRequest::~ModifyAccountRelationRequest() {} + +std::string ModifyAccountRelationRequest::getChildNick() const { + return childNick_; } -std::string ModifyAccountRelationRequest::getRelationOperation()const -{ - return relationOperation_; +void ModifyAccountRelationRequest::setChildNick(const std::string &childNick) { + childNick_ = childNick; + setParameter(std::string("ChildNick"), childNick); } -void ModifyAccountRelationRequest::setRelationOperation(const std::string& relationOperation) -{ - relationOperation_ = relationOperation; - setParameter("RelationOperation", relationOperation); +long ModifyAccountRelationRequest::getParentUserId() const { + return parentUserId_; } -std::string ModifyAccountRelationRequest::getRelationType()const -{ - return relationType_; +void ModifyAccountRelationRequest::setParentUserId(long parentUserId) { + parentUserId_ = parentUserId; + setParameter(std::string("ParentUserId"), std::to_string(parentUserId)); } -void ModifyAccountRelationRequest::setRelationType(const std::string& relationType) -{ - relationType_ = relationType; - setParameter("RelationType", relationType); +long ModifyAccountRelationRequest::getRelationId() const { + return relationId_; } -long ModifyAccountRelationRequest::getParentUserId()const -{ - return parentUserId_; +void ModifyAccountRelationRequest::setRelationId(long relationId) { + relationId_ = relationId; + setParameter(std::string("RelationId"), std::to_string(relationId)); } -void ModifyAccountRelationRequest::setParentUserId(long parentUserId) -{ - parentUserId_ = parentUserId; - setParameter("ParentUserId", std::to_string(parentUserId)); +std::vector ModifyAccountRelationRequest::getRoleCodes() const { + return roleCodes_; } -long ModifyAccountRelationRequest::getChildUserId()const -{ - return childUserId_; +void ModifyAccountRelationRequest::setRoleCodes(const std::vector &roleCodes) { + roleCodes_ = roleCodes; } -void ModifyAccountRelationRequest::setChildUserId(long childUserId) -{ - childUserId_ = childUserId; - setParameter("ChildUserId", std::to_string(childUserId)); +std::string ModifyAccountRelationRequest::getRelationOperation() const { + return relationOperation_; } -std::string ModifyAccountRelationRequest::getRequestId()const -{ - return requestId_; +void ModifyAccountRelationRequest::setRelationOperation(const std::string &relationOperation) { + relationOperation_ = relationOperation; + setParameter(std::string("RelationOperation"), relationOperation); } -void ModifyAccountRelationRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setParameter("RequestId", requestId); +std::string ModifyAccountRelationRequest::getRelationType() const { + return relationType_; } -std::vector ModifyAccountRelationRequest::getPermissionCodes()const -{ - return permissionCodes_; +void ModifyAccountRelationRequest::setRelationType(const std::string &relationType) { + relationType_ = relationType; + setParameter(std::string("RelationType"), relationType); } -void ModifyAccountRelationRequest::setPermissionCodes(const std::vector& permissionCodes) -{ - permissionCodes_ = permissionCodes; - for(int dep1 = 0; dep1!= permissionCodes.size(); dep1++) { - setParameter("PermissionCodes."+ std::to_string(dep1), permissionCodes.at(dep1)); - } +long ModifyAccountRelationRequest::getChildUserId() const { + return childUserId_; } -std::vector ModifyAccountRelationRequest::getRoleCodes()const -{ - return roleCodes_; +void ModifyAccountRelationRequest::setChildUserId(long childUserId) { + childUserId_ = childUserId; + setParameter(std::string("ChildUserId"), std::to_string(childUserId)); } -void ModifyAccountRelationRequest::setRoleCodes(const std::vector& roleCodes) -{ - roleCodes_ = roleCodes; - for(int dep1 = 0; dep1!= roleCodes.size(); dep1++) { - setParameter("RoleCodes."+ std::to_string(dep1), roleCodes.at(dep1)); - } +std::string ModifyAccountRelationRequest::getRequestId() const { + return requestId_; +} + +void ModifyAccountRelationRequest::setRequestId(const std::string &requestId) { + requestId_ = requestId; + setParameter(std::string("RequestId"), requestId); +} + +std::vector ModifyAccountRelationRequest::getPermissionCodes() const { + return permissionCodes_; +} + +void ModifyAccountRelationRequest::setPermissionCodes(const std::vector &permissionCodes) { + permissionCodes_ = permissionCodes; } diff --git a/bssopenapi/src/model/ModifyAccountRelationResult.cc b/bssopenapi/src/model/ModifyAccountRelationResult.cc index 492ed0284..861644c65 100644 --- a/bssopenapi/src/model/ModifyAccountRelationResult.cc +++ b/bssopenapi/src/model/ModifyAccountRelationResult.cc @@ -44,10 +44,10 @@ void ModifyAccountRelationResult::parse(const std::string &payload) data_.hostId = dataNode["HostId"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/ModifyCostUnitRequest.cc b/bssopenapi/src/model/ModifyCostUnitRequest.cc index 64746b870..dae3b1c66 100644 --- a/bssopenapi/src/model/ModifyCostUnitRequest.cc +++ b/bssopenapi/src/model/ModifyCostUnitRequest.cc @@ -1,46 +1,42 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::ModifyCostUnitRequest; - -ModifyCostUnitRequest::ModifyCostUnitRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "ModifyCostUnit") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyCostUnitRequest::~ModifyCostUnitRequest() -{} - -std::vector ModifyCostUnitRequest::getUnitEntityList()const -{ - return unitEntityList_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::ModifyCostUnitRequest; + +ModifyCostUnitRequest::ModifyCostUnitRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "ModifyCostUnit") { + setMethod(HttpRequest::Method::Post); } -void ModifyCostUnitRequest::setUnitEntityList(const std::vector& unitEntityList) -{ - unitEntityList_ = unitEntityList; - for(int dep1 = 0; dep1!= unitEntityList.size(); dep1++) { - auto unitEntityListObj = unitEntityList.at(dep1); - std::string unitEntityListObjStr = "UnitEntityList." + std::to_string(dep1 + 1); - setParameter(unitEntityListObjStr + ".NewUnitName", unitEntityListObj.newUnitName); - setParameter(unitEntityListObjStr + ".UnitId", std::to_string(unitEntityListObj.unitId)); - setParameter(unitEntityListObjStr + ".OwnerUid", std::to_string(unitEntityListObj.ownerUid)); - } +ModifyCostUnitRequest::~ModifyCostUnitRequest() {} + +std::vector ModifyCostUnitRequest::getUnitEntityList() const { + return unitEntityList_; +} + +void ModifyCostUnitRequest::setUnitEntityList(const std::vector &unitEntityList) { + unitEntityList_ = unitEntityList; + for(int dep1 = 0; dep1 != unitEntityList.size(); dep1++) { + auto unitEntityListObj = unitEntityList.at(dep1); + std::string unitEntityListObjStr = std::string("UnitEntityList") + "." + std::to_string(dep1 + 1); + setParameter(unitEntityListObjStr + ".NewUnitName", unitEntityListObj.newUnitName); + setParameter(unitEntityListObjStr + ".UnitId", std::to_string(unitEntityListObj.unitId)); + setParameter(unitEntityListObjStr + ".OwnerUid", std::to_string(unitEntityListObj.ownerUid)); + } } diff --git a/bssopenapi/src/model/ModifyCostUnitResult.cc b/bssopenapi/src/model/ModifyCostUnitResult.cc index 74a455b0f..0c26e2953 100644 --- a/bssopenapi/src/model/ModifyCostUnitResult.cc +++ b/bssopenapi/src/model/ModifyCostUnitResult.cc @@ -51,10 +51,10 @@ void ModifyCostUnitResult::parse(const std::string &payload) dataObject.ownerUid = std::stol(valueDataDataItem["OwnerUid"].asString()); data_.push_back(dataObject); } - if(!value["Message"].isNull()) - message_ = value["Message"].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"; diff --git a/bssopenapi/src/model/ModifyInstanceRequest.cc b/bssopenapi/src/model/ModifyInstanceRequest.cc index 06dd886e2..3d6234a9c 100644 --- a/bssopenapi/src/model/ModifyInstanceRequest.cc +++ b/bssopenapi/src/model/ModifyInstanceRequest.cc @@ -1,122 +1,104 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::ModifyInstanceRequest; - -ModifyInstanceRequest::ModifyInstanceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "ModifyInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceRequest::~ModifyInstanceRequest() -{} - -std::string ModifyInstanceRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::ModifyInstanceRequest; + +ModifyInstanceRequest::ModifyInstanceRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "ModifyInstance") { + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +ModifyInstanceRequest::~ModifyInstanceRequest() {} + +std::string ModifyInstanceRequest::getProductCode() const { + return productCode_; } -std::string ModifyInstanceRequest::getClientToken()const -{ - return clientToken_; +void ModifyInstanceRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void ModifyInstanceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyInstanceRequest::getClientToken() const { + return clientToken_; } -std::string ModifyInstanceRequest::getSubscriptionType()const -{ - return subscriptionType_; +void ModifyInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyInstanceRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string ModifyInstanceRequest::getSubscriptionType() const { + return subscriptionType_; } -long ModifyInstanceRequest::getOwnerId()const -{ - return ownerId_; +void ModifyInstanceRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void ModifyInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyInstanceRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyInstanceRequest::getProductType()const -{ - return productType_; +void ModifyInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyInstanceRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string ModifyInstanceRequest::getProductType() const { + return productType_; } -std::string ModifyInstanceRequest::getInstanceId()const -{ - return instanceId_; +void ModifyInstanceRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void ModifyInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyInstanceRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyInstanceRequest::getModifyType()const -{ - return modifyType_; +void ModifyInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyInstanceRequest::setModifyType(const std::string& modifyType) -{ - modifyType_ = modifyType; - setParameter("ModifyType", modifyType); +std::string ModifyInstanceRequest::getModifyType() const { + return modifyType_; } -std::vector ModifyInstanceRequest::get_Parameter()const -{ - return _parameter_; +void ModifyInstanceRequest::setModifyType(const std::string &modifyType) { + modifyType_ = modifyType; + setParameter(std::string("ModifyType"), modifyType); } -void ModifyInstanceRequest::set_Parameter(const std::vector<_Parameter>& _parameter) -{ - _parameter_ = _parameter; - for(int dep1 = 0; dep1!= _parameter.size(); dep1++) { - auto _parameterObj = _parameter.at(dep1); - std::string _parameterObjStr = "Parameter." + std::to_string(dep1 + 1); - setParameter(_parameterObjStr + ".Code", _parameterObj.code); - setParameter(_parameterObjStr + ".Value", _parameterObj.value); - } +std::vector ModifyInstanceRequest::get_Parameter() const { + return _parameter_; +} + +void ModifyInstanceRequest::set_Parameter(const std::vector &_parameter) { + _parameter_ = _parameter; + for(int dep1 = 0; dep1 != _parameter.size(); dep1++) { + auto _parameterObj = _parameter.at(dep1); + std::string _parameterObjStr = std::string("Parameter") + "." + std::to_string(dep1 + 1); + setParameter(_parameterObjStr + ".Code", _parameterObj.code); + setParameter(_parameterObjStr + ".Value", _parameterObj.value); + } } diff --git a/bssopenapi/src/model/ModifyInstanceResult.cc b/bssopenapi/src/model/ModifyInstanceResult.cc index 3d55d9d12..b9c4bbc3d 100644 --- a/bssopenapi/src/model/ModifyInstanceResult.cc +++ b/bssopenapi/src/model/ModifyInstanceResult.cc @@ -40,16 +40,16 @@ void ModifyInstanceResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["HostId"].isNull()) - data_.hostId = dataNode["HostId"].asString(); if(!dataNode["OrderId"].isNull()) data_.orderId = dataNode["OrderId"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!dataNode["HostId"].isNull()) + data_.hostId = dataNode["HostId"].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"; } diff --git a/bssopenapi/src/model/QueryAccountBalanceRequest.cc b/bssopenapi/src/model/QueryAccountBalanceRequest.cc index 9f13146ef..ff1dbe51a 100644 --- a/bssopenapi/src/model/QueryAccountBalanceRequest.cc +++ b/bssopenapi/src/model/QueryAccountBalanceRequest.cc @@ -1,29 +1,27 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryAccountBalanceRequest; - -QueryAccountBalanceRequest::QueryAccountBalanceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBalance") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryAccountBalanceRequest::~QueryAccountBalanceRequest() -{} - + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryAccountBalanceRequest; + +QueryAccountBalanceRequest::QueryAccountBalanceRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBalance") { + setMethod(HttpRequest::Method::Post); +} + +QueryAccountBalanceRequest::~QueryAccountBalanceRequest() {} + diff --git a/bssopenapi/src/model/QueryAccountBalanceResult.cc b/bssopenapi/src/model/QueryAccountBalanceResult.cc index 561deda42..4f370dfb8 100644 --- a/bssopenapi/src/model/QueryAccountBalanceResult.cc +++ b/bssopenapi/src/model/QueryAccountBalanceResult.cc @@ -42,20 +42,20 @@ void QueryAccountBalanceResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["AvailableAmount"].isNull()) data_.availableAmount = dataNode["AvailableAmount"].asString(); - if(!dataNode["AvailableCashAmount"].isNull()) - data_.availableCashAmount = dataNode["AvailableCashAmount"].asString(); if(!dataNode["CreditAmount"].isNull()) data_.creditAmount = dataNode["CreditAmount"].asString(); if(!dataNode["MybankCreditAmount"].isNull()) data_.mybankCreditAmount = dataNode["MybankCreditAmount"].asString(); if(!dataNode["Currency"].isNull()) data_.currency = dataNode["Currency"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!dataNode["AvailableCashAmount"].isNull()) + data_.availableCashAmount = dataNode["AvailableCashAmount"].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"; } diff --git a/bssopenapi/src/model/QueryAccountBillRequest.cc b/bssopenapi/src/model/QueryAccountBillRequest.cc index 61812eb3d..29517d02f 100644 --- a/bssopenapi/src/model/QueryAccountBillRequest.cc +++ b/bssopenapi/src/model/QueryAccountBillRequest.cc @@ -1,128 +1,108 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryAccountBillRequest; - -QueryAccountBillRequest::QueryAccountBillRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBill") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryAccountBillRequest::~QueryAccountBillRequest() -{} - -std::string QueryAccountBillRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryAccountBillRequest; + +QueryAccountBillRequest::QueryAccountBillRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBill") { + setMethod(HttpRequest::Method::Post); } -void QueryAccountBillRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +QueryAccountBillRequest::~QueryAccountBillRequest() {} + +std::string QueryAccountBillRequest::getProductCode() const { + return productCode_; } -std::string QueryAccountBillRequest::getBillingCycle()const -{ - return billingCycle_; +void QueryAccountBillRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void QueryAccountBillRequest::setBillingCycle(const std::string& billingCycle) -{ - billingCycle_ = billingCycle; - setParameter("BillingCycle", billingCycle); +std::string QueryAccountBillRequest::getBillingCycle() const { + return billingCycle_; } -int QueryAccountBillRequest::getPageNum()const -{ - return pageNum_; +void QueryAccountBillRequest::setBillingCycle(const std::string &billingCycle) { + billingCycle_ = billingCycle; + setParameter(std::string("BillingCycle"), billingCycle); } -void QueryAccountBillRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QueryAccountBillRequest::getPageNum() const { + return pageNum_; } -long QueryAccountBillRequest::getOwnerID()const -{ - return ownerID_; +void QueryAccountBillRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryAccountBillRequest::setOwnerID(long ownerID) -{ - ownerID_ = ownerID; - setParameter("OwnerID", std::to_string(ownerID)); +long QueryAccountBillRequest::getOwnerID() const { + return ownerID_; } -long QueryAccountBillRequest::getBillOwnerId()const -{ - return billOwnerId_; +void QueryAccountBillRequest::setOwnerID(long ownerID) { + ownerID_ = ownerID; + setParameter(std::string("OwnerID"), std::to_string(ownerID)); } -void QueryAccountBillRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long QueryAccountBillRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string QueryAccountBillRequest::getBillingDate()const -{ - return billingDate_; +void QueryAccountBillRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void QueryAccountBillRequest::setBillingDate(const std::string& billingDate) -{ - billingDate_ = billingDate; - setParameter("BillingDate", billingDate); +std::string QueryAccountBillRequest::getBillingDate() const { + return billingDate_; } -bool QueryAccountBillRequest::getIsGroupByProduct()const -{ - return isGroupByProduct_; +void QueryAccountBillRequest::setBillingDate(const std::string &billingDate) { + billingDate_ = billingDate; + setParameter(std::string("BillingDate"), billingDate); } -void QueryAccountBillRequest::setIsGroupByProduct(bool isGroupByProduct) -{ - isGroupByProduct_ = isGroupByProduct; - setParameter("IsGroupByProduct", isGroupByProduct ? "true" : "false"); +bool QueryAccountBillRequest::getIsGroupByProduct() const { + return isGroupByProduct_; } -std::string QueryAccountBillRequest::getGranularity()const -{ - return granularity_; +void QueryAccountBillRequest::setIsGroupByProduct(bool isGroupByProduct) { + isGroupByProduct_ = isGroupByProduct; + setParameter(std::string("IsGroupByProduct"), isGroupByProduct ? "true" : "false"); } -void QueryAccountBillRequest::setGranularity(const std::string& granularity) -{ - granularity_ = granularity; - setParameter("Granularity", granularity); +std::string QueryAccountBillRequest::getGranularity() const { + return granularity_; } -int QueryAccountBillRequest::getPageSize()const -{ - return pageSize_; +void QueryAccountBillRequest::setGranularity(const std::string &granularity) { + granularity_ = granularity; + setParameter(std::string("Granularity"), granularity); } -void QueryAccountBillRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryAccountBillRequest::getPageSize() const { + return pageSize_; +} + +void QueryAccountBillRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/bssopenapi/src/model/QueryAccountBillResult.cc b/bssopenapi/src/model/QueryAccountBillResult.cc index 5d0c3ba77..c68feef16 100644 --- a/bssopenapi/src/model/QueryAccountBillResult.cc +++ b/bssopenapi/src/model/QueryAccountBillResult.cc @@ -40,70 +40,74 @@ void QueryAccountBillResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; + if(!dataNode["PageNum"].isNull()) + data_.pageNum = std::stoi(dataNode["PageNum"].asString()); if(!dataNode["BillingCycle"].isNull()) data_.billingCycle = dataNode["BillingCycle"].asString(); if(!dataNode["AccountID"].isNull()) data_.accountID = dataNode["AccountID"].asString(); - if(!dataNode["AccountName"].isNull()) - data_.accountName = dataNode["AccountName"].asString(); - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - if(!dataNode["PageNum"].isNull()) - data_.pageNum = std::stoi(dataNode["PageNum"].asString()); if(!dataNode["PageSize"].isNull()) data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + if(!dataNode["AccountName"].isNull()) + data_.accountName = dataNode["AccountName"].asString(); auto allItemsNode = dataNode["Items"]["Item"]; for (auto dataNodeItemsItem : allItemsNode) { Data::Item itemObject; - if(!dataNodeItemsItem["CostUnit"].isNull()) - itemObject.costUnit = dataNodeItemsItem["CostUnit"].asString(); - if(!dataNodeItemsItem["OwnerID"].isNull()) - itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); - if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) - itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); - if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) - itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); - if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) - itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); - if(!dataNodeItemsItem["PretaxAmount"].isNull()) - itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); - if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) - itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); - if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) - itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); - if(!dataNodeItemsItem["PaymentAmount"].isNull()) - itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); - if(!dataNodeItemsItem["OutstandingAmount"].isNull()) - itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); - if(!dataNodeItemsItem["Currency"].isNull()) - itemObject.currency = dataNodeItemsItem["Currency"].asString(); - if(!dataNodeItemsItem["OwnerName"].isNull()) - itemObject.ownerName = dataNodeItemsItem["OwnerName"].asString(); - if(!dataNodeItemsItem["ProductCode"].isNull()) - itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); - if(!dataNodeItemsItem["ProductName"].isNull()) - itemObject.productName = dataNodeItemsItem["ProductName"].asString(); - if(!dataNodeItemsItem["SubscriptionType"].isNull()) - itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); if(!dataNodeItemsItem["PipCode"].isNull()) itemObject.pipCode = dataNodeItemsItem["PipCode"].asString(); + if(!dataNodeItemsItem["PretaxAmount"].isNull()) + itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); if(!dataNodeItemsItem["BillingDate"].isNull()) itemObject.billingDate = dataNodeItemsItem["BillingDate"].asString(); - if(!dataNodeItemsItem["BillAccountID"].isNull()) - itemObject.billAccountID = dataNodeItemsItem["BillAccountID"].asString(); + if(!dataNodeItemsItem["ProductName"].isNull()) + itemObject.productName = dataNodeItemsItem["ProductName"].asString(); + if(!dataNodeItemsItem["AdjustAmount"].isNull()) + itemObject.adjustAmount = std::stof(dataNodeItemsItem["AdjustAmount"].asString()); + if(!dataNodeItemsItem["OwnerName"].isNull()) + itemObject.ownerName = dataNodeItemsItem["OwnerName"].asString(); + if(!dataNodeItemsItem["Currency"].isNull()) + itemObject.currency = dataNodeItemsItem["Currency"].asString(); if(!dataNodeItemsItem["BillAccountName"].isNull()) itemObject.billAccountName = dataNodeItemsItem["BillAccountName"].asString(); + if(!dataNodeItemsItem["SubscriptionType"].isNull()) + itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); + if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) + itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); if(!dataNodeItemsItem["BizType"].isNull()) itemObject.bizType = dataNodeItemsItem["BizType"].asString(); + if(!dataNodeItemsItem["OwnerID"].isNull()) + itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); + if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) + itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); + if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) + itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); + if(!dataNodeItemsItem["BillAccountID"].isNull()) + itemObject.billAccountID = dataNodeItemsItem["BillAccountID"].asString(); + if(!dataNodeItemsItem["PaymentAmount"].isNull()) + itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); + if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) + itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); + if(!dataNodeItemsItem["OutstandingAmount"].isNull()) + itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); + if(!dataNodeItemsItem["CostUnit"].isNull()) + itemObject.costUnit = dataNodeItemsItem["CostUnit"].asString(); + if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) + itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); + if(!dataNodeItemsItem["CashAmount"].isNull()) + itemObject.cashAmount = std::stof(dataNodeItemsItem["CashAmount"].asString()); + if(!dataNodeItemsItem["ProductCode"].isNull()) + itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryAccountTransactionDetailsRequest.cc b/bssopenapi/src/model/QueryAccountTransactionDetailsRequest.cc index f6dd09f77..888115fd2 100644 --- a/bssopenapi/src/model/QueryAccountTransactionDetailsRequest.cc +++ b/bssopenapi/src/model/QueryAccountTransactionDetailsRequest.cc @@ -1,128 +1,108 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryAccountTransactionDetailsRequest; - -QueryAccountTransactionDetailsRequest::QueryAccountTransactionDetailsRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountTransactionDetails") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryAccountTransactionDetailsRequest::~QueryAccountTransactionDetailsRequest() -{} - -std::string QueryAccountTransactionDetailsRequest::getTransactionType()const -{ - return transactionType_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryAccountTransactionDetailsRequest; + +QueryAccountTransactionDetailsRequest::QueryAccountTransactionDetailsRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountTransactionDetails") { + setMethod(HttpRequest::Method::Post); } -void QueryAccountTransactionDetailsRequest::setTransactionType(const std::string& transactionType) -{ - transactionType_ = transactionType; - setParameter("TransactionType", transactionType); +QueryAccountTransactionDetailsRequest::~QueryAccountTransactionDetailsRequest() {} + +std::string QueryAccountTransactionDetailsRequest::getTransactionType() const { + return transactionType_; } -std::string QueryAccountTransactionDetailsRequest::getCreateTimeEnd()const -{ - return createTimeEnd_; +void QueryAccountTransactionDetailsRequest::setTransactionType(const std::string &transactionType) { + transactionType_ = transactionType; + setParameter(std::string("TransactionType"), transactionType); } -void QueryAccountTransactionDetailsRequest::setCreateTimeEnd(const std::string& createTimeEnd) -{ - createTimeEnd_ = createTimeEnd; - setParameter("CreateTimeEnd", createTimeEnd); +std::string QueryAccountTransactionDetailsRequest::getCreateTimeEnd() const { + return createTimeEnd_; } -std::string QueryAccountTransactionDetailsRequest::getRecordID()const -{ - return recordID_; +void QueryAccountTransactionDetailsRequest::setCreateTimeEnd(const std::string &createTimeEnd) { + createTimeEnd_ = createTimeEnd; + setParameter(std::string("CreateTimeEnd"), createTimeEnd); } -void QueryAccountTransactionDetailsRequest::setRecordID(const std::string& recordID) -{ - recordID_ = recordID; - setParameter("RecordID", recordID); +std::string QueryAccountTransactionDetailsRequest::getRecordID() const { + return recordID_; } -std::string QueryAccountTransactionDetailsRequest::getNextToken()const -{ - return nextToken_; +void QueryAccountTransactionDetailsRequest::setRecordID(const std::string &recordID) { + recordID_ = recordID; + setParameter(std::string("RecordID"), recordID); } -void QueryAccountTransactionDetailsRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string QueryAccountTransactionDetailsRequest::getNextToken() const { + return nextToken_; } -int QueryAccountTransactionDetailsRequest::getMaxResults()const -{ - return maxResults_; +void QueryAccountTransactionDetailsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void QueryAccountTransactionDetailsRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int QueryAccountTransactionDetailsRequest::getMaxResults() const { + return maxResults_; } -std::string QueryAccountTransactionDetailsRequest::getTransactionChannel()const -{ - return transactionChannel_; +void QueryAccountTransactionDetailsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } -void QueryAccountTransactionDetailsRequest::setTransactionChannel(const std::string& transactionChannel) -{ - transactionChannel_ = transactionChannel; - setParameter("TransactionChannel", transactionChannel); +std::string QueryAccountTransactionDetailsRequest::getTransactionChannel() const { + return transactionChannel_; } -std::string QueryAccountTransactionDetailsRequest::getTransactionChannelSN()const -{ - return transactionChannelSN_; +void QueryAccountTransactionDetailsRequest::setTransactionChannel(const std::string &transactionChannel) { + transactionChannel_ = transactionChannel; + setParameter(std::string("TransactionChannel"), transactionChannel); } -void QueryAccountTransactionDetailsRequest::setTransactionChannelSN(const std::string& transactionChannelSN) -{ - transactionChannelSN_ = transactionChannelSN; - setParameter("TransactionChannelSN", transactionChannelSN); +std::string QueryAccountTransactionDetailsRequest::getTransactionChannelSN() const { + return transactionChannelSN_; } -std::string QueryAccountTransactionDetailsRequest::getCreateTimeStart()const -{ - return createTimeStart_; +void QueryAccountTransactionDetailsRequest::setTransactionChannelSN(const std::string &transactionChannelSN) { + transactionChannelSN_ = transactionChannelSN; + setParameter(std::string("TransactionChannelSN"), transactionChannelSN); } -void QueryAccountTransactionDetailsRequest::setCreateTimeStart(const std::string& createTimeStart) -{ - createTimeStart_ = createTimeStart; - setParameter("CreateTimeStart", createTimeStart); +std::string QueryAccountTransactionDetailsRequest::getCreateTimeStart() const { + return createTimeStart_; } -std::string QueryAccountTransactionDetailsRequest::getTransactionNumber()const -{ - return transactionNumber_; +void QueryAccountTransactionDetailsRequest::setCreateTimeStart(const std::string &createTimeStart) { + createTimeStart_ = createTimeStart; + setParameter(std::string("CreateTimeStart"), createTimeStart); } -void QueryAccountTransactionDetailsRequest::setTransactionNumber(const std::string& transactionNumber) -{ - transactionNumber_ = transactionNumber; - setParameter("TransactionNumber", transactionNumber); +std::string QueryAccountTransactionDetailsRequest::getTransactionNumber() const { + return transactionNumber_; +} + +void QueryAccountTransactionDetailsRequest::setTransactionNumber(const std::string &transactionNumber) { + transactionNumber_ = transactionNumber; + setParameter(std::string("TransactionNumber"), transactionNumber); } diff --git a/bssopenapi/src/model/QueryAccountTransactionDetailsResult.cc b/bssopenapi/src/model/QueryAccountTransactionDetailsResult.cc index c84e8f06e..4e6088cea 100644 --- a/bssopenapi/src/model/QueryAccountTransactionDetailsResult.cc +++ b/bssopenapi/src/model/QueryAccountTransactionDetailsResult.cc @@ -40,52 +40,52 @@ void QueryAccountTransactionDetailsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["AccountName"].isNull()) - data_.accountName = dataNode["AccountName"].asString(); - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); if(!dataNode["NextToken"].isNull()) data_.nextToken = dataNode["NextToken"].asString(); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); if(!dataNode["MaxResults"].isNull()) data_.maxResults = std::stoi(dataNode["MaxResults"].asString()); + if(!dataNode["AccountName"].isNull()) + data_.accountName = dataNode["AccountName"].asString(); auto allAccountTransactionsListNode = dataNode["AccountTransactionsList"]["AccountTransactionsListItem"]; for (auto dataNodeAccountTransactionsListAccountTransactionsListItem : allAccountTransactionsListNode) { Data::AccountTransactionsListItem accountTransactionsListItemObject; - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionNumber"].isNull()) - accountTransactionsListItemObject.transactionNumber = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionNumber"].asString(); - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionTime"].isNull()) - accountTransactionsListItemObject.transactionTime = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionTime"].asString(); - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionFlow"].isNull()) - accountTransactionsListItemObject.transactionFlow = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionFlow"].asString(); - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionType"].isNull()) - accountTransactionsListItemObject.transactionType = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionType"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["BillingCycle"].isNull()) + accountTransactionsListItemObject.billingCycle = dataNodeAccountTransactionsListAccountTransactionsListItem["BillingCycle"].asString(); if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannel"].isNull()) accountTransactionsListItemObject.transactionChannel = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannel"].asString(); - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannelSN"].isNull()) - accountTransactionsListItemObject.transactionChannelSN = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannelSN"].asString(); - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["FundType"].isNull()) - accountTransactionsListItemObject.fundType = dataNodeAccountTransactionsListAccountTransactionsListItem["FundType"].asString(); if(!dataNodeAccountTransactionsListAccountTransactionsListItem["RecordID"].isNull()) accountTransactionsListItemObject.recordID = dataNodeAccountTransactionsListAccountTransactionsListItem["RecordID"].asString(); if(!dataNodeAccountTransactionsListAccountTransactionsListItem["Remarks"].isNull()) accountTransactionsListItemObject.remarks = dataNodeAccountTransactionsListAccountTransactionsListItem["Remarks"].asString(); - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["BillingCycle"].isNull()) - accountTransactionsListItemObject.billingCycle = dataNodeAccountTransactionsListAccountTransactionsListItem["BillingCycle"].asString(); if(!dataNodeAccountTransactionsListAccountTransactionsListItem["Amount"].isNull()) accountTransactionsListItemObject.amount = dataNodeAccountTransactionsListAccountTransactionsListItem["Amount"].asString(); - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["Balance"].isNull()) - accountTransactionsListItemObject.balance = dataNodeAccountTransactionsListAccountTransactionsListItem["Balance"].asString(); if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionAccount"].isNull()) accountTransactionsListItemObject.transactionAccount = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionAccount"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionTime"].isNull()) + accountTransactionsListItemObject.transactionTime = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionTime"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionType"].isNull()) + accountTransactionsListItemObject.transactionType = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionType"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionFlow"].isNull()) + accountTransactionsListItemObject.transactionFlow = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionFlow"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["FundType"].isNull()) + accountTransactionsListItemObject.fundType = dataNodeAccountTransactionsListAccountTransactionsListItem["FundType"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannelSN"].isNull()) + accountTransactionsListItemObject.transactionChannelSN = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannelSN"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionNumber"].isNull()) + accountTransactionsListItemObject.transactionNumber = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionNumber"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["Balance"].isNull()) + accountTransactionsListItemObject.balance = dataNodeAccountTransactionsListAccountTransactionsListItem["Balance"].asString(); data_.accountTransactionsList.push_back(accountTransactionsListItemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryAccountTransactionsRequest.cc b/bssopenapi/src/model/QueryAccountTransactionsRequest.cc index 0eec61e3a..549b3fbb2 100644 --- a/bssopenapi/src/model/QueryAccountTransactionsRequest.cc +++ b/bssopenapi/src/model/QueryAccountTransactionsRequest.cc @@ -1,106 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::QueryAccountTransactionsRequest; - -QueryAccountTransactionsRequest::QueryAccountTransactionsRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountTransactions") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryAccountTransactionsRequest::~QueryAccountTransactionsRequest() -{} - -int QueryAccountTransactionsRequest::getPageNum()const -{ - return pageNum_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryAccountTransactionsRequest; + +QueryAccountTransactionsRequest::QueryAccountTransactionsRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountTransactions") { + setMethod(HttpRequest::Method::Post); } -void QueryAccountTransactionsRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +QueryAccountTransactionsRequest::~QueryAccountTransactionsRequest() {} + +int QueryAccountTransactionsRequest::getPageNum() const { + return pageNum_; } -std::string QueryAccountTransactionsRequest::getCreateTimeEnd()const -{ - return createTimeEnd_; +void QueryAccountTransactionsRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryAccountTransactionsRequest::setCreateTimeEnd(const std::string& createTimeEnd) -{ - createTimeEnd_ = createTimeEnd; - setParameter("CreateTimeEnd", createTimeEnd); +std::string QueryAccountTransactionsRequest::getTransactionType() const { + return transactionType_; } -std::string QueryAccountTransactionsRequest::getRecordID()const -{ - return recordID_; +void QueryAccountTransactionsRequest::setTransactionType(const std::string &transactionType) { + transactionType_ = transactionType; + setParameter(std::string("TransactionType"), transactionType); } -void QueryAccountTransactionsRequest::setRecordID(const std::string& recordID) -{ - recordID_ = recordID; - setParameter("RecordID", recordID); +std::string QueryAccountTransactionsRequest::getCreateTimeEnd() const { + return createTimeEnd_; } -int QueryAccountTransactionsRequest::getPageSize()const -{ - return pageSize_; +void QueryAccountTransactionsRequest::setCreateTimeEnd(const std::string &createTimeEnd) { + createTimeEnd_ = createTimeEnd; + setParameter(std::string("CreateTimeEnd"), createTimeEnd); } -void QueryAccountTransactionsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string QueryAccountTransactionsRequest::getRecordID() const { + return recordID_; } -std::string QueryAccountTransactionsRequest::getTransactionChannelSN()const -{ - return transactionChannelSN_; +void QueryAccountTransactionsRequest::setRecordID(const std::string &recordID) { + recordID_ = recordID; + setParameter(std::string("RecordID"), recordID); } -void QueryAccountTransactionsRequest::setTransactionChannelSN(const std::string& transactionChannelSN) -{ - transactionChannelSN_ = transactionChannelSN; - setParameter("TransactionChannelSN", transactionChannelSN); +int QueryAccountTransactionsRequest::getPageSize() const { + return pageSize_; } -std::string QueryAccountTransactionsRequest::getCreateTimeStart()const -{ - return createTimeStart_; +void QueryAccountTransactionsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void QueryAccountTransactionsRequest::setCreateTimeStart(const std::string& createTimeStart) -{ - createTimeStart_ = createTimeStart; - setParameter("CreateTimeStart", createTimeStart); +std::string QueryAccountTransactionsRequest::getTransactionChannel() const { + return transactionChannel_; } -std::string QueryAccountTransactionsRequest::getTransactionNumber()const -{ - return transactionNumber_; +void QueryAccountTransactionsRequest::setTransactionChannel(const std::string &transactionChannel) { + transactionChannel_ = transactionChannel; + setParameter(std::string("TransactionChannel"), transactionChannel); } -void QueryAccountTransactionsRequest::setTransactionNumber(const std::string& transactionNumber) -{ - transactionNumber_ = transactionNumber; - setParameter("TransactionNumber", transactionNumber); +std::string QueryAccountTransactionsRequest::getTransactionChannelSN() const { + return transactionChannelSN_; +} + +void QueryAccountTransactionsRequest::setTransactionChannelSN(const std::string &transactionChannelSN) { + transactionChannelSN_ = transactionChannelSN; + setParameter(std::string("TransactionChannelSN"), transactionChannelSN); +} + +std::string QueryAccountTransactionsRequest::getCreateTimeStart() const { + return createTimeStart_; +} + +void QueryAccountTransactionsRequest::setCreateTimeStart(const std::string &createTimeStart) { + createTimeStart_ = createTimeStart; + setParameter(std::string("CreateTimeStart"), createTimeStart); +} + +std::string QueryAccountTransactionsRequest::getTransactionNumber() const { + return transactionNumber_; +} + +void QueryAccountTransactionsRequest::setTransactionNumber(const std::string &transactionNumber) { + transactionNumber_ = transactionNumber; + setParameter(std::string("TransactionNumber"), transactionNumber); +} + +std::string QueryAccountTransactionsRequest::getTransactionFlow() const { + return transactionFlow_; +} + +void QueryAccountTransactionsRequest::setTransactionFlow(const std::string &transactionFlow) { + transactionFlow_ = transactionFlow; + setParameter(std::string("TransactionFlow"), transactionFlow); } diff --git a/bssopenapi/src/model/QueryAccountTransactionsResult.cc b/bssopenapi/src/model/QueryAccountTransactionsResult.cc index 372eea17c..6651440af 100644 --- a/bssopenapi/src/model/QueryAccountTransactionsResult.cc +++ b/bssopenapi/src/model/QueryAccountTransactionsResult.cc @@ -40,52 +40,52 @@ void QueryAccountTransactionsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["AccountName"].isNull()) - data_.accountName = dataNode["AccountName"].asString(); - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); if(!dataNode["PageNum"].isNull()) data_.pageNum = std::stoi(dataNode["PageNum"].asString()); if(!dataNode["PageSize"].isNull()) data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + if(!dataNode["AccountName"].isNull()) + data_.accountName = dataNode["AccountName"].asString(); auto allAccountTransactionsListNode = dataNode["AccountTransactionsList"]["AccountTransactionsListItem"]; for (auto dataNodeAccountTransactionsListAccountTransactionsListItem : allAccountTransactionsListNode) { Data::AccountTransactionsListItem accountTransactionsListItemObject; - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionNumber"].isNull()) - accountTransactionsListItemObject.transactionNumber = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionNumber"].asString(); - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionTime"].isNull()) - accountTransactionsListItemObject.transactionTime = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionTime"].asString(); - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionFlow"].isNull()) - accountTransactionsListItemObject.transactionFlow = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionFlow"].asString(); - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionType"].isNull()) - accountTransactionsListItemObject.transactionType = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionType"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["BillingCycle"].isNull()) + accountTransactionsListItemObject.billingCycle = dataNodeAccountTransactionsListAccountTransactionsListItem["BillingCycle"].asString(); if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannel"].isNull()) accountTransactionsListItemObject.transactionChannel = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannel"].asString(); - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannelSN"].isNull()) - accountTransactionsListItemObject.transactionChannelSN = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannelSN"].asString(); - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["FundType"].isNull()) - accountTransactionsListItemObject.fundType = dataNodeAccountTransactionsListAccountTransactionsListItem["FundType"].asString(); if(!dataNodeAccountTransactionsListAccountTransactionsListItem["RecordID"].isNull()) accountTransactionsListItemObject.recordID = dataNodeAccountTransactionsListAccountTransactionsListItem["RecordID"].asString(); if(!dataNodeAccountTransactionsListAccountTransactionsListItem["Remarks"].isNull()) accountTransactionsListItemObject.remarks = dataNodeAccountTransactionsListAccountTransactionsListItem["Remarks"].asString(); - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["BillingCycle"].isNull()) - accountTransactionsListItemObject.billingCycle = dataNodeAccountTransactionsListAccountTransactionsListItem["BillingCycle"].asString(); if(!dataNodeAccountTransactionsListAccountTransactionsListItem["Amount"].isNull()) accountTransactionsListItemObject.amount = dataNodeAccountTransactionsListAccountTransactionsListItem["Amount"].asString(); - if(!dataNodeAccountTransactionsListAccountTransactionsListItem["Balance"].isNull()) - accountTransactionsListItemObject.balance = dataNodeAccountTransactionsListAccountTransactionsListItem["Balance"].asString(); if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionAccount"].isNull()) accountTransactionsListItemObject.transactionAccount = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionAccount"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionTime"].isNull()) + accountTransactionsListItemObject.transactionTime = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionTime"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionType"].isNull()) + accountTransactionsListItemObject.transactionType = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionType"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionFlow"].isNull()) + accountTransactionsListItemObject.transactionFlow = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionFlow"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["FundType"].isNull()) + accountTransactionsListItemObject.fundType = dataNodeAccountTransactionsListAccountTransactionsListItem["FundType"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannelSN"].isNull()) + accountTransactionsListItemObject.transactionChannelSN = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannelSN"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionNumber"].isNull()) + accountTransactionsListItemObject.transactionNumber = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionNumber"].asString(); + if(!dataNodeAccountTransactionsListAccountTransactionsListItem["Balance"].isNull()) + accountTransactionsListItemObject.balance = dataNodeAccountTransactionsListAccountTransactionsListItem["Balance"].asString(); data_.accountTransactionsList.push_back(accountTransactionsListItemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryAvailableInstancesRequest.cc b/bssopenapi/src/model/QueryAvailableInstancesRequest.cc index 712ec70a1..443441c19 100644 --- a/bssopenapi/src/model/QueryAvailableInstancesRequest.cc +++ b/bssopenapi/src/model/QueryAvailableInstancesRequest.cc @@ -1,172 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::QueryAvailableInstancesRequest; - -QueryAvailableInstancesRequest::QueryAvailableInstancesRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAvailableInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryAvailableInstancesRequest::~QueryAvailableInstancesRequest() -{} - -std::string QueryAvailableInstancesRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryAvailableInstancesRequest; + +QueryAvailableInstancesRequest::QueryAvailableInstancesRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAvailableInstances") { + setMethod(HttpRequest::Method::Post); } -void QueryAvailableInstancesRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +QueryAvailableInstancesRequest::~QueryAvailableInstancesRequest() {} + +std::string QueryAvailableInstancesRequest::getProductCode() const { + return productCode_; } -std::string QueryAvailableInstancesRequest::getSubscriptionType()const -{ - return subscriptionType_; +void QueryAvailableInstancesRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void QueryAvailableInstancesRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string QueryAvailableInstancesRequest::getSubscriptionType() const { + return subscriptionType_; } -int QueryAvailableInstancesRequest::getPageNum()const -{ - return pageNum_; +void QueryAvailableInstancesRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void QueryAvailableInstancesRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QueryAvailableInstancesRequest::getPageNum() const { + return pageNum_; } -std::string QueryAvailableInstancesRequest::getProductType()const -{ - return productType_; +void QueryAvailableInstancesRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryAvailableInstancesRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string QueryAvailableInstancesRequest::getProductType() const { + return productType_; } -int QueryAvailableInstancesRequest::getPageSize()const -{ - return pageSize_; +void QueryAvailableInstancesRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void QueryAvailableInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryAvailableInstancesRequest::getPageSize() const { + return pageSize_; } -std::string QueryAvailableInstancesRequest::getRenewStatus()const -{ - return renewStatus_; +void QueryAvailableInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void QueryAvailableInstancesRequest::setRenewStatus(const std::string& renewStatus) -{ - renewStatus_ = renewStatus; - setParameter("RenewStatus", renewStatus); +std::string QueryAvailableInstancesRequest::getRenewStatus() const { + return renewStatus_; } -long QueryAvailableInstancesRequest::getOwnerId()const -{ - return ownerId_; +void QueryAvailableInstancesRequest::setRenewStatus(const std::string &renewStatus) { + renewStatus_ = renewStatus; + setParameter(std::string("RenewStatus"), renewStatus); } -void QueryAvailableInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryAvailableInstancesRequest::getOwnerId() const { + return ownerId_; } -std::string QueryAvailableInstancesRequest::getEndTimeStart()const -{ - return endTimeStart_; +void QueryAvailableInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryAvailableInstancesRequest::setEndTimeStart(const std::string& endTimeStart) -{ - endTimeStart_ = endTimeStart; - setParameter("EndTimeStart", endTimeStart); +std::string QueryAvailableInstancesRequest::getEndTimeStart() const { + return endTimeStart_; } -std::string QueryAvailableInstancesRequest::getCreateTimeEnd()const -{ - return createTimeEnd_; +void QueryAvailableInstancesRequest::setEndTimeStart(const std::string &endTimeStart) { + endTimeStart_ = endTimeStart; + setParameter(std::string("EndTimeStart"), endTimeStart); } -void QueryAvailableInstancesRequest::setCreateTimeEnd(const std::string& createTimeEnd) -{ - createTimeEnd_ = createTimeEnd; - setParameter("CreateTimeEnd", createTimeEnd); +std::string QueryAvailableInstancesRequest::getCreateTimeEnd() const { + return createTimeEnd_; } -std::string QueryAvailableInstancesRequest::getInstanceIDs()const -{ - return instanceIDs_; +void QueryAvailableInstancesRequest::setCreateTimeEnd(const std::string &createTimeEnd) { + createTimeEnd_ = createTimeEnd; + setParameter(std::string("CreateTimeEnd"), createTimeEnd); } -void QueryAvailableInstancesRequest::setInstanceIDs(const std::string& instanceIDs) -{ - instanceIDs_ = instanceIDs; - setParameter("InstanceIDs", instanceIDs); +std::string QueryAvailableInstancesRequest::getInstanceIDs() const { + return instanceIDs_; } -std::string QueryAvailableInstancesRequest::getEndTimeEnd()const -{ - return endTimeEnd_; +void QueryAvailableInstancesRequest::setInstanceIDs(const std::string &instanceIDs) { + instanceIDs_ = instanceIDs; + setParameter(std::string("InstanceIDs"), instanceIDs); } -void QueryAvailableInstancesRequest::setEndTimeEnd(const std::string& endTimeEnd) -{ - endTimeEnd_ = endTimeEnd; - setParameter("EndTimeEnd", endTimeEnd); +std::string QueryAvailableInstancesRequest::getEndTimeEnd() const { + return endTimeEnd_; } -std::string QueryAvailableInstancesRequest::getCreateTimeStart()const -{ - return createTimeStart_; +void QueryAvailableInstancesRequest::setEndTimeEnd(const std::string &endTimeEnd) { + endTimeEnd_ = endTimeEnd; + setParameter(std::string("EndTimeEnd"), endTimeEnd); } -void QueryAvailableInstancesRequest::setCreateTimeStart(const std::string& createTimeStart) -{ - createTimeStart_ = createTimeStart; - setParameter("CreateTimeStart", createTimeStart); +std::string QueryAvailableInstancesRequest::getCreateTimeStart() const { + return createTimeStart_; } -std::string QueryAvailableInstancesRequest::getRegion()const -{ - return region_; +void QueryAvailableInstancesRequest::setCreateTimeStart(const std::string &createTimeStart) { + createTimeStart_ = createTimeStart; + setParameter(std::string("CreateTimeStart"), createTimeStart); } -void QueryAvailableInstancesRequest::setRegion(const std::string& region) -{ - region_ = region; - setParameter("Region", region); +std::string QueryAvailableInstancesRequest::getRegion() const { + return region_; +} + +void QueryAvailableInstancesRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); } diff --git a/bssopenapi/src/model/QueryAvailableInstancesResult.cc b/bssopenapi/src/model/QueryAvailableInstancesResult.cc index 84b7d98fa..c60242d8f 100644 --- a/bssopenapi/src/model/QueryAvailableInstancesResult.cc +++ b/bssopenapi/src/model/QueryAvailableInstancesResult.cc @@ -50,50 +50,50 @@ void QueryAvailableInstancesResult::parse(const std::string &payload) for (auto dataNodeInstanceListInstance : allInstanceListNode) { Data::Instance instanceObject; - if(!dataNodeInstanceListInstance["OwnerId"].isNull()) - instanceObject.ownerId = std::stol(dataNodeInstanceListInstance["OwnerId"].asString()); - if(!dataNodeInstanceListInstance["SellerId"].isNull()) - instanceObject.sellerId = std::stol(dataNodeInstanceListInstance["SellerId"].asString()); - if(!dataNodeInstanceListInstance["ProductCode"].isNull()) - instanceObject.productCode = dataNodeInstanceListInstance["ProductCode"].asString(); - if(!dataNodeInstanceListInstance["ProductType"].isNull()) - instanceObject.productType = dataNodeInstanceListInstance["ProductType"].asString(); - if(!dataNodeInstanceListInstance["SubscriptionType"].isNull()) - instanceObject.subscriptionType = dataNodeInstanceListInstance["SubscriptionType"].asString(); - if(!dataNodeInstanceListInstance["InstanceID"].isNull()) - instanceObject.instanceID = dataNodeInstanceListInstance["InstanceID"].asString(); - if(!dataNodeInstanceListInstance["Region"].isNull()) - instanceObject.region = dataNodeInstanceListInstance["Region"].asString(); - if(!dataNodeInstanceListInstance["CreateTime"].isNull()) - instanceObject.createTime = dataNodeInstanceListInstance["CreateTime"].asString(); - if(!dataNodeInstanceListInstance["EndTime"].isNull()) - instanceObject.endTime = dataNodeInstanceListInstance["EndTime"].asString(); - if(!dataNodeInstanceListInstance["StopTime"].isNull()) - instanceObject.stopTime = dataNodeInstanceListInstance["StopTime"].asString(); - if(!dataNodeInstanceListInstance["ReleaseTime"].isNull()) - instanceObject.releaseTime = dataNodeInstanceListInstance["ReleaseTime"].asString(); - if(!dataNodeInstanceListInstance["ExpectedReleaseTime"].isNull()) - instanceObject.expectedReleaseTime = dataNodeInstanceListInstance["ExpectedReleaseTime"].asString(); - if(!dataNodeInstanceListInstance["Status"].isNull()) - instanceObject.status = dataNodeInstanceListInstance["Status"].asString(); if(!dataNodeInstanceListInstance["SubStatus"].isNull()) instanceObject.subStatus = dataNodeInstanceListInstance["SubStatus"].asString(); + if(!dataNodeInstanceListInstance["Status"].isNull()) + instanceObject.status = dataNodeInstanceListInstance["Status"].asString(); + if(!dataNodeInstanceListInstance["ExpectedReleaseTime"].isNull()) + instanceObject.expectedReleaseTime = dataNodeInstanceListInstance["ExpectedReleaseTime"].asString(); if(!dataNodeInstanceListInstance["RenewStatus"].isNull()) instanceObject.renewStatus = dataNodeInstanceListInstance["RenewStatus"].asString(); - if(!dataNodeInstanceListInstance["RenewalDuration"].isNull()) - instanceObject.renewalDuration = std::stoi(dataNodeInstanceListInstance["RenewalDuration"].asString()); - if(!dataNodeInstanceListInstance["RenewalDurationUnit"].isNull()) - instanceObject.renewalDurationUnit = dataNodeInstanceListInstance["RenewalDurationUnit"].asString(); + if(!dataNodeInstanceListInstance["CreateTime"].isNull()) + instanceObject.createTime = dataNodeInstanceListInstance["CreateTime"].asString(); + if(!dataNodeInstanceListInstance["SellerId"].isNull()) + instanceObject.sellerId = std::stol(dataNodeInstanceListInstance["SellerId"].asString()); + if(!dataNodeInstanceListInstance["InstanceID"].isNull()) + instanceObject.instanceID = dataNodeInstanceListInstance["InstanceID"].asString(); if(!dataNodeInstanceListInstance["Seller"].isNull()) instanceObject.seller = dataNodeInstanceListInstance["Seller"].asString(); + if(!dataNodeInstanceListInstance["StopTime"].isNull()) + instanceObject.stopTime = dataNodeInstanceListInstance["StopTime"].asString(); + if(!dataNodeInstanceListInstance["RenewalDurationUnit"].isNull()) + instanceObject.renewalDurationUnit = dataNodeInstanceListInstance["RenewalDurationUnit"].asString(); + if(!dataNodeInstanceListInstance["SubscriptionType"].isNull()) + instanceObject.subscriptionType = dataNodeInstanceListInstance["SubscriptionType"].asString(); + if(!dataNodeInstanceListInstance["OwnerId"].isNull()) + instanceObject.ownerId = std::stol(dataNodeInstanceListInstance["OwnerId"].asString()); + if(!dataNodeInstanceListInstance["EndTime"].isNull()) + instanceObject.endTime = dataNodeInstanceListInstance["EndTime"].asString(); + if(!dataNodeInstanceListInstance["ProductType"].isNull()) + instanceObject.productType = dataNodeInstanceListInstance["ProductType"].asString(); + if(!dataNodeInstanceListInstance["Region"].isNull()) + instanceObject.region = dataNodeInstanceListInstance["Region"].asString(); + if(!dataNodeInstanceListInstance["ReleaseTime"].isNull()) + instanceObject.releaseTime = dataNodeInstanceListInstance["ReleaseTime"].asString(); + if(!dataNodeInstanceListInstance["RenewalDuration"].isNull()) + instanceObject.renewalDuration = std::stoi(dataNodeInstanceListInstance["RenewalDuration"].asString()); + if(!dataNodeInstanceListInstance["ProductCode"].isNull()) + instanceObject.productCode = dataNodeInstanceListInstance["ProductCode"].asString(); data_.instanceList.push_back(instanceObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryBillOverviewRequest.cc b/bssopenapi/src/model/QueryBillOverviewRequest.cc index 451c3f6b6..92804c106 100644 --- a/bssopenapi/src/model/QueryBillOverviewRequest.cc +++ b/bssopenapi/src/model/QueryBillOverviewRequest.cc @@ -1,84 +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. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::QueryBillOverviewRequest; - -QueryBillOverviewRequest::QueryBillOverviewRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryBillOverview") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryBillOverviewRequest::~QueryBillOverviewRequest() -{} - -std::string QueryBillOverviewRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryBillOverviewRequest; + +QueryBillOverviewRequest::QueryBillOverviewRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryBillOverview") { + setMethod(HttpRequest::Method::Post); } -void QueryBillOverviewRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +QueryBillOverviewRequest::~QueryBillOverviewRequest() {} + +std::string QueryBillOverviewRequest::getProductCode() const { + return productCode_; } -std::string QueryBillOverviewRequest::getSubscriptionType()const -{ - return subscriptionType_; +void QueryBillOverviewRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void QueryBillOverviewRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string QueryBillOverviewRequest::getSubscriptionType() const { + return subscriptionType_; } -std::string QueryBillOverviewRequest::getBillingCycle()const -{ - return billingCycle_; +void QueryBillOverviewRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void QueryBillOverviewRequest::setBillingCycle(const std::string& billingCycle) -{ - billingCycle_ = billingCycle; - setParameter("BillingCycle", billingCycle); +std::string QueryBillOverviewRequest::getBillingCycle() const { + return billingCycle_; } -long QueryBillOverviewRequest::getBillOwnerId()const -{ - return billOwnerId_; +void QueryBillOverviewRequest::setBillingCycle(const std::string &billingCycle) { + billingCycle_ = billingCycle; + setParameter(std::string("BillingCycle"), billingCycle); } -void QueryBillOverviewRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long QueryBillOverviewRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string QueryBillOverviewRequest::getProductType()const -{ - return productType_; +void QueryBillOverviewRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void QueryBillOverviewRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string QueryBillOverviewRequest::getProductType() const { + return productType_; +} + +void QueryBillOverviewRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } diff --git a/bssopenapi/src/model/QueryBillOverviewResult.cc b/bssopenapi/src/model/QueryBillOverviewResult.cc index dc17d6008..272fec4d7 100644 --- a/bssopenapi/src/model/QueryBillOverviewResult.cc +++ b/bssopenapi/src/model/QueryBillOverviewResult.cc @@ -50,66 +50,70 @@ void QueryBillOverviewResult::parse(const std::string &payload) for (auto dataNodeItemsItem : allItemsNode) { Data::Item itemObject; - if(!dataNodeItemsItem["Item"].isNull()) - itemObject.item = dataNodeItemsItem["Item"].asString(); - if(!dataNodeItemsItem["ProductCode"].isNull()) - itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); - if(!dataNodeItemsItem["ProductType"].isNull()) - itemObject.productType = dataNodeItemsItem["ProductType"].asString(); - if(!dataNodeItemsItem["SubscriptionType"].isNull()) - itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); - if(!dataNodeItemsItem["ProductName"].isNull()) - itemObject.productName = dataNodeItemsItem["ProductName"].asString(); - if(!dataNodeItemsItem["ProductDetail"].isNull()) - itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString(); - if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) - itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); - if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) - itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); - if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) - itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); - if(!dataNodeItemsItem["PretaxAmount"].isNull()) - itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); - if(!dataNodeItemsItem["Currency"].isNull()) - itemObject.currency = dataNodeItemsItem["Currency"].asString(); - if(!dataNodeItemsItem["PaymentAmount"].isNull()) - itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); - if(!dataNodeItemsItem["OutstandingAmount"].isNull()) - itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); - if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) - itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); - if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) - itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); - if(!dataNodeItemsItem["PretaxAmountLocal"].isNull()) - itemObject.pretaxAmountLocal = std::stof(dataNodeItemsItem["PretaxAmountLocal"].asString()); - if(!dataNodeItemsItem["Tax"].isNull()) - itemObject.tax = std::stof(dataNodeItemsItem["Tax"].asString()); - if(!dataNodeItemsItem["AfterTaxAmount"].isNull()) - itemObject.afterTaxAmount = std::stof(dataNodeItemsItem["AfterTaxAmount"].asString()); - if(!dataNodeItemsItem["PaymentCurrency"].isNull()) - itemObject.paymentCurrency = dataNodeItemsItem["PaymentCurrency"].asString(); if(!dataNodeItemsItem["RoundDownDiscount"].isNull()) itemObject.roundDownDiscount = dataNodeItemsItem["RoundDownDiscount"].asString(); - if(!dataNodeItemsItem["PipCode"].isNull()) - itemObject.pipCode = dataNodeItemsItem["PipCode"].asString(); - if(!dataNodeItemsItem["CommodityCode"].isNull()) - itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString(); - if(!dataNodeItemsItem["BillAccountID"].isNull()) - itemObject.billAccountID = dataNodeItemsItem["BillAccountID"].asString(); + if(!dataNodeItemsItem["Item"].isNull()) + itemObject.item = dataNodeItemsItem["Item"].asString(); + if(!dataNodeItemsItem["Currency"].isNull()) + itemObject.currency = dataNodeItemsItem["Currency"].asString(); + if(!dataNodeItemsItem["SubscriptionType"].isNull()) + itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); + if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) + itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); if(!dataNodeItemsItem["BillAccountName"].isNull()) itemObject.billAccountName = dataNodeItemsItem["BillAccountName"].asString(); if(!dataNodeItemsItem["BizType"].isNull()) itemObject.bizType = dataNodeItemsItem["BizType"].asString(); + if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) + itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); + if(!dataNodeItemsItem["OutstandingAmount"].isNull()) + itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); + if(!dataNodeItemsItem["AfterTaxAmount"].isNull()) + itemObject.afterTaxAmount = std::stof(dataNodeItemsItem["AfterTaxAmount"].asString()); + if(!dataNodeItemsItem["PretaxAmountLocal"].isNull()) + itemObject.pretaxAmountLocal = std::stof(dataNodeItemsItem["PretaxAmountLocal"].asString()); + if(!dataNodeItemsItem["Tax"].isNull()) + itemObject.tax = std::stof(dataNodeItemsItem["Tax"].asString()); + if(!dataNodeItemsItem["PipCode"].isNull()) + itemObject.pipCode = dataNodeItemsItem["PipCode"].asString(); + if(!dataNodeItemsItem["PretaxAmount"].isNull()) + itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); + if(!dataNodeItemsItem["ProductName"].isNull()) + itemObject.productName = dataNodeItemsItem["ProductName"].asString(); + if(!dataNodeItemsItem["CommodityCode"].isNull()) + itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString(); + if(!dataNodeItemsItem["AdjustAmount"].isNull()) + itemObject.adjustAmount = std::stof(dataNodeItemsItem["AdjustAmount"].asString()); + if(!dataNodeItemsItem["ProductDetail"].isNull()) + itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString(); + if(!dataNodeItemsItem["PaymentCurrency"].isNull()) + itemObject.paymentCurrency = dataNodeItemsItem["PaymentCurrency"].asString(); if(!dataNodeItemsItem["OwnerID"].isNull()) itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); + if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) + itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); + if(!dataNodeItemsItem["ProductType"].isNull()) + itemObject.productType = dataNodeItemsItem["ProductType"].asString(); + if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) + itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); + if(!dataNodeItemsItem["PaymentAmount"].isNull()) + itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); + if(!dataNodeItemsItem["BillAccountID"].isNull()) + itemObject.billAccountID = dataNodeItemsItem["BillAccountID"].asString(); + if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) + itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); + if(!dataNodeItemsItem["CashAmount"].isNull()) + itemObject.cashAmount = std::stof(dataNodeItemsItem["CashAmount"].asString()); + if(!dataNodeItemsItem["ProductCode"].isNull()) + itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryBillRequest.cc b/bssopenapi/src/model/QueryBillRequest.cc index cd1446dfe..9efa31548 100644 --- a/bssopenapi/src/model/QueryBillRequest.cc +++ b/bssopenapi/src/model/QueryBillRequest.cc @@ -1,150 +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 - -using AlibabaCloud::BssOpenApi::Model::QueryBillRequest; - -QueryBillRequest::QueryBillRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryBill") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryBillRequest::~QueryBillRequest() -{} - -std::string QueryBillRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryBillRequest; + +QueryBillRequest::QueryBillRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryBill") { + setMethod(HttpRequest::Method::Post); } -void QueryBillRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +QueryBillRequest::~QueryBillRequest() {} + +std::string QueryBillRequest::getProductCode() const { + return productCode_; } -bool QueryBillRequest::getIsHideZeroCharge()const -{ - return isHideZeroCharge_; +void QueryBillRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void QueryBillRequest::setIsHideZeroCharge(bool isHideZeroCharge) -{ - isHideZeroCharge_ = isHideZeroCharge; - setParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false"); +bool QueryBillRequest::getIsHideZeroCharge() const { + return isHideZeroCharge_; } -bool QueryBillRequest::getIsDisplayLocalCurrency()const -{ - return isDisplayLocalCurrency_; +void QueryBillRequest::setIsHideZeroCharge(bool isHideZeroCharge) { + isHideZeroCharge_ = isHideZeroCharge; + setParameter(std::string("IsHideZeroCharge"), isHideZeroCharge ? "true" : "false"); } -void QueryBillRequest::setIsDisplayLocalCurrency(bool isDisplayLocalCurrency) -{ - isDisplayLocalCurrency_ = isDisplayLocalCurrency; - setParameter("IsDisplayLocalCurrency", isDisplayLocalCurrency ? "true" : "false"); +bool QueryBillRequest::getIsDisplayLocalCurrency() const { + return isDisplayLocalCurrency_; } -std::string QueryBillRequest::getSubscriptionType()const -{ - return subscriptionType_; +void QueryBillRequest::setIsDisplayLocalCurrency(bool isDisplayLocalCurrency) { + isDisplayLocalCurrency_ = isDisplayLocalCurrency; + setParameter(std::string("IsDisplayLocalCurrency"), isDisplayLocalCurrency ? "true" : "false"); } -void QueryBillRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string QueryBillRequest::getSubscriptionType() const { + return subscriptionType_; } -std::string QueryBillRequest::getBillingCycle()const -{ - return billingCycle_; +void QueryBillRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void QueryBillRequest::setBillingCycle(const std::string& billingCycle) -{ - billingCycle_ = billingCycle; - setParameter("BillingCycle", billingCycle); +std::string QueryBillRequest::getBillingCycle() const { + return billingCycle_; } -std::string QueryBillRequest::getType()const -{ - return type_; +void QueryBillRequest::setBillingCycle(const std::string &billingCycle) { + billingCycle_ = billingCycle; + setParameter(std::string("BillingCycle"), billingCycle); } -void QueryBillRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string QueryBillRequest::getType() const { + return type_; } -long QueryBillRequest::getOwnerId()const -{ - return ownerId_; +void QueryBillRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void QueryBillRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryBillRequest::getOwnerId() const { + return ownerId_; } -int QueryBillRequest::getPageNum()const -{ - return pageNum_; +void QueryBillRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryBillRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QueryBillRequest::getPageNum() const { + return pageNum_; } -long QueryBillRequest::getBillOwnerId()const -{ - return billOwnerId_; +void QueryBillRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryBillRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long QueryBillRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string QueryBillRequest::getProductType()const -{ - return productType_; +void QueryBillRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void QueryBillRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string QueryBillRequest::getProductType() const { + return productType_; } -int QueryBillRequest::getPageSize()const -{ - return pageSize_; +void QueryBillRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void QueryBillRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryBillRequest::getPageSize() const { + return pageSize_; +} + +void QueryBillRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/bssopenapi/src/model/QueryBillResult.cc b/bssopenapi/src/model/QueryBillResult.cc index 0d9ee0a00..681b759bc 100644 --- a/bssopenapi/src/model/QueryBillResult.cc +++ b/bssopenapi/src/model/QueryBillResult.cc @@ -40,90 +40,94 @@ void QueryBillResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; + if(!dataNode["PageNum"].isNull()) + data_.pageNum = std::stoi(dataNode["PageNum"].asString()); if(!dataNode["BillingCycle"].isNull()) data_.billingCycle = dataNode["BillingCycle"].asString(); if(!dataNode["AccountID"].isNull()) data_.accountID = dataNode["AccountID"].asString(); - if(!dataNode["AccountName"].isNull()) - data_.accountName = dataNode["AccountName"].asString(); - if(!dataNode["PageNum"].isNull()) - data_.pageNum = std::stoi(dataNode["PageNum"].asString()); if(!dataNode["PageSize"].isNull()) data_.pageSize = std::stoi(dataNode["PageSize"].asString()); if(!dataNode["TotalCount"].isNull()) data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + if(!dataNode["AccountName"].isNull()) + data_.accountName = dataNode["AccountName"].asString(); auto allItemsNode = dataNode["Items"]["Item"]; for (auto dataNodeItemsItem : allItemsNode) { Data::Item itemObject; - if(!dataNodeItemsItem["RecordID"].isNull()) - itemObject.recordID = dataNodeItemsItem["RecordID"].asString(); + if(!dataNodeItemsItem["Status"].isNull()) + itemObject.status = dataNodeItemsItem["Status"].asString(); + if(!dataNodeItemsItem["RoundDownDiscount"].isNull()) + itemObject.roundDownDiscount = dataNodeItemsItem["RoundDownDiscount"].asString(); if(!dataNodeItemsItem["Item"].isNull()) itemObject.item = dataNodeItemsItem["Item"].asString(); - if(!dataNodeItemsItem["OwnerID"].isNull()) - itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); - if(!dataNodeItemsItem["UsageStartTime"].isNull()) - itemObject.usageStartTime = dataNodeItemsItem["UsageStartTime"].asString(); - if(!dataNodeItemsItem["UsageEndTime"].isNull()) - itemObject.usageEndTime = dataNodeItemsItem["UsageEndTime"].asString(); - if(!dataNodeItemsItem["PaymentTime"].isNull()) - itemObject.paymentTime = dataNodeItemsItem["PaymentTime"].asString(); - if(!dataNodeItemsItem["ProductCode"].isNull()) - itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); - if(!dataNodeItemsItem["ProductType"].isNull()) - itemObject.productType = dataNodeItemsItem["ProductType"].asString(); - if(!dataNodeItemsItem["SubscriptionType"].isNull()) - itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); - if(!dataNodeItemsItem["ProductName"].isNull()) - itemObject.productName = dataNodeItemsItem["ProductName"].asString(); - if(!dataNodeItemsItem["ProductDetail"].isNull()) - itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString(); - if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) - itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); - if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) - itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); - if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) - itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); - if(!dataNodeItemsItem["PretaxAmount"].isNull()) - itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); if(!dataNodeItemsItem["Currency"].isNull()) itemObject.currency = dataNodeItemsItem["Currency"].asString(); - if(!dataNodeItemsItem["PretaxAmountLocal"].isNull()) - itemObject.pretaxAmountLocal = std::stof(dataNodeItemsItem["PretaxAmountLocal"].asString()); - if(!dataNodeItemsItem["Tax"].isNull()) - itemObject.tax = std::stof(dataNodeItemsItem["Tax"].asString()); - if(!dataNodeItemsItem["PaymentAmount"].isNull()) - itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); + if(!dataNodeItemsItem["UsageStartTime"].isNull()) + itemObject.usageStartTime = dataNodeItemsItem["UsageStartTime"].asString(); + if(!dataNodeItemsItem["SubscriptionType"].isNull()) + itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); - if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) - itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); + if(!dataNodeItemsItem["UsageEndTime"].isNull()) + itemObject.usageEndTime = dataNodeItemsItem["UsageEndTime"].asString(); + if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) + itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); + if(!dataNodeItemsItem["SubOrderId"].isNull()) + itemObject.subOrderId = dataNodeItemsItem["SubOrderId"].asString(); if(!dataNodeItemsItem["OutstandingAmount"].isNull()) itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); if(!dataNodeItemsItem["AfterTaxAmount"].isNull()) itemObject.afterTaxAmount = std::stof(dataNodeItemsItem["AfterTaxAmount"].asString()); - if(!dataNodeItemsItem["Status"].isNull()) - itemObject.status = dataNodeItemsItem["Status"].asString(); - if(!dataNodeItemsItem["PaymentCurrency"].isNull()) - itemObject.paymentCurrency = dataNodeItemsItem["PaymentCurrency"].asString(); - if(!dataNodeItemsItem["PaymentTransactionID"].isNull()) - itemObject.paymentTransactionID = dataNodeItemsItem["PaymentTransactionID"].asString(); - if(!dataNodeItemsItem["RoundDownDiscount"].isNull()) - itemObject.roundDownDiscount = dataNodeItemsItem["RoundDownDiscount"].asString(); - if(!dataNodeItemsItem["SubOrderId"].isNull()) - itemObject.subOrderId = dataNodeItemsItem["SubOrderId"].asString(); + if(!dataNodeItemsItem["PaymentTime"].isNull()) + itemObject.paymentTime = dataNodeItemsItem["PaymentTime"].asString(); + if(!dataNodeItemsItem["PretaxAmountLocal"].isNull()) + itemObject.pretaxAmountLocal = std::stof(dataNodeItemsItem["PretaxAmountLocal"].asString()); + if(!dataNodeItemsItem["Tax"].isNull()) + itemObject.tax = std::stof(dataNodeItemsItem["Tax"].asString()); if(!dataNodeItemsItem["PipCode"].isNull()) itemObject.pipCode = dataNodeItemsItem["PipCode"].asString(); + if(!dataNodeItemsItem["PaymentTransactionID"].isNull()) + itemObject.paymentTransactionID = dataNodeItemsItem["PaymentTransactionID"].asString(); + if(!dataNodeItemsItem["PretaxAmount"].isNull()) + itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); if(!dataNodeItemsItem["CommodityCode"].isNull()) itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString(); + if(!dataNodeItemsItem["ProductName"].isNull()) + itemObject.productName = dataNodeItemsItem["ProductName"].asString(); + if(!dataNodeItemsItem["RecordID"].isNull()) + itemObject.recordID = dataNodeItemsItem["RecordID"].asString(); + if(!dataNodeItemsItem["AdjustAmount"].isNull()) + itemObject.adjustAmount = std::stof(dataNodeItemsItem["AdjustAmount"].asString()); + if(!dataNodeItemsItem["ProductDetail"].isNull()) + itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString(); + if(!dataNodeItemsItem["PaymentCurrency"].isNull()) + itemObject.paymentCurrency = dataNodeItemsItem["PaymentCurrency"].asString(); + if(!dataNodeItemsItem["OwnerID"].isNull()) + itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); + if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) + itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); + if(!dataNodeItemsItem["ProductType"].isNull()) + itemObject.productType = dataNodeItemsItem["ProductType"].asString(); + if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) + itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); + if(!dataNodeItemsItem["PaymentAmount"].isNull()) + itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); + if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) + itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); + if(!dataNodeItemsItem["CashAmount"].isNull()) + itemObject.cashAmount = std::stof(dataNodeItemsItem["CashAmount"].asString()); + if(!dataNodeItemsItem["ProductCode"].isNull()) + itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryBillToOSSSubscriptionRequest.cc b/bssopenapi/src/model/QueryBillToOSSSubscriptionRequest.cc index b267bc8d1..4f53dfb03 100644 --- a/bssopenapi/src/model/QueryBillToOSSSubscriptionRequest.cc +++ b/bssopenapi/src/model/QueryBillToOSSSubscriptionRequest.cc @@ -1,29 +1,27 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryBillToOSSSubscriptionRequest; - -QueryBillToOSSSubscriptionRequest::QueryBillToOSSSubscriptionRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryBillToOSSSubscription") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryBillToOSSSubscriptionRequest::~QueryBillToOSSSubscriptionRequest() -{} - + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryBillToOSSSubscriptionRequest; + +QueryBillToOSSSubscriptionRequest::QueryBillToOSSSubscriptionRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryBillToOSSSubscription") { + setMethod(HttpRequest::Method::Post); +} + +QueryBillToOSSSubscriptionRequest::~QueryBillToOSSSubscriptionRequest() {} + diff --git a/bssopenapi/src/model/QueryBillToOSSSubscriptionResult.cc b/bssopenapi/src/model/QueryBillToOSSSubscriptionResult.cc index 92adb4c06..2a1238f10 100644 --- a/bssopenapi/src/model/QueryBillToOSSSubscriptionResult.cc +++ b/bssopenapi/src/model/QueryBillToOSSSubscriptionResult.cc @@ -40,20 +40,20 @@ void QueryBillToOSSSubscriptionResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["AccountID"].isNull()) - data_.accountID = dataNode["AccountID"].asString(); if(!dataNode["AccountName"].isNull()) data_.accountName = dataNode["AccountName"].asString(); + if(!dataNode["AccountID"].isNull()) + data_.accountID = dataNode["AccountID"].asString(); auto allItemsNode = dataNode["Items"]["Item"]; for (auto dataNodeItemsItem : allItemsNode) { Data::Item itemObject; + if(!dataNodeItemsItem["BucketOwnerId"].isNull()) + itemObject.bucketOwnerId = std::stol(dataNodeItemsItem["BucketOwnerId"].asString()); if(!dataNodeItemsItem["SubscribeType"].isNull()) itemObject.subscribeType = dataNodeItemsItem["SubscribeType"].asString(); if(!dataNodeItemsItem["SubscribeBucket"].isNull()) itemObject.subscribeBucket = dataNodeItemsItem["SubscribeBucket"].asString(); - if(!dataNodeItemsItem["BucketOwnerId"].isNull()) - itemObject.bucketOwnerId = std::stol(dataNodeItemsItem["BucketOwnerId"].asString()); if(!dataNodeItemsItem["SubscribeTime"].isNull()) itemObject.subscribeTime = dataNodeItemsItem["SubscribeTime"].asString(); if(!dataNodeItemsItem["SubscribeLanguage"].isNull()) @@ -62,12 +62,12 @@ void QueryBillToOSSSubscriptionResult::parse(const std::string &payload) itemObject.multAccountRelSubscribe = dataNodeItemsItem["MultAccountRelSubscribe"].asString(); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryCashCouponsRequest.cc b/bssopenapi/src/model/QueryCashCouponsRequest.cc index d620dd552..60f6a85bc 100644 --- a/bssopenapi/src/model/QueryCashCouponsRequest.cc +++ b/bssopenapi/src/model/QueryCashCouponsRequest.cc @@ -1,62 +1,54 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryCashCouponsRequest; - -QueryCashCouponsRequest::QueryCashCouponsRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCashCoupons") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryCashCouponsRequest::~QueryCashCouponsRequest() -{} - -std::string QueryCashCouponsRequest::getExpiryTimeEnd()const -{ - return expiryTimeEnd_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryCashCouponsRequest; + +QueryCashCouponsRequest::QueryCashCouponsRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCashCoupons") { + setMethod(HttpRequest::Method::Post); } -void QueryCashCouponsRequest::setExpiryTimeEnd(const std::string& expiryTimeEnd) -{ - expiryTimeEnd_ = expiryTimeEnd; - setParameter("ExpiryTimeEnd", expiryTimeEnd); +QueryCashCouponsRequest::~QueryCashCouponsRequest() {} + +std::string QueryCashCouponsRequest::getExpiryTimeEnd() const { + return expiryTimeEnd_; } -std::string QueryCashCouponsRequest::getExpiryTimeStart()const -{ - return expiryTimeStart_; +void QueryCashCouponsRequest::setExpiryTimeEnd(const std::string &expiryTimeEnd) { + expiryTimeEnd_ = expiryTimeEnd; + setParameter(std::string("ExpiryTimeEnd"), expiryTimeEnd); } -void QueryCashCouponsRequest::setExpiryTimeStart(const std::string& expiryTimeStart) -{ - expiryTimeStart_ = expiryTimeStart; - setParameter("ExpiryTimeStart", expiryTimeStart); +std::string QueryCashCouponsRequest::getExpiryTimeStart() const { + return expiryTimeStart_; } -bool QueryCashCouponsRequest::getEffectiveOrNot()const -{ - return effectiveOrNot_; +void QueryCashCouponsRequest::setExpiryTimeStart(const std::string &expiryTimeStart) { + expiryTimeStart_ = expiryTimeStart; + setParameter(std::string("ExpiryTimeStart"), expiryTimeStart); } -void QueryCashCouponsRequest::setEffectiveOrNot(bool effectiveOrNot) -{ - effectiveOrNot_ = effectiveOrNot; - setParameter("EffectiveOrNot", effectiveOrNot ? "true" : "false"); +bool QueryCashCouponsRequest::getEffectiveOrNot() const { + return effectiveOrNot_; +} + +void QueryCashCouponsRequest::setEffectiveOrNot(bool effectiveOrNot) { + effectiveOrNot_ = effectiveOrNot; + setParameter(std::string("EffectiveOrNot"), effectiveOrNot ? "true" : "false"); } diff --git a/bssopenapi/src/model/QueryCashCouponsResult.cc b/bssopenapi/src/model/QueryCashCouponsResult.cc index 4ad1abb3f..7d2421926 100644 --- a/bssopenapi/src/model/QueryCashCouponsResult.cc +++ b/bssopenapi/src/model/QueryCashCouponsResult.cc @@ -43,34 +43,34 @@ void QueryCashCouponsResult::parse(const std::string &payload) for (auto valueDataCashCoupon : allDataNode) { CashCoupon dataObject; - if(!valueDataCashCoupon["CashCouponId"].isNull()) - dataObject.cashCouponId = std::stol(valueDataCashCoupon["CashCouponId"].asString()); - if(!valueDataCashCoupon["CashCouponNo"].isNull()) - dataObject.cashCouponNo = valueDataCashCoupon["CashCouponNo"].asString(); - if(!valueDataCashCoupon["GrantedTime"].isNull()) - dataObject.grantedTime = valueDataCashCoupon["GrantedTime"].asString(); - if(!valueDataCashCoupon["EffectiveTime"].isNull()) - dataObject.effectiveTime = valueDataCashCoupon["EffectiveTime"].asString(); - if(!valueDataCashCoupon["ExpiryTime"].isNull()) - dataObject.expiryTime = valueDataCashCoupon["ExpiryTime"].asString(); - if(!valueDataCashCoupon["ApplicableProducts"].isNull()) - dataObject.applicableProducts = valueDataCashCoupon["ApplicableProducts"].asString(); - if(!valueDataCashCoupon["ApplicableScenarios"].isNull()) - dataObject.applicableScenarios = valueDataCashCoupon["ApplicableScenarios"].asString(); - if(!valueDataCashCoupon["NominalValue"].isNull()) - dataObject.nominalValue = valueDataCashCoupon["NominalValue"].asString(); - if(!valueDataCashCoupon["Balance"].isNull()) - dataObject.balance = valueDataCashCoupon["Balance"].asString(); if(!valueDataCashCoupon["Status"].isNull()) dataObject.status = valueDataCashCoupon["Status"].asString(); + if(!valueDataCashCoupon["ExpiryTime"].isNull()) + dataObject.expiryTime = valueDataCashCoupon["ExpiryTime"].asString(); + if(!valueDataCashCoupon["GrantedTime"].isNull()) + dataObject.grantedTime = valueDataCashCoupon["GrantedTime"].asString(); + if(!valueDataCashCoupon["NominalValue"].isNull()) + dataObject.nominalValue = valueDataCashCoupon["NominalValue"].asString(); + if(!valueDataCashCoupon["EffectiveTime"].isNull()) + dataObject.effectiveTime = valueDataCashCoupon["EffectiveTime"].asString(); + if(!valueDataCashCoupon["ApplicableScenarios"].isNull()) + dataObject.applicableScenarios = valueDataCashCoupon["ApplicableScenarios"].asString(); + if(!valueDataCashCoupon["CashCouponId"].isNull()) + dataObject.cashCouponId = std::stol(valueDataCashCoupon["CashCouponId"].asString()); + if(!valueDataCashCoupon["ApplicableProducts"].isNull()) + dataObject.applicableProducts = valueDataCashCoupon["ApplicableProducts"].asString(); + if(!valueDataCashCoupon["CashCouponNo"].isNull()) + dataObject.cashCouponNo = valueDataCashCoupon["CashCouponNo"].asString(); + if(!valueDataCashCoupon["Balance"].isNull()) + dataObject.balance = valueDataCashCoupon["Balance"].asString(); data_.push_back(dataObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryCostUnitRequest.cc b/bssopenapi/src/model/QueryCostUnitRequest.cc index 461d73dc5..68d887614 100644 --- a/bssopenapi/src/model/QueryCostUnitRequest.cc +++ b/bssopenapi/src/model/QueryCostUnitRequest.cc @@ -1,73 +1,63 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryCostUnitRequest; - -QueryCostUnitRequest::QueryCostUnitRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCostUnit") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryCostUnitRequest::~QueryCostUnitRequest() -{} - -long QueryCostUnitRequest::getParentUnitId()const -{ - return parentUnitId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryCostUnitRequest; + +QueryCostUnitRequest::QueryCostUnitRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCostUnit") { + setMethod(HttpRequest::Method::Post); } -void QueryCostUnitRequest::setParentUnitId(long parentUnitId) -{ - parentUnitId_ = parentUnitId; - setParameter("ParentUnitId", std::to_string(parentUnitId)); +QueryCostUnitRequest::~QueryCostUnitRequest() {} + +long QueryCostUnitRequest::getParentUnitId() const { + return parentUnitId_; } -int QueryCostUnitRequest::getPageNum()const -{ - return pageNum_; +void QueryCostUnitRequest::setParentUnitId(long parentUnitId) { + parentUnitId_ = parentUnitId; + setParameter(std::string("ParentUnitId"), std::to_string(parentUnitId)); } -void QueryCostUnitRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QueryCostUnitRequest::getPageNum() const { + return pageNum_; } -int QueryCostUnitRequest::getPageSize()const -{ - return pageSize_; +void QueryCostUnitRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryCostUnitRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryCostUnitRequest::getPageSize() const { + return pageSize_; } -long QueryCostUnitRequest::getOwnerUid()const -{ - return ownerUid_; +void QueryCostUnitRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void QueryCostUnitRequest::setOwnerUid(long ownerUid) -{ - ownerUid_ = ownerUid; - setParameter("OwnerUid", std::to_string(ownerUid)); +long QueryCostUnitRequest::getOwnerUid() const { + return ownerUid_; +} + +void QueryCostUnitRequest::setOwnerUid(long ownerUid) { + ownerUid_ = ownerUid; + setParameter(std::string("OwnerUid"), std::to_string(ownerUid)); } diff --git a/bssopenapi/src/model/QueryCostUnitResourceRequest.cc b/bssopenapi/src/model/QueryCostUnitResourceRequest.cc index a402ca0a9..e3b5a28cf 100644 --- a/bssopenapi/src/model/QueryCostUnitResourceRequest.cc +++ b/bssopenapi/src/model/QueryCostUnitResourceRequest.cc @@ -1,73 +1,63 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryCostUnitResourceRequest; - -QueryCostUnitResourceRequest::QueryCostUnitResourceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCostUnitResource") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryCostUnitResourceRequest::~QueryCostUnitResourceRequest() -{} - -int QueryCostUnitResourceRequest::getPageNum()const -{ - return pageNum_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryCostUnitResourceRequest; + +QueryCostUnitResourceRequest::QueryCostUnitResourceRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCostUnitResource") { + setMethod(HttpRequest::Method::Post); } -void QueryCostUnitResourceRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +QueryCostUnitResourceRequest::~QueryCostUnitResourceRequest() {} + +int QueryCostUnitResourceRequest::getPageNum() const { + return pageNum_; } -int QueryCostUnitResourceRequest::getPageSize()const -{ - return pageSize_; +void QueryCostUnitResourceRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryCostUnitResourceRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryCostUnitResourceRequest::getPageSize() const { + return pageSize_; } -long QueryCostUnitResourceRequest::getUnitId()const -{ - return unitId_; +void QueryCostUnitResourceRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void QueryCostUnitResourceRequest::setUnitId(long unitId) -{ - unitId_ = unitId; - setParameter("UnitId", std::to_string(unitId)); +long QueryCostUnitResourceRequest::getUnitId() const { + return unitId_; } -long QueryCostUnitResourceRequest::getOwnerUid()const -{ - return ownerUid_; +void QueryCostUnitResourceRequest::setUnitId(long unitId) { + unitId_ = unitId; + setParameter(std::string("UnitId"), std::to_string(unitId)); } -void QueryCostUnitResourceRequest::setOwnerUid(long ownerUid) -{ - ownerUid_ = ownerUid; - setParameter("OwnerUid", std::to_string(ownerUid)); +long QueryCostUnitResourceRequest::getOwnerUid() const { + return ownerUid_; +} + +void QueryCostUnitResourceRequest::setOwnerUid(long ownerUid) { + ownerUid_ = ownerUid; + setParameter(std::string("OwnerUid"), std::to_string(ownerUid)); } diff --git a/bssopenapi/src/model/QueryCostUnitResourceResult.cc b/bssopenapi/src/model/QueryCostUnitResourceResult.cc index 7c8cf9bb9..bf9a55789 100644 --- a/bssopenapi/src/model/QueryCostUnitResourceResult.cc +++ b/bssopenapi/src/model/QueryCostUnitResourceResult.cc @@ -40,72 +40,72 @@ void QueryCostUnitResourceResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - if(!dataNode["PageSize"].isNull()) - data_.pageSize = std::stoi(dataNode["PageSize"].asString()); if(!dataNode["PageNum"].isNull()) data_.pageNum = std::stoi(dataNode["PageNum"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); auto allResourceInstanceDtoListNode = dataNode["ResourceInstanceDtoList"]["ResourceInstanceList"]; for (auto dataNodeResourceInstanceDtoListResourceInstanceList : allResourceInstanceDtoListNode) { Data::ResourceInstanceList resourceInstanceListObject; - if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserId"].isNull()) - resourceInstanceListObject.resourceUserId = std::stol(dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserId"].asString()); - if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceTag"].isNull()) - resourceInstanceListObject.resourceTag = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceTag"].asString(); - if(!dataNodeResourceInstanceDtoListResourceInstanceList["RelatedResources"].isNull()) - resourceInstanceListObject.relatedResources = dataNodeResourceInstanceDtoListResourceInstanceList["RelatedResources"].asString(); - if(!dataNodeResourceInstanceDtoListResourceInstanceList["ApportionName"].isNull()) - resourceInstanceListObject.apportionName = dataNodeResourceInstanceDtoListResourceInstanceList["ApportionName"].asString(); - if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceId"].isNull()) - resourceInstanceListObject.resourceId = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceId"].asString(); if(!dataNodeResourceInstanceDtoListResourceInstanceList["CommodityCode"].isNull()) resourceInstanceListObject.commodityCode = dataNodeResourceInstanceDtoListResourceInstanceList["CommodityCode"].asString(); - if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceStatus"].isNull()) - resourceInstanceListObject.resourceStatus = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceStatus"].asString(); - if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceType"].isNull()) - resourceInstanceListObject.resourceType = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceType"].asString(); if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserName"].isNull()) resourceInstanceListObject.resourceUserName = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserName"].asString(); - if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceNick"].isNull()) - resourceInstanceListObject.resourceNick = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceNick"].asString(); - if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceGroup"].isNull()) - resourceInstanceListObject.resourceGroup = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceGroup"].asString(); if(!dataNodeResourceInstanceDtoListResourceInstanceList["CommodityName"].isNull()) resourceInstanceListObject.commodityName = dataNodeResourceInstanceDtoListResourceInstanceList["CommodityName"].asString(); + if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserId"].isNull()) + resourceInstanceListObject.resourceUserId = std::stol(dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserId"].asString()); + if(!dataNodeResourceInstanceDtoListResourceInstanceList["ApportionName"].isNull()) + resourceInstanceListObject.apportionName = dataNodeResourceInstanceDtoListResourceInstanceList["ApportionName"].asString(); if(!dataNodeResourceInstanceDtoListResourceInstanceList["ApportionCode"].isNull()) resourceInstanceListObject.apportionCode = dataNodeResourceInstanceDtoListResourceInstanceList["ApportionCode"].asString(); + if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceType"].isNull()) + resourceInstanceListObject.resourceType = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceType"].asString(); + if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceNick"].isNull()) + resourceInstanceListObject.resourceNick = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceNick"].asString(); + if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceTag"].isNull()) + resourceInstanceListObject.resourceTag = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceTag"].asString(); + if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceId"].isNull()) + resourceInstanceListObject.resourceId = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceId"].asString(); + if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceGroup"].isNull()) + resourceInstanceListObject.resourceGroup = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceGroup"].asString(); + if(!dataNodeResourceInstanceDtoListResourceInstanceList["RelatedResources"].isNull()) + resourceInstanceListObject.relatedResources = dataNodeResourceInstanceDtoListResourceInstanceList["RelatedResources"].asString(); + if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceStatus"].isNull()) + resourceInstanceListObject.resourceStatus = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceStatus"].asString(); data_.resourceInstanceDtoList.push_back(resourceInstanceListObject); } auto costUnitNode = dataNode["CostUnit"]; - if(!costUnitNode["UnitId"].isNull()) - data_.costUnit.unitId = std::stol(costUnitNode["UnitId"].asString()); if(!costUnitNode["ParentUnitId"].isNull()) data_.costUnit.parentUnitId = std::stol(costUnitNode["ParentUnitId"].asString()); - if(!costUnitNode["OwnerUid"].isNull()) - data_.costUnit.ownerUid = std::stol(costUnitNode["OwnerUid"].asString()); if(!costUnitNode["UnitName"].isNull()) data_.costUnit.unitName = costUnitNode["UnitName"].asString(); + if(!costUnitNode["UnitId"].isNull()) + data_.costUnit.unitId = std::stol(costUnitNode["UnitId"].asString()); + if(!costUnitNode["OwnerUid"].isNull()) + data_.costUnit.ownerUid = std::stol(costUnitNode["OwnerUid"].asString()); auto costUnitStatisInfoNode = dataNode["CostUnitStatisInfo"]; - if(!costUnitStatisInfoNode["SubUnitCount"].isNull()) - data_.costUnitStatisInfo.subUnitCount = std::stol(costUnitStatisInfoNode["SubUnitCount"].asString()); - if(!costUnitStatisInfoNode["TotalResourceGroupCount"].isNull()) - data_.costUnitStatisInfo.totalResourceGroupCount = std::stol(costUnitStatisInfoNode["TotalResourceGroupCount"].asString()); if(!costUnitStatisInfoNode["TotalResourceCount"].isNull()) data_.costUnitStatisInfo.totalResourceCount = std::stol(costUnitStatisInfoNode["TotalResourceCount"].asString()); - if(!costUnitStatisInfoNode["UserCount"].isNull()) - data_.costUnitStatisInfo.userCount = std::stol(costUnitStatisInfoNode["UserCount"].asString()); if(!costUnitStatisInfoNode["ResourceCount"].isNull()) data_.costUnitStatisInfo.resourceCount = std::stol(costUnitStatisInfoNode["ResourceCount"].asString()); if(!costUnitStatisInfoNode["TotalUserCount"].isNull()) data_.costUnitStatisInfo.totalUserCount = std::stol(costUnitStatisInfoNode["TotalUserCount"].asString()); + if(!costUnitStatisInfoNode["SubUnitCount"].isNull()) + data_.costUnitStatisInfo.subUnitCount = std::stol(costUnitStatisInfoNode["SubUnitCount"].asString()); if(!costUnitStatisInfoNode["ResourceGroupCount"].isNull()) data_.costUnitStatisInfo.resourceGroupCount = std::stol(costUnitStatisInfoNode["ResourceGroupCount"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!costUnitStatisInfoNode["TotalResourceGroupCount"].isNull()) + data_.costUnitStatisInfo.totalResourceGroupCount = std::stol(costUnitStatisInfoNode["TotalResourceGroupCount"].asString()); + if(!costUnitStatisInfoNode["UserCount"].isNull()) + data_.costUnitStatisInfo.userCount = std::stol(costUnitStatisInfoNode["UserCount"].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"; diff --git a/bssopenapi/src/model/QueryCostUnitResult.cc b/bssopenapi/src/model/QueryCostUnitResult.cc index bdd58bd6b..bb3d4503b 100644 --- a/bssopenapi/src/model/QueryCostUnitResult.cc +++ b/bssopenapi/src/model/QueryCostUnitResult.cc @@ -40,30 +40,30 @@ void QueryCostUnitResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - if(!dataNode["PageSize"].isNull()) - data_.pageSize = std::stoi(dataNode["PageSize"].asString()); if(!dataNode["PageNum"].isNull()) data_.pageNum = std::stoi(dataNode["PageNum"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); auto allCostUnitDtoListNode = dataNode["CostUnitDtoList"]["CostUnitDtoListItem"]; for (auto dataNodeCostUnitDtoListCostUnitDtoListItem : allCostUnitDtoListNode) { Data::CostUnitDtoListItem costUnitDtoListItemObject; - if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].isNull()) - costUnitDtoListItemObject.unitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].asString()); if(!dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].isNull()) costUnitDtoListItemObject.parentUnitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].asString()); - if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull()) - costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString()); if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].isNull()) costUnitDtoListItemObject.unitName = dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].asString(); + if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].isNull()) + costUnitDtoListItemObject.unitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].asString()); + if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull()) + costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString()); data_.costUnitDtoList.push_back(costUnitDtoListItemObject); } - if(!value["Message"].isNull()) - message_ = value["Message"].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"; diff --git a/bssopenapi/src/model/QueryCustomerAddressListRequest.cc b/bssopenapi/src/model/QueryCustomerAddressListRequest.cc index efeab8de8..31c79300e 100644 --- a/bssopenapi/src/model/QueryCustomerAddressListRequest.cc +++ b/bssopenapi/src/model/QueryCustomerAddressListRequest.cc @@ -1,40 +1,36 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryCustomerAddressListRequest; - -QueryCustomerAddressListRequest::QueryCustomerAddressListRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCustomerAddressList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryCustomerAddressListRequest::~QueryCustomerAddressListRequest() -{} - -long QueryCustomerAddressListRequest::getOwnerId()const -{ - return ownerId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryCustomerAddressListRequest; + +QueryCustomerAddressListRequest::QueryCustomerAddressListRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCustomerAddressList") { + setMethod(HttpRequest::Method::Post); } -void QueryCustomerAddressListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +QueryCustomerAddressListRequest::~QueryCustomerAddressListRequest() {} + +long QueryCustomerAddressListRequest::getOwnerId() const { + return ownerId_; +} + +void QueryCustomerAddressListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/bssopenapi/src/model/QueryCustomerAddressListResult.cc b/bssopenapi/src/model/QueryCustomerAddressListResult.cc index fac293a6a..b2e4e76c0 100644 --- a/bssopenapi/src/model/QueryCustomerAddressListResult.cc +++ b/bssopenapi/src/model/QueryCustomerAddressListResult.cc @@ -44,38 +44,38 @@ void QueryCustomerAddressListResult::parse(const std::string &payload) for (auto dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress : allCustomerInvoiceAddressListNode) { Data::CustomerInvoiceAddress customerInvoiceAddressObject; - if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Id"].isNull()) - customerInvoiceAddressObject.id = std::stol(dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Id"].asString()); - if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["UserId"].isNull()) - customerInvoiceAddressObject.userId = std::stol(dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["UserId"].asString()); - if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["UserNick"].isNull()) - customerInvoiceAddressObject.userNick = dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["UserNick"].asString(); if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Addressee"].isNull()) customerInvoiceAddressObject.addressee = dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Addressee"].asString(); - if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Province"].isNull()) - customerInvoiceAddressObject.province = dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Province"].asString(); - if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["City"].isNull()) - customerInvoiceAddressObject.city = dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["City"].asString(); - if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["County"].isNull()) - customerInvoiceAddressObject.county = dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["County"].asString(); - if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Street"].isNull()) - customerInvoiceAddressObject.street = dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Street"].asString(); if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["PostalCode"].isNull()) customerInvoiceAddressObject.postalCode = dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["PostalCode"].asString(); + if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["UserId"].isNull()) + customerInvoiceAddressObject.userId = std::stol(dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["UserId"].asString()); + if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["City"].isNull()) + customerInvoiceAddressObject.city = dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["City"].asString(); + if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["UserNick"].isNull()) + customerInvoiceAddressObject.userNick = dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["UserNick"].asString(); + if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Street"].isNull()) + customerInvoiceAddressObject.street = dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Street"].asString(); if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Phone"].isNull()) customerInvoiceAddressObject.phone = dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Phone"].asString(); + if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["County"].isNull()) + customerInvoiceAddressObject.county = dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["County"].asString(); if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["BizType"].isNull()) customerInvoiceAddressObject.bizType = dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["BizType"].asString(); if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["DeliveryAddress"].isNull()) customerInvoiceAddressObject.deliveryAddress = dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["DeliveryAddress"].asString(); + if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Id"].isNull()) + customerInvoiceAddressObject.id = std::stol(dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Id"].asString()); + if(!dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Province"].isNull()) + customerInvoiceAddressObject.province = dataNodeCustomerInvoiceAddressListCustomerInvoiceAddress["Province"].asString(); data_.customerInvoiceAddressList.push_back(customerInvoiceAddressObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryDPUtilizationDetailRequest.cc b/bssopenapi/src/model/QueryDPUtilizationDetailRequest.cc index 87d586896..cc223abc2 100644 --- a/bssopenapi/src/model/QueryDPUtilizationDetailRequest.cc +++ b/bssopenapi/src/model/QueryDPUtilizationDetailRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::QueryDPUtilizationDetailRequest; - -QueryDPUtilizationDetailRequest::QueryDPUtilizationDetailRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryDPUtilizationDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryDPUtilizationDetailRequest::~QueryDPUtilizationDetailRequest() -{} - -std::string QueryDPUtilizationDetailRequest::getDeductedInstanceId()const -{ - return deductedInstanceId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryDPUtilizationDetailRequest; + +QueryDPUtilizationDetailRequest::QueryDPUtilizationDetailRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryDPUtilizationDetail") { + setMethod(HttpRequest::Method::Post); } -void QueryDPUtilizationDetailRequest::setDeductedInstanceId(const std::string& deductedInstanceId) -{ - deductedInstanceId_ = deductedInstanceId; - setParameter("DeductedInstanceId", deductedInstanceId); +QueryDPUtilizationDetailRequest::~QueryDPUtilizationDetailRequest() {} + +std::string QueryDPUtilizationDetailRequest::getDeductedInstanceId() const { + return deductedInstanceId_; } -std::string QueryDPUtilizationDetailRequest::getLastToken()const -{ - return lastToken_; +void QueryDPUtilizationDetailRequest::setDeductedInstanceId(const std::string &deductedInstanceId) { + deductedInstanceId_ = deductedInstanceId; + setParameter(std::string("DeductedInstanceId"), deductedInstanceId); } -void QueryDPUtilizationDetailRequest::setLastToken(const std::string& lastToken) -{ - lastToken_ = lastToken; - setParameter("LastToken", lastToken); +std::string QueryDPUtilizationDetailRequest::getLastToken() const { + return lastToken_; } -std::string QueryDPUtilizationDetailRequest::getInstanceSpec()const -{ - return instanceSpec_; +void QueryDPUtilizationDetailRequest::setLastToken(const std::string &lastToken) { + lastToken_ = lastToken; + setParameter(std::string("LastToken"), lastToken); } -void QueryDPUtilizationDetailRequest::setInstanceSpec(const std::string& instanceSpec) -{ - instanceSpec_ = instanceSpec; - setParameter("InstanceSpec", instanceSpec); +std::string QueryDPUtilizationDetailRequest::getInstanceSpec() const { + return instanceSpec_; } -std::string QueryDPUtilizationDetailRequest::getProdCode()const -{ - return prodCode_; +void QueryDPUtilizationDetailRequest::setInstanceSpec(const std::string &instanceSpec) { + instanceSpec_ = instanceSpec; + setParameter(std::string("InstanceSpec"), instanceSpec); } -void QueryDPUtilizationDetailRequest::setProdCode(const std::string& prodCode) -{ - prodCode_ = prodCode; - setParameter("ProdCode", prodCode); +std::string QueryDPUtilizationDetailRequest::getProdCode() const { + return prodCode_; } -std::string QueryDPUtilizationDetailRequest::getEndTime()const -{ - return endTime_; +void QueryDPUtilizationDetailRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); } -void QueryDPUtilizationDetailRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string QueryDPUtilizationDetailRequest::getEndTime() const { + return endTime_; } -bool QueryDPUtilizationDetailRequest::getIncludeShare()const -{ - return includeShare_; +void QueryDPUtilizationDetailRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void QueryDPUtilizationDetailRequest::setIncludeShare(bool includeShare) -{ - includeShare_ = includeShare; - setParameter("IncludeShare", includeShare ? "true" : "false"); +bool QueryDPUtilizationDetailRequest::getIncludeShare() const { + return includeShare_; } -std::string QueryDPUtilizationDetailRequest::getCommodityCode()const -{ - return commodityCode_; +void QueryDPUtilizationDetailRequest::setIncludeShare(bool includeShare) { + includeShare_ = includeShare; + setParameter(std::string("IncludeShare"), includeShare ? "true" : "false"); } -void QueryDPUtilizationDetailRequest::setCommodityCode(const std::string& commodityCode) -{ - commodityCode_ = commodityCode; - setParameter("CommodityCode", commodityCode); +std::string QueryDPUtilizationDetailRequest::getCommodityCode() const { + return commodityCode_; } -std::string QueryDPUtilizationDetailRequest::getStartTime()const -{ - return startTime_; +void QueryDPUtilizationDetailRequest::setCommodityCode(const std::string &commodityCode) { + commodityCode_ = commodityCode; + setParameter(std::string("CommodityCode"), commodityCode); } -void QueryDPUtilizationDetailRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string QueryDPUtilizationDetailRequest::getStartTime() const { + return startTime_; } -std::string QueryDPUtilizationDetailRequest::getInstanceId()const -{ - return instanceId_; +void QueryDPUtilizationDetailRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void QueryDPUtilizationDetailRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string QueryDPUtilizationDetailRequest::getInstanceId() const { + return instanceId_; } -int QueryDPUtilizationDetailRequest::getLimit()const -{ - return limit_; +void QueryDPUtilizationDetailRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void QueryDPUtilizationDetailRequest::setLimit(int limit) -{ - limit_ = limit; - setParameter("Limit", std::to_string(limit)); +int QueryDPUtilizationDetailRequest::getLimit() const { + return limit_; +} + +void QueryDPUtilizationDetailRequest::setLimit(int limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); } diff --git a/bssopenapi/src/model/QueryDPUtilizationDetailResult.cc b/bssopenapi/src/model/QueryDPUtilizationDetailResult.cc index aee39d32d..236502916 100644 --- a/bssopenapi/src/model/QueryDPUtilizationDetailResult.cc +++ b/bssopenapi/src/model/QueryDPUtilizationDetailResult.cc @@ -46,42 +46,42 @@ void QueryDPUtilizationDetailResult::parse(const std::string &payload) for (auto dataNodeDetailListDetailListItem : allDetailListNode) { Data::DetailListItem detailListItemObject; - if(!dataNodeDetailListDetailListItem["Uid"].isNull()) - detailListItemObject.uid = std::stol(dataNodeDetailListDetailListItem["Uid"].asString()); - if(!dataNodeDetailListDetailListItem["InstanceId"].isNull()) - detailListItemObject.instanceId = dataNodeDetailListDetailListItem["InstanceId"].asString(); - if(!dataNodeDetailListDetailListItem["InstanceSpec"].isNull()) - detailListItemObject.instanceSpec = dataNodeDetailListDetailListItem["InstanceSpec"].asString(); if(!dataNodeDetailListDetailListItem["DeductedInstanceId"].isNull()) detailListItemObject.deductedInstanceId = dataNodeDetailListDetailListItem["DeductedInstanceId"].asString(); + if(!dataNodeDetailListDetailListItem["InstanceId"].isNull()) + detailListItemObject.instanceId = dataNodeDetailListDetailListItem["InstanceId"].asString(); + if(!dataNodeDetailListDetailListItem["DeductHours"].isNull()) + detailListItemObject.deductHours = std::stof(dataNodeDetailListDetailListItem["DeductHours"].asString()); + if(!dataNodeDetailListDetailListItem["ShareUid"].isNull()) + detailListItemObject.shareUid = std::stol(dataNodeDetailListDetailListItem["ShareUid"].asString()); + if(!dataNodeDetailListDetailListItem["DeductDate"].isNull()) + detailListItemObject.deductDate = dataNodeDetailListDetailListItem["DeductDate"].asString(); + if(!dataNodeDetailListDetailListItem["InstanceSpec"].isNull()) + detailListItemObject.instanceSpec = dataNodeDetailListDetailListItem["InstanceSpec"].asString(); if(!dataNodeDetailListDetailListItem["DeductedCommodityCode"].isNull()) detailListItemObject.deductedCommodityCode = dataNodeDetailListDetailListItem["DeductedCommodityCode"].asString(); if(!dataNodeDetailListDetailListItem["DeductedProductDetail"].isNull()) detailListItemObject.deductedProductDetail = dataNodeDetailListDetailListItem["DeductedProductDetail"].asString(); - if(!dataNodeDetailListDetailListItem["ResCode"].isNull()) - detailListItemObject.resCode = dataNodeDetailListDetailListItem["ResCode"].asString(); - if(!dataNodeDetailListDetailListItem["DeductDate"].isNull()) - detailListItemObject.deductDate = dataNodeDetailListDetailListItem["DeductDate"].asString(); - if(!dataNodeDetailListDetailListItem["DeductQuantity"].isNull()) - detailListItemObject.deductQuantity = std::stof(dataNodeDetailListDetailListItem["DeductQuantity"].asString()); if(!dataNodeDetailListDetailListItem["DeductMeasure"].isNull()) detailListItemObject.deductMeasure = std::stof(dataNodeDetailListDetailListItem["DeductMeasure"].asString()); - if(!dataNodeDetailListDetailListItem["DeductHours"].isNull()) - detailListItemObject.deductHours = std::stof(dataNodeDetailListDetailListItem["DeductHours"].asString()); - if(!dataNodeDetailListDetailListItem["DeductFactorTotal"].isNull()) - detailListItemObject.deductFactorTotal = std::stof(dataNodeDetailListDetailListItem["DeductFactorTotal"].asString()); if(!dataNodeDetailListDetailListItem["Region"].isNull()) detailListItemObject.region = dataNodeDetailListDetailListItem["Region"].asString(); - if(!dataNodeDetailListDetailListItem["ShareUid"].isNull()) - detailListItemObject.shareUid = std::stol(dataNodeDetailListDetailListItem["ShareUid"].asString()); + if(!dataNodeDetailListDetailListItem["DeductQuantity"].isNull()) + detailListItemObject.deductQuantity = std::stof(dataNodeDetailListDetailListItem["DeductQuantity"].asString()); + if(!dataNodeDetailListDetailListItem["DeductFactorTotal"].isNull()) + detailListItemObject.deductFactorTotal = std::stof(dataNodeDetailListDetailListItem["DeductFactorTotal"].asString()); + if(!dataNodeDetailListDetailListItem["ResCode"].isNull()) + detailListItemObject.resCode = dataNodeDetailListDetailListItem["ResCode"].asString(); + if(!dataNodeDetailListDetailListItem["Uid"].isNull()) + detailListItemObject.uid = std::stol(dataNodeDetailListDetailListItem["Uid"].asString()); data_.detailList.push_back(detailListItemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryEvaluateListRequest.cc b/bssopenapi/src/model/QueryEvaluateListRequest.cc index f387bfdfe..4f33882dc 100644 --- a/bssopenapi/src/model/QueryEvaluateListRequest.cc +++ b/bssopenapi/src/model/QueryEvaluateListRequest.cc @@ -1,185 +1,152 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::QueryEvaluateListRequest; - -QueryEvaluateListRequest::QueryEvaluateListRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryEvaluateList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryEvaluateListRequest::~QueryEvaluateListRequest() -{} - -std::string QueryEvaluateListRequest::getEndSearchTime()const -{ - return endSearchTime_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryEvaluateListRequest; + +QueryEvaluateListRequest::QueryEvaluateListRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryEvaluateList") { + setMethod(HttpRequest::Method::Post); } -void QueryEvaluateListRequest::setEndSearchTime(const std::string& endSearchTime) -{ - endSearchTime_ = endSearchTime; - setParameter("EndSearchTime", endSearchTime); +QueryEvaluateListRequest::~QueryEvaluateListRequest() {} + +std::string QueryEvaluateListRequest::getEndSearchTime() const { + return endSearchTime_; } -std::string QueryEvaluateListRequest::getOutBizId()const -{ - return outBizId_; +void QueryEvaluateListRequest::setEndSearchTime(const std::string &endSearchTime) { + endSearchTime_ = endSearchTime; + setParameter(std::string("EndSearchTime"), endSearchTime); } -void QueryEvaluateListRequest::setOutBizId(const std::string& outBizId) -{ - outBizId_ = outBizId; - setParameter("OutBizId", outBizId); +std::string QueryEvaluateListRequest::getOutBizId() const { + return outBizId_; } -int QueryEvaluateListRequest::getSortType()const -{ - return sortType_; +void QueryEvaluateListRequest::setOutBizId(const std::string &outBizId) { + outBizId_ = outBizId; + setParameter(std::string("OutBizId"), outBizId); } -void QueryEvaluateListRequest::setSortType(int sortType) -{ - sortType_ = sortType; - setParameter("SortType", std::to_string(sortType)); +int QueryEvaluateListRequest::getSortType() const { + return sortType_; } -int QueryEvaluateListRequest::getType()const -{ - return type_; +void QueryEvaluateListRequest::setSortType(int sortType) { + sortType_ = sortType; + setParameter(std::string("SortType"), std::to_string(sortType)); } -void QueryEvaluateListRequest::setType(int type) -{ - type_ = type; - setParameter("Type", std::to_string(type)); +int QueryEvaluateListRequest::getType() const { + return type_; } -int QueryEvaluateListRequest::getPageNum()const -{ - return pageNum_; +void QueryEvaluateListRequest::setType(int type) { + type_ = type; + setParameter(std::string("Type"), std::to_string(type)); } -void QueryEvaluateListRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QueryEvaluateListRequest::getPageNum() const { + return pageNum_; } -int QueryEvaluateListRequest::getPageSize()const -{ - return pageSize_; +void QueryEvaluateListRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryEvaluateListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryEvaluateListRequest::getPageSize() const { + return pageSize_; } -long QueryEvaluateListRequest::getEndAmount()const -{ - return endAmount_; +void QueryEvaluateListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void QueryEvaluateListRequest::setEndAmount(long endAmount) -{ - endAmount_ = endAmount; - setParameter("EndAmount", std::to_string(endAmount)); +long QueryEvaluateListRequest::getEndAmount() const { + return endAmount_; } -std::string QueryEvaluateListRequest::getBillCycle()const -{ - return billCycle_; +void QueryEvaluateListRequest::setEndAmount(long endAmount) { + endAmount_ = endAmount; + setParameter(std::string("EndAmount"), std::to_string(endAmount)); } -void QueryEvaluateListRequest::setBillCycle(const std::string& billCycle) -{ - billCycle_ = billCycle; - setParameter("BillCycle", billCycle); +std::string QueryEvaluateListRequest::getBillCycle() const { + return billCycle_; } -std::vector QueryEvaluateListRequest::getBizTypeList()const -{ - return bizTypeList_; +void QueryEvaluateListRequest::setBillCycle(const std::string &billCycle) { + billCycle_ = billCycle; + setParameter(std::string("BillCycle"), billCycle); } -void QueryEvaluateListRequest::setBizTypeList(const std::vector& bizTypeList) -{ - bizTypeList_ = bizTypeList; - for(int dep1 = 0; dep1!= bizTypeList.size(); dep1++) { - setParameter("BizTypeList."+ std::to_string(dep1), bizTypeList.at(dep1)); - } +std::vector QueryEvaluateListRequest::getBizTypeList() const { + return bizTypeList_; } -long QueryEvaluateListRequest::getOwnerId()const -{ - return ownerId_; +void QueryEvaluateListRequest::setBizTypeList(const std::vector &bizTypeList) { + bizTypeList_ = bizTypeList; } -void QueryEvaluateListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryEvaluateListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryEvaluateListRequest::getStartSearchTime()const -{ - return startSearchTime_; +void QueryEvaluateListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryEvaluateListRequest::setStartSearchTime(const std::string& startSearchTime) -{ - startSearchTime_ = startSearchTime; - setParameter("StartSearchTime", startSearchTime); +std::string QueryEvaluateListRequest::getStartSearchTime() const { + return startSearchTime_; } -std::string QueryEvaluateListRequest::getEndBizTime()const -{ - return endBizTime_; +void QueryEvaluateListRequest::setStartSearchTime(const std::string &startSearchTime) { + startSearchTime_ = startSearchTime; + setParameter(std::string("StartSearchTime"), startSearchTime); } -void QueryEvaluateListRequest::setEndBizTime(const std::string& endBizTime) -{ - endBizTime_ = endBizTime; - setParameter("EndBizTime", endBizTime); +std::string QueryEvaluateListRequest::getEndBizTime() const { + return endBizTime_; } -long QueryEvaluateListRequest::getStartAmount()const -{ - return startAmount_; +void QueryEvaluateListRequest::setEndBizTime(const std::string &endBizTime) { + endBizTime_ = endBizTime; + setParameter(std::string("EndBizTime"), endBizTime); } -void QueryEvaluateListRequest::setStartAmount(long startAmount) -{ - startAmount_ = startAmount; - setParameter("StartAmount", std::to_string(startAmount)); +long QueryEvaluateListRequest::getStartAmount() const { + return startAmount_; } -std::string QueryEvaluateListRequest::getStartBizTime()const -{ - return startBizTime_; +void QueryEvaluateListRequest::setStartAmount(long startAmount) { + startAmount_ = startAmount; + setParameter(std::string("StartAmount"), std::to_string(startAmount)); } -void QueryEvaluateListRequest::setStartBizTime(const std::string& startBizTime) -{ - startBizTime_ = startBizTime; - setParameter("StartBizTime", startBizTime); +std::string QueryEvaluateListRequest::getStartBizTime() const { + return startBizTime_; +} + +void QueryEvaluateListRequest::setStartBizTime(const std::string &startBizTime) { + startBizTime_ = startBizTime; + setParameter(std::string("StartBizTime"), startBizTime); } diff --git a/bssopenapi/src/model/QueryEvaluateListResult.cc b/bssopenapi/src/model/QueryEvaluateListResult.cc index f3ec124d1..56804e000 100644 --- a/bssopenapi/src/model/QueryEvaluateListResult.cc +++ b/bssopenapi/src/model/QueryEvaluateListResult.cc @@ -40,72 +40,72 @@ void QueryEvaluateListResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["HostId"].isNull()) - data_.hostId = dataNode["HostId"].asString(); if(!dataNode["PageNum"].isNull()) data_.pageNum = std::stoi(dataNode["PageNum"].asString()); + if(!dataNode["TotalUnAppliedInvoiceAmount"].isNull()) + data_.totalUnAppliedInvoiceAmount = std::stol(dataNode["TotalUnAppliedInvoiceAmount"].asString()); if(!dataNode["PageSize"].isNull()) data_.pageSize = std::stoi(dataNode["PageSize"].asString()); if(!dataNode["TotalCount"].isNull()) data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); if(!dataNode["TotalInvoiceAmount"].isNull()) data_.totalInvoiceAmount = std::stol(dataNode["TotalInvoiceAmount"].asString()); - if(!dataNode["TotalUnAppliedInvoiceAmount"].isNull()) - data_.totalUnAppliedInvoiceAmount = std::stol(dataNode["TotalUnAppliedInvoiceAmount"].asString()); + if(!dataNode["HostId"].isNull()) + data_.hostId = dataNode["HostId"].asString(); auto allEvaluateListNode = dataNode["EvaluateList"]["Evaluate"]; for (auto dataNodeEvaluateListEvaluate : allEvaluateListNode) { Data::Evaluate evaluateObject; - if(!dataNodeEvaluateListEvaluate["Id"].isNull()) - evaluateObject.id = std::stol(dataNodeEvaluateListEvaluate["Id"].asString()); - if(!dataNodeEvaluateListEvaluate["GmtCreate"].isNull()) - evaluateObject.gmtCreate = dataNodeEvaluateListEvaluate["GmtCreate"].asString(); - if(!dataNodeEvaluateListEvaluate["GmtModified"].isNull()) - evaluateObject.gmtModified = dataNodeEvaluateListEvaluate["GmtModified"].asString(); - if(!dataNodeEvaluateListEvaluate["UserId"].isNull()) - evaluateObject.userId = std::stol(dataNodeEvaluateListEvaluate["UserId"].asString()); - if(!dataNodeEvaluateListEvaluate["UserNick"].isNull()) - evaluateObject.userNick = dataNodeEvaluateListEvaluate["UserNick"].asString(); - if(!dataNodeEvaluateListEvaluate["OutBizId"].isNull()) - evaluateObject.outBizId = dataNodeEvaluateListEvaluate["OutBizId"].asString(); + if(!dataNodeEvaluateListEvaluate["Type"].isNull()) + evaluateObject.type = std::stoi(dataNodeEvaluateListEvaluate["Type"].asString()); + if(!dataNodeEvaluateListEvaluate["Status"].isNull()) + evaluateObject.status = std::stoi(dataNodeEvaluateListEvaluate["Status"].asString()); if(!dataNodeEvaluateListEvaluate["BillId"].isNull()) evaluateObject.billId = std::stol(dataNodeEvaluateListEvaluate["BillId"].asString()); - if(!dataNodeEvaluateListEvaluate["ItemId"].isNull()) - evaluateObject.itemId = std::stol(dataNodeEvaluateListEvaluate["ItemId"].asString()); + if(!dataNodeEvaluateListEvaluate["UserId"].isNull()) + evaluateObject.userId = std::stol(dataNodeEvaluateListEvaluate["UserId"].asString()); if(!dataNodeEvaluateListEvaluate["BillCycle"].isNull()) evaluateObject.billCycle = dataNodeEvaluateListEvaluate["BillCycle"].asString(); + if(!dataNodeEvaluateListEvaluate["CanInvoiceAmount"].isNull()) + evaluateObject.canInvoiceAmount = std::stol(dataNodeEvaluateListEvaluate["CanInvoiceAmount"].asString()); + if(!dataNodeEvaluateListEvaluate["OffsetAcceptAmount"].isNull()) + evaluateObject.offsetAcceptAmount = std::stol(dataNodeEvaluateListEvaluate["OffsetAcceptAmount"].asString()); + if(!dataNodeEvaluateListEvaluate["ItemId"].isNull()) + evaluateObject.itemId = std::stol(dataNodeEvaluateListEvaluate["ItemId"].asString()); + if(!dataNodeEvaluateListEvaluate["OutBizId"].isNull()) + evaluateObject.outBizId = dataNodeEvaluateListEvaluate["OutBizId"].asString(); + if(!dataNodeEvaluateListEvaluate["UserNick"].isNull()) + evaluateObject.userNick = dataNodeEvaluateListEvaluate["UserNick"].asString(); + if(!dataNodeEvaluateListEvaluate["GmtModified"].isNull()) + evaluateObject.gmtModified = dataNodeEvaluateListEvaluate["GmtModified"].asString(); + if(!dataNodeEvaluateListEvaluate["OpId"].isNull()) + evaluateObject.opId = dataNodeEvaluateListEvaluate["OpId"].asString(); if(!dataNodeEvaluateListEvaluate["BizType"].isNull()) evaluateObject.bizType = dataNodeEvaluateListEvaluate["BizType"].asString(); if(!dataNodeEvaluateListEvaluate["OriginalAmount"].isNull()) evaluateObject.originalAmount = std::stol(dataNodeEvaluateListEvaluate["OriginalAmount"].asString()); - if(!dataNodeEvaluateListEvaluate["PresentAmount"].isNull()) - evaluateObject.presentAmount = std::stol(dataNodeEvaluateListEvaluate["PresentAmount"].asString()); - if(!dataNodeEvaluateListEvaluate["CanInvoiceAmount"].isNull()) - evaluateObject.canInvoiceAmount = std::stol(dataNodeEvaluateListEvaluate["CanInvoiceAmount"].asString()); if(!dataNodeEvaluateListEvaluate["InvoicedAmount"].isNull()) evaluateObject.invoicedAmount = std::stol(dataNodeEvaluateListEvaluate["InvoicedAmount"].asString()); - if(!dataNodeEvaluateListEvaluate["OffsetCostAmount"].isNull()) - evaluateObject.offsetCostAmount = std::stol(dataNodeEvaluateListEvaluate["OffsetCostAmount"].asString()); - if(!dataNodeEvaluateListEvaluate["OffsetAcceptAmount"].isNull()) - evaluateObject.offsetAcceptAmount = std::stol(dataNodeEvaluateListEvaluate["OffsetAcceptAmount"].asString()); - if(!dataNodeEvaluateListEvaluate["Status"].isNull()) - evaluateObject.status = std::stoi(dataNodeEvaluateListEvaluate["Status"].asString()); - if(!dataNodeEvaluateListEvaluate["OpId"].isNull()) - evaluateObject.opId = dataNodeEvaluateListEvaluate["OpId"].asString(); - if(!dataNodeEvaluateListEvaluate["Name"].isNull()) - evaluateObject.name = dataNodeEvaluateListEvaluate["Name"].asString(); + if(!dataNodeEvaluateListEvaluate["GmtCreate"].isNull()) + evaluateObject.gmtCreate = dataNodeEvaluateListEvaluate["GmtCreate"].asString(); + if(!dataNodeEvaluateListEvaluate["PresentAmount"].isNull()) + evaluateObject.presentAmount = std::stol(dataNodeEvaluateListEvaluate["PresentAmount"].asString()); if(!dataNodeEvaluateListEvaluate["BizTime"].isNull()) evaluateObject.bizTime = dataNodeEvaluateListEvaluate["BizTime"].asString(); - if(!dataNodeEvaluateListEvaluate["Type"].isNull()) - evaluateObject.type = std::stoi(dataNodeEvaluateListEvaluate["Type"].asString()); + if(!dataNodeEvaluateListEvaluate["Name"].isNull()) + evaluateObject.name = dataNodeEvaluateListEvaluate["Name"].asString(); + if(!dataNodeEvaluateListEvaluate["OffsetCostAmount"].isNull()) + evaluateObject.offsetCostAmount = std::stol(dataNodeEvaluateListEvaluate["OffsetCostAmount"].asString()); + if(!dataNodeEvaluateListEvaluate["Id"].isNull()) + evaluateObject.id = std::stol(dataNodeEvaluateListEvaluate["Id"].asString()); data_.evaluateList.push_back(evaluateObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryFinancialAccountInfoRequest.cc b/bssopenapi/src/model/QueryFinancialAccountInfoRequest.cc index 1371c6af7..2e3217e8d 100644 --- a/bssopenapi/src/model/QueryFinancialAccountInfoRequest.cc +++ b/bssopenapi/src/model/QueryFinancialAccountInfoRequest.cc @@ -1,40 +1,36 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryFinancialAccountInfoRequest; - -QueryFinancialAccountInfoRequest::QueryFinancialAccountInfoRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryFinancialAccountInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryFinancialAccountInfoRequest::~QueryFinancialAccountInfoRequest() -{} - -long QueryFinancialAccountInfoRequest::getUserId()const -{ - return userId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryFinancialAccountInfoRequest; + +QueryFinancialAccountInfoRequest::QueryFinancialAccountInfoRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryFinancialAccountInfo") { + setMethod(HttpRequest::Method::Post); } -void QueryFinancialAccountInfoRequest::setUserId(long userId) -{ - userId_ = userId; - setParameter("UserId", std::to_string(userId)); +QueryFinancialAccountInfoRequest::~QueryFinancialAccountInfoRequest() {} + +long QueryFinancialAccountInfoRequest::getUserId() const { + return userId_; +} + +void QueryFinancialAccountInfoRequest::setUserId(long userId) { + userId_ = userId; + setParameter(std::string("UserId"), std::to_string(userId)); } diff --git a/bssopenapi/src/model/QueryFinancialAccountInfoResult.cc b/bssopenapi/src/model/QueryFinancialAccountInfoResult.cc index db7d240b9..ca8b84815 100644 --- a/bssopenapi/src/model/QueryFinancialAccountInfoResult.cc +++ b/bssopenapi/src/model/QueryFinancialAccountInfoResult.cc @@ -40,24 +40,24 @@ void QueryFinancialAccountInfoResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["UserName"].isNull()) - data_.userName = dataNode["UserName"].asString(); - if(!dataNode["IsFinancialAccount"].isNull()) - data_.isFinancialAccount = dataNode["IsFinancialAccount"].asString() == "true"; - if(!dataNode["AccountType"].isNull()) - data_.accountType = dataNode["AccountType"].asString(); if(!dataNode["MemberNickName"].isNull()) data_.memberNickName = dataNode["MemberNickName"].asString(); - if(!dataNode["MemberGroupId"].isNull()) - data_.memberGroupId = std::stol(dataNode["MemberGroupId"].asString()); + if(!dataNode["IsFinancialAccount"].isNull()) + data_.isFinancialAccount = dataNode["IsFinancialAccount"].asString() == "true"; if(!dataNode["MemberGroupName"].isNull()) data_.memberGroupName = dataNode["MemberGroupName"].asString(); + if(!dataNode["UserName"].isNull()) + data_.userName = dataNode["UserName"].asString(); + if(!dataNode["AccountType"].isNull()) + data_.accountType = dataNode["AccountType"].asString(); + if(!dataNode["MemberGroupId"].isNull()) + data_.memberGroupId = std::stol(dataNode["MemberGroupId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryInstanceBillRequest.cc b/bssopenapi/src/model/QueryInstanceBillRequest.cc index 1d5fd1aec..7b8e15467 100644 --- a/bssopenapi/src/model/QueryInstanceBillRequest.cc +++ b/bssopenapi/src/model/QueryInstanceBillRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::QueryInstanceBillRequest; - -QueryInstanceBillRequest::QueryInstanceBillRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInstanceBill") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryInstanceBillRequest::~QueryInstanceBillRequest() -{} - -std::string QueryInstanceBillRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryInstanceBillRequest; + +QueryInstanceBillRequest::QueryInstanceBillRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInstanceBill") { + setMethod(HttpRequest::Method::Post); } -void QueryInstanceBillRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +QueryInstanceBillRequest::~QueryInstanceBillRequest() {} + +std::string QueryInstanceBillRequest::getProductCode() const { + return productCode_; } -bool QueryInstanceBillRequest::getIsHideZeroCharge()const -{ - return isHideZeroCharge_; +void QueryInstanceBillRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void QueryInstanceBillRequest::setIsHideZeroCharge(bool isHideZeroCharge) -{ - isHideZeroCharge_ = isHideZeroCharge; - setParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false"); +bool QueryInstanceBillRequest::getIsHideZeroCharge() const { + return isHideZeroCharge_; } -std::string QueryInstanceBillRequest::getSubscriptionType()const -{ - return subscriptionType_; +void QueryInstanceBillRequest::setIsHideZeroCharge(bool isHideZeroCharge) { + isHideZeroCharge_ = isHideZeroCharge; + setParameter(std::string("IsHideZeroCharge"), isHideZeroCharge ? "true" : "false"); } -void QueryInstanceBillRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string QueryInstanceBillRequest::getSubscriptionType() const { + return subscriptionType_; } -std::string QueryInstanceBillRequest::getBillingCycle()const -{ - return billingCycle_; +void QueryInstanceBillRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void QueryInstanceBillRequest::setBillingCycle(const std::string& billingCycle) -{ - billingCycle_ = billingCycle; - setParameter("BillingCycle", billingCycle); +std::string QueryInstanceBillRequest::getBillingCycle() const { + return billingCycle_; } -long QueryInstanceBillRequest::getOwnerId()const -{ - return ownerId_; +void QueryInstanceBillRequest::setBillingCycle(const std::string &billingCycle) { + billingCycle_ = billingCycle; + setParameter(std::string("BillingCycle"), billingCycle); } -void QueryInstanceBillRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryInstanceBillRequest::getOwnerId() const { + return ownerId_; } -int QueryInstanceBillRequest::getPageNum()const -{ - return pageNum_; +void QueryInstanceBillRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryInstanceBillRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QueryInstanceBillRequest::getPageNum() const { + return pageNum_; } -long QueryInstanceBillRequest::getBillOwnerId()const -{ - return billOwnerId_; +void QueryInstanceBillRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryInstanceBillRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long QueryInstanceBillRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string QueryInstanceBillRequest::getBillingDate()const -{ - return billingDate_; +void QueryInstanceBillRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void QueryInstanceBillRequest::setBillingDate(const std::string& billingDate) -{ - billingDate_ = billingDate; - setParameter("BillingDate", billingDate); +std::string QueryInstanceBillRequest::getBillingDate() const { + return billingDate_; } -std::string QueryInstanceBillRequest::getProductType()const -{ - return productType_; +void QueryInstanceBillRequest::setBillingDate(const std::string &billingDate) { + billingDate_ = billingDate; + setParameter(std::string("BillingDate"), billingDate); } -void QueryInstanceBillRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string QueryInstanceBillRequest::getProductType() const { + return productType_; } -bool QueryInstanceBillRequest::getIsBillingItem()const -{ - return isBillingItem_; +void QueryInstanceBillRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void QueryInstanceBillRequest::setIsBillingItem(bool isBillingItem) -{ - isBillingItem_ = isBillingItem; - setParameter("IsBillingItem", isBillingItem ? "true" : "false"); +bool QueryInstanceBillRequest::getIsBillingItem() const { + return isBillingItem_; } -std::string QueryInstanceBillRequest::getGranularity()const -{ - return granularity_; +void QueryInstanceBillRequest::setIsBillingItem(bool isBillingItem) { + isBillingItem_ = isBillingItem; + setParameter(std::string("IsBillingItem"), isBillingItem ? "true" : "false"); } -void QueryInstanceBillRequest::setGranularity(const std::string& granularity) -{ - granularity_ = granularity; - setParameter("Granularity", granularity); +std::string QueryInstanceBillRequest::getGranularity() const { + return granularity_; } -int QueryInstanceBillRequest::getPageSize()const -{ - return pageSize_; +void QueryInstanceBillRequest::setGranularity(const std::string &granularity) { + granularity_ = granularity; + setParameter(std::string("Granularity"), granularity); } -void QueryInstanceBillRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryInstanceBillRequest::getPageSize() const { + return pageSize_; +} + +void QueryInstanceBillRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/bssopenapi/src/model/QueryInstanceBillResult.cc b/bssopenapi/src/model/QueryInstanceBillResult.cc index acbcd980f..925d49fe5 100644 --- a/bssopenapi/src/model/QueryInstanceBillResult.cc +++ b/bssopenapi/src/model/QueryInstanceBillResult.cc @@ -40,108 +40,112 @@ void QueryInstanceBillResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; + if(!dataNode["PageNum"].isNull()) + data_.pageNum = std::stoi(dataNode["PageNum"].asString()); if(!dataNode["BillingCycle"].isNull()) data_.billingCycle = dataNode["BillingCycle"].asString(); if(!dataNode["AccountID"].isNull()) data_.accountID = dataNode["AccountID"].asString(); - if(!dataNode["AccountName"].isNull()) - data_.accountName = dataNode["AccountName"].asString(); - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - if(!dataNode["PageNum"].isNull()) - data_.pageNum = std::stoi(dataNode["PageNum"].asString()); if(!dataNode["PageSize"].isNull()) data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + if(!dataNode["AccountName"].isNull()) + data_.accountName = dataNode["AccountName"].asString(); auto allItemsNode = dataNode["Items"]["Item"]; for (auto dataNodeItemsItem : allItemsNode) { Data::Item itemObject; - if(!dataNodeItemsItem["InstanceID"].isNull()) - itemObject.instanceID = dataNodeItemsItem["InstanceID"].asString(); - if(!dataNodeItemsItem["BillingType"].isNull()) - itemObject.billingType = dataNodeItemsItem["BillingType"].asString(); - if(!dataNodeItemsItem["CostUnit"].isNull()) - itemObject.costUnit = dataNodeItemsItem["CostUnit"].asString(); - if(!dataNodeItemsItem["ProductCode"].isNull()) - itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); - if(!dataNodeItemsItem["ProductType"].isNull()) - itemObject.productType = dataNodeItemsItem["ProductType"].asString(); - if(!dataNodeItemsItem["SubscriptionType"].isNull()) - itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); - if(!dataNodeItemsItem["ProductName"].isNull()) - itemObject.productName = dataNodeItemsItem["ProductName"].asString(); - if(!dataNodeItemsItem["ProductDetail"].isNull()) - itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString(); - if(!dataNodeItemsItem["OwnerID"].isNull()) - itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); - if(!dataNodeItemsItem["BillingItem"].isNull()) - itemObject.billingItem = dataNodeItemsItem["BillingItem"].asString(); - if(!dataNodeItemsItem["ListPrice"].isNull()) - itemObject.listPrice = dataNodeItemsItem["ListPrice"].asString(); - if(!dataNodeItemsItem["ListPriceUnit"].isNull()) - itemObject.listPriceUnit = dataNodeItemsItem["ListPriceUnit"].asString(); - if(!dataNodeItemsItem["Usage"].isNull()) - itemObject.usage = dataNodeItemsItem["Usage"].asString(); - if(!dataNodeItemsItem["UsageUnit"].isNull()) - itemObject.usageUnit = dataNodeItemsItem["UsageUnit"].asString(); - if(!dataNodeItemsItem["DeductedByResourcePackage"].isNull()) - itemObject.deductedByResourcePackage = dataNodeItemsItem["DeductedByResourcePackage"].asString(); - if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) - itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); - if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) - itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); - if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) - itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); - if(!dataNodeItemsItem["PretaxAmount"].isNull()) - itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); - if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) - itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); - if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) - itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); - if(!dataNodeItemsItem["PaymentAmount"].isNull()) - itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); - if(!dataNodeItemsItem["OutstandingAmount"].isNull()) - itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); - if(!dataNodeItemsItem["Currency"].isNull()) - itemObject.currency = dataNodeItemsItem["Currency"].asString(); - if(!dataNodeItemsItem["NickName"].isNull()) - itemObject.nickName = dataNodeItemsItem["NickName"].asString(); - if(!dataNodeItemsItem["ResourceGroup"].isNull()) - itemObject.resourceGroup = dataNodeItemsItem["ResourceGroup"].asString(); - if(!dataNodeItemsItem["Tag"].isNull()) - itemObject.tag = dataNodeItemsItem["Tag"].asString(); - if(!dataNodeItemsItem["InstanceConfig"].isNull()) - itemObject.instanceConfig = dataNodeItemsItem["InstanceConfig"].asString(); - if(!dataNodeItemsItem["InstanceSpec"].isNull()) - itemObject.instanceSpec = dataNodeItemsItem["InstanceSpec"].asString(); - if(!dataNodeItemsItem["InternetIP"].isNull()) - itemObject.internetIP = dataNodeItemsItem["InternetIP"].asString(); - if(!dataNodeItemsItem["IntranetIP"].isNull()) - itemObject.intranetIP = dataNodeItemsItem["IntranetIP"].asString(); - if(!dataNodeItemsItem["Region"].isNull()) - itemObject.region = dataNodeItemsItem["Region"].asString(); - if(!dataNodeItemsItem["Zone"].isNull()) - itemObject.zone = dataNodeItemsItem["Zone"].asString(); - if(!dataNodeItemsItem["Item"].isNull()) - itemObject.item = dataNodeItemsItem["Item"].asString(); - if(!dataNodeItemsItem["ServicePeriod"].isNull()) - itemObject.servicePeriod = dataNodeItemsItem["ServicePeriod"].asString(); if(!dataNodeItemsItem["BillingDate"].isNull()) itemObject.billingDate = dataNodeItemsItem["BillingDate"].asString(); - if(!dataNodeItemsItem["ServicePeriodUnit"].isNull()) - itemObject.servicePeriodUnit = dataNodeItemsItem["ServicePeriodUnit"].asString(); + if(!dataNodeItemsItem["InstanceConfig"].isNull()) + itemObject.instanceConfig = dataNodeItemsItem["InstanceConfig"].asString(); + if(!dataNodeItemsItem["InternetIP"].isNull()) + itemObject.internetIP = dataNodeItemsItem["InternetIP"].asString(); + if(!dataNodeItemsItem["Item"].isNull()) + itemObject.item = dataNodeItemsItem["Item"].asString(); + if(!dataNodeItemsItem["Tag"].isNull()) + itemObject.tag = dataNodeItemsItem["Tag"].asString(); + if(!dataNodeItemsItem["InstanceID"].isNull()) + itemObject.instanceID = dataNodeItemsItem["InstanceID"].asString(); + if(!dataNodeItemsItem["Currency"].isNull()) + itemObject.currency = dataNodeItemsItem["Currency"].asString(); + if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) + itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); + if(!dataNodeItemsItem["SubscriptionType"].isNull()) + itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); + if(!dataNodeItemsItem["InstanceSpec"].isNull()) + itemObject.instanceSpec = dataNodeItemsItem["InstanceSpec"].asString(); + if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) + itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); + if(!dataNodeItemsItem["BillingItem"].isNull()) + itemObject.billingItem = dataNodeItemsItem["BillingItem"].asString(); + if(!dataNodeItemsItem["Region"].isNull()) + itemObject.region = dataNodeItemsItem["Region"].asString(); + if(!dataNodeItemsItem["OutstandingAmount"].isNull()) + itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); + if(!dataNodeItemsItem["CostUnit"].isNull()) + itemObject.costUnit = dataNodeItemsItem["CostUnit"].asString(); + if(!dataNodeItemsItem["ListPriceUnit"].isNull()) + itemObject.listPriceUnit = dataNodeItemsItem["ListPriceUnit"].asString(); + if(!dataNodeItemsItem["ResourceGroup"].isNull()) + itemObject.resourceGroup = dataNodeItemsItem["ResourceGroup"].asString(); if(!dataNodeItemsItem["PipCode"].isNull()) itemObject.pipCode = dataNodeItemsItem["PipCode"].asString(); + if(!dataNodeItemsItem["ServicePeriodUnit"].isNull()) + itemObject.servicePeriodUnit = dataNodeItemsItem["ServicePeriodUnit"].asString(); + if(!dataNodeItemsItem["PretaxAmount"].isNull()) + itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); if(!dataNodeItemsItem["CommodityCode"].isNull()) itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString(); + if(!dataNodeItemsItem["ProductName"].isNull()) + itemObject.productName = dataNodeItemsItem["ProductName"].asString(); + if(!dataNodeItemsItem["AdjustAmount"].isNull()) + itemObject.adjustAmount = std::stof(dataNodeItemsItem["AdjustAmount"].asString()); + if(!dataNodeItemsItem["NickName"].isNull()) + itemObject.nickName = dataNodeItemsItem["NickName"].asString(); + if(!dataNodeItemsItem["ProductDetail"].isNull()) + itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString(); + if(!dataNodeItemsItem["Usage"].isNull()) + itemObject.usage = dataNodeItemsItem["Usage"].asString(); + if(!dataNodeItemsItem["IntranetIP"].isNull()) + itemObject.intranetIP = dataNodeItemsItem["IntranetIP"].asString(); + if(!dataNodeItemsItem["OwnerID"].isNull()) + itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); + if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) + itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); + if(!dataNodeItemsItem["UsageUnit"].isNull()) + itemObject.usageUnit = dataNodeItemsItem["UsageUnit"].asString(); + if(!dataNodeItemsItem["PaymentAmount"].isNull()) + itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); + if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) + itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); + if(!dataNodeItemsItem["DeductedByResourcePackage"].isNull()) + itemObject.deductedByResourcePackage = dataNodeItemsItem["DeductedByResourcePackage"].asString(); + if(!dataNodeItemsItem["ProductType"].isNull()) + itemObject.productType = dataNodeItemsItem["ProductType"].asString(); + if(!dataNodeItemsItem["ServicePeriod"].isNull()) + itemObject.servicePeriod = dataNodeItemsItem["ServicePeriod"].asString(); + if(!dataNodeItemsItem["Zone"].isNull()) + itemObject.zone = dataNodeItemsItem["Zone"].asString(); + if(!dataNodeItemsItem["ListPrice"].isNull()) + itemObject.listPrice = dataNodeItemsItem["ListPrice"].asString(); + if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) + itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); + if(!dataNodeItemsItem["CashAmount"].isNull()) + itemObject.cashAmount = std::stof(dataNodeItemsItem["CashAmount"].asString()); + if(!dataNodeItemsItem["ProductCode"].isNull()) + itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); + if(!dataNodeItemsItem["BillingType"].isNull()) + itemObject.billingType = dataNodeItemsItem["BillingType"].asString(); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryInstanceByTagRequest.cc b/bssopenapi/src/model/QueryInstanceByTagRequest.cc index c16812da4..c325426e8 100644 --- a/bssopenapi/src/model/QueryInstanceByTagRequest.cc +++ b/bssopenapi/src/model/QueryInstanceByTagRequest.cc @@ -1,69 +1,58 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryInstanceByTagRequest; - -QueryInstanceByTagRequest::QueryInstanceByTagRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInstanceByTag") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryInstanceByTagRequest::~QueryInstanceByTagRequest() -{} - -std::vector QueryInstanceByTagRequest::getResourceId()const -{ - return resourceId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryInstanceByTagRequest; + +QueryInstanceByTagRequest::QueryInstanceByTagRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInstanceByTag") { + setMethod(HttpRequest::Method::Post); } -void QueryInstanceByTagRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +QueryInstanceByTagRequest::~QueryInstanceByTagRequest() {} + +std::vector QueryInstanceByTagRequest::getResourceId() const { + return resourceId_; } -std::vector QueryInstanceByTagRequest::getTag()const -{ - return tag_; +void QueryInstanceByTagRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void QueryInstanceByTagRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector QueryInstanceByTagRequest::getTag() const { + return tag_; } -std::string QueryInstanceByTagRequest::getResourceType()const -{ - return resourceType_; +void QueryInstanceByTagRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void QueryInstanceByTagRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string QueryInstanceByTagRequest::getResourceType() const { + return resourceType_; +} + +void QueryInstanceByTagRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } diff --git a/bssopenapi/src/model/QueryInstanceByTagResult.cc b/bssopenapi/src/model/QueryInstanceByTagResult.cc index 4aaf6abac..43399ae24 100644 --- a/bssopenapi/src/model/QueryInstanceByTagResult.cc +++ b/bssopenapi/src/model/QueryInstanceByTagResult.cc @@ -61,12 +61,12 @@ void QueryInstanceByTagResult::parse(const std::string &payload) } if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryInstanceGaapCostRequest.cc b/bssopenapi/src/model/QueryInstanceGaapCostRequest.cc index 8762c5b7e..50b78692e 100644 --- a/bssopenapi/src/model/QueryInstanceGaapCostRequest.cc +++ b/bssopenapi/src/model/QueryInstanceGaapCostRequest.cc @@ -1,95 +1,81 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryInstanceGaapCostRequest; - -QueryInstanceGaapCostRequest::QueryInstanceGaapCostRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInstanceGaapCost") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryInstanceGaapCostRequest::~QueryInstanceGaapCostRequest() -{} - -std::string QueryInstanceGaapCostRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryInstanceGaapCostRequest; + +QueryInstanceGaapCostRequest::QueryInstanceGaapCostRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInstanceGaapCost") { + setMethod(HttpRequest::Method::Post); } -void QueryInstanceGaapCostRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +QueryInstanceGaapCostRequest::~QueryInstanceGaapCostRequest() {} + +std::string QueryInstanceGaapCostRequest::getProductCode() const { + return productCode_; } -std::string QueryInstanceGaapCostRequest::getSubscriptionType()const -{ - return subscriptionType_; +void QueryInstanceGaapCostRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void QueryInstanceGaapCostRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string QueryInstanceGaapCostRequest::getSubscriptionType() const { + return subscriptionType_; } -std::string QueryInstanceGaapCostRequest::getBillingCycle()const -{ - return billingCycle_; +void QueryInstanceGaapCostRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void QueryInstanceGaapCostRequest::setBillingCycle(const std::string& billingCycle) -{ - billingCycle_ = billingCycle; - setParameter("BillingCycle", billingCycle); +std::string QueryInstanceGaapCostRequest::getBillingCycle() const { + return billingCycle_; } -int QueryInstanceGaapCostRequest::getPageNum()const -{ - return pageNum_; +void QueryInstanceGaapCostRequest::setBillingCycle(const std::string &billingCycle) { + billingCycle_ = billingCycle; + setParameter(std::string("BillingCycle"), billingCycle); } -void QueryInstanceGaapCostRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QueryInstanceGaapCostRequest::getPageNum() const { + return pageNum_; } -std::string QueryInstanceGaapCostRequest::getProductType()const -{ - return productType_; +void QueryInstanceGaapCostRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryInstanceGaapCostRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string QueryInstanceGaapCostRequest::getProductType() const { + return productType_; } -int QueryInstanceGaapCostRequest::getPageSize()const -{ - return pageSize_; +void QueryInstanceGaapCostRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void QueryInstanceGaapCostRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryInstanceGaapCostRequest::getPageSize() const { + return pageSize_; +} + +void QueryInstanceGaapCostRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/bssopenapi/src/model/QueryInstanceGaapCostResult.cc b/bssopenapi/src/model/QueryInstanceGaapCostResult.cc index aee11b89b..163844dcc 100644 --- a/bssopenapi/src/model/QueryInstanceGaapCostResult.cc +++ b/bssopenapi/src/model/QueryInstanceGaapCostResult.cc @@ -40,130 +40,130 @@ void QueryInstanceGaapCostResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["HostId"].isNull()) - data_.hostId = dataNode["HostId"].asString(); if(!dataNode["PageNum"].isNull()) data_.pageNum = std::stoi(dataNode["PageNum"].asString()); if(!dataNode["PageSize"].isNull()) data_.pageSize = std::stoi(dataNode["PageSize"].asString()); if(!dataNode["TotalCount"].isNull()) data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + if(!dataNode["HostId"].isNull()) + data_.hostId = dataNode["HostId"].asString(); auto allModulesNode = dataNode["Modules"]["Module"]; for (auto dataNodeModulesModule : allModulesNode) { Data::Module moduleObject; - if(!dataNodeModulesModule["BillingCycle"].isNull()) - moduleObject.billingCycle = dataNodeModulesModule["BillingCycle"].asString(); - if(!dataNodeModulesModule["InstanceID"].isNull()) - moduleObject.instanceID = dataNodeModulesModule["InstanceID"].asString(); - if(!dataNodeModulesModule["ProductCode"].isNull()) - moduleObject.productCode = dataNodeModulesModule["ProductCode"].asString(); - if(!dataNodeModulesModule["ProductType"].isNull()) - moduleObject.productType = dataNodeModulesModule["ProductType"].asString(); + if(!dataNodeModulesModule["GaapDeductedByCashCoupons"].isNull()) + moduleObject.gaapDeductedByCashCoupons = dataNodeModulesModule["GaapDeductedByCashCoupons"].asString(); if(!dataNodeModulesModule["SubscriptionType"].isNull()) moduleObject.subscriptionType = dataNodeModulesModule["SubscriptionType"].asString(); - if(!dataNodeModulesModule["Tag"].isNull()) - moduleObject.tag = dataNodeModulesModule["Tag"].asString(); - if(!dataNodeModulesModule["ResourceGroup"].isNull()) - moduleObject.resourceGroup = dataNodeModulesModule["ResourceGroup"].asString(); - if(!dataNodeModulesModule["AccountingUnit"].isNull()) - moduleObject.accountingUnit = dataNodeModulesModule["AccountingUnit"].asString(); - if(!dataNodeModulesModule["PayerAccount"].isNull()) - moduleObject.payerAccount = dataNodeModulesModule["PayerAccount"].asString(); - if(!dataNodeModulesModule["OwnerID"].isNull()) - moduleObject.ownerID = dataNodeModulesModule["OwnerID"].asString(); + if(!dataNodeModulesModule["MonthGaapPretaxAmount"].isNull()) + moduleObject.monthGaapPretaxAmount = dataNodeModulesModule["MonthGaapPretaxAmount"].asString(); + if(!dataNodeModulesModule["DeductedByCoupons"].isNull()) + moduleObject.deductedByCoupons = dataNodeModulesModule["DeductedByCoupons"].asString(); + if(!dataNodeModulesModule["SubOrderId"].isNull()) + moduleObject.subOrderId = dataNodeModulesModule["SubOrderId"].asString(); if(!dataNodeModulesModule["Region"].isNull()) moduleObject.region = dataNodeModulesModule["Region"].asString(); - if(!dataNodeModulesModule["Currency"].isNull()) - moduleObject.currency = dataNodeModulesModule["Currency"].asString(); - if(!dataNodeModulesModule["PaymentCurrency"].isNull()) - moduleObject.paymentCurrency = dataNodeModulesModule["PaymentCurrency"].asString(); if(!dataNodeModulesModule["OrderType"].isNull()) moduleObject.orderType = dataNodeModulesModule["OrderType"].asString(); + if(!dataNodeModulesModule["MonthGaapDeductedByPrepaidCard"].isNull()) + moduleObject.monthGaapDeductedByPrepaidCard = dataNodeModulesModule["MonthGaapDeductedByPrepaidCard"].asString(); + if(!dataNodeModulesModule["UnallocatedDeductedByCashCoupons"].isNull()) + moduleObject.unallocatedDeductedByCashCoupons = dataNodeModulesModule["UnallocatedDeductedByCashCoupons"].asString(); + if(!dataNodeModulesModule["PretaxAmountLocal"].isNull()) + moduleObject.pretaxAmountLocal = dataNodeModulesModule["PretaxAmountLocal"].asString(); + if(!dataNodeModulesModule["BillingCycle"].isNull()) + moduleObject.billingCycle = dataNodeModulesModule["BillingCycle"].asString(); + if(!dataNodeModulesModule["PayerAccount"].isNull()) + moduleObject.payerAccount = dataNodeModulesModule["PayerAccount"].asString(); + if(!dataNodeModulesModule["MonthGaapPretaxAmountLocal"].isNull()) + moduleObject.monthGaapPretaxAmountLocal = dataNodeModulesModule["MonthGaapPretaxAmountLocal"].asString(); + if(!dataNodeModulesModule["AccountingUnit"].isNull()) + moduleObject.accountingUnit = dataNodeModulesModule["AccountingUnit"].asString(); + if(!dataNodeModulesModule["GaapPretaxAmountLocal"].isNull()) + moduleObject.gaapPretaxAmountLocal = dataNodeModulesModule["GaapPretaxAmountLocal"].asString(); + if(!dataNodeModulesModule["UnallocatedDeductedByPrepaidCard"].isNull()) + moduleObject.unallocatedDeductedByPrepaidCard = dataNodeModulesModule["UnallocatedDeductedByPrepaidCard"].asString(); + if(!dataNodeModulesModule["ProductType"].isNull()) + moduleObject.productType = dataNodeModulesModule["ProductType"].asString(); + if(!dataNodeModulesModule["PaymentAmount"].isNull()) + moduleObject.paymentAmount = dataNodeModulesModule["PaymentAmount"].asString(); + if(!dataNodeModulesModule["MonthGaapPretaxGrossAmount"].isNull()) + moduleObject.monthGaapPretaxGrossAmount = dataNodeModulesModule["MonthGaapPretaxGrossAmount"].asString(); + if(!dataNodeModulesModule["BillType"].isNull()) + moduleObject.billType = dataNodeModulesModule["BillType"].asString(); if(!dataNodeModulesModule["PayTime"].isNull()) moduleObject.payTime = dataNodeModulesModule["PayTime"].asString(); if(!dataNodeModulesModule["PretaxGrossAmount"].isNull()) moduleObject.pretaxGrossAmount = dataNodeModulesModule["PretaxGrossAmount"].asString(); - if(!dataNodeModulesModule["PricingDiscount"].isNull()) - moduleObject.pricingDiscount = dataNodeModulesModule["PricingDiscount"].asString(); - if(!dataNodeModulesModule["DeductedByCoupons"].isNull()) - moduleObject.deductedByCoupons = dataNodeModulesModule["DeductedByCoupons"].asString(); - if(!dataNodeModulesModule["PretaxAmount"].isNull()) - moduleObject.pretaxAmount = dataNodeModulesModule["PretaxAmount"].asString(); - if(!dataNodeModulesModule["PretaxAmountLocal"].isNull()) - moduleObject.pretaxAmountLocal = dataNodeModulesModule["PretaxAmountLocal"].asString(); - if(!dataNodeModulesModule["DeductedByCashCoupons"].isNull()) - moduleObject.deductedByCashCoupons = dataNodeModulesModule["DeductedByCashCoupons"].asString(); - if(!dataNodeModulesModule["DeductedByPrepaidCard"].isNull()) - moduleObject.deductedByPrepaidCard = dataNodeModulesModule["DeductedByPrepaidCard"].asString(); - if(!dataNodeModulesModule["PaymentAmount"].isNull()) - moduleObject.paymentAmount = dataNodeModulesModule["PaymentAmount"].asString(); - if(!dataNodeModulesModule["GaapPretaxGrossAmount"].isNull()) - moduleObject.gaapPretaxGrossAmount = dataNodeModulesModule["GaapPretaxGrossAmount"].asString(); - if(!dataNodeModulesModule["GaapPricingDiscount"].isNull()) - moduleObject.gaapPricingDiscount = dataNodeModulesModule["GaapPricingDiscount"].asString(); + if(!dataNodeModulesModule["OrderId"].isNull()) + moduleObject.orderId = dataNodeModulesModule["OrderId"].asString(); + if(!dataNodeModulesModule["UnallocatedPricingDiscount"].isNull()) + moduleObject.unallocatedPricingDiscount = dataNodeModulesModule["UnallocatedPricingDiscount"].asString(); + if(!dataNodeModulesModule["MonthGaapDeductedByCashCoupons"].isNull()) + moduleObject.monthGaapDeductedByCashCoupons = dataNodeModulesModule["MonthGaapDeductedByCashCoupons"].asString(); + if(!dataNodeModulesModule["UnallocatedPretaxGrossAmount"].isNull()) + moduleObject.unallocatedPretaxGrossAmount = dataNodeModulesModule["UnallocatedPretaxGrossAmount"].asString(); + if(!dataNodeModulesModule["InstanceID"].isNull()) + moduleObject.instanceID = dataNodeModulesModule["InstanceID"].asString(); + if(!dataNodeModulesModule["Tag"].isNull()) + moduleObject.tag = dataNodeModulesModule["Tag"].asString(); + if(!dataNodeModulesModule["Currency"].isNull()) + moduleObject.currency = dataNodeModulesModule["Currency"].asString(); if(!dataNodeModulesModule["GaapDeductedByCoupons"].isNull()) moduleObject.gaapDeductedByCoupons = dataNodeModulesModule["GaapDeductedByCoupons"].asString(); - if(!dataNodeModulesModule["GaapPretaxAmount"].isNull()) - moduleObject.gaapPretaxAmount = dataNodeModulesModule["GaapPretaxAmount"].asString(); - if(!dataNodeModulesModule["GaapPretaxAmountLocal"].isNull()) - moduleObject.gaapPretaxAmountLocal = dataNodeModulesModule["GaapPretaxAmountLocal"].asString(); - if(!dataNodeModulesModule["GaapDeductedByCashCoupons"].isNull()) - moduleObject.gaapDeductedByCashCoupons = dataNodeModulesModule["GaapDeductedByCashCoupons"].asString(); + if(!dataNodeModulesModule["DeductedByCashCoupons"].isNull()) + moduleObject.deductedByCashCoupons = dataNodeModulesModule["DeductedByCashCoupons"].asString(); if(!dataNodeModulesModule["GaapDeductedByPrepaidCard"].isNull()) moduleObject.gaapDeductedByPrepaidCard = dataNodeModulesModule["GaapDeductedByPrepaidCard"].asString(); if(!dataNodeModulesModule["GaapPaymentAmount"].isNull()) moduleObject.gaapPaymentAmount = dataNodeModulesModule["GaapPaymentAmount"].asString(); - if(!dataNodeModulesModule["MonthGaapPretaxGrossAmount"].isNull()) - moduleObject.monthGaapPretaxGrossAmount = dataNodeModulesModule["MonthGaapPretaxGrossAmount"].asString(); - if(!dataNodeModulesModule["MonthGaapPricingDiscount"].isNull()) - moduleObject.monthGaapPricingDiscount = dataNodeModulesModule["MonthGaapPricingDiscount"].asString(); - if(!dataNodeModulesModule["MonthGaapDeductedByCoupons"].isNull()) - moduleObject.monthGaapDeductedByCoupons = dataNodeModulesModule["MonthGaapDeductedByCoupons"].asString(); - if(!dataNodeModulesModule["MonthGaapPretaxAmount"].isNull()) - moduleObject.monthGaapPretaxAmount = dataNodeModulesModule["MonthGaapPretaxAmount"].asString(); - if(!dataNodeModulesModule["MonthGaapPretaxAmountLocal"].isNull()) - moduleObject.monthGaapPretaxAmountLocal = dataNodeModulesModule["MonthGaapPretaxAmountLocal"].asString(); - if(!dataNodeModulesModule["MonthGaapDeductedByCashCoupons"].isNull()) - moduleObject.monthGaapDeductedByCashCoupons = dataNodeModulesModule["MonthGaapDeductedByCashCoupons"].asString(); - if(!dataNodeModulesModule["MonthGaapDeductedByPrepaidCard"].isNull()) - moduleObject.monthGaapDeductedByPrepaidCard = dataNodeModulesModule["MonthGaapDeductedByPrepaidCard"].asString(); - if(!dataNodeModulesModule["MonthGaapPaymentAmount"].isNull()) - moduleObject.monthGaapPaymentAmount = dataNodeModulesModule["MonthGaapPaymentAmount"].asString(); - if(!dataNodeModulesModule["UnallocatedPaymentAmount"].isNull()) - moduleObject.unallocatedPaymentAmount = dataNodeModulesModule["UnallocatedPaymentAmount"].asString(); - if(!dataNodeModulesModule["UsageStartDate"].isNull()) - moduleObject.usageStartDate = dataNodeModulesModule["UsageStartDate"].asString(); - if(!dataNodeModulesModule["UsageEndDate"].isNull()) - moduleObject.usageEndDate = dataNodeModulesModule["UsageEndDate"].asString(); - if(!dataNodeModulesModule["BillType"].isNull()) - moduleObject.billType = dataNodeModulesModule["BillType"].asString(); - if(!dataNodeModulesModule["OrderId"].isNull()) - moduleObject.orderId = dataNodeModulesModule["OrderId"].asString(); - if(!dataNodeModulesModule["SubOrderId"].isNull()) - moduleObject.subOrderId = dataNodeModulesModule["SubOrderId"].asString(); - if(!dataNodeModulesModule["UnallocatedPretaxGrossAmount"].isNull()) - moduleObject.unallocatedPretaxGrossAmount = dataNodeModulesModule["UnallocatedPretaxGrossAmount"].asString(); - if(!dataNodeModulesModule["UnallocatedPricingDiscount"].isNull()) - moduleObject.unallocatedPricingDiscount = dataNodeModulesModule["UnallocatedPricingDiscount"].asString(); - if(!dataNodeModulesModule["UnallocatedDeductedByCoupons"].isNull()) - moduleObject.unallocatedDeductedByCoupons = dataNodeModulesModule["UnallocatedDeductedByCoupons"].asString(); - if(!dataNodeModulesModule["UnallocatedPretaxAmount"].isNull()) - moduleObject.unallocatedPretaxAmount = dataNodeModulesModule["UnallocatedPretaxAmount"].asString(); if(!dataNodeModulesModule["UnallocatedPretaxAmountLocal"].isNull()) moduleObject.unallocatedPretaxAmountLocal = dataNodeModulesModule["UnallocatedPretaxAmountLocal"].asString(); - if(!dataNodeModulesModule["UnallocatedDeductedByCashCoupons"].isNull()) - moduleObject.unallocatedDeductedByCashCoupons = dataNodeModulesModule["UnallocatedDeductedByCashCoupons"].asString(); - if(!dataNodeModulesModule["UnallocatedDeductedByPrepaidCard"].isNull()) - moduleObject.unallocatedDeductedByPrepaidCard = dataNodeModulesModule["UnallocatedDeductedByPrepaidCard"].asString(); + if(!dataNodeModulesModule["MonthGaapPricingDiscount"].isNull()) + moduleObject.monthGaapPricingDiscount = dataNodeModulesModule["MonthGaapPricingDiscount"].asString(); + if(!dataNodeModulesModule["PricingDiscount"].isNull()) + moduleObject.pricingDiscount = dataNodeModulesModule["PricingDiscount"].asString(); + if(!dataNodeModulesModule["GaapPricingDiscount"].isNull()) + moduleObject.gaapPricingDiscount = dataNodeModulesModule["GaapPricingDiscount"].asString(); + if(!dataNodeModulesModule["ResourceGroup"].isNull()) + moduleObject.resourceGroup = dataNodeModulesModule["ResourceGroup"].asString(); + if(!dataNodeModulesModule["UnallocatedDeductedByCoupons"].isNull()) + moduleObject.unallocatedDeductedByCoupons = dataNodeModulesModule["UnallocatedDeductedByCoupons"].asString(); + if(!dataNodeModulesModule["PretaxAmount"].isNull()) + moduleObject.pretaxAmount = dataNodeModulesModule["PretaxAmount"].asString(); + if(!dataNodeModulesModule["UnallocatedPretaxAmount"].isNull()) + moduleObject.unallocatedPretaxAmount = dataNodeModulesModule["UnallocatedPretaxAmount"].asString(); + if(!dataNodeModulesModule["GaapPretaxGrossAmount"].isNull()) + moduleObject.gaapPretaxGrossAmount = dataNodeModulesModule["GaapPretaxGrossAmount"].asString(); + if(!dataNodeModulesModule["UnallocatedPaymentAmount"].isNull()) + moduleObject.unallocatedPaymentAmount = dataNodeModulesModule["UnallocatedPaymentAmount"].asString(); + if(!dataNodeModulesModule["PaymentCurrency"].isNull()) + moduleObject.paymentCurrency = dataNodeModulesModule["PaymentCurrency"].asString(); + if(!dataNodeModulesModule["OwnerID"].isNull()) + moduleObject.ownerID = dataNodeModulesModule["OwnerID"].asString(); + if(!dataNodeModulesModule["DeductedByPrepaidCard"].isNull()) + moduleObject.deductedByPrepaidCard = dataNodeModulesModule["DeductedByPrepaidCard"].asString(); + if(!dataNodeModulesModule["GaapPretaxAmount"].isNull()) + moduleObject.gaapPretaxAmount = dataNodeModulesModule["GaapPretaxAmount"].asString(); + if(!dataNodeModulesModule["MonthGaapDeductedByCoupons"].isNull()) + moduleObject.monthGaapDeductedByCoupons = dataNodeModulesModule["MonthGaapDeductedByCoupons"].asString(); + if(!dataNodeModulesModule["MonthGaapPaymentAmount"].isNull()) + moduleObject.monthGaapPaymentAmount = dataNodeModulesModule["MonthGaapPaymentAmount"].asString(); + if(!dataNodeModulesModule["UsageEndDate"].isNull()) + moduleObject.usageEndDate = dataNodeModulesModule["UsageEndDate"].asString(); + if(!dataNodeModulesModule["UsageStartDate"].isNull()) + moduleObject.usageStartDate = dataNodeModulesModule["UsageStartDate"].asString(); + if(!dataNodeModulesModule["ProductCode"].isNull()) + moduleObject.productCode = dataNodeModulesModule["ProductCode"].asString(); 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(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryInvoicingCustomerListRequest.cc b/bssopenapi/src/model/QueryInvoicingCustomerListRequest.cc index a4167b29b..d56d4afa3 100644 --- a/bssopenapi/src/model/QueryInvoicingCustomerListRequest.cc +++ b/bssopenapi/src/model/QueryInvoicingCustomerListRequest.cc @@ -1,40 +1,36 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryInvoicingCustomerListRequest; - -QueryInvoicingCustomerListRequest::QueryInvoicingCustomerListRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInvoicingCustomerList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryInvoicingCustomerListRequest::~QueryInvoicingCustomerListRequest() -{} - -long QueryInvoicingCustomerListRequest::getOwnerId()const -{ - return ownerId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryInvoicingCustomerListRequest; + +QueryInvoicingCustomerListRequest::QueryInvoicingCustomerListRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInvoicingCustomerList") { + setMethod(HttpRequest::Method::Post); } -void QueryInvoicingCustomerListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +QueryInvoicingCustomerListRequest::~QueryInvoicingCustomerListRequest() {} + +long QueryInvoicingCustomerListRequest::getOwnerId() const { + return ownerId_; +} + +void QueryInvoicingCustomerListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/bssopenapi/src/model/QueryInvoicingCustomerListResult.cc b/bssopenapi/src/model/QueryInvoicingCustomerListResult.cc index abed5549e..7708d51e5 100644 --- a/bssopenapi/src/model/QueryInvoicingCustomerListResult.cc +++ b/bssopenapi/src/model/QueryInvoicingCustomerListResult.cc @@ -44,56 +44,56 @@ void QueryInvoicingCustomerListResult::parse(const std::string &payload) for (auto dataNodeCustomerInvoiceListCustomerInvoice : allCustomerInvoiceListNode) { Data::CustomerInvoice customerInvoiceObject; - if(!dataNodeCustomerInvoiceListCustomerInvoice["Id"].isNull()) - customerInvoiceObject.id = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["Id"].asString()); - if(!dataNodeCustomerInvoiceListCustomerInvoice["UserId"].isNull()) - customerInvoiceObject.userId = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["UserId"].asString()); - if(!dataNodeCustomerInvoiceListCustomerInvoice["UserNick"].isNull()) - customerInvoiceObject.userNick = dataNodeCustomerInvoiceListCustomerInvoice["UserNick"].asString(); - if(!dataNodeCustomerInvoiceListCustomerInvoice["InvoiceTitle"].isNull()) - customerInvoiceObject.invoiceTitle = dataNodeCustomerInvoiceListCustomerInvoice["InvoiceTitle"].asString(); - if(!dataNodeCustomerInvoiceListCustomerInvoice["CustomerType"].isNull()) - customerInvoiceObject.customerType = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["CustomerType"].asString()); - if(!dataNodeCustomerInvoiceListCustomerInvoice["TaxpayerType"].isNull()) - customerInvoiceObject.taxpayerType = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["TaxpayerType"].asString()); - if(!dataNodeCustomerInvoiceListCustomerInvoice["Bank"].isNull()) - customerInvoiceObject.bank = dataNodeCustomerInvoiceListCustomerInvoice["Bank"].asString(); - if(!dataNodeCustomerInvoiceListCustomerInvoice["BankNo"].isNull()) - customerInvoiceObject.bankNo = dataNodeCustomerInvoiceListCustomerInvoice["BankNo"].asString(); - if(!dataNodeCustomerInvoiceListCustomerInvoice["OperatingLicenseAddress"].isNull()) - customerInvoiceObject.operatingLicenseAddress = dataNodeCustomerInvoiceListCustomerInvoice["OperatingLicenseAddress"].asString(); - if(!dataNodeCustomerInvoiceListCustomerInvoice["OperatingLicensePhone"].isNull()) - customerInvoiceObject.operatingLicensePhone = dataNodeCustomerInvoiceListCustomerInvoice["OperatingLicensePhone"].asString(); - if(!dataNodeCustomerInvoiceListCustomerInvoice["RegisterNo"].isNull()) - customerInvoiceObject.registerNo = dataNodeCustomerInvoiceListCustomerInvoice["RegisterNo"].asString(); - if(!dataNodeCustomerInvoiceListCustomerInvoice["StartCycle"].isNull()) - customerInvoiceObject.startCycle = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["StartCycle"].asString()); - if(!dataNodeCustomerInvoiceListCustomerInvoice["Status"].isNull()) - customerInvoiceObject.status = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["Status"].asString()); - if(!dataNodeCustomerInvoiceListCustomerInvoice["GmtCreate"].isNull()) - customerInvoiceObject.gmtCreate = dataNodeCustomerInvoiceListCustomerInvoice["GmtCreate"].asString(); - if(!dataNodeCustomerInvoiceListCustomerInvoice["TaxationLicense"].isNull()) - customerInvoiceObject.taxationLicense = dataNodeCustomerInvoiceListCustomerInvoice["TaxationLicense"].asString(); - if(!dataNodeCustomerInvoiceListCustomerInvoice["AdjustType"].isNull()) - customerInvoiceObject.adjustType = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["AdjustType"].asString()); - if(!dataNodeCustomerInvoiceListCustomerInvoice["EndCycle"].isNull()) - customerInvoiceObject.endCycle = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["EndCycle"].asString()); - if(!dataNodeCustomerInvoiceListCustomerInvoice["TitleChangeInstructions"].isNull()) - customerInvoiceObject.titleChangeInstructions = dataNodeCustomerInvoiceListCustomerInvoice["TitleChangeInstructions"].asString(); - if(!dataNodeCustomerInvoiceListCustomerInvoice["IssueType"].isNull()) - customerInvoiceObject.issueType = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["IssueType"].asString()); if(!dataNodeCustomerInvoiceListCustomerInvoice["Type"].isNull()) customerInvoiceObject.type = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["Type"].asString()); + if(!dataNodeCustomerInvoiceListCustomerInvoice["Status"].isNull()) + customerInvoiceObject.status = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["Status"].asString()); + if(!dataNodeCustomerInvoiceListCustomerInvoice["AdjustType"].isNull()) + customerInvoiceObject.adjustType = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["AdjustType"].asString()); + if(!dataNodeCustomerInvoiceListCustomerInvoice["Bank"].isNull()) + customerInvoiceObject.bank = dataNodeCustomerInvoiceListCustomerInvoice["Bank"].asString(); + if(!dataNodeCustomerInvoiceListCustomerInvoice["StartCycle"].isNull()) + customerInvoiceObject.startCycle = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["StartCycle"].asString()); + if(!dataNodeCustomerInvoiceListCustomerInvoice["TitleChangeInstructions"].isNull()) + customerInvoiceObject.titleChangeInstructions = dataNodeCustomerInvoiceListCustomerInvoice["TitleChangeInstructions"].asString(); + if(!dataNodeCustomerInvoiceListCustomerInvoice["UserId"].isNull()) + customerInvoiceObject.userId = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["UserId"].asString()); + if(!dataNodeCustomerInvoiceListCustomerInvoice["OperatingLicenseAddress"].isNull()) + customerInvoiceObject.operatingLicenseAddress = dataNodeCustomerInvoiceListCustomerInvoice["OperatingLicenseAddress"].asString(); + if(!dataNodeCustomerInvoiceListCustomerInvoice["InvoiceTitle"].isNull()) + customerInvoiceObject.invoiceTitle = dataNodeCustomerInvoiceListCustomerInvoice["InvoiceTitle"].asString(); + if(!dataNodeCustomerInvoiceListCustomerInvoice["UserNick"].isNull()) + customerInvoiceObject.userNick = dataNodeCustomerInvoiceListCustomerInvoice["UserNick"].asString(); + if(!dataNodeCustomerInvoiceListCustomerInvoice["OperatingLicensePhone"].isNull()) + customerInvoiceObject.operatingLicensePhone = dataNodeCustomerInvoiceListCustomerInvoice["OperatingLicensePhone"].asString(); + if(!dataNodeCustomerInvoiceListCustomerInvoice["EndCycle"].isNull()) + customerInvoiceObject.endCycle = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["EndCycle"].asString()); if(!dataNodeCustomerInvoiceListCustomerInvoice["DefaultRemark"].isNull()) customerInvoiceObject.defaultRemark = dataNodeCustomerInvoiceListCustomerInvoice["DefaultRemark"].asString(); + if(!dataNodeCustomerInvoiceListCustomerInvoice["TaxationLicense"].isNull()) + customerInvoiceObject.taxationLicense = dataNodeCustomerInvoiceListCustomerInvoice["TaxationLicense"].asString(); + if(!dataNodeCustomerInvoiceListCustomerInvoice["RegisterNo"].isNull()) + customerInvoiceObject.registerNo = dataNodeCustomerInvoiceListCustomerInvoice["RegisterNo"].asString(); + if(!dataNodeCustomerInvoiceListCustomerInvoice["GmtCreate"].isNull()) + customerInvoiceObject.gmtCreate = dataNodeCustomerInvoiceListCustomerInvoice["GmtCreate"].asString(); + if(!dataNodeCustomerInvoiceListCustomerInvoice["TaxpayerType"].isNull()) + customerInvoiceObject.taxpayerType = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["TaxpayerType"].asString()); + if(!dataNodeCustomerInvoiceListCustomerInvoice["CustomerType"].isNull()) + customerInvoiceObject.customerType = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["CustomerType"].asString()); + if(!dataNodeCustomerInvoiceListCustomerInvoice["IssueType"].isNull()) + customerInvoiceObject.issueType = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["IssueType"].asString()); + if(!dataNodeCustomerInvoiceListCustomerInvoice["Id"].isNull()) + customerInvoiceObject.id = std::stol(dataNodeCustomerInvoiceListCustomerInvoice["Id"].asString()); + if(!dataNodeCustomerInvoiceListCustomerInvoice["BankNo"].isNull()) + customerInvoiceObject.bankNo = dataNodeCustomerInvoiceListCustomerInvoice["BankNo"].asString(); data_.customerInvoiceList.push_back(customerInvoiceObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryMonthlyBillRequest.cc b/bssopenapi/src/model/QueryMonthlyBillRequest.cc index 775ffb1a7..99d5a0f69 100644 --- a/bssopenapi/src/model/QueryMonthlyBillRequest.cc +++ b/bssopenapi/src/model/QueryMonthlyBillRequest.cc @@ -1,40 +1,36 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryMonthlyBillRequest; - -QueryMonthlyBillRequest::QueryMonthlyBillRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryMonthlyBill") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMonthlyBillRequest::~QueryMonthlyBillRequest() -{} - -std::string QueryMonthlyBillRequest::getBillingCycle()const -{ - return billingCycle_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryMonthlyBillRequest; + +QueryMonthlyBillRequest::QueryMonthlyBillRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryMonthlyBill") { + setMethod(HttpRequest::Method::Post); } -void QueryMonthlyBillRequest::setBillingCycle(const std::string& billingCycle) -{ - billingCycle_ = billingCycle; - setParameter("BillingCycle", billingCycle); +QueryMonthlyBillRequest::~QueryMonthlyBillRequest() {} + +std::string QueryMonthlyBillRequest::getBillingCycle() const { + return billingCycle_; +} + +void QueryMonthlyBillRequest::setBillingCycle(const std::string &billingCycle) { + billingCycle_ = billingCycle; + setParameter(std::string("BillingCycle"), billingCycle); } diff --git a/bssopenapi/src/model/QueryMonthlyBillResult.cc b/bssopenapi/src/model/QueryMonthlyBillResult.cc index 5193993c2..bf6ae60d9 100644 --- a/bssopenapi/src/model/QueryMonthlyBillResult.cc +++ b/bssopenapi/src/model/QueryMonthlyBillResult.cc @@ -42,62 +42,62 @@ void QueryMonthlyBillResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["OutstandingAmount"].isNull()) data_.outstandingAmount = std::stof(dataNode["OutstandingAmount"].asString()); + if(!dataNode["BillingCycle"].isNull()) + data_.billingCycle = dataNode["BillingCycle"].asString(); if(!dataNode["TotalOutstandingAmount"].isNull()) data_.totalOutstandingAmount = std::stof(dataNode["TotalOutstandingAmount"].asString()); if(!dataNode["NewInvoiceAmount"].isNull()) data_.newInvoiceAmount = std::stof(dataNode["NewInvoiceAmount"].asString()); - if(!dataNode["BillingCycle"].isNull()) - data_.billingCycle = dataNode["BillingCycle"].asString(); auto allItemsNode = dataNode["Items"]["Item"]; for (auto dataNodeItemsItem : allItemsNode) { Data::Item itemObject; - if(!dataNodeItemsItem["Item"].isNull()) - itemObject.item = dataNodeItemsItem["Item"].asString(); - if(!dataNodeItemsItem["ProductCode"].isNull()) - itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); - if(!dataNodeItemsItem["ProductType"].isNull()) - itemObject.productType = dataNodeItemsItem["ProductType"].asString(); - if(!dataNodeItemsItem["SubscriptionType"].isNull()) - itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); - if(!dataNodeItemsItem["SolutionCode"].isNull()) - itemObject.solutionCode = dataNodeItemsItem["SolutionCode"].asString(); - if(!dataNodeItemsItem["SolutionName"].isNull()) - itemObject.solutionName = dataNodeItemsItem["SolutionName"].asString(); - if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) - itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); - if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) - itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); - if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) - itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); if(!dataNodeItemsItem["PretaxAmount"].isNull()) itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); + if(!dataNodeItemsItem["SolutionCode"].isNull()) + itemObject.solutionCode = dataNodeItemsItem["SolutionCode"].asString(); + if(!dataNodeItemsItem["Item"].isNull()) + itemObject.item = dataNodeItemsItem["Item"].asString(); if(!dataNodeItemsItem["Currency"].isNull()) itemObject.currency = dataNodeItemsItem["Currency"].asString(); - if(!dataNodeItemsItem["PretaxAmountLocal"].isNull()) - itemObject.pretaxAmountLocal = std::stof(dataNodeItemsItem["PretaxAmountLocal"].asString()); - if(!dataNodeItemsItem["Tax"].isNull()) - itemObject.tax = std::stof(dataNodeItemsItem["Tax"].asString()); - if(!dataNodeItemsItem["AfterTaxAmount"].isNull()) - itemObject.afterTaxAmount = std::stof(dataNodeItemsItem["AfterTaxAmount"].asString()); - if(!dataNodeItemsItem["OutstandingAmount"].isNull()) - itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); - if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) - itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); - if(!dataNodeItemsItem["PaymentAmount"].isNull()) - itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); + if(!dataNodeItemsItem["SubscriptionType"].isNull()) + itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); if(!dataNodeItemsItem["PaymentCurrency"].isNull()) itemObject.paymentCurrency = dataNodeItemsItem["PaymentCurrency"].asString(); + if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) + itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); + if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) + itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); + if(!dataNodeItemsItem["PaymentAmount"].isNull()) + itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); + if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) + itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); + if(!dataNodeItemsItem["ProductType"].isNull()) + itemObject.productType = dataNodeItemsItem["ProductType"].asString(); + if(!dataNodeItemsItem["OutstandingAmount"].isNull()) + itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); + if(!dataNodeItemsItem["AfterTaxAmount"].isNull()) + itemObject.afterTaxAmount = std::stof(dataNodeItemsItem["AfterTaxAmount"].asString()); + if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) + itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); + if(!dataNodeItemsItem["SolutionName"].isNull()) + itemObject.solutionName = dataNodeItemsItem["SolutionName"].asString(); + if(!dataNodeItemsItem["Tax"].isNull()) + itemObject.tax = std::stof(dataNodeItemsItem["Tax"].asString()); + if(!dataNodeItemsItem["PretaxAmountLocal"].isNull()) + itemObject.pretaxAmountLocal = std::stof(dataNodeItemsItem["PretaxAmountLocal"].asString()); + if(!dataNodeItemsItem["ProductCode"].isNull()) + itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryMonthlyInstanceConsumptionRequest.cc b/bssopenapi/src/model/QueryMonthlyInstanceConsumptionRequest.cc index 214ab3111..a09bb76cf 100644 --- a/bssopenapi/src/model/QueryMonthlyInstanceConsumptionRequest.cc +++ b/bssopenapi/src/model/QueryMonthlyInstanceConsumptionRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::QueryMonthlyInstanceConsumptionRequest; - -QueryMonthlyInstanceConsumptionRequest::QueryMonthlyInstanceConsumptionRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryMonthlyInstanceConsumption") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMonthlyInstanceConsumptionRequest::~QueryMonthlyInstanceConsumptionRequest() -{} - -std::string QueryMonthlyInstanceConsumptionRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryMonthlyInstanceConsumptionRequest; + +QueryMonthlyInstanceConsumptionRequest::QueryMonthlyInstanceConsumptionRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryMonthlyInstanceConsumption") { + setMethod(HttpRequest::Method::Post); } -void QueryMonthlyInstanceConsumptionRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +QueryMonthlyInstanceConsumptionRequest::~QueryMonthlyInstanceConsumptionRequest() {} + +std::string QueryMonthlyInstanceConsumptionRequest::getProductCode() const { + return productCode_; } -std::string QueryMonthlyInstanceConsumptionRequest::getSubscriptionType()const -{ - return subscriptionType_; +void QueryMonthlyInstanceConsumptionRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void QueryMonthlyInstanceConsumptionRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string QueryMonthlyInstanceConsumptionRequest::getSubscriptionType() const { + return subscriptionType_; } -std::string QueryMonthlyInstanceConsumptionRequest::getBillingCycle()const -{ - return billingCycle_; +void QueryMonthlyInstanceConsumptionRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void QueryMonthlyInstanceConsumptionRequest::setBillingCycle(const std::string& billingCycle) -{ - billingCycle_ = billingCycle; - setParameter("BillingCycle", billingCycle); +std::string QueryMonthlyInstanceConsumptionRequest::getBillingCycle() const { + return billingCycle_; } -long QueryMonthlyInstanceConsumptionRequest::getOwnerId()const -{ - return ownerId_; +void QueryMonthlyInstanceConsumptionRequest::setBillingCycle(const std::string &billingCycle) { + billingCycle_ = billingCycle; + setParameter(std::string("BillingCycle"), billingCycle); } -void QueryMonthlyInstanceConsumptionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryMonthlyInstanceConsumptionRequest::getOwnerId() const { + return ownerId_; } -int QueryMonthlyInstanceConsumptionRequest::getPageNum()const -{ - return pageNum_; +void QueryMonthlyInstanceConsumptionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryMonthlyInstanceConsumptionRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QueryMonthlyInstanceConsumptionRequest::getPageNum() const { + return pageNum_; } -std::string QueryMonthlyInstanceConsumptionRequest::getProductType()const -{ - return productType_; +void QueryMonthlyInstanceConsumptionRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryMonthlyInstanceConsumptionRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string QueryMonthlyInstanceConsumptionRequest::getProductType() const { + return productType_; } -int QueryMonthlyInstanceConsumptionRequest::getPageSize()const -{ - return pageSize_; +void QueryMonthlyInstanceConsumptionRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void QueryMonthlyInstanceConsumptionRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryMonthlyInstanceConsumptionRequest::getPageSize() const { + return pageSize_; +} + +void QueryMonthlyInstanceConsumptionRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/bssopenapi/src/model/QueryMonthlyInstanceConsumptionResult.cc b/bssopenapi/src/model/QueryMonthlyInstanceConsumptionResult.cc index 60ccd0655..a324b6bd9 100644 --- a/bssopenapi/src/model/QueryMonthlyInstanceConsumptionResult.cc +++ b/bssopenapi/src/model/QueryMonthlyInstanceConsumptionResult.cc @@ -42,58 +42,58 @@ void QueryMonthlyInstanceConsumptionResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["PageNum"].isNull()) data_.pageNum = std::stoi(dataNode["PageNum"].asString()); + if(!dataNode["BillingCycle"].isNull()) + data_.billingCycle = dataNode["BillingCycle"].asString(); if(!dataNode["PageSize"].isNull()) data_.pageSize = std::stoi(dataNode["PageSize"].asString()); if(!dataNode["TotalCount"].isNull()) data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - if(!dataNode["BillingCycle"].isNull()) - data_.billingCycle = dataNode["BillingCycle"].asString(); auto allItemsNode = dataNode["Items"]["Item"]; for (auto dataNodeItemsItem : allItemsNode) { Data::Item itemObject; - if(!dataNodeItemsItem["InstanceID"].isNull()) - itemObject.instanceID = dataNodeItemsItem["InstanceID"].asString(); - if(!dataNodeItemsItem["ProductCode"].isNull()) - itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); - if(!dataNodeItemsItem["ProductType"].isNull()) - itemObject.productType = dataNodeItemsItem["ProductType"].asString(); - if(!dataNodeItemsItem["SubscriptionType"].isNull()) - itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); - if(!dataNodeItemsItem["Tag"].isNull()) - itemObject.tag = dataNodeItemsItem["Tag"].asString(); - if(!dataNodeItemsItem["ResourceGroup"].isNull()) - itemObject.resourceGroup = dataNodeItemsItem["ResourceGroup"].asString(); - if(!dataNodeItemsItem["PayerAccount"].isNull()) - itemObject.payerAccount = dataNodeItemsItem["PayerAccount"].asString(); - if(!dataNodeItemsItem["OwnerID"].isNull()) - itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); - if(!dataNodeItemsItem["Region"].isNull()) - itemObject.region = dataNodeItemsItem["Region"].asString(); - if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) - itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); - if(!dataNodeItemsItem["DiscountAmount"].isNull()) - itemObject.discountAmount = std::stof(dataNodeItemsItem["DiscountAmount"].asString()); if(!dataNodeItemsItem["PretaxAmount"].isNull()) itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); + if(!dataNodeItemsItem["DiscountAmount"].isNull()) + itemObject.discountAmount = std::stof(dataNodeItemsItem["DiscountAmount"].asString()); + if(!dataNodeItemsItem["PayerAccount"].isNull()) + itemObject.payerAccount = dataNodeItemsItem["PayerAccount"].asString(); + if(!dataNodeItemsItem["Tag"].isNull()) + itemObject.tag = dataNodeItemsItem["Tag"].asString(); + if(!dataNodeItemsItem["InstanceID"].isNull()) + itemObject.instanceID = dataNodeItemsItem["InstanceID"].asString(); if(!dataNodeItemsItem["Currency"].isNull()) itemObject.currency = dataNodeItemsItem["Currency"].asString(); - if(!dataNodeItemsItem["PretaxAmountLocal"].isNull()) - itemObject.pretaxAmountLocal = std::stof(dataNodeItemsItem["PretaxAmountLocal"].asString()); - if(!dataNodeItemsItem["Tax"].isNull()) - itemObject.tax = std::stof(dataNodeItemsItem["Tax"].asString()); - if(!dataNodeItemsItem["AfterTaxAmount"].isNull()) - itemObject.afterTaxAmount = std::stof(dataNodeItemsItem["AfterTaxAmount"].asString()); + if(!dataNodeItemsItem["SubscriptionType"].isNull()) + itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); if(!dataNodeItemsItem["PaymentCurrency"].isNull()) itemObject.paymentCurrency = dataNodeItemsItem["PaymentCurrency"].asString(); + if(!dataNodeItemsItem["OwnerID"].isNull()) + itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); + if(!dataNodeItemsItem["ProductType"].isNull()) + itemObject.productType = dataNodeItemsItem["ProductType"].asString(); + if(!dataNodeItemsItem["Region"].isNull()) + itemObject.region = dataNodeItemsItem["Region"].asString(); + if(!dataNodeItemsItem["AfterTaxAmount"].isNull()) + itemObject.afterTaxAmount = std::stof(dataNodeItemsItem["AfterTaxAmount"].asString()); + if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) + itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); + if(!dataNodeItemsItem["ResourceGroup"].isNull()) + itemObject.resourceGroup = dataNodeItemsItem["ResourceGroup"].asString(); + if(!dataNodeItemsItem["Tax"].isNull()) + itemObject.tax = std::stof(dataNodeItemsItem["Tax"].asString()); + if(!dataNodeItemsItem["PretaxAmountLocal"].isNull()) + itemObject.pretaxAmountLocal = std::stof(dataNodeItemsItem["PretaxAmountLocal"].asString()); + if(!dataNodeItemsItem["ProductCode"].isNull()) + itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryOrdersRequest.cc b/bssopenapi/src/model/QueryOrdersRequest.cc index 956e043ad..fa473b006 100644 --- a/bssopenapi/src/model/QueryOrdersRequest.cc +++ b/bssopenapi/src/model/QueryOrdersRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::QueryOrdersRequest; - -QueryOrdersRequest::QueryOrdersRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryOrders") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryOrdersRequest::~QueryOrdersRequest() -{} - -std::string QueryOrdersRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryOrdersRequest; + +QueryOrdersRequest::QueryOrdersRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryOrders") { + setMethod(HttpRequest::Method::Post); } -void QueryOrdersRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +QueryOrdersRequest::~QueryOrdersRequest() {} + +std::string QueryOrdersRequest::getProductCode() const { + return productCode_; } -std::string QueryOrdersRequest::getSubscriptionType()const -{ - return subscriptionType_; +void QueryOrdersRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void QueryOrdersRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string QueryOrdersRequest::getSubscriptionType() const { + return subscriptionType_; } -int QueryOrdersRequest::getPageNum()const -{ - return pageNum_; +void QueryOrdersRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void QueryOrdersRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QueryOrdersRequest::getPageNum() const { + return pageNum_; } -long QueryOrdersRequest::getOwnerId()const -{ - return ownerId_; +void QueryOrdersRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryOrdersRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryOrdersRequest::getOwnerId() const { + return ownerId_; } -std::string QueryOrdersRequest::getCreateTimeEnd()const -{ - return createTimeEnd_; +void QueryOrdersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryOrdersRequest::setCreateTimeEnd(const std::string& createTimeEnd) -{ - createTimeEnd_ = createTimeEnd; - setParameter("CreateTimeEnd", createTimeEnd); +std::string QueryOrdersRequest::getCreateTimeEnd() const { + return createTimeEnd_; } -std::string QueryOrdersRequest::getProductType()const -{ - return productType_; +void QueryOrdersRequest::setCreateTimeEnd(const std::string &createTimeEnd) { + createTimeEnd_ = createTimeEnd; + setParameter(std::string("CreateTimeEnd"), createTimeEnd); } -void QueryOrdersRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string QueryOrdersRequest::getProductType() const { + return productType_; } -int QueryOrdersRequest::getPageSize()const -{ - return pageSize_; +void QueryOrdersRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void QueryOrdersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryOrdersRequest::getPageSize() const { + return pageSize_; } -std::string QueryOrdersRequest::getPaymentStatus()const -{ - return paymentStatus_; +void QueryOrdersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void QueryOrdersRequest::setPaymentStatus(const std::string& paymentStatus) -{ - paymentStatus_ = paymentStatus; - setParameter("PaymentStatus", paymentStatus); +std::string QueryOrdersRequest::getPaymentStatus() const { + return paymentStatus_; } -std::string QueryOrdersRequest::getCreateTimeStart()const -{ - return createTimeStart_; +void QueryOrdersRequest::setPaymentStatus(const std::string &paymentStatus) { + paymentStatus_ = paymentStatus; + setParameter(std::string("PaymentStatus"), paymentStatus); } -void QueryOrdersRequest::setCreateTimeStart(const std::string& createTimeStart) -{ - createTimeStart_ = createTimeStart; - setParameter("CreateTimeStart", createTimeStart); +std::string QueryOrdersRequest::getCreateTimeStart() const { + return createTimeStart_; } -std::string QueryOrdersRequest::getOrderType()const -{ - return orderType_; +void QueryOrdersRequest::setCreateTimeStart(const std::string &createTimeStart) { + createTimeStart_ = createTimeStart; + setParameter(std::string("CreateTimeStart"), createTimeStart); } -void QueryOrdersRequest::setOrderType(const std::string& orderType) -{ - orderType_ = orderType; - setParameter("OrderType", orderType); +std::string QueryOrdersRequest::getOrderType() const { + return orderType_; +} + +void QueryOrdersRequest::setOrderType(const std::string &orderType) { + orderType_ = orderType; + setParameter(std::string("OrderType"), orderType); } diff --git a/bssopenapi/src/model/QueryOrdersResult.cc b/bssopenapi/src/model/QueryOrdersResult.cc index a9db3fa49..e77e37b39 100644 --- a/bssopenapi/src/model/QueryOrdersResult.cc +++ b/bssopenapi/src/model/QueryOrdersResult.cc @@ -52,48 +52,48 @@ void QueryOrdersResult::parse(const std::string &payload) for (auto dataNodeOrderListOrder : allOrderListNode) { Data::Order orderObject; - if(!dataNodeOrderListOrder["OrderId"].isNull()) - orderObject.orderId = dataNodeOrderListOrder["OrderId"].asString(); - if(!dataNodeOrderListOrder["ProductCode"].isNull()) - orderObject.productCode = dataNodeOrderListOrder["ProductCode"].asString(); - if(!dataNodeOrderListOrder["ProductType"].isNull()) - orderObject.productType = dataNodeOrderListOrder["ProductType"].asString(); - if(!dataNodeOrderListOrder["SubscriptionType"].isNull()) - orderObject.subscriptionType = dataNodeOrderListOrder["SubscriptionType"].asString(); - if(!dataNodeOrderListOrder["OrderType"].isNull()) - orderObject.orderType = dataNodeOrderListOrder["OrderType"].asString(); - if(!dataNodeOrderListOrder["CreateTime"].isNull()) - orderObject.createTime = dataNodeOrderListOrder["CreateTime"].asString(); - if(!dataNodeOrderListOrder["PaymentTime"].isNull()) - orderObject.paymentTime = dataNodeOrderListOrder["PaymentTime"].asString(); - if(!dataNodeOrderListOrder["PaymentStatus"].isNull()) - orderObject.paymentStatus = dataNodeOrderListOrder["PaymentStatus"].asString(); - if(!dataNodeOrderListOrder["PretaxGrossAmount"].isNull()) - orderObject.pretaxGrossAmount = dataNodeOrderListOrder["PretaxGrossAmount"].asString(); if(!dataNodeOrderListOrder["PretaxAmount"].isNull()) orderObject.pretaxAmount = dataNodeOrderListOrder["PretaxAmount"].asString(); - if(!dataNodeOrderListOrder["Currency"].isNull()) - orderObject.currency = dataNodeOrderListOrder["Currency"].asString(); - if(!dataNodeOrderListOrder["PretaxAmountLocal"].isNull()) - orderObject.pretaxAmountLocal = dataNodeOrderListOrder["PretaxAmountLocal"].asString(); - if(!dataNodeOrderListOrder["Tax"].isNull()) - orderObject.tax = dataNodeOrderListOrder["Tax"].asString(); - if(!dataNodeOrderListOrder["AfterTaxAmount"].isNull()) - orderObject.afterTaxAmount = dataNodeOrderListOrder["AfterTaxAmount"].asString(); - if(!dataNodeOrderListOrder["PaymentCurrency"].isNull()) - orderObject.paymentCurrency = dataNodeOrderListOrder["PaymentCurrency"].asString(); - if(!dataNodeOrderListOrder["RelatedOrderId"].isNull()) - orderObject.relatedOrderId = dataNodeOrderListOrder["RelatedOrderId"].asString(); if(!dataNodeOrderListOrder["CommodityCode"].isNull()) orderObject.commodityCode = dataNodeOrderListOrder["CommodityCode"].asString(); + if(!dataNodeOrderListOrder["RelatedOrderId"].isNull()) + orderObject.relatedOrderId = dataNodeOrderListOrder["RelatedOrderId"].asString(); + if(!dataNodeOrderListOrder["CreateTime"].isNull()) + orderObject.createTime = dataNodeOrderListOrder["CreateTime"].asString(); + if(!dataNodeOrderListOrder["Currency"].isNull()) + orderObject.currency = dataNodeOrderListOrder["Currency"].asString(); + if(!dataNodeOrderListOrder["SubscriptionType"].isNull()) + orderObject.subscriptionType = dataNodeOrderListOrder["SubscriptionType"].asString(); + if(!dataNodeOrderListOrder["PaymentCurrency"].isNull()) + orderObject.paymentCurrency = dataNodeOrderListOrder["PaymentCurrency"].asString(); + if(!dataNodeOrderListOrder["ProductType"].isNull()) + orderObject.productType = dataNodeOrderListOrder["ProductType"].asString(); + if(!dataNodeOrderListOrder["AfterTaxAmount"].isNull()) + orderObject.afterTaxAmount = dataNodeOrderListOrder["AfterTaxAmount"].asString(); + if(!dataNodeOrderListOrder["PaymentTime"].isNull()) + orderObject.paymentTime = dataNodeOrderListOrder["PaymentTime"].asString(); + if(!dataNodeOrderListOrder["PretaxGrossAmount"].isNull()) + orderObject.pretaxGrossAmount = dataNodeOrderListOrder["PretaxGrossAmount"].asString(); + if(!dataNodeOrderListOrder["OrderType"].isNull()) + orderObject.orderType = dataNodeOrderListOrder["OrderType"].asString(); + if(!dataNodeOrderListOrder["PaymentStatus"].isNull()) + orderObject.paymentStatus = dataNodeOrderListOrder["PaymentStatus"].asString(); + if(!dataNodeOrderListOrder["OrderId"].isNull()) + orderObject.orderId = dataNodeOrderListOrder["OrderId"].asString(); + if(!dataNodeOrderListOrder["Tax"].isNull()) + orderObject.tax = dataNodeOrderListOrder["Tax"].asString(); + if(!dataNodeOrderListOrder["PretaxAmountLocal"].isNull()) + orderObject.pretaxAmountLocal = dataNodeOrderListOrder["PretaxAmountLocal"].asString(); + if(!dataNodeOrderListOrder["ProductCode"].isNull()) + orderObject.productCode = dataNodeOrderListOrder["ProductCode"].asString(); data_.orderList.push_back(orderObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryPermissionListRequest.cc b/bssopenapi/src/model/QueryPermissionListRequest.cc index a4678e080..6a35de4af 100644 --- a/bssopenapi/src/model/QueryPermissionListRequest.cc +++ b/bssopenapi/src/model/QueryPermissionListRequest.cc @@ -1,40 +1,36 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryPermissionListRequest; - -QueryPermissionListRequest::QueryPermissionListRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPermissionList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryPermissionListRequest::~QueryPermissionListRequest() -{} - -long QueryPermissionListRequest::getRelationId()const -{ - return relationId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryPermissionListRequest; + +QueryPermissionListRequest::QueryPermissionListRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPermissionList") { + setMethod(HttpRequest::Method::Post); } -void QueryPermissionListRequest::setRelationId(long relationId) -{ - relationId_ = relationId; - setParameter("RelationId", std::to_string(relationId)); +QueryPermissionListRequest::~QueryPermissionListRequest() {} + +long QueryPermissionListRequest::getRelationId() const { + return relationId_; +} + +void QueryPermissionListRequest::setRelationId(long relationId) { + relationId_ = relationId; + setParameter(std::string("RelationId"), std::to_string(relationId)); } diff --git a/bssopenapi/src/model/QueryPermissionListResult.cc b/bssopenapi/src/model/QueryPermissionListResult.cc index f40dbe1e3..7b0f244d0 100644 --- a/bssopenapi/src/model/QueryPermissionListResult.cc +++ b/bssopenapi/src/model/QueryPermissionListResult.cc @@ -40,40 +40,40 @@ void QueryPermissionListResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; + if(!dataNode["EndTime"].isNull()) + data_.endTime = dataNode["EndTime"].asString(); + if(!dataNode["RelationType"].isNull()) + data_.relationType = dataNode["RelationType"].asString(); + if(!dataNode["StartTime"].isNull()) + data_.startTime = dataNode["StartTime"].asString(); + if(!dataNode["State"].isNull()) + data_.state = dataNode["State"].asString(); if(!dataNode["MasterId"].isNull()) data_.masterId = std::stol(dataNode["MasterId"].asString()); if(!dataNode["MemberId"].isNull()) data_.memberId = std::stol(dataNode["MemberId"].asString()); - if(!dataNode["RelationType"].isNull()) - data_.relationType = dataNode["RelationType"].asString(); - if(!dataNode["State"].isNull()) - data_.state = dataNode["State"].asString(); if(!dataNode["SetupTime"].isNull()) data_.setupTime = dataNode["SetupTime"].asString(); - if(!dataNode["StartTime"].isNull()) - data_.startTime = dataNode["StartTime"].asString(); - if(!dataNode["EndTime"].isNull()) - data_.endTime = dataNode["EndTime"].asString(); auto allPermissionListNode = dataNode["PermissionList"]["PermissionListItem"]; for (auto dataNodePermissionListPermissionListItem : allPermissionListNode) { Data::PermissionListItem permissionListItemObject; + if(!dataNodePermissionListPermissionListItem["EndTime"].isNull()) + permissionListItemObject.endTime = dataNodePermissionListPermissionListItem["EndTime"].asString(); + if(!dataNodePermissionListPermissionListItem["StartTime"].isNull()) + permissionListItemObject.startTime = dataNodePermissionListPermissionListItem["StartTime"].asString(); if(!dataNodePermissionListPermissionListItem["PermissionCode"].isNull()) permissionListItemObject.permissionCode = dataNodePermissionListPermissionListItem["PermissionCode"].asString(); if(!dataNodePermissionListPermissionListItem["PermissionName"].isNull()) permissionListItemObject.permissionName = dataNodePermissionListPermissionListItem["PermissionName"].asString(); - if(!dataNodePermissionListPermissionListItem["StartTime"].isNull()) - permissionListItemObject.startTime = dataNodePermissionListPermissionListItem["StartTime"].asString(); - if(!dataNodePermissionListPermissionListItem["EndTime"].isNull()) - permissionListItemObject.endTime = dataNodePermissionListPermissionListItem["EndTime"].asString(); data_.permissionList.push_back(permissionListItemObject); } if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryPrepaidCardsRequest.cc b/bssopenapi/src/model/QueryPrepaidCardsRequest.cc index fe0d505ae..774598a12 100644 --- a/bssopenapi/src/model/QueryPrepaidCardsRequest.cc +++ b/bssopenapi/src/model/QueryPrepaidCardsRequest.cc @@ -1,62 +1,54 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryPrepaidCardsRequest; - -QueryPrepaidCardsRequest::QueryPrepaidCardsRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPrepaidCards") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryPrepaidCardsRequest::~QueryPrepaidCardsRequest() -{} - -std::string QueryPrepaidCardsRequest::getExpiryTimeEnd()const -{ - return expiryTimeEnd_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryPrepaidCardsRequest; + +QueryPrepaidCardsRequest::QueryPrepaidCardsRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPrepaidCards") { + setMethod(HttpRequest::Method::Post); } -void QueryPrepaidCardsRequest::setExpiryTimeEnd(const std::string& expiryTimeEnd) -{ - expiryTimeEnd_ = expiryTimeEnd; - setParameter("ExpiryTimeEnd", expiryTimeEnd); +QueryPrepaidCardsRequest::~QueryPrepaidCardsRequest() {} + +std::string QueryPrepaidCardsRequest::getExpiryTimeEnd() const { + return expiryTimeEnd_; } -std::string QueryPrepaidCardsRequest::getExpiryTimeStart()const -{ - return expiryTimeStart_; +void QueryPrepaidCardsRequest::setExpiryTimeEnd(const std::string &expiryTimeEnd) { + expiryTimeEnd_ = expiryTimeEnd; + setParameter(std::string("ExpiryTimeEnd"), expiryTimeEnd); } -void QueryPrepaidCardsRequest::setExpiryTimeStart(const std::string& expiryTimeStart) -{ - expiryTimeStart_ = expiryTimeStart; - setParameter("ExpiryTimeStart", expiryTimeStart); +std::string QueryPrepaidCardsRequest::getExpiryTimeStart() const { + return expiryTimeStart_; } -bool QueryPrepaidCardsRequest::getEffectiveOrNot()const -{ - return effectiveOrNot_; +void QueryPrepaidCardsRequest::setExpiryTimeStart(const std::string &expiryTimeStart) { + expiryTimeStart_ = expiryTimeStart; + setParameter(std::string("ExpiryTimeStart"), expiryTimeStart); } -void QueryPrepaidCardsRequest::setEffectiveOrNot(bool effectiveOrNot) -{ - effectiveOrNot_ = effectiveOrNot; - setParameter("EffectiveOrNot", effectiveOrNot ? "true" : "false"); +bool QueryPrepaidCardsRequest::getEffectiveOrNot() const { + return effectiveOrNot_; +} + +void QueryPrepaidCardsRequest::setEffectiveOrNot(bool effectiveOrNot) { + effectiveOrNot_ = effectiveOrNot; + setParameter(std::string("EffectiveOrNot"), effectiveOrNot ? "true" : "false"); } diff --git a/bssopenapi/src/model/QueryPrepaidCardsResult.cc b/bssopenapi/src/model/QueryPrepaidCardsResult.cc index 5b3227fe6..4a5d3b513 100644 --- a/bssopenapi/src/model/QueryPrepaidCardsResult.cc +++ b/bssopenapi/src/model/QueryPrepaidCardsResult.cc @@ -43,34 +43,34 @@ void QueryPrepaidCardsResult::parse(const std::string &payload) for (auto valueDataPrepaidCard : allDataNode) { PrepaidCard dataObject; - if(!valueDataPrepaidCard["PrepaidCardId"].isNull()) - dataObject.prepaidCardId = std::stol(valueDataPrepaidCard["PrepaidCardId"].asString()); - if(!valueDataPrepaidCard["PrepaidCardNo"].isNull()) - dataObject.prepaidCardNo = valueDataPrepaidCard["PrepaidCardNo"].asString(); - if(!valueDataPrepaidCard["GrantedTime"].isNull()) - dataObject.grantedTime = valueDataPrepaidCard["GrantedTime"].asString(); - if(!valueDataPrepaidCard["EffectiveTime"].isNull()) - dataObject.effectiveTime = valueDataPrepaidCard["EffectiveTime"].asString(); - if(!valueDataPrepaidCard["ExpiryTime"].isNull()) - dataObject.expiryTime = valueDataPrepaidCard["ExpiryTime"].asString(); - if(!valueDataPrepaidCard["ApplicableProducts"].isNull()) - dataObject.applicableProducts = valueDataPrepaidCard["ApplicableProducts"].asString(); - if(!valueDataPrepaidCard["ApplicableScenarios"].isNull()) - dataObject.applicableScenarios = valueDataPrepaidCard["ApplicableScenarios"].asString(); - if(!valueDataPrepaidCard["NominalValue"].isNull()) - dataObject.nominalValue = valueDataPrepaidCard["NominalValue"].asString(); - if(!valueDataPrepaidCard["Balance"].isNull()) - dataObject.balance = valueDataPrepaidCard["Balance"].asString(); if(!valueDataPrepaidCard["Status"].isNull()) dataObject.status = valueDataPrepaidCard["Status"].asString(); + if(!valueDataPrepaidCard["ExpiryTime"].isNull()) + dataObject.expiryTime = valueDataPrepaidCard["ExpiryTime"].asString(); + if(!valueDataPrepaidCard["GrantedTime"].isNull()) + dataObject.grantedTime = valueDataPrepaidCard["GrantedTime"].asString(); + if(!valueDataPrepaidCard["NominalValue"].isNull()) + dataObject.nominalValue = valueDataPrepaidCard["NominalValue"].asString(); + if(!valueDataPrepaidCard["EffectiveTime"].isNull()) + dataObject.effectiveTime = valueDataPrepaidCard["EffectiveTime"].asString(); + if(!valueDataPrepaidCard["PrepaidCardNo"].isNull()) + dataObject.prepaidCardNo = valueDataPrepaidCard["PrepaidCardNo"].asString(); + if(!valueDataPrepaidCard["ApplicableScenarios"].isNull()) + dataObject.applicableScenarios = valueDataPrepaidCard["ApplicableScenarios"].asString(); + if(!valueDataPrepaidCard["PrepaidCardId"].isNull()) + dataObject.prepaidCardId = std::stol(valueDataPrepaidCard["PrepaidCardId"].asString()); + if(!valueDataPrepaidCard["ApplicableProducts"].isNull()) + dataObject.applicableProducts = valueDataPrepaidCard["ApplicableProducts"].asString(); + if(!valueDataPrepaidCard["Balance"].isNull()) + dataObject.balance = valueDataPrepaidCard["Balance"].asString(); data_.push_back(dataObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryProductListRequest.cc b/bssopenapi/src/model/QueryProductListRequest.cc index 82b70a9a7..08996f77f 100644 --- a/bssopenapi/src/model/QueryProductListRequest.cc +++ b/bssopenapi/src/model/QueryProductListRequest.cc @@ -1,62 +1,54 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryProductListRequest; - -QueryProductListRequest::QueryProductListRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryProductList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryProductListRequest::~QueryProductListRequest() -{} - -int QueryProductListRequest::getPageNum()const -{ - return pageNum_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryProductListRequest; + +QueryProductListRequest::QueryProductListRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryProductList") { + setMethod(HttpRequest::Method::Post); } -void QueryProductListRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +QueryProductListRequest::~QueryProductListRequest() {} + +int QueryProductListRequest::getPageNum() const { + return pageNum_; } -bool QueryProductListRequest::getQueryTotalCount()const -{ - return queryTotalCount_; +void QueryProductListRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryProductListRequest::setQueryTotalCount(bool queryTotalCount) -{ - queryTotalCount_ = queryTotalCount; - setParameter("QueryTotalCount", queryTotalCount ? "true" : "false"); +bool QueryProductListRequest::getQueryTotalCount() const { + return queryTotalCount_; } -int QueryProductListRequest::getPageSize()const -{ - return pageSize_; +void QueryProductListRequest::setQueryTotalCount(bool queryTotalCount) { + queryTotalCount_ = queryTotalCount; + setParameter(std::string("QueryTotalCount"), queryTotalCount ? "true" : "false"); } -void QueryProductListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryProductListRequest::getPageSize() const { + return pageSize_; +} + +void QueryProductListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/bssopenapi/src/model/QueryProductListResult.cc b/bssopenapi/src/model/QueryProductListResult.cc index 2a04b6f52..3e089512c 100644 --- a/bssopenapi/src/model/QueryProductListResult.cc +++ b/bssopenapi/src/model/QueryProductListResult.cc @@ -40,32 +40,32 @@ void QueryProductListResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); if(!dataNode["PageNum"].isNull()) data_.pageNum = std::stoi(dataNode["PageNum"].asString()); if(!dataNode["PageSize"].isNull()) data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); auto allProductListNode = dataNode["ProductList"]["Product"]; for (auto dataNodeProductListProduct : allProductListNode) { Data::Product productObject; - if(!dataNodeProductListProduct["ProductCode"].isNull()) - productObject.productCode = dataNodeProductListProduct["ProductCode"].asString(); if(!dataNodeProductListProduct["ProductName"].isNull()) productObject.productName = dataNodeProductListProduct["ProductName"].asString(); if(!dataNodeProductListProduct["ProductType"].isNull()) productObject.productType = dataNodeProductListProduct["ProductType"].asString(); if(!dataNodeProductListProduct["SubscriptionType"].isNull()) productObject.subscriptionType = dataNodeProductListProduct["SubscriptionType"].asString(); + if(!dataNodeProductListProduct["ProductCode"].isNull()) + productObject.productCode = dataNodeProductListProduct["ProductCode"].asString(); data_.productList.push_back(productObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryRIUtilizationDetailRequest.cc b/bssopenapi/src/model/QueryRIUtilizationDetailRequest.cc index 65e75b2b2..c5945eedd 100644 --- a/bssopenapi/src/model/QueryRIUtilizationDetailRequest.cc +++ b/bssopenapi/src/model/QueryRIUtilizationDetailRequest.cc @@ -1,117 +1,99 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryRIUtilizationDetailRequest; - -QueryRIUtilizationDetailRequest::QueryRIUtilizationDetailRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryRIUtilizationDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryRIUtilizationDetailRequest::~QueryRIUtilizationDetailRequest() -{} - -std::string QueryRIUtilizationDetailRequest::getDeductedInstanceId()const -{ - return deductedInstanceId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryRIUtilizationDetailRequest; + +QueryRIUtilizationDetailRequest::QueryRIUtilizationDetailRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryRIUtilizationDetail") { + setMethod(HttpRequest::Method::Post); } -void QueryRIUtilizationDetailRequest::setDeductedInstanceId(const std::string& deductedInstanceId) -{ - deductedInstanceId_ = deductedInstanceId; - setParameter("DeductedInstanceId", deductedInstanceId); +QueryRIUtilizationDetailRequest::~QueryRIUtilizationDetailRequest() {} + +std::string QueryRIUtilizationDetailRequest::getDeductedInstanceId() const { + return deductedInstanceId_; } -std::string QueryRIUtilizationDetailRequest::getInstanceSpec()const -{ - return instanceSpec_; +void QueryRIUtilizationDetailRequest::setDeductedInstanceId(const std::string &deductedInstanceId) { + deductedInstanceId_ = deductedInstanceId; + setParameter(std::string("DeductedInstanceId"), deductedInstanceId); } -void QueryRIUtilizationDetailRequest::setInstanceSpec(const std::string& instanceSpec) -{ - instanceSpec_ = instanceSpec; - setParameter("InstanceSpec", instanceSpec); +std::string QueryRIUtilizationDetailRequest::getInstanceSpec() const { + return instanceSpec_; } -std::string QueryRIUtilizationDetailRequest::getEndTime()const -{ - return endTime_; +void QueryRIUtilizationDetailRequest::setInstanceSpec(const std::string &instanceSpec) { + instanceSpec_ = instanceSpec; + setParameter(std::string("InstanceSpec"), instanceSpec); } -void QueryRIUtilizationDetailRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string QueryRIUtilizationDetailRequest::getEndTime() const { + return endTime_; } -std::string QueryRIUtilizationDetailRequest::getRIInstanceId()const -{ - return rIInstanceId_; +void QueryRIUtilizationDetailRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void QueryRIUtilizationDetailRequest::setRIInstanceId(const std::string& rIInstanceId) -{ - rIInstanceId_ = rIInstanceId; - setParameter("RIInstanceId", rIInstanceId); +std::string QueryRIUtilizationDetailRequest::getRIInstanceId() const { + return rIInstanceId_; } -std::string QueryRIUtilizationDetailRequest::getStartTime()const -{ - return startTime_; +void QueryRIUtilizationDetailRequest::setRIInstanceId(const std::string &rIInstanceId) { + rIInstanceId_ = rIInstanceId; + setParameter(std::string("RIInstanceId"), rIInstanceId); } -void QueryRIUtilizationDetailRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string QueryRIUtilizationDetailRequest::getStartTime() const { + return startTime_; } -int QueryRIUtilizationDetailRequest::getPageNum()const -{ - return pageNum_; +void QueryRIUtilizationDetailRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void QueryRIUtilizationDetailRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QueryRIUtilizationDetailRequest::getPageNum() const { + return pageNum_; } -int QueryRIUtilizationDetailRequest::getPageSize()const -{ - return pageSize_; +void QueryRIUtilizationDetailRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryRIUtilizationDetailRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryRIUtilizationDetailRequest::getPageSize() const { + return pageSize_; } -std::string QueryRIUtilizationDetailRequest::getRICommodityCode()const -{ - return rICommodityCode_; +void QueryRIUtilizationDetailRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void QueryRIUtilizationDetailRequest::setRICommodityCode(const std::string& rICommodityCode) -{ - rICommodityCode_ = rICommodityCode; - setParameter("RICommodityCode", rICommodityCode); +std::string QueryRIUtilizationDetailRequest::getRICommodityCode() const { + return rICommodityCode_; +} + +void QueryRIUtilizationDetailRequest::setRICommodityCode(const std::string &rICommodityCode) { + rICommodityCode_ = rICommodityCode; + setParameter(std::string("RICommodityCode"), rICommodityCode); } diff --git a/bssopenapi/src/model/QueryRIUtilizationDetailResult.cc b/bssopenapi/src/model/QueryRIUtilizationDetailResult.cc index 0fc521ac6..13d71e8eb 100644 --- a/bssopenapi/src/model/QueryRIUtilizationDetailResult.cc +++ b/bssopenapi/src/model/QueryRIUtilizationDetailResult.cc @@ -50,32 +50,32 @@ void QueryRIUtilizationDetailResult::parse(const std::string &payload) for (auto dataNodeDetailListDetailListItem : allDetailListNode) { Data::DetailListItem detailListItemObject; + if(!dataNodeDetailListDetailListItem["DeductedCommodityCode"].isNull()) + detailListItemObject.deductedCommodityCode = dataNodeDetailListDetailListItem["DeductedCommodityCode"].asString(); + if(!dataNodeDetailListDetailListItem["DeductedProductDetail"].isNull()) + detailListItemObject.deductedProductDetail = dataNodeDetailListDetailListItem["DeductedProductDetail"].asString(); + if(!dataNodeDetailListDetailListItem["DeductedInstanceId"].isNull()) + detailListItemObject.deductedInstanceId = dataNodeDetailListDetailListItem["DeductedInstanceId"].asString(); + if(!dataNodeDetailListDetailListItem["DeductFactorTotal"].isNull()) + detailListItemObject.deductFactorTotal = std::stof(dataNodeDetailListDetailListItem["DeductFactorTotal"].asString()); + if(!dataNodeDetailListDetailListItem["DeductQuantity"].isNull()) + detailListItemObject.deductQuantity = std::stof(dataNodeDetailListDetailListItem["DeductQuantity"].asString()); + if(!dataNodeDetailListDetailListItem["DeductHours"].isNull()) + detailListItemObject.deductHours = dataNodeDetailListDetailListItem["DeductHours"].asString(); + if(!dataNodeDetailListDetailListItem["DeductDate"].isNull()) + detailListItemObject.deductDate = dataNodeDetailListDetailListItem["DeductDate"].asString(); if(!dataNodeDetailListDetailListItem["RIInstanceId"].isNull()) detailListItemObject.rIInstanceId = dataNodeDetailListDetailListItem["RIInstanceId"].asString(); if(!dataNodeDetailListDetailListItem["InstanceSpec"].isNull()) detailListItemObject.instanceSpec = dataNodeDetailListDetailListItem["InstanceSpec"].asString(); - if(!dataNodeDetailListDetailListItem["DeductedInstanceId"].isNull()) - detailListItemObject.deductedInstanceId = dataNodeDetailListDetailListItem["DeductedInstanceId"].asString(); - if(!dataNodeDetailListDetailListItem["DeductedCommodityCode"].isNull()) - detailListItemObject.deductedCommodityCode = dataNodeDetailListDetailListItem["DeductedCommodityCode"].asString(); - if(!dataNodeDetailListDetailListItem["DeductDate"].isNull()) - detailListItemObject.deductDate = dataNodeDetailListDetailListItem["DeductDate"].asString(); - if(!dataNodeDetailListDetailListItem["DeductHours"].isNull()) - detailListItemObject.deductHours = dataNodeDetailListDetailListItem["DeductHours"].asString(); - if(!dataNodeDetailListDetailListItem["DeductedProductDetail"].isNull()) - detailListItemObject.deductedProductDetail = dataNodeDetailListDetailListItem["DeductedProductDetail"].asString(); - if(!dataNodeDetailListDetailListItem["DeductQuantity"].isNull()) - detailListItemObject.deductQuantity = std::stof(dataNodeDetailListDetailListItem["DeductQuantity"].asString()); - if(!dataNodeDetailListDetailListItem["DeductFactorTotal"].isNull()) - detailListItemObject.deductFactorTotal = std::stof(dataNodeDetailListDetailListItem["DeductFactorTotal"].asString()); data_.detailList.push_back(detailListItemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryRedeemRequest.cc b/bssopenapi/src/model/QueryRedeemRequest.cc index 25701f98e..b22cb6e8f 100644 --- a/bssopenapi/src/model/QueryRedeemRequest.cc +++ b/bssopenapi/src/model/QueryRedeemRequest.cc @@ -1,84 +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. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::QueryRedeemRequest; - -QueryRedeemRequest::QueryRedeemRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryRedeem") -{ - setMethod(HttpRequest::Method::Get); -} - -QueryRedeemRequest::~QueryRedeemRequest() -{} - -std::string QueryRedeemRequest::getExpiryTimeEnd()const -{ - return expiryTimeEnd_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryRedeemRequest; + +QueryRedeemRequest::QueryRedeemRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryRedeem") { + setMethod(HttpRequest::Method::Get); } -void QueryRedeemRequest::setExpiryTimeEnd(const std::string& expiryTimeEnd) -{ - expiryTimeEnd_ = expiryTimeEnd; - setParameter("ExpiryTimeEnd", expiryTimeEnd); +QueryRedeemRequest::~QueryRedeemRequest() {} + +std::string QueryRedeemRequest::getExpiryTimeEnd() const { + return expiryTimeEnd_; } -std::string QueryRedeemRequest::getExpiryTimeStart()const -{ - return expiryTimeStart_; +void QueryRedeemRequest::setExpiryTimeEnd(const std::string &expiryTimeEnd) { + expiryTimeEnd_ = expiryTimeEnd; + setParameter(std::string("ExpiryTimeEnd"), expiryTimeEnd); } -void QueryRedeemRequest::setExpiryTimeStart(const std::string& expiryTimeStart) -{ - expiryTimeStart_ = expiryTimeStart; - setParameter("ExpiryTimeStart", expiryTimeStart); +std::string QueryRedeemRequest::getExpiryTimeStart() const { + return expiryTimeStart_; } -int QueryRedeemRequest::getPageNum()const -{ - return pageNum_; +void QueryRedeemRequest::setExpiryTimeStart(const std::string &expiryTimeStart) { + expiryTimeStart_ = expiryTimeStart; + setParameter(std::string("ExpiryTimeStart"), expiryTimeStart); } -void QueryRedeemRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QueryRedeemRequest::getPageNum() const { + return pageNum_; } -bool QueryRedeemRequest::getEffectiveOrNot()const -{ - return effectiveOrNot_; +void QueryRedeemRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryRedeemRequest::setEffectiveOrNot(bool effectiveOrNot) -{ - effectiveOrNot_ = effectiveOrNot; - setParameter("EffectiveOrNot", effectiveOrNot ? "true" : "false"); +bool QueryRedeemRequest::getEffectiveOrNot() const { + return effectiveOrNot_; } -int QueryRedeemRequest::getPageSize()const -{ - return pageSize_; +void QueryRedeemRequest::setEffectiveOrNot(bool effectiveOrNot) { + effectiveOrNot_ = effectiveOrNot; + setParameter(std::string("EffectiveOrNot"), effectiveOrNot ? "true" : "false"); } -void QueryRedeemRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryRedeemRequest::getPageSize() const { + return pageSize_; +} + +void QueryRedeemRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/bssopenapi/src/model/QueryRedeemResult.cc b/bssopenapi/src/model/QueryRedeemResult.cc index c2665948c..c86c3d1bb 100644 --- a/bssopenapi/src/model/QueryRedeemResult.cc +++ b/bssopenapi/src/model/QueryRedeemResult.cc @@ -50,34 +50,34 @@ void QueryRedeemResult::parse(const std::string &payload) for (auto dataNodeRedeemRedeemItem : allRedeemNode) { Data::RedeemItem redeemItemObject; + if(!dataNodeRedeemRedeemItem["ExpiryTime"].isNull()) + redeemItemObject.expiryTime = dataNodeRedeemRedeemItem["ExpiryTime"].asString(); + if(!dataNodeRedeemRedeemItem["GrantedTime"].isNull()) + redeemItemObject.grantedTime = dataNodeRedeemRedeemItem["GrantedTime"].asString(); + if(!dataNodeRedeemRedeemItem["Status"].isNull()) + redeemItemObject.status = dataNodeRedeemRedeemItem["Status"].asString(); + if(!dataNodeRedeemRedeemItem["Specification"].isNull()) + redeemItemObject.specification = dataNodeRedeemRedeemItem["Specification"].asString(); + if(!dataNodeRedeemRedeemItem["NominalValue"].isNull()) + redeemItemObject.nominalValue = dataNodeRedeemRedeemItem["NominalValue"].asString(); + if(!dataNodeRedeemRedeemItem["EffectiveTime"].isNull()) + redeemItemObject.effectiveTime = dataNodeRedeemRedeemItem["EffectiveTime"].asString(); if(!dataNodeRedeemRedeemItem["RedeemId"].isNull()) redeemItemObject.redeemId = dataNodeRedeemRedeemItem["RedeemId"].asString(); if(!dataNodeRedeemRedeemItem["RedeemNo"].isNull()) redeemItemObject.redeemNo = dataNodeRedeemRedeemItem["RedeemNo"].asString(); - if(!dataNodeRedeemRedeemItem["Status"].isNull()) - redeemItemObject.status = dataNodeRedeemRedeemItem["Status"].asString(); - if(!dataNodeRedeemRedeemItem["GrantedTime"].isNull()) - redeemItemObject.grantedTime = dataNodeRedeemRedeemItem["GrantedTime"].asString(); - if(!dataNodeRedeemRedeemItem["EffectiveTime"].isNull()) - redeemItemObject.effectiveTime = dataNodeRedeemRedeemItem["EffectiveTime"].asString(); - if(!dataNodeRedeemRedeemItem["ExpiryTime"].isNull()) - redeemItemObject.expiryTime = dataNodeRedeemRedeemItem["ExpiryTime"].asString(); - if(!dataNodeRedeemRedeemItem["NominalValue"].isNull()) - redeemItemObject.nominalValue = dataNodeRedeemRedeemItem["NominalValue"].asString(); - if(!dataNodeRedeemRedeemItem["Balance"].isNull()) - redeemItemObject.balance = dataNodeRedeemRedeemItem["Balance"].asString(); if(!dataNodeRedeemRedeemItem["ApplicableProducts"].isNull()) redeemItemObject.applicableProducts = dataNodeRedeemRedeemItem["ApplicableProducts"].asString(); - if(!dataNodeRedeemRedeemItem["Specification"].isNull()) - redeemItemObject.specification = dataNodeRedeemRedeemItem["Specification"].asString(); + if(!dataNodeRedeemRedeemItem["Balance"].isNull()) + redeemItemObject.balance = dataNodeRedeemRedeemItem["Balance"].asString(); data_.redeem.push_back(redeemItemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryRelationListRequest.cc b/bssopenapi/src/model/QueryRelationListRequest.cc index bd1abf484..17366e712 100644 --- a/bssopenapi/src/model/QueryRelationListRequest.cc +++ b/bssopenapi/src/model/QueryRelationListRequest.cc @@ -1,75 +1,62 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::QueryRelationListRequest; - -QueryRelationListRequest::QueryRelationListRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryRelationList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryRelationListRequest::~QueryRelationListRequest() -{} - -std::vector QueryRelationListRequest::getStatusList()const -{ - return statusList_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryRelationListRequest; + +QueryRelationListRequest::QueryRelationListRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryRelationList") { + setMethod(HttpRequest::Method::Post); } -void QueryRelationListRequest::setStatusList(const std::vector& statusList) -{ - statusList_ = statusList; - for(int dep1 = 0; dep1!= statusList.size(); dep1++) { - setParameter("StatusList."+ std::to_string(dep1), statusList.at(dep1)); - } +QueryRelationListRequest::~QueryRelationListRequest() {} + +std::vector QueryRelationListRequest::getStatusList() const { + return statusList_; } -int QueryRelationListRequest::getPageNum()const -{ - return pageNum_; +void QueryRelationListRequest::setStatusList(const std::vector &statusList) { + statusList_ = statusList; } -void QueryRelationListRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QueryRelationListRequest::getPageNum() const { + return pageNum_; } -long QueryRelationListRequest::getUserId()const -{ - return userId_; +void QueryRelationListRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryRelationListRequest::setUserId(long userId) -{ - userId_ = userId; - setParameter("UserId", std::to_string(userId)); +long QueryRelationListRequest::getUserId() const { + return userId_; } -int QueryRelationListRequest::getPageSize()const -{ - return pageSize_; +void QueryRelationListRequest::setUserId(long userId) { + userId_ = userId; + setParameter(std::string("UserId"), std::to_string(userId)); } -void QueryRelationListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryRelationListRequest::getPageSize() const { + return pageSize_; +} + +void QueryRelationListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/bssopenapi/src/model/QueryRelationListResult.cc b/bssopenapi/src/model/QueryRelationListResult.cc index e2e628a18..8cc6c7bf4 100644 --- a/bssopenapi/src/model/QueryRelationListResult.cc +++ b/bssopenapi/src/model/QueryRelationListResult.cc @@ -50,34 +50,34 @@ void QueryRelationListResult::parse(const std::string &payload) for (auto dataNodeFinancialRelationInfoListFinancialRelationInfoListItem : allFinancialRelationInfoListNode) { Data::FinancialRelationInfoListItem financialRelationInfoListItemObject; - if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["RelationId"].isNull()) - financialRelationInfoListItemObject.relationId = std::stol(dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["RelationId"].asString()); - if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountType"].isNull()) - financialRelationInfoListItemObject.accountType = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountType"].asString(); - if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountId"].isNull()) - financialRelationInfoListItemObject.accountId = std::stol(dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountId"].asString()); - if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountName"].isNull()) - financialRelationInfoListItemObject.accountName = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountName"].asString(); - if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountNickName"].isNull()) - financialRelationInfoListItemObject.accountNickName = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountNickName"].asString(); - if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["RelationType"].isNull()) - financialRelationInfoListItemObject.relationType = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["RelationType"].asString(); - if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["State"].isNull()) - financialRelationInfoListItemObject.state = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["State"].asString(); - if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["SetupTime"].isNull()) - financialRelationInfoListItemObject.setupTime = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["SetupTime"].asString(); - if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["StartTime"].isNull()) - financialRelationInfoListItemObject.startTime = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["StartTime"].asString(); if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["EndTime"].isNull()) financialRelationInfoListItemObject.endTime = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["EndTime"].asString(); + if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["RelationType"].isNull()) + financialRelationInfoListItemObject.relationType = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["RelationType"].asString(); + if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountNickName"].isNull()) + financialRelationInfoListItemObject.accountNickName = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountNickName"].asString(); + if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["StartTime"].isNull()) + financialRelationInfoListItemObject.startTime = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["StartTime"].asString(); + if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["State"].isNull()) + financialRelationInfoListItemObject.state = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["State"].asString(); + if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountId"].isNull()) + financialRelationInfoListItemObject.accountId = std::stol(dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountId"].asString()); + if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["SetupTime"].isNull()) + financialRelationInfoListItemObject.setupTime = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["SetupTime"].asString(); + if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountType"].isNull()) + financialRelationInfoListItemObject.accountType = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountType"].asString(); + if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountName"].isNull()) + financialRelationInfoListItemObject.accountName = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountName"].asString(); + if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["RelationId"].isNull()) + financialRelationInfoListItemObject.relationId = std::stol(dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["RelationId"].asString()); data_.financialRelationInfoList.push_back(financialRelationInfoListItemObject); } if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryResellerAvailableQuotaRequest.cc b/bssopenapi/src/model/QueryResellerAvailableQuotaRequest.cc index 9f2c8b609..f7fb76a2b 100644 --- a/bssopenapi/src/model/QueryResellerAvailableQuotaRequest.cc +++ b/bssopenapi/src/model/QueryResellerAvailableQuotaRequest.cc @@ -1,51 +1,45 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QueryResellerAvailableQuotaRequest; - -QueryResellerAvailableQuotaRequest::QueryResellerAvailableQuotaRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryResellerAvailableQuota") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryResellerAvailableQuotaRequest::~QueryResellerAvailableQuotaRequest() -{} - -std::string QueryResellerAvailableQuotaRequest::getItemCodes()const -{ - return itemCodes_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryResellerAvailableQuotaRequest; + +QueryResellerAvailableQuotaRequest::QueryResellerAvailableQuotaRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryResellerAvailableQuota") { + setMethod(HttpRequest::Method::Post); } -void QueryResellerAvailableQuotaRequest::setItemCodes(const std::string& itemCodes) -{ - itemCodes_ = itemCodes; - setParameter("ItemCodes", itemCodes); +QueryResellerAvailableQuotaRequest::~QueryResellerAvailableQuotaRequest() {} + +std::string QueryResellerAvailableQuotaRequest::getItemCodes() const { + return itemCodes_; } -long QueryResellerAvailableQuotaRequest::getOwnerId()const -{ - return ownerId_; +void QueryResellerAvailableQuotaRequest::setItemCodes(const std::string &itemCodes) { + itemCodes_ = itemCodes; + setParameter(std::string("ItemCodes"), itemCodes); } -void QueryResellerAvailableQuotaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryResellerAvailableQuotaRequest::getOwnerId() const { + return ownerId_; +} + +void QueryResellerAvailableQuotaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/bssopenapi/src/model/QueryResellerAvailableQuotaResult.cc b/bssopenapi/src/model/QueryResellerAvailableQuotaResult.cc index f75dfd7ae..9032495b8 100644 --- a/bssopenapi/src/model/QueryResellerAvailableQuotaResult.cc +++ b/bssopenapi/src/model/QueryResellerAvailableQuotaResult.cc @@ -43,10 +43,10 @@ void QueryResellerAvailableQuotaResult::parse(const std::string &payload) 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(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryResourcePackageInstancesRequest.cc b/bssopenapi/src/model/QueryResourcePackageInstancesRequest.cc index 685a5a73c..9e326d21c 100644 --- a/bssopenapi/src/model/QueryResourcePackageInstancesRequest.cc +++ b/bssopenapi/src/model/QueryResourcePackageInstancesRequest.cc @@ -1,95 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::QueryResourcePackageInstancesRequest; - -QueryResourcePackageInstancesRequest::QueryResourcePackageInstancesRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryResourcePackageInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryResourcePackageInstancesRequest::~QueryResourcePackageInstancesRequest() -{} - -std::string QueryResourcePackageInstancesRequest::getExpiryTimeEnd()const -{ - return expiryTimeEnd_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryResourcePackageInstancesRequest; + +QueryResourcePackageInstancesRequest::QueryResourcePackageInstancesRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryResourcePackageInstances") { + setMethod(HttpRequest::Method::Post); } -void QueryResourcePackageInstancesRequest::setExpiryTimeEnd(const std::string& expiryTimeEnd) -{ - expiryTimeEnd_ = expiryTimeEnd; - setParameter("ExpiryTimeEnd", expiryTimeEnd); +QueryResourcePackageInstancesRequest::~QueryResourcePackageInstancesRequest() {} + +std::string QueryResourcePackageInstancesRequest::getExpiryTimeEnd() const { + return expiryTimeEnd_; } -std::string QueryResourcePackageInstancesRequest::getProductCode()const -{ - return productCode_; +void QueryResourcePackageInstancesRequest::setExpiryTimeEnd(const std::string &expiryTimeEnd) { + expiryTimeEnd_ = expiryTimeEnd; + setParameter(std::string("ExpiryTimeEnd"), expiryTimeEnd); } -void QueryResourcePackageInstancesRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +std::string QueryResourcePackageInstancesRequest::getProductCode() const { + return productCode_; } -long QueryResourcePackageInstancesRequest::getOwnerId()const -{ - return ownerId_; +void QueryResourcePackageInstancesRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void QueryResourcePackageInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryResourcePackageInstancesRequest::getOwnerId() const { + return ownerId_; } -std::string QueryResourcePackageInstancesRequest::getExpiryTimeStart()const -{ - return expiryTimeStart_; +void QueryResourcePackageInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryResourcePackageInstancesRequest::setExpiryTimeStart(const std::string& expiryTimeStart) -{ - expiryTimeStart_ = expiryTimeStart; - setParameter("ExpiryTimeStart", expiryTimeStart); +std::string QueryResourcePackageInstancesRequest::getExpiryTimeStart() const { + return expiryTimeStart_; } -int QueryResourcePackageInstancesRequest::getPageNum()const -{ - return pageNum_; +void QueryResourcePackageInstancesRequest::setExpiryTimeStart(const std::string &expiryTimeStart) { + expiryTimeStart_ = expiryTimeStart; + setParameter(std::string("ExpiryTimeStart"), expiryTimeStart); } -void QueryResourcePackageInstancesRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QueryResourcePackageInstancesRequest::getPageNum() const { + return pageNum_; } -int QueryResourcePackageInstancesRequest::getPageSize()const -{ - return pageSize_; +void QueryResourcePackageInstancesRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QueryResourcePackageInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +bool QueryResourcePackageInstancesRequest::getIncludePartner() const { + return includePartner_; +} + +void QueryResourcePackageInstancesRequest::setIncludePartner(bool includePartner) { + includePartner_ = includePartner; + setParameter(std::string("IncludePartner"), includePartner ? "true" : "false"); +} + +int QueryResourcePackageInstancesRequest::getPageSize() const { + return pageSize_; +} + +void QueryResourcePackageInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/bssopenapi/src/model/QueryResourcePackageInstancesResult.cc b/bssopenapi/src/model/QueryResourcePackageInstancesResult.cc index e96bd9771..74b50932b 100644 --- a/bssopenapi/src/model/QueryResourcePackageInstancesResult.cc +++ b/bssopenapi/src/model/QueryResourcePackageInstancesResult.cc @@ -40,42 +40,42 @@ void QueryResourcePackageInstancesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["HostId"].isNull()) - data_.hostId = dataNode["HostId"].asString(); if(!dataNode["PageNum"].isNull()) data_.pageNum = dataNode["PageNum"].asString(); if(!dataNode["PageSize"].isNull()) data_.pageSize = dataNode["PageSize"].asString(); if(!dataNode["TotalCount"].isNull()) data_.totalCount = dataNode["TotalCount"].asString(); + if(!dataNode["HostId"].isNull()) + data_.hostId = dataNode["HostId"].asString(); auto allInstancesNode = dataNode["Instances"]["Instance"]; for (auto dataNodeInstancesInstance : allInstancesNode) { Data::Instance instanceObject; + if(!dataNodeInstancesInstance["ExpiryTime"].isNull()) + instanceObject.expiryTime = dataNodeInstancesInstance["ExpiryTime"].asString(); + if(!dataNodeInstancesInstance["Status"].isNull()) + instanceObject.status = dataNodeInstancesInstance["Status"].asString(); + if(!dataNodeInstancesInstance["Remark"].isNull()) + instanceObject.remark = dataNodeInstancesInstance["Remark"].asString(); + if(!dataNodeInstancesInstance["RemainingAmountUnit"].isNull()) + instanceObject.remainingAmountUnit = dataNodeInstancesInstance["RemainingAmountUnit"].asString(); if(!dataNodeInstancesInstance["InstanceId"].isNull()) instanceObject.instanceId = dataNodeInstancesInstance["InstanceId"].asString(); + if(!dataNodeInstancesInstance["PackageType"].isNull()) + instanceObject.packageType = dataNodeInstancesInstance["PackageType"].asString(); + if(!dataNodeInstancesInstance["EffectiveTime"].isNull()) + instanceObject.effectiveTime = dataNodeInstancesInstance["EffectiveTime"].asString(); if(!dataNodeInstancesInstance["Region"].isNull()) instanceObject.region = dataNodeInstancesInstance["Region"].asString(); if(!dataNodeInstancesInstance["TotalAmount"].isNull()) instanceObject.totalAmount = dataNodeInstancesInstance["TotalAmount"].asString(); + if(!dataNodeInstancesInstance["DeductType"].isNull()) + instanceObject.deductType = dataNodeInstancesInstance["DeductType"].asString(); if(!dataNodeInstancesInstance["TotalAmountUnit"].isNull()) instanceObject.totalAmountUnit = dataNodeInstancesInstance["TotalAmountUnit"].asString(); if(!dataNodeInstancesInstance["RemainingAmount"].isNull()) instanceObject.remainingAmount = dataNodeInstancesInstance["RemainingAmount"].asString(); - if(!dataNodeInstancesInstance["RemainingAmountUnit"].isNull()) - instanceObject.remainingAmountUnit = dataNodeInstancesInstance["RemainingAmountUnit"].asString(); - if(!dataNodeInstancesInstance["EffectiveTime"].isNull()) - instanceObject.effectiveTime = dataNodeInstancesInstance["EffectiveTime"].asString(); - if(!dataNodeInstancesInstance["ExpiryTime"].isNull()) - instanceObject.expiryTime = dataNodeInstancesInstance["ExpiryTime"].asString(); - if(!dataNodeInstancesInstance["Remark"].isNull()) - instanceObject.remark = dataNodeInstancesInstance["Remark"].asString(); - if(!dataNodeInstancesInstance["PackageType"].isNull()) - instanceObject.packageType = dataNodeInstancesInstance["PackageType"].asString(); - if(!dataNodeInstancesInstance["Status"].isNull()) - instanceObject.status = dataNodeInstancesInstance["Status"].asString(); - if(!dataNodeInstancesInstance["DeductType"].isNull()) - instanceObject.deductType = dataNodeInstancesInstance["DeductType"].asString(); auto allApplicableProducts = value["ApplicableProducts"]["Product"]; for (auto value : allApplicableProducts) instanceObject.applicableProducts.push_back(value.asString()); @@ -87,12 +87,12 @@ void QueryResourcePackageInstancesResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Page"].isNull()) - page_ = std::stoi(value["Page"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["Total"].isNull()) total_ = std::stoi(value["Total"].asString()); + if(!value["Page"].isNull()) + page_ = std::stoi(value["Page"].asString()); } diff --git a/bssopenapi/src/model/QuerySavingsPlansDeductLogRequest.cc b/bssopenapi/src/model/QuerySavingsPlansDeductLogRequest.cc index 2bfb7e3d1..74d3af972 100644 --- a/bssopenapi/src/model/QuerySavingsPlansDeductLogRequest.cc +++ b/bssopenapi/src/model/QuerySavingsPlansDeductLogRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::QuerySavingsPlansDeductLogRequest; - -QuerySavingsPlansDeductLogRequest::QuerySavingsPlansDeductLogRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySavingsPlansDeductLog") -{ - setMethod(HttpRequest::Method::Post); -} - -QuerySavingsPlansDeductLogRequest::~QuerySavingsPlansDeductLogRequest() -{} - -std::string QuerySavingsPlansDeductLogRequest::getEndTime()const -{ - return endTime_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QuerySavingsPlansDeductLogRequest; + +QuerySavingsPlansDeductLogRequest::QuerySavingsPlansDeductLogRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySavingsPlansDeductLog") { + setMethod(HttpRequest::Method::Post); } -void QuerySavingsPlansDeductLogRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +QuerySavingsPlansDeductLogRequest::~QuerySavingsPlansDeductLogRequest() {} + +std::string QuerySavingsPlansDeductLogRequest::getEndTime() const { + return endTime_; } -std::string QuerySavingsPlansDeductLogRequest::getStartTime()const -{ - return startTime_; +void QuerySavingsPlansDeductLogRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void QuerySavingsPlansDeductLogRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string QuerySavingsPlansDeductLogRequest::getStartTime() const { + return startTime_; } -std::string QuerySavingsPlansDeductLogRequest::getLocale()const -{ - return locale_; +void QuerySavingsPlansDeductLogRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void QuerySavingsPlansDeductLogRequest::setLocale(const std::string& locale) -{ - locale_ = locale; - setParameter("Locale", locale); +std::string QuerySavingsPlansDeductLogRequest::getLocale() const { + return locale_; } -int QuerySavingsPlansDeductLogRequest::getPageNum()const -{ - return pageNum_; +void QuerySavingsPlansDeductLogRequest::setLocale(const std::string &locale) { + locale_ = locale; + setParameter(std::string("Locale"), locale); } -void QuerySavingsPlansDeductLogRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QuerySavingsPlansDeductLogRequest::getPageNum() const { + return pageNum_; } -std::string QuerySavingsPlansDeductLogRequest::getInstanceId()const -{ - return instanceId_; +void QuerySavingsPlansDeductLogRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QuerySavingsPlansDeductLogRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string QuerySavingsPlansDeductLogRequest::getInstanceId() const { + return instanceId_; } -int QuerySavingsPlansDeductLogRequest::getPageSize()const -{ - return pageSize_; +void QuerySavingsPlansDeductLogRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void QuerySavingsPlansDeductLogRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QuerySavingsPlansDeductLogRequest::getPageSize() const { + return pageSize_; } -std::string QuerySavingsPlansDeductLogRequest::getInstanceType()const -{ - return instanceType_; +void QuerySavingsPlansDeductLogRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void QuerySavingsPlansDeductLogRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string QuerySavingsPlansDeductLogRequest::getInstanceType() const { + return instanceType_; +} + +void QuerySavingsPlansDeductLogRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } diff --git a/bssopenapi/src/model/QuerySavingsPlansDeductLogResult.cc b/bssopenapi/src/model/QuerySavingsPlansDeductLogResult.cc index 36c9e49b2..17248b564 100644 --- a/bssopenapi/src/model/QuerySavingsPlansDeductLogResult.cc +++ b/bssopenapi/src/model/QuerySavingsPlansDeductLogResult.cc @@ -50,36 +50,36 @@ void QuerySavingsPlansDeductLogResult::parse(const std::string &payload) for (auto dataNodeItemsSavingsPlansDeductDetailResponse : allItemsNode) { Data::SavingsPlansDeductDetailResponse savingsPlansDeductDetailResponseObject; - if(!dataNodeItemsSavingsPlansDeductDetailResponse["InstanceId"].isNull()) - savingsPlansDeductDetailResponseObject.instanceId = dataNodeItemsSavingsPlansDeductDetailResponse["InstanceId"].asString(); - if(!dataNodeItemsSavingsPlansDeductDetailResponse["StartTime"].isNull()) - savingsPlansDeductDetailResponseObject.startTime = dataNodeItemsSavingsPlansDeductDetailResponse["StartTime"].asString(); if(!dataNodeItemsSavingsPlansDeductDetailResponse["EndTime"].isNull()) savingsPlansDeductDetailResponseObject.endTime = dataNodeItemsSavingsPlansDeductDetailResponse["EndTime"].asString(); + if(!dataNodeItemsSavingsPlansDeductDetailResponse["StartTime"].isNull()) + savingsPlansDeductDetailResponseObject.startTime = dataNodeItemsSavingsPlansDeductDetailResponse["StartTime"].asString(); if(!dataNodeItemsSavingsPlansDeductDetailResponse["SavingsType"].isNull()) savingsPlansDeductDetailResponseObject.savingsType = dataNodeItemsSavingsPlansDeductDetailResponse["SavingsType"].asString(); - if(!dataNodeItemsSavingsPlansDeductDetailResponse["BillModule"].isNull()) - savingsPlansDeductDetailResponseObject.billModule = dataNodeItemsSavingsPlansDeductDetailResponse["BillModule"].asString(); - if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductFee"].isNull()) - savingsPlansDeductDetailResponseObject.deductFee = dataNodeItemsSavingsPlansDeductDetailResponse["DeductFee"].asString(); - if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductRate"].isNull()) - savingsPlansDeductDetailResponseObject.deductRate = dataNodeItemsSavingsPlansDeductDetailResponse["DeductRate"].asString(); if(!dataNodeItemsSavingsPlansDeductDetailResponse["UserId"].isNull()) savingsPlansDeductDetailResponseObject.userId = std::stol(dataNodeItemsSavingsPlansDeductDetailResponse["UserId"].asString()); - if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductCommodity"].isNull()) - savingsPlansDeductDetailResponseObject.deductCommodity = dataNodeItemsSavingsPlansDeductDetailResponse["DeductCommodity"].asString(); - if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductInstanceId"].isNull()) - savingsPlansDeductDetailResponseObject.deductInstanceId = dataNodeItemsSavingsPlansDeductDetailResponse["DeductInstanceId"].asString(); if(!dataNodeItemsSavingsPlansDeductDetailResponse["DiscountRate"].isNull()) savingsPlansDeductDetailResponseObject.discountRate = dataNodeItemsSavingsPlansDeductDetailResponse["DiscountRate"].asString(); + if(!dataNodeItemsSavingsPlansDeductDetailResponse["BillModule"].isNull()) + savingsPlansDeductDetailResponseObject.billModule = dataNodeItemsSavingsPlansDeductDetailResponse["BillModule"].asString(); + if(!dataNodeItemsSavingsPlansDeductDetailResponse["InstanceId"].isNull()) + savingsPlansDeductDetailResponseObject.instanceId = dataNodeItemsSavingsPlansDeductDetailResponse["InstanceId"].asString(); + if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductInstanceId"].isNull()) + savingsPlansDeductDetailResponseObject.deductInstanceId = dataNodeItemsSavingsPlansDeductDetailResponse["DeductInstanceId"].asString(); + if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductCommodity"].isNull()) + savingsPlansDeductDetailResponseObject.deductCommodity = dataNodeItemsSavingsPlansDeductDetailResponse["DeductCommodity"].asString(); + if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductRate"].isNull()) + savingsPlansDeductDetailResponseObject.deductRate = dataNodeItemsSavingsPlansDeductDetailResponse["DeductRate"].asString(); + if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductFee"].isNull()) + savingsPlansDeductDetailResponseObject.deductFee = dataNodeItemsSavingsPlansDeductDetailResponse["DeductFee"].asString(); data_.items.push_back(savingsPlansDeductDetailResponseObject); } if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QuerySavingsPlansInstanceRequest.cc b/bssopenapi/src/model/QuerySavingsPlansInstanceRequest.cc index b438e843e..03f119b6e 100644 --- a/bssopenapi/src/model/QuerySavingsPlansInstanceRequest.cc +++ b/bssopenapi/src/model/QuerySavingsPlansInstanceRequest.cc @@ -1,111 +1,95 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QuerySavingsPlansInstanceRequest; - -QuerySavingsPlansInstanceRequest::QuerySavingsPlansInstanceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySavingsPlansInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -QuerySavingsPlansInstanceRequest::~QuerySavingsPlansInstanceRequest() -{} - -std::string QuerySavingsPlansInstanceRequest::getEndTime()const -{ - return endTime_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QuerySavingsPlansInstanceRequest; + +QuerySavingsPlansInstanceRequest::QuerySavingsPlansInstanceRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySavingsPlansInstance") { + setMethod(HttpRequest::Method::Post); } -void QuerySavingsPlansInstanceRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +QuerySavingsPlansInstanceRequest::~QuerySavingsPlansInstanceRequest() {} + +std::string QuerySavingsPlansInstanceRequest::getEndTime() const { + return endTime_; } -std::string QuerySavingsPlansInstanceRequest::getStartTime()const -{ - return startTime_; +void QuerySavingsPlansInstanceRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void QuerySavingsPlansInstanceRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string QuerySavingsPlansInstanceRequest::getStartTime() const { + return startTime_; } -std::string QuerySavingsPlansInstanceRequest::getLocale()const -{ - return locale_; +void QuerySavingsPlansInstanceRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void QuerySavingsPlansInstanceRequest::setLocale(const std::string& locale) -{ - locale_ = locale; - setParameter("Locale", locale); +std::string QuerySavingsPlansInstanceRequest::getLocale() const { + return locale_; } -int QuerySavingsPlansInstanceRequest::getPageNum()const -{ - return pageNum_; +void QuerySavingsPlansInstanceRequest::setLocale(const std::string &locale) { + locale_ = locale; + setParameter(std::string("Locale"), locale); } -void QuerySavingsPlansInstanceRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QuerySavingsPlansInstanceRequest::getPageNum() const { + return pageNum_; } -std::string QuerySavingsPlansInstanceRequest::getInstanceId()const -{ - return instanceId_; +void QuerySavingsPlansInstanceRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QuerySavingsPlansInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string QuerySavingsPlansInstanceRequest::getInstanceId() const { + return instanceId_; } -int QuerySavingsPlansInstanceRequest::getPageSize()const -{ - return pageSize_; +void QuerySavingsPlansInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void QuerySavingsPlansInstanceRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QuerySavingsPlansInstanceRequest::getPageSize() const { + return pageSize_; } -std::vector QuerySavingsPlansInstanceRequest::getTag()const -{ - return tag_; +void QuerySavingsPlansInstanceRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void QuerySavingsPlansInstanceRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector QuerySavingsPlansInstanceRequest::getTag() const { + return tag_; +} + +void QuerySavingsPlansInstanceRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } diff --git a/bssopenapi/src/model/QuerySavingsPlansInstanceResult.cc b/bssopenapi/src/model/QuerySavingsPlansInstanceResult.cc index 59284172f..1793f766b 100644 --- a/bssopenapi/src/model/QuerySavingsPlansInstanceResult.cc +++ b/bssopenapi/src/model/QuerySavingsPlansInstanceResult.cc @@ -50,34 +50,44 @@ void QuerySavingsPlansInstanceResult::parse(const std::string &payload) for (auto dataNodeItemsSavingsPlansDetailResponse : allItemsNode) { Data::SavingsPlansDetailResponse savingsPlansDetailResponseObject; - if(!dataNodeItemsSavingsPlansDetailResponse["InstanceId"].isNull()) - savingsPlansDetailResponseObject.instanceId = dataNodeItemsSavingsPlansDetailResponse["InstanceId"].asString(); + if(!dataNodeItemsSavingsPlansDetailResponse["Status"].isNull()) + savingsPlansDetailResponseObject.status = dataNodeItemsSavingsPlansDetailResponse["Status"].asString(); + if(!dataNodeItemsSavingsPlansDetailResponse["Cycle"].isNull()) + savingsPlansDetailResponseObject.cycle = dataNodeItemsSavingsPlansDetailResponse["Cycle"].asString(); + if(!dataNodeItemsSavingsPlansDetailResponse["StartTimestamp"].isNull()) + savingsPlansDetailResponseObject.startTimestamp = std::stol(dataNodeItemsSavingsPlansDetailResponse["StartTimestamp"].asString()); if(!dataNodeItemsSavingsPlansDetailResponse["SavingsType"].isNull()) savingsPlansDetailResponseObject.savingsType = dataNodeItemsSavingsPlansDetailResponse["SavingsType"].asString(); + if(!dataNodeItemsSavingsPlansDetailResponse["Utilization"].isNull()) + savingsPlansDetailResponseObject.utilization = dataNodeItemsSavingsPlansDetailResponse["Utilization"].asString(); + if(!dataNodeItemsSavingsPlansDetailResponse["PrepayFee"].isNull()) + savingsPlansDetailResponseObject.prepayFee = dataNodeItemsSavingsPlansDetailResponse["PrepayFee"].asString(); + if(!dataNodeItemsSavingsPlansDetailResponse["InstanceId"].isNull()) + savingsPlansDetailResponseObject.instanceId = dataNodeItemsSavingsPlansDetailResponse["InstanceId"].asString(); + if(!dataNodeItemsSavingsPlansDetailResponse["Currency"].isNull()) + savingsPlansDetailResponseObject.currency = dataNodeItemsSavingsPlansDetailResponse["Currency"].asString(); + if(!dataNodeItemsSavingsPlansDetailResponse["EndTimestamp"].isNull()) + savingsPlansDetailResponseObject.endTimestamp = std::stol(dataNodeItemsSavingsPlansDetailResponse["EndTimestamp"].asString()); + if(!dataNodeItemsSavingsPlansDetailResponse["EndTime"].isNull()) + savingsPlansDetailResponseObject.endTime = dataNodeItemsSavingsPlansDetailResponse["EndTime"].asString(); + if(!dataNodeItemsSavingsPlansDetailResponse["StartTime"].isNull()) + savingsPlansDetailResponseObject.startTime = dataNodeItemsSavingsPlansDetailResponse["StartTime"].asString(); + if(!dataNodeItemsSavingsPlansDetailResponse["AllocationStatus"].isNull()) + savingsPlansDetailResponseObject.allocationStatus = dataNodeItemsSavingsPlansDetailResponse["AllocationStatus"].asString(); if(!dataNodeItemsSavingsPlansDetailResponse["InstanceFamily"].isNull()) savingsPlansDetailResponseObject.instanceFamily = dataNodeItemsSavingsPlansDetailResponse["InstanceFamily"].asString(); if(!dataNodeItemsSavingsPlansDetailResponse["Region"].isNull()) savingsPlansDetailResponseObject.region = dataNodeItemsSavingsPlansDetailResponse["Region"].asString(); - if(!dataNodeItemsSavingsPlansDetailResponse["PoolValue"].isNull()) - savingsPlansDetailResponseObject.poolValue = dataNodeItemsSavingsPlansDetailResponse["PoolValue"].asString(); - if(!dataNodeItemsSavingsPlansDetailResponse["Currency"].isNull()) - savingsPlansDetailResponseObject.currency = dataNodeItemsSavingsPlansDetailResponse["Currency"].asString(); - if(!dataNodeItemsSavingsPlansDetailResponse["Status"].isNull()) - savingsPlansDetailResponseObject.status = dataNodeItemsSavingsPlansDetailResponse["Status"].asString(); - if(!dataNodeItemsSavingsPlansDetailResponse["StartTime"].isNull()) - savingsPlansDetailResponseObject.startTime = dataNodeItemsSavingsPlansDetailResponse["StartTime"].asString(); - if(!dataNodeItemsSavingsPlansDetailResponse["EndTime"].isNull()) - savingsPlansDetailResponseObject.endTime = dataNodeItemsSavingsPlansDetailResponse["EndTime"].asString(); - if(!dataNodeItemsSavingsPlansDetailResponse["PayMode"].isNull()) - savingsPlansDetailResponseObject.payMode = dataNodeItemsSavingsPlansDetailResponse["PayMode"].asString(); - if(!dataNodeItemsSavingsPlansDetailResponse["PrepayFee"].isNull()) - savingsPlansDetailResponseObject.prepayFee = dataNodeItemsSavingsPlansDetailResponse["PrepayFee"].asString(); + if(!dataNodeItemsSavingsPlansDetailResponse["LastBillTotalUsage"].isNull()) + savingsPlansDetailResponseObject.lastBillTotalUsage = dataNodeItemsSavingsPlansDetailResponse["LastBillTotalUsage"].asString(); + if(!dataNodeItemsSavingsPlansDetailResponse["LastBillUtilization"].isNull()) + savingsPlansDetailResponseObject.lastBillUtilization = dataNodeItemsSavingsPlansDetailResponse["LastBillUtilization"].asString(); if(!dataNodeItemsSavingsPlansDetailResponse["TotalSave"].isNull()) savingsPlansDetailResponseObject.totalSave = dataNodeItemsSavingsPlansDetailResponse["TotalSave"].asString(); - if(!dataNodeItemsSavingsPlansDetailResponse["Utilization"].isNull()) - savingsPlansDetailResponseObject.utilization = dataNodeItemsSavingsPlansDetailResponse["Utilization"].asString(); - if(!dataNodeItemsSavingsPlansDetailResponse["AllocationStatus"].isNull()) - savingsPlansDetailResponseObject.allocationStatus = dataNodeItemsSavingsPlansDetailResponse["AllocationStatus"].asString(); + if(!dataNodeItemsSavingsPlansDetailResponse["PoolValue"].isNull()) + savingsPlansDetailResponseObject.poolValue = dataNodeItemsSavingsPlansDetailResponse["PoolValue"].asString(); + if(!dataNodeItemsSavingsPlansDetailResponse["PayMode"].isNull()) + savingsPlansDetailResponseObject.payMode = dataNodeItemsSavingsPlansDetailResponse["PayMode"].asString(); auto allTagsNode = dataNodeItemsSavingsPlansDetailResponse["Tags"]["Tag"]; for (auto dataNodeItemsSavingsPlansDetailResponseTagsTag : allTagsNode) { @@ -92,10 +102,10 @@ void QuerySavingsPlansInstanceResult::parse(const std::string &payload) } if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QuerySettleBillRequest.cc b/bssopenapi/src/model/QuerySettleBillRequest.cc index 1db30891e..db275a1fa 100644 --- a/bssopenapi/src/model/QuerySettleBillRequest.cc +++ b/bssopenapi/src/model/QuerySettleBillRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::QuerySettleBillRequest; - -QuerySettleBillRequest::QuerySettleBillRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySettleBill") -{ - setMethod(HttpRequest::Method::Post); -} - -QuerySettleBillRequest::~QuerySettleBillRequest() -{} - -std::string QuerySettleBillRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QuerySettleBillRequest; + +QuerySettleBillRequest::QuerySettleBillRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySettleBill") { + setMethod(HttpRequest::Method::Post); } -void QuerySettleBillRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +QuerySettleBillRequest::~QuerySettleBillRequest() {} + +std::string QuerySettleBillRequest::getProductCode() const { + return productCode_; } -bool QuerySettleBillRequest::getIsHideZeroCharge()const -{ - return isHideZeroCharge_; +void QuerySettleBillRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void QuerySettleBillRequest::setIsHideZeroCharge(bool isHideZeroCharge) -{ - isHideZeroCharge_ = isHideZeroCharge; - setParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false"); +bool QuerySettleBillRequest::getIsHideZeroCharge() const { + return isHideZeroCharge_; } -bool QuerySettleBillRequest::getIsDisplayLocalCurrency()const -{ - return isDisplayLocalCurrency_; +void QuerySettleBillRequest::setIsHideZeroCharge(bool isHideZeroCharge) { + isHideZeroCharge_ = isHideZeroCharge; + setParameter(std::string("IsHideZeroCharge"), isHideZeroCharge ? "true" : "false"); } -void QuerySettleBillRequest::setIsDisplayLocalCurrency(bool isDisplayLocalCurrency) -{ - isDisplayLocalCurrency_ = isDisplayLocalCurrency; - setParameter("IsDisplayLocalCurrency", isDisplayLocalCurrency ? "true" : "false"); +bool QuerySettleBillRequest::getIsDisplayLocalCurrency() const { + return isDisplayLocalCurrency_; } -std::string QuerySettleBillRequest::getSubscriptionType()const -{ - return subscriptionType_; +void QuerySettleBillRequest::setIsDisplayLocalCurrency(bool isDisplayLocalCurrency) { + isDisplayLocalCurrency_ = isDisplayLocalCurrency; + setParameter(std::string("IsDisplayLocalCurrency"), isDisplayLocalCurrency ? "true" : "false"); } -void QuerySettleBillRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string QuerySettleBillRequest::getSubscriptionType() const { + return subscriptionType_; } -std::string QuerySettleBillRequest::getBillingCycle()const -{ - return billingCycle_; +void QuerySettleBillRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void QuerySettleBillRequest::setBillingCycle(const std::string& billingCycle) -{ - billingCycle_ = billingCycle; - setParameter("BillingCycle", billingCycle); +std::string QuerySettleBillRequest::getBillingCycle() const { + return billingCycle_; } -std::string QuerySettleBillRequest::getType()const -{ - return type_; +void QuerySettleBillRequest::setBillingCycle(const std::string &billingCycle) { + billingCycle_ = billingCycle; + setParameter(std::string("BillingCycle"), billingCycle); } -void QuerySettleBillRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string QuerySettleBillRequest::getType() const { + return type_; } -long QuerySettleBillRequest::getOwnerId()const -{ - return ownerId_; +void QuerySettleBillRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void QuerySettleBillRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QuerySettleBillRequest::getOwnerId() const { + return ownerId_; } -long QuerySettleBillRequest::getBillOwnerId()const -{ - return billOwnerId_; +void QuerySettleBillRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QuerySettleBillRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long QuerySettleBillRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string QuerySettleBillRequest::getProductType()const -{ - return productType_; +void QuerySettleBillRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void QuerySettleBillRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string QuerySettleBillRequest::getProductType() const { + return productType_; } -std::string QuerySettleBillRequest::getRecordID()const -{ - return recordID_; +void QuerySettleBillRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void QuerySettleBillRequest::setRecordID(const std::string& recordID) -{ - recordID_ = recordID; - setParameter("RecordID", recordID); +std::string QuerySettleBillRequest::getRecordID() const { + return recordID_; } -std::string QuerySettleBillRequest::getNextToken()const -{ - return nextToken_; +void QuerySettleBillRequest::setRecordID(const std::string &recordID) { + recordID_ = recordID; + setParameter(std::string("RecordID"), recordID); } -void QuerySettleBillRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string QuerySettleBillRequest::getNextToken() const { + return nextToken_; } -int QuerySettleBillRequest::getMaxResults()const -{ - return maxResults_; +void QuerySettleBillRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void QuerySettleBillRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int QuerySettleBillRequest::getMaxResults() const { + return maxResults_; +} + +void QuerySettleBillRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/bssopenapi/src/model/QuerySettleBillResult.cc b/bssopenapi/src/model/QuerySettleBillResult.cc index 88f9e24e4..376787158 100644 --- a/bssopenapi/src/model/QuerySettleBillResult.cc +++ b/bssopenapi/src/model/QuerySettleBillResult.cc @@ -40,96 +40,100 @@ void QuerySettleBillResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["BillingCycle"].isNull()) - data_.billingCycle = dataNode["BillingCycle"].asString(); - if(!dataNode["AccountID"].isNull()) - data_.accountID = dataNode["AccountID"].asString(); - if(!dataNode["AccountName"].isNull()) - data_.accountName = dataNode["AccountName"].asString(); if(!dataNode["NextToken"].isNull()) data_.nextToken = dataNode["NextToken"].asString(); + if(!dataNode["BillingCycle"].isNull()) + data_.billingCycle = dataNode["BillingCycle"].asString(); if(!dataNode["MaxResults"].isNull()) data_.maxResults = std::stoi(dataNode["MaxResults"].asString()); + if(!dataNode["AccountID"].isNull()) + data_.accountID = dataNode["AccountID"].asString(); if(!dataNode["TotalCount"].isNull()) data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + if(!dataNode["AccountName"].isNull()) + data_.accountName = dataNode["AccountName"].asString(); auto allItemsNode = dataNode["Items"]["Item"]; for (auto dataNodeItemsItem : allItemsNode) { Data::Item itemObject; - if(!dataNodeItemsItem["RecordID"].isNull()) - itemObject.recordID = dataNodeItemsItem["RecordID"].asString(); - if(!dataNodeItemsItem["Item"].isNull()) - itemObject.item = dataNodeItemsItem["Item"].asString(); - if(!dataNodeItemsItem["OwnerID"].isNull()) - itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); - if(!dataNodeItemsItem["UsageStartTime"].isNull()) - itemObject.usageStartTime = dataNodeItemsItem["UsageStartTime"].asString(); - if(!dataNodeItemsItem["UsageEndTime"].isNull()) - itemObject.usageEndTime = dataNodeItemsItem["UsageEndTime"].asString(); - if(!dataNodeItemsItem["PaymentTime"].isNull()) - itemObject.paymentTime = dataNodeItemsItem["PaymentTime"].asString(); - if(!dataNodeItemsItem["ProductCode"].isNull()) - itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); - if(!dataNodeItemsItem["ProductType"].isNull()) - itemObject.productType = dataNodeItemsItem["ProductType"].asString(); - if(!dataNodeItemsItem["SubscriptionType"].isNull()) - itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); - if(!dataNodeItemsItem["ProductName"].isNull()) - itemObject.productName = dataNodeItemsItem["ProductName"].asString(); - if(!dataNodeItemsItem["ProductDetail"].isNull()) - itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString(); - if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) - itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); - if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) - itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); - if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) - itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); - if(!dataNodeItemsItem["PretaxAmount"].isNull()) - itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); - if(!dataNodeItemsItem["Currency"].isNull()) - itemObject.currency = dataNodeItemsItem["Currency"].asString(); - if(!dataNodeItemsItem["PretaxAmountLocal"].isNull()) - itemObject.pretaxAmountLocal = std::stof(dataNodeItemsItem["PretaxAmountLocal"].asString()); - if(!dataNodeItemsItem["Tax"].isNull()) - itemObject.tax = std::stof(dataNodeItemsItem["Tax"].asString()); - if(!dataNodeItemsItem["PaymentAmount"].isNull()) - itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); - if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) - itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); - if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) - itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); - if(!dataNodeItemsItem["OutstandingAmount"].isNull()) - itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); - if(!dataNodeItemsItem["AfterTaxAmount"].isNull()) - itemObject.afterTaxAmount = std::stof(dataNodeItemsItem["AfterTaxAmount"].asString()); if(!dataNodeItemsItem["Status"].isNull()) itemObject.status = dataNodeItemsItem["Status"].asString(); - if(!dataNodeItemsItem["PaymentCurrency"].isNull()) - itemObject.paymentCurrency = dataNodeItemsItem["PaymentCurrency"].asString(); - if(!dataNodeItemsItem["PaymentTransactionID"].isNull()) - itemObject.paymentTransactionID = dataNodeItemsItem["PaymentTransactionID"].asString(); if(!dataNodeItemsItem["RoundDownDiscount"].isNull()) itemObject.roundDownDiscount = dataNodeItemsItem["RoundDownDiscount"].asString(); - if(!dataNodeItemsItem["SubOrderId"].isNull()) - itemObject.subOrderId = dataNodeItemsItem["SubOrderId"].asString(); - if(!dataNodeItemsItem["PipCode"].isNull()) - itemObject.pipCode = dataNodeItemsItem["PipCode"].asString(); - if(!dataNodeItemsItem["CommodityCode"].isNull()) - itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString(); - if(!dataNodeItemsItem["BillAccountID"].isNull()) - itemObject.billAccountID = dataNodeItemsItem["BillAccountID"].asString(); + if(!dataNodeItemsItem["Item"].isNull()) + itemObject.item = dataNodeItemsItem["Item"].asString(); + if(!dataNodeItemsItem["Currency"].isNull()) + itemObject.currency = dataNodeItemsItem["Currency"].asString(); if(!dataNodeItemsItem["BillAccountName"].isNull()) itemObject.billAccountName = dataNodeItemsItem["BillAccountName"].asString(); + if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) + itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); + if(!dataNodeItemsItem["SubscriptionType"].isNull()) + itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); + if(!dataNodeItemsItem["UsageStartTime"].isNull()) + itemObject.usageStartTime = dataNodeItemsItem["UsageStartTime"].asString(); if(!dataNodeItemsItem["BizType"].isNull()) itemObject.bizType = dataNodeItemsItem["BizType"].asString(); + if(!dataNodeItemsItem["UsageEndTime"].isNull()) + itemObject.usageEndTime = dataNodeItemsItem["UsageEndTime"].asString(); + if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) + itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); + if(!dataNodeItemsItem["SubOrderId"].isNull()) + itemObject.subOrderId = dataNodeItemsItem["SubOrderId"].asString(); + if(!dataNodeItemsItem["AfterTaxAmount"].isNull()) + itemObject.afterTaxAmount = std::stof(dataNodeItemsItem["AfterTaxAmount"].asString()); + if(!dataNodeItemsItem["OutstandingAmount"].isNull()) + itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); + if(!dataNodeItemsItem["PaymentTime"].isNull()) + itemObject.paymentTime = dataNodeItemsItem["PaymentTime"].asString(); + if(!dataNodeItemsItem["Tax"].isNull()) + itemObject.tax = std::stof(dataNodeItemsItem["Tax"].asString()); + if(!dataNodeItemsItem["PretaxAmountLocal"].isNull()) + itemObject.pretaxAmountLocal = std::stof(dataNodeItemsItem["PretaxAmountLocal"].asString()); + if(!dataNodeItemsItem["PipCode"].isNull()) + itemObject.pipCode = dataNodeItemsItem["PipCode"].asString(); + if(!dataNodeItemsItem["PaymentTransactionID"].isNull()) + itemObject.paymentTransactionID = dataNodeItemsItem["PaymentTransactionID"].asString(); + if(!dataNodeItemsItem["PretaxAmount"].isNull()) + itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); + if(!dataNodeItemsItem["CommodityCode"].isNull()) + itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString(); + if(!dataNodeItemsItem["ProductName"].isNull()) + itemObject.productName = dataNodeItemsItem["ProductName"].asString(); + if(!dataNodeItemsItem["RecordID"].isNull()) + itemObject.recordID = dataNodeItemsItem["RecordID"].asString(); + if(!dataNodeItemsItem["AdjustAmount"].isNull()) + itemObject.adjustAmount = std::stof(dataNodeItemsItem["AdjustAmount"].asString()); + if(!dataNodeItemsItem["ProductDetail"].isNull()) + itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString(); + if(!dataNodeItemsItem["PaymentCurrency"].isNull()) + itemObject.paymentCurrency = dataNodeItemsItem["PaymentCurrency"].asString(); + if(!dataNodeItemsItem["OwnerID"].isNull()) + itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); + if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) + itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); + if(!dataNodeItemsItem["BillAccountID"].isNull()) + itemObject.billAccountID = dataNodeItemsItem["BillAccountID"].asString(); + if(!dataNodeItemsItem["PaymentAmount"].isNull()) + itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); + if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) + itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); + if(!dataNodeItemsItem["ProductType"].isNull()) + itemObject.productType = dataNodeItemsItem["ProductType"].asString(); + if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) + itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); + if(!dataNodeItemsItem["CashAmount"].isNull()) + itemObject.cashAmount = std::stof(dataNodeItemsItem["CashAmount"].asString()); + if(!dataNodeItemsItem["ProductCode"].isNull()) + itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QuerySettlementBillRequest.cc b/bssopenapi/src/model/QuerySettlementBillRequest.cc index f75e0d9d8..ef20b3313 100644 --- a/bssopenapi/src/model/QuerySettlementBillRequest.cc +++ b/bssopenapi/src/model/QuerySettlementBillRequest.cc @@ -1,150 +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 - -using AlibabaCloud::BssOpenApi::Model::QuerySettlementBillRequest; - -QuerySettlementBillRequest::QuerySettlementBillRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySettlementBill") -{ - setMethod(HttpRequest::Method::Post); -} - -QuerySettlementBillRequest::~QuerySettlementBillRequest() -{} - -std::string QuerySettlementBillRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QuerySettlementBillRequest; + +QuerySettlementBillRequest::QuerySettlementBillRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySettlementBill") { + setMethod(HttpRequest::Method::Post); } -void QuerySettlementBillRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +QuerySettlementBillRequest::~QuerySettlementBillRequest() {} + +std::string QuerySettlementBillRequest::getProductCode() const { + return productCode_; } -bool QuerySettlementBillRequest::getIsHideZeroCharge()const -{ - return isHideZeroCharge_; +void QuerySettlementBillRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void QuerySettlementBillRequest::setIsHideZeroCharge(bool isHideZeroCharge) -{ - isHideZeroCharge_ = isHideZeroCharge; - setParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false"); +bool QuerySettlementBillRequest::getIsHideZeroCharge() const { + return isHideZeroCharge_; } -std::string QuerySettlementBillRequest::getSubscriptionType()const -{ - return subscriptionType_; +void QuerySettlementBillRequest::setIsHideZeroCharge(bool isHideZeroCharge) { + isHideZeroCharge_ = isHideZeroCharge; + setParameter(std::string("IsHideZeroCharge"), isHideZeroCharge ? "true" : "false"); } -void QuerySettlementBillRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string QuerySettlementBillRequest::getSubscriptionType() const { + return subscriptionType_; } -std::string QuerySettlementBillRequest::getEndTime()const -{ - return endTime_; +void QuerySettlementBillRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void QuerySettlementBillRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string QuerySettlementBillRequest::getEndTime() const { + return endTime_; } -std::string QuerySettlementBillRequest::getBillingCycle()const -{ - return billingCycle_; +void QuerySettlementBillRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void QuerySettlementBillRequest::setBillingCycle(const std::string& billingCycle) -{ - billingCycle_ = billingCycle; - setParameter("BillingCycle", billingCycle); +std::string QuerySettlementBillRequest::getBillingCycle() const { + return billingCycle_; } -std::string QuerySettlementBillRequest::getStartTime()const -{ - return startTime_; +void QuerySettlementBillRequest::setBillingCycle(const std::string &billingCycle) { + billingCycle_ = billingCycle; + setParameter(std::string("BillingCycle"), billingCycle); } -void QuerySettlementBillRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string QuerySettlementBillRequest::getStartTime() const { + return startTime_; } -long QuerySettlementBillRequest::getOwnerId()const -{ - return ownerId_; +void QuerySettlementBillRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void QuerySettlementBillRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QuerySettlementBillRequest::getOwnerId() const { + return ownerId_; } -int QuerySettlementBillRequest::getPageNum()const -{ - return pageNum_; +void QuerySettlementBillRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QuerySettlementBillRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QuerySettlementBillRequest::getPageNum() const { + return pageNum_; } -std::string QuerySettlementBillRequest::getType()const -{ - return type_; +void QuerySettlementBillRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QuerySettlementBillRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string QuerySettlementBillRequest::getType() const { + return type_; } -std::string QuerySettlementBillRequest::getProductType()const -{ - return productType_; +void QuerySettlementBillRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void QuerySettlementBillRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string QuerySettlementBillRequest::getProductType() const { + return productType_; } -int QuerySettlementBillRequest::getPageSize()const -{ - return pageSize_; +void QuerySettlementBillRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void QuerySettlementBillRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QuerySettlementBillRequest::getPageSize() const { + return pageSize_; +} + +void QuerySettlementBillRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/bssopenapi/src/model/QuerySettlementBillResult.cc b/bssopenapi/src/model/QuerySettlementBillResult.cc index 0322ff9a4..3948e069b 100644 --- a/bssopenapi/src/model/QuerySettlementBillResult.cc +++ b/bssopenapi/src/model/QuerySettlementBillResult.cc @@ -42,110 +42,110 @@ void QuerySettlementBillResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["PageNum"].isNull()) data_.pageNum = std::stoi(dataNode["PageNum"].asString()); + if(!dataNode["BillingCycle"].isNull()) + data_.billingCycle = dataNode["BillingCycle"].asString(); if(!dataNode["PageSize"].isNull()) data_.pageSize = std::stoi(dataNode["PageSize"].asString()); if(!dataNode["TotalCount"].isNull()) data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - if(!dataNode["BillingCycle"].isNull()) - data_.billingCycle = dataNode["BillingCycle"].asString(); auto allItemsNode = dataNode["Items"]["Item"]; for (auto dataNodeItemsItem : allItemsNode) { Data::Item itemObject; - if(!dataNodeItemsItem["RecordID"].isNull()) - itemObject.recordID = dataNodeItemsItem["RecordID"].asString(); - if(!dataNodeItemsItem["Item"].isNull()) - itemObject.item = dataNodeItemsItem["Item"].asString(); - if(!dataNodeItemsItem["PayerAccount"].isNull()) - itemObject.payerAccount = dataNodeItemsItem["PayerAccount"].asString(); - if(!dataNodeItemsItem["OwnerID"].isNull()) - itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); + if(!dataNodeItemsItem["Status"].isNull()) + itemObject.status = dataNodeItemsItem["Status"].asString(); + if(!dataNodeItemsItem["InvoiceNo"].isNull()) + itemObject.invoiceNo = dataNodeItemsItem["InvoiceNo"].asString(); + if(!dataNodeItemsItem["BillID"].isNull()) + itemObject.billID = dataNodeItemsItem["BillID"].asString(); if(!dataNodeItemsItem["CreateTime"].isNull()) itemObject.createTime = dataNodeItemsItem["CreateTime"].asString(); + if(!dataNodeItemsItem["Item"].isNull()) + itemObject.item = dataNodeItemsItem["Item"].asString(); + if(!dataNodeItemsItem["Seller"].isNull()) + itemObject.seller = dataNodeItemsItem["Seller"].asString(); + if(!dataNodeItemsItem["Currency"].isNull()) + itemObject.currency = dataNodeItemsItem["Currency"].asString(); + if(!dataNodeItemsItem["ChargeDiscount"].isNull()) + itemObject.chargeDiscount = std::stof(dataNodeItemsItem["ChargeDiscount"].asString()); + if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) + itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); + if(!dataNodeItemsItem["Config"].isNull()) + itemObject.config = dataNodeItemsItem["Config"].asString(); + if(!dataNodeItemsItem["SubscriptionType"].isNull()) + itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); if(!dataNodeItemsItem["UsageStartTime"].isNull()) itemObject.usageStartTime = dataNodeItemsItem["UsageStartTime"].asString(); if(!dataNodeItemsItem["UsageEndTime"].isNull()) itemObject.usageEndTime = dataNodeItemsItem["UsageEndTime"].asString(); - if(!dataNodeItemsItem["SuborderID"].isNull()) - itemObject.suborderID = dataNodeItemsItem["SuborderID"].asString(); - if(!dataNodeItemsItem["OrderID"].isNull()) - itemObject.orderID = dataNodeItemsItem["OrderID"].asString(); - if(!dataNodeItemsItem["OrderType"].isNull()) - itemObject.orderType = dataNodeItemsItem["OrderType"].asString(); - if(!dataNodeItemsItem["LinkedCustomerOrderID"].isNull()) - itemObject.linkedCustomerOrderID = dataNodeItemsItem["LinkedCustomerOrderID"].asString(); - if(!dataNodeItemsItem["OriginalOrderID"].isNull()) - itemObject.originalOrderID = dataNodeItemsItem["OriginalOrderID"].asString(); + if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) + itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); + if(!dataNodeItemsItem["Region"].isNull()) + itemObject.region = dataNodeItemsItem["Region"].asString(); + if(!dataNodeItemsItem["OutstandingAmount"].isNull()) + itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); + if(!dataNodeItemsItem["AfterTaxAmount"].isNull()) + itemObject.afterTaxAmount = std::stof(dataNodeItemsItem["AfterTaxAmount"].asString()); if(!dataNodeItemsItem["PaymentTime"].isNull()) itemObject.paymentTime = dataNodeItemsItem["PaymentTime"].asString(); if(!dataNodeItemsItem["SolutionID"].isNull()) itemObject.solutionID = dataNodeItemsItem["SolutionID"].asString(); - if(!dataNodeItemsItem["SolutionName"].isNull()) - itemObject.solutionName = dataNodeItemsItem["SolutionName"].asString(); - if(!dataNodeItemsItem["BillID"].isNull()) - itemObject.billID = dataNodeItemsItem["BillID"].asString(); - if(!dataNodeItemsItem["ProductCode"].isNull()) - itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); - if(!dataNodeItemsItem["ProductType"].isNull()) - itemObject.productType = dataNodeItemsItem["ProductType"].asString(); - if(!dataNodeItemsItem["SubscriptionType"].isNull()) - itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); - if(!dataNodeItemsItem["Region"].isNull()) - itemObject.region = dataNodeItemsItem["Region"].asString(); - if(!dataNodeItemsItem["Config"].isNull()) - itemObject.config = dataNodeItemsItem["Config"].asString(); - if(!dataNodeItemsItem["Quantity"].isNull()) - itemObject.quantity = dataNodeItemsItem["Quantity"].asString(); - if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) - itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); - if(!dataNodeItemsItem["ChargeDiscount"].isNull()) - itemObject.chargeDiscount = std::stof(dataNodeItemsItem["ChargeDiscount"].asString()); - if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) - itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); - if(!dataNodeItemsItem["AccountDiscount"].isNull()) - itemObject.accountDiscount = std::stof(dataNodeItemsItem["AccountDiscount"].asString()); - if(!dataNodeItemsItem["Promotion"].isNull()) - itemObject.promotion = dataNodeItemsItem["Promotion"].asString(); - if(!dataNodeItemsItem["PretaxAmount"].isNull()) - itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); - if(!dataNodeItemsItem["Currency"].isNull()) - itemObject.currency = dataNodeItemsItem["Currency"].asString(); - if(!dataNodeItemsItem["PretaxAmountLocal"].isNull()) - itemObject.pretaxAmountLocal = std::stof(dataNodeItemsItem["PretaxAmountLocal"].asString()); - if(!dataNodeItemsItem["PreviousBillingCycleBalance"].isNull()) - itemObject.previousBillingCycleBalance = std::stof(dataNodeItemsItem["PreviousBillingCycleBalance"].asString()); - if(!dataNodeItemsItem["Tax"].isNull()) - itemObject.tax = std::stof(dataNodeItemsItem["Tax"].asString()); - if(!dataNodeItemsItem["AfterTaxAmount"].isNull()) - itemObject.afterTaxAmount = std::stof(dataNodeItemsItem["AfterTaxAmount"].asString()); - if(!dataNodeItemsItem["Status"].isNull()) - itemObject.status = dataNodeItemsItem["Status"].asString(); + if(!dataNodeItemsItem["OrderType"].isNull()) + itemObject.orderType = dataNodeItemsItem["OrderType"].asString(); if(!dataNodeItemsItem["ClearedTime"].isNull()) itemObject.clearedTime = dataNodeItemsItem["ClearedTime"].asString(); - if(!dataNodeItemsItem["OutstandingAmount"].isNull()) - itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); - if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) - itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); - if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) - itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); + if(!dataNodeItemsItem["Quantity"].isNull()) + itemObject.quantity = dataNodeItemsItem["Quantity"].asString(); + if(!dataNodeItemsItem["Tax"].isNull()) + itemObject.tax = std::stof(dataNodeItemsItem["Tax"].asString()); + if(!dataNodeItemsItem["PretaxAmountLocal"].isNull()) + itemObject.pretaxAmountLocal = std::stof(dataNodeItemsItem["PretaxAmountLocal"].asString()); + if(!dataNodeItemsItem["PretaxAmount"].isNull()) + itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); + if(!dataNodeItemsItem["LinkedCustomerOrderID"].isNull()) + itemObject.linkedCustomerOrderID = dataNodeItemsItem["LinkedCustomerOrderID"].asString(); + if(!dataNodeItemsItem["AccountDiscount"].isNull()) + itemObject.accountDiscount = std::stof(dataNodeItemsItem["AccountDiscount"].asString()); + if(!dataNodeItemsItem["RecordID"].isNull()) + itemObject.recordID = dataNodeItemsItem["RecordID"].asString(); + if(!dataNodeItemsItem["PayerAccount"].isNull()) + itemObject.payerAccount = dataNodeItemsItem["PayerAccount"].asString(); + if(!dataNodeItemsItem["Promotion"].isNull()) + itemObject.promotion = dataNodeItemsItem["Promotion"].asString(); + if(!dataNodeItemsItem["OriginalOrderID"].isNull()) + itemObject.originalOrderID = dataNodeItemsItem["OriginalOrderID"].asString(); + if(!dataNodeItemsItem["PreviousBillingCycleBalance"].isNull()) + itemObject.previousBillingCycleBalance = std::stof(dataNodeItemsItem["PreviousBillingCycleBalance"].asString()); if(!dataNodeItemsItem["MybankPaymentAmount"].isNull()) itemObject.mybankPaymentAmount = std::stof(dataNodeItemsItem["MybankPaymentAmount"].asString()); - if(!dataNodeItemsItem["PaymentAmount"].isNull()) - itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); if(!dataNodeItemsItem["PaymentCurrency"].isNull()) itemObject.paymentCurrency = dataNodeItemsItem["PaymentCurrency"].asString(); - if(!dataNodeItemsItem["Seller"].isNull()) - itemObject.seller = dataNodeItemsItem["Seller"].asString(); - if(!dataNodeItemsItem["InvoiceNo"].isNull()) - itemObject.invoiceNo = dataNodeItemsItem["InvoiceNo"].asString(); + if(!dataNodeItemsItem["OrderID"].isNull()) + itemObject.orderID = dataNodeItemsItem["OrderID"].asString(); + if(!dataNodeItemsItem["OwnerID"].isNull()) + itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); + if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) + itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); + if(!dataNodeItemsItem["PaymentAmount"].isNull()) + itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); + if(!dataNodeItemsItem["ProductType"].isNull()) + itemObject.productType = dataNodeItemsItem["ProductType"].asString(); + if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) + itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); + if(!dataNodeItemsItem["SuborderID"].isNull()) + itemObject.suborderID = dataNodeItemsItem["SuborderID"].asString(); + if(!dataNodeItemsItem["SolutionName"].isNull()) + itemObject.solutionName = dataNodeItemsItem["SolutionName"].asString(); + if(!dataNodeItemsItem["ProductCode"].isNull()) + itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QuerySplitItemBillRequest.cc b/bssopenapi/src/model/QuerySplitItemBillRequest.cc index 790ee41cc..8e1078b7d 100644 --- a/bssopenapi/src/model/QuerySplitItemBillRequest.cc +++ b/bssopenapi/src/model/QuerySplitItemBillRequest.cc @@ -1,117 +1,99 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::QuerySplitItemBillRequest; - -QuerySplitItemBillRequest::QuerySplitItemBillRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySplitItemBill") -{ - setMethod(HttpRequest::Method::Post); -} - -QuerySplitItemBillRequest::~QuerySplitItemBillRequest() -{} - -std::string QuerySplitItemBillRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QuerySplitItemBillRequest; + +QuerySplitItemBillRequest::QuerySplitItemBillRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySplitItemBill") { + setMethod(HttpRequest::Method::Post); } -void QuerySplitItemBillRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +QuerySplitItemBillRequest::~QuerySplitItemBillRequest() {} + +std::string QuerySplitItemBillRequest::getProductCode() const { + return productCode_; } -std::string QuerySplitItemBillRequest::getSubscriptionType()const -{ - return subscriptionType_; +void QuerySplitItemBillRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void QuerySplitItemBillRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string QuerySplitItemBillRequest::getSubscriptionType() const { + return subscriptionType_; } -std::string QuerySplitItemBillRequest::getBillingCycle()const -{ - return billingCycle_; +void QuerySplitItemBillRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void QuerySplitItemBillRequest::setBillingCycle(const std::string& billingCycle) -{ - billingCycle_ = billingCycle; - setParameter("BillingCycle", billingCycle); +std::string QuerySplitItemBillRequest::getBillingCycle() const { + return billingCycle_; } -long QuerySplitItemBillRequest::getOwnerId()const -{ - return ownerId_; +void QuerySplitItemBillRequest::setBillingCycle(const std::string &billingCycle) { + billingCycle_ = billingCycle; + setParameter(std::string("BillingCycle"), billingCycle); } -void QuerySplitItemBillRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QuerySplitItemBillRequest::getOwnerId() const { + return ownerId_; } -int QuerySplitItemBillRequest::getPageNum()const -{ - return pageNum_; +void QuerySplitItemBillRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QuerySplitItemBillRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int QuerySplitItemBillRequest::getPageNum() const { + return pageNum_; } -long QuerySplitItemBillRequest::getBillOwnerId()const -{ - return billOwnerId_; +void QuerySplitItemBillRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void QuerySplitItemBillRequest::setBillOwnerId(long billOwnerId) -{ - billOwnerId_ = billOwnerId; - setParameter("BillOwnerId", std::to_string(billOwnerId)); +long QuerySplitItemBillRequest::getBillOwnerId() const { + return billOwnerId_; } -std::string QuerySplitItemBillRequest::getProductType()const -{ - return productType_; +void QuerySplitItemBillRequest::setBillOwnerId(long billOwnerId) { + billOwnerId_ = billOwnerId; + setParameter(std::string("BillOwnerId"), std::to_string(billOwnerId)); } -void QuerySplitItemBillRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string QuerySplitItemBillRequest::getProductType() const { + return productType_; } -int QuerySplitItemBillRequest::getPageSize()const -{ - return pageSize_; +void QuerySplitItemBillRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void QuerySplitItemBillRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QuerySplitItemBillRequest::getPageSize() const { + return pageSize_; +} + +void QuerySplitItemBillRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/bssopenapi/src/model/QuerySplitItemBillResult.cc b/bssopenapi/src/model/QuerySplitItemBillResult.cc index f5e5ef5f9..d2a14f645 100644 --- a/bssopenapi/src/model/QuerySplitItemBillResult.cc +++ b/bssopenapi/src/model/QuerySplitItemBillResult.cc @@ -40,122 +40,126 @@ void QuerySplitItemBillResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; + if(!dataNode["PageNum"].isNull()) + data_.pageNum = std::stoi(dataNode["PageNum"].asString()); if(!dataNode["BillingCycle"].isNull()) data_.billingCycle = dataNode["BillingCycle"].asString(); if(!dataNode["AccountID"].isNull()) data_.accountID = dataNode["AccountID"].asString(); - if(!dataNode["AccountName"].isNull()) - data_.accountName = dataNode["AccountName"].asString(); - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - if(!dataNode["PageNum"].isNull()) - data_.pageNum = std::stoi(dataNode["PageNum"].asString()); if(!dataNode["PageSize"].isNull()) data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + if(!dataNode["AccountName"].isNull()) + data_.accountName = dataNode["AccountName"].asString(); auto allItemsNode = dataNode["Items"]["Item"]; for (auto dataNodeItemsItem : allItemsNode) { Data::Item itemObject; - if(!dataNodeItemsItem["InstanceID"].isNull()) - itemObject.instanceID = dataNodeItemsItem["InstanceID"].asString(); - if(!dataNodeItemsItem["BillingType"].isNull()) - itemObject.billingType = dataNodeItemsItem["BillingType"].asString(); - if(!dataNodeItemsItem["CostUnit"].isNull()) - itemObject.costUnit = dataNodeItemsItem["CostUnit"].asString(); - if(!dataNodeItemsItem["ProductCode"].isNull()) - itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); - if(!dataNodeItemsItem["ProductType"].isNull()) - itemObject.productType = dataNodeItemsItem["ProductType"].asString(); + if(!dataNodeItemsItem["SplitAccountID"].isNull()) + itemObject.splitAccountID = dataNodeItemsItem["SplitAccountID"].asString(); if(!dataNodeItemsItem["SubscriptionType"].isNull()) itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString(); - if(!dataNodeItemsItem["ProductName"].isNull()) - itemObject.productName = dataNodeItemsItem["ProductName"].asString(); - if(!dataNodeItemsItem["ProductDetail"].isNull()) - itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString(); - if(!dataNodeItemsItem["OwnerID"].isNull()) - itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); - if(!dataNodeItemsItem["BillingItem"].isNull()) - itemObject.billingItem = dataNodeItemsItem["BillingItem"].asString(); - if(!dataNodeItemsItem["ListPrice"].isNull()) - itemObject.listPrice = dataNodeItemsItem["ListPrice"].asString(); - if(!dataNodeItemsItem["ListPriceUnit"].isNull()) - itemObject.listPriceUnit = dataNodeItemsItem["ListPriceUnit"].asString(); - if(!dataNodeItemsItem["Usage"].isNull()) - itemObject.usage = dataNodeItemsItem["Usage"].asString(); - if(!dataNodeItemsItem["UsageUnit"].isNull()) - itemObject.usageUnit = dataNodeItemsItem["UsageUnit"].asString(); - if(!dataNodeItemsItem["DeductedByResourcePackage"].isNull()) - itemObject.deductedByResourcePackage = dataNodeItemsItem["DeductedByResourcePackage"].asString(); - if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) - itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); - if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) - itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); - if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) - itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); - if(!dataNodeItemsItem["PretaxAmount"].isNull()) - itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); - if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) - itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); - if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) - itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); - if(!dataNodeItemsItem["PaymentAmount"].isNull()) - itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); - if(!dataNodeItemsItem["OutstandingAmount"].isNull()) - itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); - if(!dataNodeItemsItem["Currency"].isNull()) - itemObject.currency = dataNodeItemsItem["Currency"].asString(); - if(!dataNodeItemsItem["NickName"].isNull()) - itemObject.nickName = dataNodeItemsItem["NickName"].asString(); - if(!dataNodeItemsItem["ResourceGroup"].isNull()) - itemObject.resourceGroup = dataNodeItemsItem["ResourceGroup"].asString(); - if(!dataNodeItemsItem["Tag"].isNull()) - itemObject.tag = dataNodeItemsItem["Tag"].asString(); - if(!dataNodeItemsItem["InstanceConfig"].isNull()) - itemObject.instanceConfig = dataNodeItemsItem["InstanceConfig"].asString(); if(!dataNodeItemsItem["InstanceSpec"].isNull()) itemObject.instanceSpec = dataNodeItemsItem["InstanceSpec"].asString(); - if(!dataNodeItemsItem["InternetIP"].isNull()) - itemObject.internetIP = dataNodeItemsItem["InternetIP"].asString(); - if(!dataNodeItemsItem["IntranetIP"].isNull()) - itemObject.intranetIP = dataNodeItemsItem["IntranetIP"].asString(); + if(!dataNodeItemsItem["DeductedByCoupons"].isNull()) + itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString()); if(!dataNodeItemsItem["Region"].isNull()) itemObject.region = dataNodeItemsItem["Region"].asString(); - if(!dataNodeItemsItem["Zone"].isNull()) - itemObject.zone = dataNodeItemsItem["Zone"].asString(); - if(!dataNodeItemsItem["Item"].isNull()) - itemObject.item = dataNodeItemsItem["Item"].asString(); - if(!dataNodeItemsItem["ServicePeriod"].isNull()) - itemObject.servicePeriod = dataNodeItemsItem["ServicePeriod"].asString(); - if(!dataNodeItemsItem["BillingDate"].isNull()) - itemObject.billingDate = dataNodeItemsItem["BillingDate"].asString(); - if(!dataNodeItemsItem["SplitItemID"].isNull()) - itemObject.splitItemID = dataNodeItemsItem["SplitItemID"].asString(); - if(!dataNodeItemsItem["SplitItemName"].isNull()) - itemObject.splitItemName = dataNodeItemsItem["SplitItemName"].asString(); + if(!dataNodeItemsItem["OutstandingAmount"].isNull()) + itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString()); if(!dataNodeItemsItem["PipCode"].isNull()) itemObject.pipCode = dataNodeItemsItem["PipCode"].asString(); if(!dataNodeItemsItem["CommodityCode"].isNull()) itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString(); - if(!dataNodeItemsItem["ServicePeriodUnit"].isNull()) - itemObject.servicePeriodUnit = dataNodeItemsItem["ServicePeriodUnit"].asString(); + if(!dataNodeItemsItem["NickName"].isNull()) + itemObject.nickName = dataNodeItemsItem["NickName"].asString(); + if(!dataNodeItemsItem["ProductDetail"].isNull()) + itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString(); + if(!dataNodeItemsItem["Usage"].isNull()) + itemObject.usage = dataNodeItemsItem["Usage"].asString(); + if(!dataNodeItemsItem["IntranetIP"].isNull()) + itemObject.intranetIP = dataNodeItemsItem["IntranetIP"].asString(); + if(!dataNodeItemsItem["UsageUnit"].isNull()) + itemObject.usageUnit = dataNodeItemsItem["UsageUnit"].asString(); if(!dataNodeItemsItem["SplitCommodityCode"].isNull()) itemObject.splitCommodityCode = dataNodeItemsItem["SplitCommodityCode"].asString(); - if(!dataNodeItemsItem["SplitProductDetail"].isNull()) - itemObject.splitProductDetail = dataNodeItemsItem["SplitProductDetail"].asString(); - if(!dataNodeItemsItem["SplitAccountID"].isNull()) - itemObject.splitAccountID = dataNodeItemsItem["SplitAccountID"].asString(); - if(!dataNodeItemsItem["SplitAccountName"].isNull()) - itemObject.splitAccountName = dataNodeItemsItem["SplitAccountName"].asString(); + if(!dataNodeItemsItem["ProductType"].isNull()) + itemObject.productType = dataNodeItemsItem["ProductType"].asString(); + if(!dataNodeItemsItem["DeductedByResourcePackage"].isNull()) + itemObject.deductedByResourcePackage = dataNodeItemsItem["DeductedByResourcePackage"].asString(); + if(!dataNodeItemsItem["PaymentAmount"].isNull()) + itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString()); if(!dataNodeItemsItem["SplitBillingCycle"].isNull()) itemObject.splitBillingCycle = dataNodeItemsItem["SplitBillingCycle"].asString(); + if(!dataNodeItemsItem["ServicePeriod"].isNull()) + itemObject.servicePeriod = dataNodeItemsItem["ServicePeriod"].asString(); + if(!dataNodeItemsItem["SplitItemName"].isNull()) + itemObject.splitItemName = dataNodeItemsItem["SplitItemName"].asString(); + if(!dataNodeItemsItem["ListPrice"].isNull()) + itemObject.listPrice = dataNodeItemsItem["ListPrice"].asString(); + if(!dataNodeItemsItem["Zone"].isNull()) + itemObject.zone = dataNodeItemsItem["Zone"].asString(); + if(!dataNodeItemsItem["PretaxGrossAmount"].isNull()) + itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString()); + if(!dataNodeItemsItem["CashAmount"].isNull()) + itemObject.cashAmount = std::stof(dataNodeItemsItem["CashAmount"].asString()); + if(!dataNodeItemsItem["InstanceConfig"].isNull()) + itemObject.instanceConfig = dataNodeItemsItem["InstanceConfig"].asString(); + if(!dataNodeItemsItem["BillingDate"].isNull()) + itemObject.billingDate = dataNodeItemsItem["BillingDate"].asString(); + if(!dataNodeItemsItem["InternetIP"].isNull()) + itemObject.internetIP = dataNodeItemsItem["InternetIP"].asString(); + if(!dataNodeItemsItem["Item"].isNull()) + itemObject.item = dataNodeItemsItem["Item"].asString(); + if(!dataNodeItemsItem["SplitItemID"].isNull()) + itemObject.splitItemID = dataNodeItemsItem["SplitItemID"].asString(); + if(!dataNodeItemsItem["InstanceID"].isNull()) + itemObject.instanceID = dataNodeItemsItem["InstanceID"].asString(); + if(!dataNodeItemsItem["Tag"].isNull()) + itemObject.tag = dataNodeItemsItem["Tag"].asString(); + if(!dataNodeItemsItem["Currency"].isNull()) + itemObject.currency = dataNodeItemsItem["Currency"].asString(); + if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull()) + itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString()); + if(!dataNodeItemsItem["BillingItem"].isNull()) + itemObject.billingItem = dataNodeItemsItem["BillingItem"].asString(); + if(!dataNodeItemsItem["CostUnit"].isNull()) + itemObject.costUnit = dataNodeItemsItem["CostUnit"].asString(); + if(!dataNodeItemsItem["ListPriceUnit"].isNull()) + itemObject.listPriceUnit = dataNodeItemsItem["ListPriceUnit"].asString(); + if(!dataNodeItemsItem["ResourceGroup"].isNull()) + itemObject.resourceGroup = dataNodeItemsItem["ResourceGroup"].asString(); + if(!dataNodeItemsItem["PretaxAmount"].isNull()) + itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString()); + if(!dataNodeItemsItem["ServicePeriodUnit"].isNull()) + itemObject.servicePeriodUnit = dataNodeItemsItem["ServicePeriodUnit"].asString(); + if(!dataNodeItemsItem["ProductName"].isNull()) + itemObject.productName = dataNodeItemsItem["ProductName"].asString(); + if(!dataNodeItemsItem["SplitProductDetail"].isNull()) + itemObject.splitProductDetail = dataNodeItemsItem["SplitProductDetail"].asString(); + if(!dataNodeItemsItem["AdjustAmount"].isNull()) + itemObject.adjustAmount = std::stof(dataNodeItemsItem["AdjustAmount"].asString()); + if(!dataNodeItemsItem["OwnerID"].isNull()) + itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString(); + if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull()) + itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString()); + if(!dataNodeItemsItem["InvoiceDiscount"].isNull()) + itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString()); + if(!dataNodeItemsItem["SplitAccountName"].isNull()) + itemObject.splitAccountName = dataNodeItemsItem["SplitAccountName"].asString(); + if(!dataNodeItemsItem["BillingType"].isNull()) + itemObject.billingType = dataNodeItemsItem["BillingType"].asString(); + if(!dataNodeItemsItem["ProductCode"].isNull()) + itemObject.productCode = dataNodeItemsItem["ProductCode"].asString(); data_.items.push_back(itemObject); } - 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/QueryUserOmsDataRequest.cc b/bssopenapi/src/model/QueryUserOmsDataRequest.cc index 7c0cdb8d2..8347ae2fb 100644 --- a/bssopenapi/src/model/QueryUserOmsDataRequest.cc +++ b/bssopenapi/src/model/QueryUserOmsDataRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::QueryUserOmsDataRequest; - -QueryUserOmsDataRequest::QueryUserOmsDataRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryUserOmsData") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryUserOmsDataRequest::~QueryUserOmsDataRequest() -{} - -std::string QueryUserOmsDataRequest::getEndTime()const -{ - return endTime_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryUserOmsDataRequest; + +QueryUserOmsDataRequest::QueryUserOmsDataRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "QueryUserOmsData") { + setMethod(HttpRequest::Method::Post); } -void QueryUserOmsDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +QueryUserOmsDataRequest::~QueryUserOmsDataRequest() {} + +std::string QueryUserOmsDataRequest::getEndTime() const { + return endTime_; } -std::string QueryUserOmsDataRequest::getStartTime()const -{ - return startTime_; +void QueryUserOmsDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void QueryUserOmsDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string QueryUserOmsDataRequest::getStartTime() const { + return startTime_; } -long QueryUserOmsDataRequest::getOwnerId()const -{ - return ownerId_; +void QueryUserOmsDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void QueryUserOmsDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryUserOmsDataRequest::getOwnerId() const { + return ownerId_; } -std::string QueryUserOmsDataRequest::getDataType()const -{ - return dataType_; +void QueryUserOmsDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryUserOmsDataRequest::setDataType(const std::string& dataType) -{ - dataType_ = dataType; - setParameter("DataType", dataType); +std::string QueryUserOmsDataRequest::getDataType() const { + return dataType_; } -std::string QueryUserOmsDataRequest::getMarker()const -{ - return marker_; +void QueryUserOmsDataRequest::setDataType(const std::string &dataType) { + dataType_ = dataType; + setParameter(std::string("DataType"), dataType); } -void QueryUserOmsDataRequest::setMarker(const std::string& marker) -{ - marker_ = marker; - setParameter("Marker", marker); +std::string QueryUserOmsDataRequest::getMarker() const { + return marker_; } -int QueryUserOmsDataRequest::getPageSize()const -{ - return pageSize_; +void QueryUserOmsDataRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); } -void QueryUserOmsDataRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryUserOmsDataRequest::getPageSize() const { + return pageSize_; } -std::string QueryUserOmsDataRequest::getTable()const -{ - return table_; +void QueryUserOmsDataRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void QueryUserOmsDataRequest::setTable(const std::string& table) -{ - table_ = table; - setParameter("Table", table); +std::string QueryUserOmsDataRequest::getTable() const { + return table_; +} + +void QueryUserOmsDataRequest::setTable(const std::string &table) { + table_ = table; + setParameter(std::string("Table"), table); } diff --git a/bssopenapi/src/model/QueryUserOmsDataResult.cc b/bssopenapi/src/model/QueryUserOmsDataResult.cc index 980102703..e9181a3ee 100644 --- a/bssopenapi/src/model/QueryUserOmsDataResult.cc +++ b/bssopenapi/src/model/QueryUserOmsDataResult.cc @@ -47,12 +47,12 @@ void QueryUserOmsDataResult::parse(const std::string &payload) auto allOmsData = dataNode["OmsData"]["Item"]; for (auto value : allOmsData) data_.omsData.push_back(value.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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/RefundInstanceRequest.cc b/bssopenapi/src/model/RefundInstanceRequest.cc new file mode 100644 index 000000000..2996d4d00 --- /dev/null +++ b/bssopenapi/src/model/RefundInstanceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::RefundInstanceRequest; + +RefundInstanceRequest::RefundInstanceRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "RefundInstance") { + setMethod(HttpRequest::Method::Post); +} + +RefundInstanceRequest::~RefundInstanceRequest() {} + +std::string RefundInstanceRequest::getProductCode() const { + return productCode_; +} + +void RefundInstanceRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); +} + +std::string RefundInstanceRequest::getClientToken() const { + return clientToken_; +} + +void RefundInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string RefundInstanceRequest::getImmediatelyRelease() const { + return immediatelyRelease_; +} + +void RefundInstanceRequest::setImmediatelyRelease(const std::string &immediatelyRelease) { + immediatelyRelease_ = immediatelyRelease; + setParameter(std::string("ImmediatelyRelease"), immediatelyRelease); +} + +std::string RefundInstanceRequest::getProductType() const { + return productType_; +} + +void RefundInstanceRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); +} + +std::string RefundInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void RefundInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/bssopenapi/src/model/RefundInstanceResult.cc b/bssopenapi/src/model/RefundInstanceResult.cc new file mode 100644 index 000000000..811d1b5ee --- /dev/null +++ b/bssopenapi/src/model/RefundInstanceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +RefundInstanceResult::RefundInstanceResult() : + ServiceResult() +{} + +RefundInstanceResult::RefundInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RefundInstanceResult::~RefundInstanceResult() +{} + +void RefundInstanceResult::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["HostId"].isNull()) + data_.hostId = dataNode["HostId"].asString(); + if(!dataNode["OrderId"].isNull()) + data_.orderId = std::stol(dataNode["OrderId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string RefundInstanceResult::getMessage()const +{ + return message_; +} + +RefundInstanceResult::Data RefundInstanceResult::getData()const +{ + return data_; +} + +std::string RefundInstanceResult::getCode()const +{ + return code_; +} + +bool RefundInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/bssopenapi/src/model/RelieveAccountRelationRequest.cc b/bssopenapi/src/model/RelieveAccountRelationRequest.cc index c1867a398..e028539d9 100644 --- a/bssopenapi/src/model/RelieveAccountRelationRequest.cc +++ b/bssopenapi/src/model/RelieveAccountRelationRequest.cc @@ -1,73 +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. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::RelieveAccountRelationRequest; - -RelieveAccountRelationRequest::RelieveAccountRelationRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "RelieveAccountRelation") -{ - setMethod(HttpRequest::Method::Post); -} - -RelieveAccountRelationRequest::~RelieveAccountRelationRequest() -{} - -std::string RelieveAccountRelationRequest::getRelationType()const -{ - return relationType_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::RelieveAccountRelationRequest; + +RelieveAccountRelationRequest::RelieveAccountRelationRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "RelieveAccountRelation") { + setMethod(HttpRequest::Method::Post); } -void RelieveAccountRelationRequest::setRelationType(const std::string& relationType) -{ - relationType_ = relationType; - setParameter("RelationType", relationType); +RelieveAccountRelationRequest::~RelieveAccountRelationRequest() {} + +std::string RelieveAccountRelationRequest::getRelationType() const { + return relationType_; } -long RelieveAccountRelationRequest::getParentUserId()const -{ - return parentUserId_; +void RelieveAccountRelationRequest::setRelationType(const std::string &relationType) { + relationType_ = relationType; + setParameter(std::string("RelationType"), relationType); } -void RelieveAccountRelationRequest::setParentUserId(long parentUserId) -{ - parentUserId_ = parentUserId; - setParameter("ParentUserId", std::to_string(parentUserId)); +long RelieveAccountRelationRequest::getParentUserId() const { + return parentUserId_; } -long RelieveAccountRelationRequest::getChildUserId()const -{ - return childUserId_; +void RelieveAccountRelationRequest::setParentUserId(long parentUserId) { + parentUserId_ = parentUserId; + setParameter(std::string("ParentUserId"), std::to_string(parentUserId)); } -void RelieveAccountRelationRequest::setChildUserId(long childUserId) -{ - childUserId_ = childUserId; - setParameter("ChildUserId", std::to_string(childUserId)); +long RelieveAccountRelationRequest::getChildUserId() const { + return childUserId_; } -std::string RelieveAccountRelationRequest::getRequestId()const -{ - return requestId_; +void RelieveAccountRelationRequest::setChildUserId(long childUserId) { + childUserId_ = childUserId; + setParameter(std::string("ChildUserId"), std::to_string(childUserId)); } -void RelieveAccountRelationRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setParameter("RequestId", requestId); +std::string RelieveAccountRelationRequest::getRequestId() const { + return requestId_; +} + +void RelieveAccountRelationRequest::setRequestId(const std::string &requestId) { + requestId_ = requestId; + setParameter(std::string("RequestId"), requestId); +} + +long RelieveAccountRelationRequest::getRelationId() const { + return relationId_; +} + +void RelieveAccountRelationRequest::setRelationId(long relationId) { + relationId_ = relationId; + setParameter(std::string("RelationId"), std::to_string(relationId)); } diff --git a/bssopenapi/src/model/RelieveAccountRelationResult.cc b/bssopenapi/src/model/RelieveAccountRelationResult.cc index fa9fc5e0c..53a707619 100644 --- a/bssopenapi/src/model/RelieveAccountRelationResult.cc +++ b/bssopenapi/src/model/RelieveAccountRelationResult.cc @@ -44,10 +44,10 @@ void RelieveAccountRelationResult::parse(const std::string &payload) data_.hostId = dataNode["HostId"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/RenewInstanceRequest.cc b/bssopenapi/src/model/RenewInstanceRequest.cc index 97a04bf5c..e91bdaf7f 100644 --- a/bssopenapi/src/model/RenewInstanceRequest.cc +++ b/bssopenapi/src/model/RenewInstanceRequest.cc @@ -1,95 +1,81 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::RenewInstanceRequest; - -RenewInstanceRequest::RenewInstanceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "RenewInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -RenewInstanceRequest::~RenewInstanceRequest() -{} - -std::string RenewInstanceRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::RenewInstanceRequest; + +RenewInstanceRequest::RenewInstanceRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "RenewInstance") { + setMethod(HttpRequest::Method::Post); } -void RenewInstanceRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +RenewInstanceRequest::~RenewInstanceRequest() {} + +std::string RenewInstanceRequest::getProductCode() const { + return productCode_; } -std::string RenewInstanceRequest::getClientToken()const -{ - return clientToken_; +void RenewInstanceRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void RenewInstanceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string RenewInstanceRequest::getClientToken() const { + return clientToken_; } -long RenewInstanceRequest::getOwnerId()const -{ - return ownerId_; +void RenewInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void RenewInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RenewInstanceRequest::getOwnerId() const { + return ownerId_; } -std::string RenewInstanceRequest::getProductType()const -{ - return productType_; +void RenewInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RenewInstanceRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string RenewInstanceRequest::getProductType() const { + return productType_; } -std::string RenewInstanceRequest::getInstanceId()const -{ - return instanceId_; +void RenewInstanceRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void RenewInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string RenewInstanceRequest::getInstanceId() const { + return instanceId_; } -int RenewInstanceRequest::getRenewPeriod()const -{ - return renewPeriod_; +void RenewInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void RenewInstanceRequest::setRenewPeriod(int renewPeriod) -{ - renewPeriod_ = renewPeriod; - setParameter("RenewPeriod", std::to_string(renewPeriod)); +int RenewInstanceRequest::getRenewPeriod() const { + return renewPeriod_; +} + +void RenewInstanceRequest::setRenewPeriod(int renewPeriod) { + renewPeriod_ = renewPeriod; + setParameter(std::string("RenewPeriod"), std::to_string(renewPeriod)); } diff --git a/bssopenapi/src/model/RenewInstanceResult.cc b/bssopenapi/src/model/RenewInstanceResult.cc index 74633e679..972feb6bd 100644 --- a/bssopenapi/src/model/RenewInstanceResult.cc +++ b/bssopenapi/src/model/RenewInstanceResult.cc @@ -42,12 +42,12 @@ void RenewInstanceResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["OrderId"].isNull()) data_.orderId = dataNode["OrderId"].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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/RenewResourcePackageRequest.cc b/bssopenapi/src/model/RenewResourcePackageRequest.cc index c7d03697d..7e9400b33 100644 --- a/bssopenapi/src/model/RenewResourcePackageRequest.cc +++ b/bssopenapi/src/model/RenewResourcePackageRequest.cc @@ -1,84 +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. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::RenewResourcePackageRequest; - -RenewResourcePackageRequest::RenewResourcePackageRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "RenewResourcePackage") -{ - setMethod(HttpRequest::Method::Post); -} - -RenewResourcePackageRequest::~RenewResourcePackageRequest() -{} - -long RenewResourcePackageRequest::getOwnerId()const -{ - return ownerId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::RenewResourcePackageRequest; + +RenewResourcePackageRequest::RenewResourcePackageRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "RenewResourcePackage") { + setMethod(HttpRequest::Method::Post); } -void RenewResourcePackageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +RenewResourcePackageRequest::~RenewResourcePackageRequest() {} + +long RenewResourcePackageRequest::getOwnerId() const { + return ownerId_; } -std::string RenewResourcePackageRequest::getEffectiveDate()const -{ - return effectiveDate_; +void RenewResourcePackageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RenewResourcePackageRequest::setEffectiveDate(const std::string& effectiveDate) -{ - effectiveDate_ = effectiveDate; - setParameter("EffectiveDate", effectiveDate); +std::string RenewResourcePackageRequest::getEffectiveDate() const { + return effectiveDate_; } -int RenewResourcePackageRequest::getDuration()const -{ - return duration_; +void RenewResourcePackageRequest::setEffectiveDate(const std::string &effectiveDate) { + effectiveDate_ = effectiveDate; + setParameter(std::string("EffectiveDate"), effectiveDate); } -void RenewResourcePackageRequest::setDuration(int duration) -{ - duration_ = duration; - setParameter("Duration", std::to_string(duration)); +int RenewResourcePackageRequest::getDuration() const { + return duration_; } -std::string RenewResourcePackageRequest::getInstanceId()const -{ - return instanceId_; +void RenewResourcePackageRequest::setDuration(int duration) { + duration_ = duration; + setParameter(std::string("Duration"), std::to_string(duration)); } -void RenewResourcePackageRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string RenewResourcePackageRequest::getInstanceId() const { + return instanceId_; } -std::string RenewResourcePackageRequest::getPricingCycle()const -{ - return pricingCycle_; +void RenewResourcePackageRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void RenewResourcePackageRequest::setPricingCycle(const std::string& pricingCycle) -{ - pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); +std::string RenewResourcePackageRequest::getPricingCycle() const { + return pricingCycle_; +} + +void RenewResourcePackageRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); } diff --git a/bssopenapi/src/model/RenewResourcePackageResult.cc b/bssopenapi/src/model/RenewResourcePackageResult.cc index 513b6e8fa..b1b2eaa0e 100644 --- a/bssopenapi/src/model/RenewResourcePackageResult.cc +++ b/bssopenapi/src/model/RenewResourcePackageResult.cc @@ -44,14 +44,14 @@ void RenewResourcePackageResult::parse(const std::string &payload) data_.orderId = std::stol(dataNode["OrderId"].asString()); if(!dataNode["InstanceId"].isNull()) data_.instanceId = dataNode["InstanceId"].asString(); - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); } diff --git a/bssopenapi/src/model/SaveUserCreditRequest.cc b/bssopenapi/src/model/SaveUserCreditRequest.cc index 8a0fb139f..49cfb732e 100644 --- a/bssopenapi/src/model/SaveUserCreditRequest.cc +++ b/bssopenapi/src/model/SaveUserCreditRequest.cc @@ -1,117 +1,99 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::SaveUserCreditRequest; - -SaveUserCreditRequest::SaveUserCreditRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "SaveUserCredit") -{ - setMethod(HttpRequest::Method::Post); -} - -SaveUserCreditRequest::~SaveUserCreditRequest() -{} - -bool SaveUserCreditRequest::getAvoidExpiration()const -{ - return avoidExpiration_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::SaveUserCreditRequest; + +SaveUserCreditRequest::SaveUserCreditRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "SaveUserCredit") { + setMethod(HttpRequest::Method::Post); } -void SaveUserCreditRequest::setAvoidExpiration(bool avoidExpiration) -{ - avoidExpiration_ = avoidExpiration; - setParameter("AvoidExpiration", avoidExpiration ? "true" : "false"); +SaveUserCreditRequest::~SaveUserCreditRequest() {} + +bool SaveUserCreditRequest::getAvoidExpiration() const { + return avoidExpiration_; } -std::string SaveUserCreditRequest::getDescription()const -{ - return description_; +void SaveUserCreditRequest::setAvoidExpiration(bool avoidExpiration) { + avoidExpiration_ = avoidExpiration; + setParameter(std::string("AvoidExpiration"), avoidExpiration ? "true" : "false"); } -void SaveUserCreditRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string SaveUserCreditRequest::getDescription() const { + return description_; } -bool SaveUserCreditRequest::getAvoidPrepaidNotification()const -{ - return avoidPrepaidNotification_; +void SaveUserCreditRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void SaveUserCreditRequest::setAvoidPrepaidNotification(bool avoidPrepaidNotification) -{ - avoidPrepaidNotification_ = avoidPrepaidNotification; - setParameter("AvoidPrepaidNotification", avoidPrepaidNotification ? "true" : "false"); +bool SaveUserCreditRequest::getAvoidPrepaidNotification() const { + return avoidPrepaidNotification_; } -bool SaveUserCreditRequest::getAvoidPrepaidExpiration()const -{ - return avoidPrepaidExpiration_; +void SaveUserCreditRequest::setAvoidPrepaidNotification(bool avoidPrepaidNotification) { + avoidPrepaidNotification_ = avoidPrepaidNotification; + setParameter(std::string("AvoidPrepaidNotification"), avoidPrepaidNotification ? "true" : "false"); } -void SaveUserCreditRequest::setAvoidPrepaidExpiration(bool avoidPrepaidExpiration) -{ - avoidPrepaidExpiration_ = avoidPrepaidExpiration; - setParameter("AvoidPrepaidExpiration", avoidPrepaidExpiration ? "true" : "false"); +bool SaveUserCreditRequest::getAvoidPrepaidExpiration() const { + return avoidPrepaidExpiration_; } -bool SaveUserCreditRequest::getAvoidNotification()const -{ - return avoidNotification_; +void SaveUserCreditRequest::setAvoidPrepaidExpiration(bool avoidPrepaidExpiration) { + avoidPrepaidExpiration_ = avoidPrepaidExpiration; + setParameter(std::string("AvoidPrepaidExpiration"), avoidPrepaidExpiration ? "true" : "false"); } -void SaveUserCreditRequest::setAvoidNotification(bool avoidNotification) -{ - avoidNotification_ = avoidNotification; - setParameter("AvoidNotification", avoidNotification ? "true" : "false"); +bool SaveUserCreditRequest::getAvoidNotification() const { + return avoidNotification_; } -std::string SaveUserCreditRequest::get_Operator()const -{ - return _operator_; +void SaveUserCreditRequest::setAvoidNotification(bool avoidNotification) { + avoidNotification_ = avoidNotification; + setParameter(std::string("AvoidNotification"), avoidNotification ? "true" : "false"); } -void SaveUserCreditRequest::set_Operator(const std::string& _operator) -{ - _operator_ = _operator; - setParameter("_Operator", _operator); +std::string SaveUserCreditRequest::get_Operator() const { + return _operator_; } -std::string SaveUserCreditRequest::getCreditValue()const -{ - return creditValue_; +void SaveUserCreditRequest::set_Operator(const std::string &_operator) { + _operator_ = _operator; + setParameter(std::string("Operator"), _operator); } -void SaveUserCreditRequest::setCreditValue(const std::string& creditValue) -{ - creditValue_ = creditValue; - setParameter("CreditValue", creditValue); +std::string SaveUserCreditRequest::getCreditValue() const { + return creditValue_; } -std::string SaveUserCreditRequest::getCreditType()const -{ - return creditType_; +void SaveUserCreditRequest::setCreditValue(const std::string &creditValue) { + creditValue_ = creditValue; + setParameter(std::string("CreditValue"), creditValue); } -void SaveUserCreditRequest::setCreditType(const std::string& creditType) -{ - creditType_ = creditType; - setParameter("CreditType", creditType); +std::string SaveUserCreditRequest::getCreditType() const { + return creditType_; +} + +void SaveUserCreditRequest::setCreditType(const std::string &creditType) { + creditType_ = creditType; + setParameter(std::string("CreditType"), creditType); } diff --git a/bssopenapi/src/model/SaveUserCreditResult.cc b/bssopenapi/src/model/SaveUserCreditResult.cc index 68d17545e..23267e7eb 100644 --- a/bssopenapi/src/model/SaveUserCreditResult.cc +++ b/bssopenapi/src/model/SaveUserCreditResult.cc @@ -41,10 +41,10 @@ void SaveUserCreditResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/SetAllExpirationDayRequest.cc b/bssopenapi/src/model/SetAllExpirationDayRequest.cc index d605db85a..0b993347f 100644 --- a/bssopenapi/src/model/SetAllExpirationDayRequest.cc +++ b/bssopenapi/src/model/SetAllExpirationDayRequest.cc @@ -1,51 +1,45 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::SetAllExpirationDayRequest; - -SetAllExpirationDayRequest::SetAllExpirationDayRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "SetAllExpirationDay") -{ - setMethod(HttpRequest::Method::Post); -} - -SetAllExpirationDayRequest::~SetAllExpirationDayRequest() -{} - -long SetAllExpirationDayRequest::getOwnerId()const -{ - return ownerId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::SetAllExpirationDayRequest; + +SetAllExpirationDayRequest::SetAllExpirationDayRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "SetAllExpirationDay") { + setMethod(HttpRequest::Method::Post); } -void SetAllExpirationDayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +SetAllExpirationDayRequest::~SetAllExpirationDayRequest() {} + +long SetAllExpirationDayRequest::getOwnerId() const { + return ownerId_; } -std::string SetAllExpirationDayRequest::getUnifyExpireDay()const -{ - return unifyExpireDay_; +void SetAllExpirationDayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SetAllExpirationDayRequest::setUnifyExpireDay(const std::string& unifyExpireDay) -{ - unifyExpireDay_ = unifyExpireDay; - setParameter("UnifyExpireDay", unifyExpireDay); +std::string SetAllExpirationDayRequest::getUnifyExpireDay() const { + return unifyExpireDay_; +} + +void SetAllExpirationDayRequest::setUnifyExpireDay(const std::string &unifyExpireDay) { + unifyExpireDay_ = unifyExpireDay; + setParameter(std::string("UnifyExpireDay"), unifyExpireDay); } diff --git a/bssopenapi/src/model/SetAllExpirationDayResult.cc b/bssopenapi/src/model/SetAllExpirationDayResult.cc index d6957e7e4..6c2f013cd 100644 --- a/bssopenapi/src/model/SetAllExpirationDayResult.cc +++ b/bssopenapi/src/model/SetAllExpirationDayResult.cc @@ -39,12 +39,12 @@ void SetAllExpirationDayResult::parse(const std::string &payload) 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/SetCreditLabelActionRequest.cc b/bssopenapi/src/model/SetCreditLabelActionRequest.cc index e61df5f2c..07c9725b0 100644 --- a/bssopenapi/src/model/SetCreditLabelActionRequest.cc +++ b/bssopenapi/src/model/SetCreditLabelActionRequest.cc @@ -1,216 +1,180 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::SetCreditLabelActionRequest; - -SetCreditLabelActionRequest::SetCreditLabelActionRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "SetCreditLabelAction") -{ - setMethod(HttpRequest::Method::Post); -} - -SetCreditLabelActionRequest::~SetCreditLabelActionRequest() -{} - -std::string SetCreditLabelActionRequest::getActionType()const -{ - return actionType_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::SetCreditLabelActionRequest; + +SetCreditLabelActionRequest::SetCreditLabelActionRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "SetCreditLabelAction") { + setMethod(HttpRequest::Method::Post); } -void SetCreditLabelActionRequest::setActionType(const std::string& actionType) -{ - actionType_ = actionType; - setParameter("ActionType", actionType); +SetCreditLabelActionRequest::~SetCreditLabelActionRequest() {} + +std::string SetCreditLabelActionRequest::getActionType() const { + return actionType_; } -std::string SetCreditLabelActionRequest::getIsNeedSaveNotifyRule()const -{ - return isNeedSaveNotifyRule_; +void SetCreditLabelActionRequest::setActionType(const std::string &actionType) { + actionType_ = actionType; + setParameter(std::string("ActionType"), actionType); } -void SetCreditLabelActionRequest::setIsNeedSaveNotifyRule(const std::string& isNeedSaveNotifyRule) -{ - isNeedSaveNotifyRule_ = isNeedSaveNotifyRule; - setParameter("IsNeedSaveNotifyRule", isNeedSaveNotifyRule); +std::string SetCreditLabelActionRequest::getIsNeedSaveNotifyRule() const { + return isNeedSaveNotifyRule_; } -std::string SetCreditLabelActionRequest::getIsNeedAdjustCreditAccount()const -{ - return isNeedAdjustCreditAccount_; +void SetCreditLabelActionRequest::setIsNeedSaveNotifyRule(const std::string &isNeedSaveNotifyRule) { + isNeedSaveNotifyRule_ = isNeedSaveNotifyRule; + setParameter(std::string("IsNeedSaveNotifyRule"), isNeedSaveNotifyRule); } -void SetCreditLabelActionRequest::setIsNeedAdjustCreditAccount(const std::string& isNeedAdjustCreditAccount) -{ - isNeedAdjustCreditAccount_ = isNeedAdjustCreditAccount; - setParameter("IsNeedAdjustCreditAccount", isNeedAdjustCreditAccount); +std::string SetCreditLabelActionRequest::getIsNeedAdjustCreditAccount() const { + return isNeedAdjustCreditAccount_; } -bool SetCreditLabelActionRequest::getNewCreateMode()const -{ - return newCreateMode_; +void SetCreditLabelActionRequest::setIsNeedAdjustCreditAccount(const std::string &isNeedAdjustCreditAccount) { + isNeedAdjustCreditAccount_ = isNeedAdjustCreditAccount; + setParameter(std::string("IsNeedAdjustCreditAccount"), isNeedAdjustCreditAccount); } -void SetCreditLabelActionRequest::setNewCreateMode(bool newCreateMode) -{ - newCreateMode_ = newCreateMode; - setParameter("NewCreateMode", newCreateMode ? "true" : "false"); +bool SetCreditLabelActionRequest::getNewCreateMode() const { + return newCreateMode_; } -std::string SetCreditLabelActionRequest::getDescription()const -{ - return description_; +void SetCreditLabelActionRequest::setNewCreateMode(bool newCreateMode) { + newCreateMode_ = newCreateMode; + setParameter(std::string("NewCreateMode"), newCreateMode ? "true" : "false"); } -void SetCreditLabelActionRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string SetCreditLabelActionRequest::getDescription() const { + return description_; } -std::string SetCreditLabelActionRequest::getSource()const -{ - return source_; +void SetCreditLabelActionRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void SetCreditLabelActionRequest::setSource(const std::string& source) -{ - source_ = source; - setParameter("Source", source); +std::string SetCreditLabelActionRequest::getSource() const { + return source_; } -std::string SetCreditLabelActionRequest::getCurrencyCode()const -{ - return currencyCode_; +void SetCreditLabelActionRequest::setSource(const std::string &source) { + source_ = source; + setParameter(std::string("Source"), source); } -void SetCreditLabelActionRequest::setCurrencyCode(const std::string& currencyCode) -{ - currencyCode_ = currencyCode; - setParameter("CurrencyCode", currencyCode); +std::string SetCreditLabelActionRequest::getCurrencyCode() const { + return currencyCode_; } -std::string SetCreditLabelActionRequest::getDailyCycle()const -{ - return dailyCycle_; +void SetCreditLabelActionRequest::setCurrencyCode(const std::string ¤cyCode) { + currencyCode_ = currencyCode; + setParameter(std::string("CurrencyCode"), currencyCode); } -void SetCreditLabelActionRequest::setDailyCycle(const std::string& dailyCycle) -{ - dailyCycle_ = dailyCycle; - setParameter("DailyCycle", dailyCycle); +std::string SetCreditLabelActionRequest::getDailyCycle() const { + return dailyCycle_; } -std::string SetCreditLabelActionRequest::get_Operator()const -{ - return _operator_; +void SetCreditLabelActionRequest::setDailyCycle(const std::string &dailyCycle) { + dailyCycle_ = dailyCycle; + setParameter(std::string("DailyCycle"), dailyCycle); } -void SetCreditLabelActionRequest::set_Operator(const std::string& _operator) -{ - _operator_ = _operator; - setParameter("_Operator", _operator); +std::string SetCreditLabelActionRequest::get_Operator() const { + return _operator_; } -std::string SetCreditLabelActionRequest::getUid()const -{ - return uid_; +void SetCreditLabelActionRequest::set_Operator(const std::string &_operator) { + _operator_ = _operator; + setParameter(std::string("Operator"), _operator); } -void SetCreditLabelActionRequest::setUid(const std::string& uid) -{ - uid_ = uid; - setParameter("Uid", uid); +std::string SetCreditLabelActionRequest::getUid() const { + return uid_; } -std::string SetCreditLabelActionRequest::getSiteCode()const -{ - return siteCode_; +void SetCreditLabelActionRequest::setUid(const std::string &uid) { + uid_ = uid; + setParameter(std::string("Uid"), uid); } -void SetCreditLabelActionRequest::setSiteCode(const std::string& siteCode) -{ - siteCode_ = siteCode; - setParameter("SiteCode", siteCode); +std::string SetCreditLabelActionRequest::getSiteCode() const { + return siteCode_; } -std::string SetCreditLabelActionRequest::getClearCycle()const -{ - return clearCycle_; +void SetCreditLabelActionRequest::setSiteCode(const std::string &siteCode) { + siteCode_ = siteCode; + setParameter(std::string("SiteCode"), siteCode); } -void SetCreditLabelActionRequest::setClearCycle(const std::string& clearCycle) -{ - clearCycle_ = clearCycle; - setParameter("ClearCycle", clearCycle); +std::string SetCreditLabelActionRequest::getClearCycle() const { + return clearCycle_; } -bool SetCreditLabelActionRequest::getNeedNotice()const -{ - return needNotice_; +void SetCreditLabelActionRequest::setClearCycle(const std::string &clearCycle) { + clearCycle_ = clearCycle; + setParameter(std::string("ClearCycle"), clearCycle); } -void SetCreditLabelActionRequest::setNeedNotice(bool needNotice) -{ - needNotice_ = needNotice; - setParameter("NeedNotice", needNotice ? "true" : "false"); +bool SetCreditLabelActionRequest::getNeedNotice() const { + return needNotice_; } -std::string SetCreditLabelActionRequest::getRequestId()const -{ - return requestId_; +void SetCreditLabelActionRequest::setNeedNotice(bool needNotice) { + needNotice_ = needNotice; + setParameter(std::string("NeedNotice"), needNotice ? "true" : "false"); } -void SetCreditLabelActionRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setParameter("RequestId", requestId); +std::string SetCreditLabelActionRequest::getRequestId() const { + return requestId_; } -std::string SetCreditLabelActionRequest::getIsNeedSetCreditAmount()const -{ - return isNeedSetCreditAmount_; +void SetCreditLabelActionRequest::setRequestId(const std::string &requestId) { + requestId_ = requestId; + setParameter(std::string("RequestId"), requestId); } -void SetCreditLabelActionRequest::setIsNeedSetCreditAmount(const std::string& isNeedSetCreditAmount) -{ - isNeedSetCreditAmount_ = isNeedSetCreditAmount; - setParameter("IsNeedSetCreditAmount", isNeedSetCreditAmount); +std::string SetCreditLabelActionRequest::getIsNeedSetCreditAmount() const { + return isNeedSetCreditAmount_; } -std::string SetCreditLabelActionRequest::getCreditAmount()const -{ - return creditAmount_; +void SetCreditLabelActionRequest::setIsNeedSetCreditAmount(const std::string &isNeedSetCreditAmount) { + isNeedSetCreditAmount_ = isNeedSetCreditAmount; + setParameter(std::string("IsNeedSetCreditAmount"), isNeedSetCreditAmount); } -void SetCreditLabelActionRequest::setCreditAmount(const std::string& creditAmount) -{ - creditAmount_ = creditAmount; - setParameter("CreditAmount", creditAmount); +std::string SetCreditLabelActionRequest::getCreditAmount() const { + return creditAmount_; } -std::string SetCreditLabelActionRequest::getIsNeedAddSettleLabel()const -{ - return isNeedAddSettleLabel_; +void SetCreditLabelActionRequest::setCreditAmount(const std::string &creditAmount) { + creditAmount_ = creditAmount; + setParameter(std::string("CreditAmount"), creditAmount); } -void SetCreditLabelActionRequest::setIsNeedAddSettleLabel(const std::string& isNeedAddSettleLabel) -{ - isNeedAddSettleLabel_ = isNeedAddSettleLabel; - setParameter("IsNeedAddSettleLabel", isNeedAddSettleLabel); +std::string SetCreditLabelActionRequest::getIsNeedAddSettleLabel() const { + return isNeedAddSettleLabel_; +} + +void SetCreditLabelActionRequest::setIsNeedAddSettleLabel(const std::string &isNeedAddSettleLabel) { + isNeedAddSettleLabel_ = isNeedAddSettleLabel; + setParameter(std::string("IsNeedAddSettleLabel"), isNeedAddSettleLabel); } diff --git a/bssopenapi/src/model/SetCreditLabelActionResult.cc b/bssopenapi/src/model/SetCreditLabelActionResult.cc index 55c8655eb..70874c8a8 100644 --- a/bssopenapi/src/model/SetCreditLabelActionResult.cc +++ b/bssopenapi/src/model/SetCreditLabelActionResult.cc @@ -41,10 +41,10 @@ void SetCreditLabelActionResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/bssopenapi/src/model/SetRenewalRequest.cc b/bssopenapi/src/model/SetRenewalRequest.cc index e5feccf98..a19cbee83 100644 --- a/bssopenapi/src/model/SetRenewalRequest.cc +++ b/bssopenapi/src/model/SetRenewalRequest.cc @@ -1,117 +1,99 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::SetRenewalRequest; - -SetRenewalRequest::SetRenewalRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "SetRenewal") -{ - setMethod(HttpRequest::Method::Post); -} - -SetRenewalRequest::~SetRenewalRequest() -{} - -std::string SetRenewalRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::SetRenewalRequest; + +SetRenewalRequest::SetRenewalRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "SetRenewal") { + setMethod(HttpRequest::Method::Post); } -void SetRenewalRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +SetRenewalRequest::~SetRenewalRequest() {} + +std::string SetRenewalRequest::getProductCode() const { + return productCode_; } -std::string SetRenewalRequest::getSubscriptionType()const -{ - return subscriptionType_; +void SetRenewalRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void SetRenewalRequest::setSubscriptionType(const std::string& subscriptionType) -{ - subscriptionType_ = subscriptionType; - setParameter("SubscriptionType", subscriptionType); +std::string SetRenewalRequest::getSubscriptionType() const { + return subscriptionType_; } -int SetRenewalRequest::getRenewalPeriod()const -{ - return renewalPeriod_; +void SetRenewalRequest::setSubscriptionType(const std::string &subscriptionType) { + subscriptionType_ = subscriptionType; + setParameter(std::string("SubscriptionType"), subscriptionType); } -void SetRenewalRequest::setRenewalPeriod(int renewalPeriod) -{ - renewalPeriod_ = renewalPeriod; - setParameter("RenewalPeriod", std::to_string(renewalPeriod)); +int SetRenewalRequest::getRenewalPeriod() const { + return renewalPeriod_; } -long SetRenewalRequest::getOwnerId()const -{ - return ownerId_; +void SetRenewalRequest::setRenewalPeriod(int renewalPeriod) { + renewalPeriod_ = renewalPeriod; + setParameter(std::string("RenewalPeriod"), std::to_string(renewalPeriod)); } -void SetRenewalRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SetRenewalRequest::getOwnerId() const { + return ownerId_; } -std::string SetRenewalRequest::getProductType()const -{ - return productType_; +void SetRenewalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SetRenewalRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string SetRenewalRequest::getProductType() const { + return productType_; } -std::string SetRenewalRequest::getInstanceIDs()const -{ - return instanceIDs_; +void SetRenewalRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void SetRenewalRequest::setInstanceIDs(const std::string& instanceIDs) -{ - instanceIDs_ = instanceIDs; - setParameter("InstanceIDs", instanceIDs); +std::string SetRenewalRequest::getInstanceIDs() const { + return instanceIDs_; } -std::string SetRenewalRequest::getRenewalStatus()const -{ - return renewalStatus_; +void SetRenewalRequest::setInstanceIDs(const std::string &instanceIDs) { + instanceIDs_ = instanceIDs; + setParameter(std::string("InstanceIDs"), instanceIDs); } -void SetRenewalRequest::setRenewalStatus(const std::string& renewalStatus) -{ - renewalStatus_ = renewalStatus; - setParameter("RenewalStatus", renewalStatus); +std::string SetRenewalRequest::getRenewalStatus() const { + return renewalStatus_; } -std::string SetRenewalRequest::getRenewalPeriodUnit()const -{ - return renewalPeriodUnit_; +void SetRenewalRequest::setRenewalStatus(const std::string &renewalStatus) { + renewalStatus_ = renewalStatus; + setParameter(std::string("RenewalStatus"), renewalStatus); } -void SetRenewalRequest::setRenewalPeriodUnit(const std::string& renewalPeriodUnit) -{ - renewalPeriodUnit_ = renewalPeriodUnit; - setParameter("RenewalPeriodUnit", renewalPeriodUnit); +std::string SetRenewalRequest::getRenewalPeriodUnit() const { + return renewalPeriodUnit_; +} + +void SetRenewalRequest::setRenewalPeriodUnit(const std::string &renewalPeriodUnit) { + renewalPeriodUnit_ = renewalPeriodUnit; + setParameter(std::string("RenewalPeriodUnit"), renewalPeriodUnit); } diff --git a/bssopenapi/src/model/SetRenewalResult.cc b/bssopenapi/src/model/SetRenewalResult.cc index b7c2d1e8d..8493770ab 100644 --- a/bssopenapi/src/model/SetRenewalResult.cc +++ b/bssopenapi/src/model/SetRenewalResult.cc @@ -39,12 +39,12 @@ void SetRenewalResult::parse(const std::string &payload) 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/SetResellerUserAlarmThresholdRequest.cc b/bssopenapi/src/model/SetResellerUserAlarmThresholdRequest.cc index 7ddbff908..1daa8c845 100644 --- a/bssopenapi/src/model/SetResellerUserAlarmThresholdRequest.cc +++ b/bssopenapi/src/model/SetResellerUserAlarmThresholdRequest.cc @@ -1,62 +1,54 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::SetResellerUserAlarmThresholdRequest; - -SetResellerUserAlarmThresholdRequest::SetResellerUserAlarmThresholdRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserAlarmThreshold") -{ - setMethod(HttpRequest::Method::Post); -} - -SetResellerUserAlarmThresholdRequest::~SetResellerUserAlarmThresholdRequest() -{} - -std::string SetResellerUserAlarmThresholdRequest::getAlarmType()const -{ - return alarmType_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::SetResellerUserAlarmThresholdRequest; + +SetResellerUserAlarmThresholdRequest::SetResellerUserAlarmThresholdRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserAlarmThreshold") { + setMethod(HttpRequest::Method::Post); } -void SetResellerUserAlarmThresholdRequest::setAlarmType(const std::string& alarmType) -{ - alarmType_ = alarmType; - setParameter("AlarmType", alarmType); +SetResellerUserAlarmThresholdRequest::~SetResellerUserAlarmThresholdRequest() {} + +std::string SetResellerUserAlarmThresholdRequest::getAlarmType() const { + return alarmType_; } -std::string SetResellerUserAlarmThresholdRequest::getAlarmThresholds()const -{ - return alarmThresholds_; +void SetResellerUserAlarmThresholdRequest::setAlarmType(const std::string &alarmType) { + alarmType_ = alarmType; + setParameter(std::string("AlarmType"), alarmType); } -void SetResellerUserAlarmThresholdRequest::setAlarmThresholds(const std::string& alarmThresholds) -{ - alarmThresholds_ = alarmThresholds; - setParameter("AlarmThresholds", alarmThresholds); +std::string SetResellerUserAlarmThresholdRequest::getAlarmThresholds() const { + return alarmThresholds_; } -long SetResellerUserAlarmThresholdRequest::getOwnerId()const -{ - return ownerId_; +void SetResellerUserAlarmThresholdRequest::setAlarmThresholds(const std::string &alarmThresholds) { + alarmThresholds_ = alarmThresholds; + setParameter(std::string("AlarmThresholds"), alarmThresholds); } -void SetResellerUserAlarmThresholdRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SetResellerUserAlarmThresholdRequest::getOwnerId() const { + return ownerId_; +} + +void SetResellerUserAlarmThresholdRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/bssopenapi/src/model/SetResellerUserAlarmThresholdResult.cc b/bssopenapi/src/model/SetResellerUserAlarmThresholdResult.cc index f8e656a66..e39b52f11 100644 --- a/bssopenapi/src/model/SetResellerUserAlarmThresholdResult.cc +++ b/bssopenapi/src/model/SetResellerUserAlarmThresholdResult.cc @@ -43,10 +43,10 @@ void SetResellerUserAlarmThresholdResult::parse(const std::string &payload) 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"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/SetResellerUserQuotaRequest.cc b/bssopenapi/src/model/SetResellerUserQuotaRequest.cc index 4886da012..aeda4495e 100644 --- a/bssopenapi/src/model/SetResellerUserQuotaRequest.cc +++ b/bssopenapi/src/model/SetResellerUserQuotaRequest.cc @@ -1,73 +1,63 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::SetResellerUserQuotaRequest; - -SetResellerUserQuotaRequest::SetResellerUserQuotaRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserQuota") -{ - setMethod(HttpRequest::Method::Post); -} - -SetResellerUserQuotaRequest::~SetResellerUserQuotaRequest() -{} - -std::string SetResellerUserQuotaRequest::getAmount()const -{ - return amount_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::SetResellerUserQuotaRequest; + +SetResellerUserQuotaRequest::SetResellerUserQuotaRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserQuota") { + setMethod(HttpRequest::Method::Post); } -void SetResellerUserQuotaRequest::setAmount(const std::string& amount) -{ - amount_ = amount; - setParameter("Amount", amount); +SetResellerUserQuotaRequest::~SetResellerUserQuotaRequest() {} + +std::string SetResellerUserQuotaRequest::getAmount() const { + return amount_; } -std::string SetResellerUserQuotaRequest::getOutBizId()const -{ - return outBizId_; +void SetResellerUserQuotaRequest::setAmount(const std::string &amount) { + amount_ = amount; + setParameter(std::string("Amount"), amount); } -void SetResellerUserQuotaRequest::setOutBizId(const std::string& outBizId) -{ - outBizId_ = outBizId; - setParameter("OutBizId", outBizId); +std::string SetResellerUserQuotaRequest::getOutBizId() const { + return outBizId_; } -long SetResellerUserQuotaRequest::getOwnerId()const -{ - return ownerId_; +void SetResellerUserQuotaRequest::setOutBizId(const std::string &outBizId) { + outBizId_ = outBizId; + setParameter(std::string("OutBizId"), outBizId); } -void SetResellerUserQuotaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SetResellerUserQuotaRequest::getOwnerId() const { + return ownerId_; } -std::string SetResellerUserQuotaRequest::getCurrency()const -{ - return currency_; +void SetResellerUserQuotaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SetResellerUserQuotaRequest::setCurrency(const std::string& currency) -{ - currency_ = currency; - setParameter("Currency", currency); +std::string SetResellerUserQuotaRequest::getCurrency() const { + return currency_; +} + +void SetResellerUserQuotaRequest::setCurrency(const std::string ¤cy) { + currency_ = currency; + setParameter(std::string("Currency"), currency); } diff --git a/bssopenapi/src/model/SetResellerUserQuotaResult.cc b/bssopenapi/src/model/SetResellerUserQuotaResult.cc index 0750adf69..79eeaf107 100644 --- a/bssopenapi/src/model/SetResellerUserQuotaResult.cc +++ b/bssopenapi/src/model/SetResellerUserQuotaResult.cc @@ -43,10 +43,10 @@ void SetResellerUserQuotaResult::parse(const std::string &payload) 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"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/SetResellerUserStatusRequest.cc b/bssopenapi/src/model/SetResellerUserStatusRequest.cc index de8f3014e..35cdae416 100644 --- a/bssopenapi/src/model/SetResellerUserStatusRequest.cc +++ b/bssopenapi/src/model/SetResellerUserStatusRequest.cc @@ -1,62 +1,54 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::SetResellerUserStatusRequest; - -SetResellerUserStatusRequest::SetResellerUserStatusRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -SetResellerUserStatusRequest::~SetResellerUserStatusRequest() -{} - -std::string SetResellerUserStatusRequest::getOwnerId()const -{ - return ownerId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::SetResellerUserStatusRequest; + +SetResellerUserStatusRequest::SetResellerUserStatusRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserStatus") { + setMethod(HttpRequest::Method::Post); } -void SetResellerUserStatusRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +SetResellerUserStatusRequest::~SetResellerUserStatusRequest() {} + +std::string SetResellerUserStatusRequest::getOwnerId() const { + return ownerId_; } -std::string SetResellerUserStatusRequest::getBusinessType()const -{ - return businessType_; +void SetResellerUserStatusRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void SetResellerUserStatusRequest::setBusinessType(const std::string& businessType) -{ - businessType_ = businessType; - setParameter("BusinessType", businessType); +std::string SetResellerUserStatusRequest::getBusinessType() const { + return businessType_; } -std::string SetResellerUserStatusRequest::getStatus()const -{ - return status_; +void SetResellerUserStatusRequest::setBusinessType(const std::string &businessType) { + businessType_ = businessType; + setParameter(std::string("BusinessType"), businessType); } -void SetResellerUserStatusRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string SetResellerUserStatusRequest::getStatus() const { + return status_; +} + +void SetResellerUserStatusRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/bssopenapi/src/model/SetResellerUserStatusResult.cc b/bssopenapi/src/model/SetResellerUserStatusResult.cc index b4f43ddb9..806c2fb3a 100644 --- a/bssopenapi/src/model/SetResellerUserStatusResult.cc +++ b/bssopenapi/src/model/SetResellerUserStatusResult.cc @@ -43,10 +43,10 @@ void SetResellerUserStatusResult::parse(const std::string &payload) 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"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/SubscribeBillToOSSRequest.cc b/bssopenapi/src/model/SubscribeBillToOSSRequest.cc index 3bdbe9ead..4f04a79ab 100644 --- a/bssopenapi/src/model/SubscribeBillToOSSRequest.cc +++ b/bssopenapi/src/model/SubscribeBillToOSSRequest.cc @@ -1,84 +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. - */ - -#include - -using AlibabaCloud::BssOpenApi::Model::SubscribeBillToOSSRequest; - -SubscribeBillToOSSRequest::SubscribeBillToOSSRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "SubscribeBillToOSS") -{ - setMethod(HttpRequest::Method::Post); -} - -SubscribeBillToOSSRequest::~SubscribeBillToOSSRequest() -{} - -long SubscribeBillToOSSRequest::getBucketOwnerId()const -{ - return bucketOwnerId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::SubscribeBillToOSSRequest; + +SubscribeBillToOSSRequest::SubscribeBillToOSSRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "SubscribeBillToOSS") { + setMethod(HttpRequest::Method::Post); } -void SubscribeBillToOSSRequest::setBucketOwnerId(long bucketOwnerId) -{ - bucketOwnerId_ = bucketOwnerId; - setParameter("BucketOwnerId", std::to_string(bucketOwnerId)); +SubscribeBillToOSSRequest::~SubscribeBillToOSSRequest() {} + +long SubscribeBillToOSSRequest::getBucketOwnerId() const { + return bucketOwnerId_; } -std::string SubscribeBillToOSSRequest::getSubscribeType()const -{ - return subscribeType_; +void SubscribeBillToOSSRequest::setBucketOwnerId(long bucketOwnerId) { + bucketOwnerId_ = bucketOwnerId; + setParameter(std::string("BucketOwnerId"), std::to_string(bucketOwnerId)); } -void SubscribeBillToOSSRequest::setSubscribeType(const std::string& subscribeType) -{ - subscribeType_ = subscribeType; - setParameter("SubscribeType", subscribeType); +std::string SubscribeBillToOSSRequest::getSubscribeType() const { + return subscribeType_; } -std::string SubscribeBillToOSSRequest::getSubscribeBucket()const -{ - return subscribeBucket_; +void SubscribeBillToOSSRequest::setSubscribeType(const std::string &subscribeType) { + subscribeType_ = subscribeType; + setParameter(std::string("SubscribeType"), subscribeType); } -void SubscribeBillToOSSRequest::setSubscribeBucket(const std::string& subscribeBucket) -{ - subscribeBucket_ = subscribeBucket; - setParameter("SubscribeBucket", subscribeBucket); +std::string SubscribeBillToOSSRequest::getSubscribeBucket() const { + return subscribeBucket_; } -std::string SubscribeBillToOSSRequest::getBeginBillingCycle()const -{ - return beginBillingCycle_; +void SubscribeBillToOSSRequest::setSubscribeBucket(const std::string &subscribeBucket) { + subscribeBucket_ = subscribeBucket; + setParameter(std::string("SubscribeBucket"), subscribeBucket); } -void SubscribeBillToOSSRequest::setBeginBillingCycle(const std::string& beginBillingCycle) -{ - beginBillingCycle_ = beginBillingCycle; - setParameter("BeginBillingCycle", beginBillingCycle); +std::string SubscribeBillToOSSRequest::getBeginBillingCycle() const { + return beginBillingCycle_; } -std::string SubscribeBillToOSSRequest::getMultAccountRelSubscribe()const -{ - return multAccountRelSubscribe_; +void SubscribeBillToOSSRequest::setBeginBillingCycle(const std::string &beginBillingCycle) { + beginBillingCycle_ = beginBillingCycle; + setParameter(std::string("BeginBillingCycle"), beginBillingCycle); } -void SubscribeBillToOSSRequest::setMultAccountRelSubscribe(const std::string& multAccountRelSubscribe) -{ - multAccountRelSubscribe_ = multAccountRelSubscribe; - setParameter("MultAccountRelSubscribe", multAccountRelSubscribe); +std::string SubscribeBillToOSSRequest::getMultAccountRelSubscribe() const { + return multAccountRelSubscribe_; +} + +void SubscribeBillToOSSRequest::setMultAccountRelSubscribe(const std::string &multAccountRelSubscribe) { + multAccountRelSubscribe_ = multAccountRelSubscribe; + setParameter(std::string("MultAccountRelSubscribe"), multAccountRelSubscribe); } diff --git a/bssopenapi/src/model/SubscribeBillToOSSResult.cc b/bssopenapi/src/model/SubscribeBillToOSSResult.cc index 6bd994fad..ac80325db 100644 --- a/bssopenapi/src/model/SubscribeBillToOSSResult.cc +++ b/bssopenapi/src/model/SubscribeBillToOSSResult.cc @@ -39,12 +39,12 @@ void SubscribeBillToOSSResult::parse(const std::string &payload) 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/TagResourcesRequest.cc b/bssopenapi/src/model/TagResourcesRequest.cc index 326737e44..6ba7c44fd 100644 --- a/bssopenapi/src/model/TagResourcesRequest.cc +++ b/bssopenapi/src/model/TagResourcesRequest.cc @@ -1,69 +1,58 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::TagResourcesRequest; - -TagResourcesRequest::TagResourcesRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "TagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -TagResourcesRequest::~TagResourcesRequest() -{} - -std::vector TagResourcesRequest::getResourceId()const -{ - return resourceId_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "TagResources") { + setMethod(HttpRequest::Method::Post); } -void TagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +TagResourcesRequest::~TagResourcesRequest() {} + +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; } -std::vector TagResourcesRequest::getTag()const -{ - return tag_; +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void TagResourcesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector TagResourcesRequest::getTag() const { + return tag_; } -std::string TagResourcesRequest::getResourceType()const -{ - return resourceType_; +void TagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void TagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } diff --git a/bssopenapi/src/model/TagResourcesResult.cc b/bssopenapi/src/model/TagResourcesResult.cc index 3c926de67..1ea86d524 100644 --- a/bssopenapi/src/model/TagResourcesResult.cc +++ b/bssopenapi/src/model/TagResourcesResult.cc @@ -41,12 +41,12 @@ void TagResourcesResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/UnsubscribeBillToOSSRequest.cc b/bssopenapi/src/model/UnsubscribeBillToOSSRequest.cc index bf65396f8..b6b0299d5 100644 --- a/bssopenapi/src/model/UnsubscribeBillToOSSRequest.cc +++ b/bssopenapi/src/model/UnsubscribeBillToOSSRequest.cc @@ -1,51 +1,45 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::UnsubscribeBillToOSSRequest; - -UnsubscribeBillToOSSRequest::UnsubscribeBillToOSSRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "UnsubscribeBillToOSS") -{ - setMethod(HttpRequest::Method::Post); -} - -UnsubscribeBillToOSSRequest::~UnsubscribeBillToOSSRequest() -{} - -std::string UnsubscribeBillToOSSRequest::getSubscribeType()const -{ - return subscribeType_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::UnsubscribeBillToOSSRequest; + +UnsubscribeBillToOSSRequest::UnsubscribeBillToOSSRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "UnsubscribeBillToOSS") { + setMethod(HttpRequest::Method::Post); } -void UnsubscribeBillToOSSRequest::setSubscribeType(const std::string& subscribeType) -{ - subscribeType_ = subscribeType; - setParameter("SubscribeType", subscribeType); +UnsubscribeBillToOSSRequest::~UnsubscribeBillToOSSRequest() {} + +std::string UnsubscribeBillToOSSRequest::getSubscribeType() const { + return subscribeType_; } -std::string UnsubscribeBillToOSSRequest::getMultAccountRelSubscribe()const -{ - return multAccountRelSubscribe_; +void UnsubscribeBillToOSSRequest::setSubscribeType(const std::string &subscribeType) { + subscribeType_ = subscribeType; + setParameter(std::string("SubscribeType"), subscribeType); } -void UnsubscribeBillToOSSRequest::setMultAccountRelSubscribe(const std::string& multAccountRelSubscribe) -{ - multAccountRelSubscribe_ = multAccountRelSubscribe; - setParameter("MultAccountRelSubscribe", multAccountRelSubscribe); +std::string UnsubscribeBillToOSSRequest::getMultAccountRelSubscribe() const { + return multAccountRelSubscribe_; +} + +void UnsubscribeBillToOSSRequest::setMultAccountRelSubscribe(const std::string &multAccountRelSubscribe) { + multAccountRelSubscribe_ = multAccountRelSubscribe; + setParameter(std::string("MultAccountRelSubscribe"), multAccountRelSubscribe); } diff --git a/bssopenapi/src/model/UnsubscribeBillToOSSResult.cc b/bssopenapi/src/model/UnsubscribeBillToOSSResult.cc index c0b6e89f4..81b7f37bb 100644 --- a/bssopenapi/src/model/UnsubscribeBillToOSSResult.cc +++ b/bssopenapi/src/model/UnsubscribeBillToOSSResult.cc @@ -39,12 +39,12 @@ void UnsubscribeBillToOSSResult::parse(const std::string &payload) 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/UntagResourcesRequest.cc b/bssopenapi/src/model/UntagResourcesRequest.cc index 8abc1a5ad..fa6db9464 100644 --- a/bssopenapi/src/model/UntagResourcesRequest.cc +++ b/bssopenapi/src/model/UntagResourcesRequest.cc @@ -1,77 +1,61 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::UntagResourcesRequest; - -UntagResourcesRequest::UntagResourcesRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "UntagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -UntagResourcesRequest::~UntagResourcesRequest() -{} - -bool UntagResourcesRequest::getAll()const -{ - return all_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "UntagResources") { + setMethod(HttpRequest::Method::Post); } -void UntagResourcesRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); +UntagResourcesRequest::~UntagResourcesRequest() {} + +bool UntagResourcesRequest::getAll() const { + return all_; } -std::vector UntagResourcesRequest::getResourceId()const -{ - return resourceId_; +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); } -void UntagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +std::vector UntagResourcesRequest::getResourceId() const { + return resourceId_; } -std::vector UntagResourcesRequest::getTagKey()const -{ - return tagKey_; +void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void UntagResourcesRequest::setTagKey(const std::vector& tagKey) -{ - tagKey_ = tagKey; - for(int dep1 = 0; dep1!= tagKey.size(); dep1++) { - setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1)); - } +std::vector UntagResourcesRequest::getTagKey() const { + return tagKey_; } -std::string UntagResourcesRequest::getResourceType()const -{ - return resourceType_; +void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; } -void UntagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string UntagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } diff --git a/bssopenapi/src/model/UntagResourcesResult.cc b/bssopenapi/src/model/UntagResourcesResult.cc index 594cbf275..c8cc050a1 100644 --- a/bssopenapi/src/model/UntagResourcesResult.cc +++ b/bssopenapi/src/model/UntagResourcesResult.cc @@ -41,12 +41,12 @@ void UntagResourcesResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/bssopenapi/src/model/UpgradeResourcePackageRequest.cc b/bssopenapi/src/model/UpgradeResourcePackageRequest.cc index fcd2d1db9..3e8774de3 100644 --- a/bssopenapi/src/model/UpgradeResourcePackageRequest.cc +++ b/bssopenapi/src/model/UpgradeResourcePackageRequest.cc @@ -1,73 +1,63 @@ /* * 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 - -using AlibabaCloud::BssOpenApi::Model::UpgradeResourcePackageRequest; - -UpgradeResourcePackageRequest::UpgradeResourcePackageRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "UpgradeResourcePackage") -{ - setMethod(HttpRequest::Method::Post); -} - -UpgradeResourcePackageRequest::~UpgradeResourcePackageRequest() -{} - -std::string UpgradeResourcePackageRequest::getSpecification()const -{ - return specification_; + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::UpgradeResourcePackageRequest; + +UpgradeResourcePackageRequest::UpgradeResourcePackageRequest() + : RpcServiceRequest("bssopenapi", "2017-12-14", "UpgradeResourcePackage") { + setMethod(HttpRequest::Method::Post); } -void UpgradeResourcePackageRequest::setSpecification(const std::string& specification) -{ - specification_ = specification; - setParameter("Specification", specification); +UpgradeResourcePackageRequest::~UpgradeResourcePackageRequest() {} + +std::string UpgradeResourcePackageRequest::getSpecification() const { + return specification_; } -long UpgradeResourcePackageRequest::getOwnerId()const -{ - return ownerId_; +void UpgradeResourcePackageRequest::setSpecification(const std::string &specification) { + specification_ = specification; + setParameter(std::string("Specification"), specification); } -void UpgradeResourcePackageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpgradeResourcePackageRequest::getOwnerId() const { + return ownerId_; } -std::string UpgradeResourcePackageRequest::getEffectiveDate()const -{ - return effectiveDate_; +void UpgradeResourcePackageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpgradeResourcePackageRequest::setEffectiveDate(const std::string& effectiveDate) -{ - effectiveDate_ = effectiveDate; - setParameter("EffectiveDate", effectiveDate); +std::string UpgradeResourcePackageRequest::getEffectiveDate() const { + return effectiveDate_; } -std::string UpgradeResourcePackageRequest::getInstanceId()const -{ - return instanceId_; +void UpgradeResourcePackageRequest::setEffectiveDate(const std::string &effectiveDate) { + effectiveDate_ = effectiveDate; + setParameter(std::string("EffectiveDate"), effectiveDate); } -void UpgradeResourcePackageRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string UpgradeResourcePackageRequest::getInstanceId() const { + return instanceId_; +} + +void UpgradeResourcePackageRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/bssopenapi/src/model/UpgradeResourcePackageResult.cc b/bssopenapi/src/model/UpgradeResourcePackageResult.cc index 82bb5d097..7115250ce 100644 --- a/bssopenapi/src/model/UpgradeResourcePackageResult.cc +++ b/bssopenapi/src/model/UpgradeResourcePackageResult.cc @@ -44,14 +44,14 @@ void UpgradeResourcePackageResult::parse(const std::string &payload) data_.orderId = std::stol(dataNode["OrderId"].asString()); if(!dataNode["InstanceId"].isNull()) data_.instanceId = dataNode["InstanceId"].asString(); - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); }