BSSOPENAPI SDK Auto Released By xiaocun.zxc,Version:1.36.20

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-04-22 17:23:28 +08:00
parent c4e4d725b9
commit a4e469e042
69 changed files with 4653 additions and 315 deletions

View File

@@ -31,21 +31,21 @@ BssOpenApiClient::BssOpenApiClient(const Credentials &credentials, const ClientC
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "bssopenapi");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
BssOpenApiClient::BssOpenApiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "bssopenapi");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
BssOpenApiClient::BssOpenApiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "bssopenapi");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
BssOpenApiClient::~BssOpenApiClient()
@@ -87,6 +87,402 @@ BssOpenApiClient::QueryMonthlyBillOutcomeCallable BssOpenApiClient::queryMonthly
return task->get_future();
}
BssOpenApiClient::CreateUserQuotaOutcome BssOpenApiClient::createUserQuota(const CreateUserQuotaRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateUserQuotaOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateUserQuotaOutcome(CreateUserQuotaResult(outcome.result()));
else
return CreateUserQuotaOutcome(outcome.error());
}
void BssOpenApiClient::createUserQuotaAsync(const CreateUserQuotaRequest& request, const CreateUserQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createUserQuota(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::CreateUserQuotaOutcomeCallable BssOpenApiClient::createUserQuotaCallable(const CreateUserQuotaRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateUserQuotaOutcome()>>(
[this, request]()
{
return this->createUserQuota(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::CreateInstanceOutcome BssOpenApiClient::createInstance(const CreateInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateInstanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateInstanceOutcome(CreateInstanceResult(outcome.result()));
else
return CreateInstanceOutcome(outcome.error());
}
void BssOpenApiClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createInstance(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::CreateInstanceOutcomeCallable BssOpenApiClient::createInstanceCallable(const CreateInstanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateInstanceOutcome()>>(
[this, request]()
{
return this->createInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::CancelOrderOutcome BssOpenApiClient::cancelOrder(const CancelOrderRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CancelOrderOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CancelOrderOutcome(CancelOrderResult(outcome.result()));
else
return CancelOrderOutcome(outcome.error());
}
void BssOpenApiClient::cancelOrderAsync(const CancelOrderRequest& request, const CancelOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, cancelOrder(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::CancelOrderOutcomeCallable BssOpenApiClient::cancelOrderCallable(const CancelOrderRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CancelOrderOutcome()>>(
[this, request]()
{
return this->cancelOrder(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::QueryResourcePackageInstancesOutcome BssOpenApiClient::queryResourcePackageInstances(const QueryResourcePackageInstancesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryResourcePackageInstancesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryResourcePackageInstancesOutcome(QueryResourcePackageInstancesResult(outcome.result()));
else
return QueryResourcePackageInstancesOutcome(outcome.error());
}
void BssOpenApiClient::queryResourcePackageInstancesAsync(const QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryResourcePackageInstances(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::QueryResourcePackageInstancesOutcomeCallable BssOpenApiClient::queryResourcePackageInstancesCallable(const QueryResourcePackageInstancesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryResourcePackageInstancesOutcome()>>(
[this, request]()
{
return this->queryResourcePackageInstances(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::QueryUserAlarmThresholdOutcome BssOpenApiClient::queryUserAlarmThreshold(const QueryUserAlarmThresholdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryUserAlarmThresholdOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryUserAlarmThresholdOutcome(QueryUserAlarmThresholdResult(outcome.result()));
else
return QueryUserAlarmThresholdOutcome(outcome.error());
}
void BssOpenApiClient::queryUserAlarmThresholdAsync(const QueryUserAlarmThresholdRequest& request, const QueryUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryUserAlarmThreshold(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::QueryUserAlarmThresholdOutcomeCallable BssOpenApiClient::queryUserAlarmThresholdCallable(const QueryUserAlarmThresholdRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryUserAlarmThresholdOutcome()>>(
[this, request]()
{
return this->queryUserAlarmThreshold(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::SubscribeDetailOutcome BssOpenApiClient::subscribeDetail(const SubscribeDetailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubscribeDetailOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubscribeDetailOutcome(SubscribeDetailResult(outcome.result()));
else
return SubscribeDetailOutcome(outcome.error());
}
void BssOpenApiClient::subscribeDetailAsync(const SubscribeDetailRequest& request, const SubscribeDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, subscribeDetail(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::SubscribeDetailOutcomeCallable BssOpenApiClient::subscribeDetailCallable(const SubscribeDetailRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubscribeDetailOutcome()>>(
[this, request]()
{
return this->subscribeDetail(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::EnableBillGenerationOutcome BssOpenApiClient::enableBillGeneration(const EnableBillGenerationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EnableBillGenerationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return EnableBillGenerationOutcome(EnableBillGenerationResult(outcome.result()));
else
return EnableBillGenerationOutcome(outcome.error());
}
void BssOpenApiClient::enableBillGenerationAsync(const EnableBillGenerationRequest& request, const EnableBillGenerationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, enableBillGeneration(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::EnableBillGenerationOutcomeCallable BssOpenApiClient::enableBillGenerationCallable(const EnableBillGenerationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<EnableBillGenerationOutcome()>>(
[this, request]()
{
return this->enableBillGeneration(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::SetEnduserStatusOutcome BssOpenApiClient::setEnduserStatus(const SetEnduserStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SetEnduserStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SetEnduserStatusOutcome(SetEnduserStatusResult(outcome.result()));
else
return SetEnduserStatusOutcome(outcome.error());
}
void BssOpenApiClient::setEnduserStatusAsync(const SetEnduserStatusRequest& request, const SetEnduserStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, setEnduserStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::SetEnduserStatusOutcomeCallable BssOpenApiClient::setEnduserStatusCallable(const SetEnduserStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SetEnduserStatusOutcome()>>(
[this, request]()
{
return this->setEnduserStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::QueryInvoicingCustomerListOutcome BssOpenApiClient::queryInvoicingCustomerList(const QueryInvoicingCustomerListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryInvoicingCustomerListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryInvoicingCustomerListOutcome(QueryInvoicingCustomerListResult(outcome.result()));
else
return QueryInvoicingCustomerListOutcome(outcome.error());
}
void BssOpenApiClient::queryInvoicingCustomerListAsync(const QueryInvoicingCustomerListRequest& request, const QueryInvoicingCustomerListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryInvoicingCustomerList(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::QueryInvoicingCustomerListOutcomeCallable BssOpenApiClient::queryInvoicingCustomerListCallable(const QueryInvoicingCustomerListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryInvoicingCustomerListOutcome()>>(
[this, request]()
{
return this->queryInvoicingCustomerList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::QueryAccountBalanceOutcome BssOpenApiClient::queryAccountBalance(const QueryAccountBalanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryAccountBalanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryAccountBalanceOutcome(QueryAccountBalanceResult(outcome.result()));
else
return QueryAccountBalanceOutcome(outcome.error());
}
void BssOpenApiClient::queryAccountBalanceAsync(const QueryAccountBalanceRequest& request, const QueryAccountBalanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryAccountBalance(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::QueryAccountBalanceOutcomeCallable BssOpenApiClient::queryAccountBalanceCallable(const QueryAccountBalanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryAccountBalanceOutcome()>>(
[this, request]()
{
return this->queryAccountBalance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::RenewInstanceOutcome BssOpenApiClient::renewInstance(const RenewInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RenewInstanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RenewInstanceOutcome(RenewInstanceResult(outcome.result()));
else
return RenewInstanceOutcome(outcome.error());
}
void BssOpenApiClient::renewInstanceAsync(const RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, renewInstance(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::RenewInstanceOutcomeCallable BssOpenApiClient::renewInstanceCallable(const RenewInstanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RenewInstanceOutcome()>>(
[this, request]()
{
return this->renewInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::QueryInstanceGaapCostOutcome BssOpenApiClient::queryInstanceGaapCost(const QueryInstanceGaapCostRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -231,42 +627,6 @@ BssOpenApiClient::QueryAvailableInstancesOutcomeCallable BssOpenApiClient::query
return task->get_future();
}
BssOpenApiClient::CreateInstanceOutcome BssOpenApiClient::createInstance(const CreateInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateInstanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateInstanceOutcome(CreateInstanceResult(outcome.result()));
else
return CreateInstanceOutcome(outcome.error());
}
void BssOpenApiClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createInstance(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::CreateInstanceOutcomeCallable BssOpenApiClient::createInstanceCallable(const CreateInstanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateInstanceOutcome()>>(
[this, request]()
{
return this->createInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::GetOrderDetailOutcome BssOpenApiClient::getOrderDetail(const GetOrderDetailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -303,6 +663,42 @@ BssOpenApiClient::GetOrderDetailOutcomeCallable BssOpenApiClient::getOrderDetail
return task->get_future();
}
BssOpenApiClient::QueryEnduserStatusOutcome BssOpenApiClient::queryEnduserStatus(const QueryEnduserStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryEnduserStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryEnduserStatusOutcome(QueryEnduserStatusResult(outcome.result()));
else
return QueryEnduserStatusOutcome(outcome.error());
}
void BssOpenApiClient::queryEnduserStatusAsync(const QueryEnduserStatusRequest& request, const QueryEnduserStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryEnduserStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::QueryEnduserStatusOutcomeCallable BssOpenApiClient::queryEnduserStatusCallable(const QueryEnduserStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryEnduserStatusOutcome()>>(
[this, request]()
{
return this->queryEnduserStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::ModifyInstanceOutcome BssOpenApiClient::modifyInstance(const ModifyInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -375,72 +771,108 @@ BssOpenApiClient::QueryCustomerAddressListOutcomeCallable BssOpenApiClient::quer
return task->get_future();
}
BssOpenApiClient::CancelOrderOutcome BssOpenApiClient::cancelOrder(const CancelOrderRequest &request) const
BssOpenApiClient::SetUserQuotaOutcome BssOpenApiClient::setUserQuota(const SetUserQuotaRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CancelOrderOutcome(endpointOutcome.error());
return SetUserQuotaOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CancelOrderOutcome(CancelOrderResult(outcome.result()));
return SetUserQuotaOutcome(SetUserQuotaResult(outcome.result()));
else
return CancelOrderOutcome(outcome.error());
return SetUserQuotaOutcome(outcome.error());
}
void BssOpenApiClient::cancelOrderAsync(const CancelOrderRequest& request, const CancelOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
void BssOpenApiClient::setUserQuotaAsync(const SetUserQuotaRequest& request, const SetUserQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, cancelOrder(request), context);
handler(this, request, setUserQuota(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::CancelOrderOutcomeCallable BssOpenApiClient::cancelOrderCallable(const CancelOrderRequest &request) const
BssOpenApiClient::SetUserQuotaOutcomeCallable BssOpenApiClient::setUserQuotaCallable(const SetUserQuotaRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CancelOrderOutcome()>>(
auto task = std::make_shared<std::packaged_task<SetUserQuotaOutcome()>>(
[this, request]()
{
return this->cancelOrder(request);
return this->setUserQuota(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::QueryResourcePackageInstancesOutcome BssOpenApiClient::queryResourcePackageInstances(const QueryResourcePackageInstancesRequest &request) const
BssOpenApiClient::UnsubscribeExportToOSSOutcome BssOpenApiClient::unsubscribeExportToOSS(const UnsubscribeExportToOSSRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryResourcePackageInstancesOutcome(endpointOutcome.error());
return UnsubscribeExportToOSSOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryResourcePackageInstancesOutcome(QueryResourcePackageInstancesResult(outcome.result()));
return UnsubscribeExportToOSSOutcome(UnsubscribeExportToOSSResult(outcome.result()));
else
return QueryResourcePackageInstancesOutcome(outcome.error());
return UnsubscribeExportToOSSOutcome(outcome.error());
}
void BssOpenApiClient::queryResourcePackageInstancesAsync(const QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
void BssOpenApiClient::unsubscribeExportToOSSAsync(const UnsubscribeExportToOSSRequest& request, const UnsubscribeExportToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryResourcePackageInstances(request), context);
handler(this, request, unsubscribeExportToOSS(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::QueryResourcePackageInstancesOutcomeCallable BssOpenApiClient::queryResourcePackageInstancesCallable(const QueryResourcePackageInstancesRequest &request) const
BssOpenApiClient::UnsubscribeExportToOSSOutcomeCallable BssOpenApiClient::unsubscribeExportToOSSCallable(const UnsubscribeExportToOSSRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryResourcePackageInstancesOutcome()>>(
auto task = std::make_shared<std::packaged_task<UnsubscribeExportToOSSOutcome()>>(
[this, request]()
{
return this->queryResourcePackageInstances(request);
return this->unsubscribeExportToOSS(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::QueryPriceListOutcome BssOpenApiClient::queryPriceList(const QueryPriceListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryPriceListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryPriceListOutcome(QueryPriceListResult(outcome.result()));
else
return QueryPriceListOutcome(outcome.error());
}
void BssOpenApiClient::queryPriceListAsync(const QueryPriceListRequest& request, const QueryPriceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryPriceList(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::QueryPriceListOutcomeCallable BssOpenApiClient::queryPriceListCallable(const QueryPriceListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryPriceListOutcome()>>(
[this, request]()
{
return this->queryPriceList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
@@ -627,6 +1059,42 @@ BssOpenApiClient::UnsubscribeBillToOSSOutcomeCallable BssOpenApiClient::unsubscr
return task->get_future();
}
BssOpenApiClient::ChangeConsumeAmountOutcome BssOpenApiClient::changeConsumeAmount(const ChangeConsumeAmountRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ChangeConsumeAmountOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ChangeConsumeAmountOutcome(ChangeConsumeAmountResult(outcome.result()));
else
return ChangeConsumeAmountOutcome(outcome.error());
}
void BssOpenApiClient::changeConsumeAmountAsync(const ChangeConsumeAmountRequest& request, const ChangeConsumeAmountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, changeConsumeAmount(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::ChangeConsumeAmountOutcomeCallable BssOpenApiClient::changeConsumeAmountCallable(const ChangeConsumeAmountRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ChangeConsumeAmountOutcome()>>(
[this, request]()
{
return this->changeConsumeAmount(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::ApplyInvoiceOutcome BssOpenApiClient::applyInvoice(const ApplyInvoiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -699,6 +1167,42 @@ BssOpenApiClient::QueryProductListOutcomeCallable BssOpenApiClient::queryProduct
return task->get_future();
}
BssOpenApiClient::SetUserAlarmThresholdOutcome BssOpenApiClient::setUserAlarmThreshold(const SetUserAlarmThresholdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SetUserAlarmThresholdOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SetUserAlarmThresholdOutcome(SetUserAlarmThresholdResult(outcome.result()));
else
return SetUserAlarmThresholdOutcome(outcome.error());
}
void BssOpenApiClient::setUserAlarmThresholdAsync(const SetUserAlarmThresholdRequest& request, const SetUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, setUserAlarmThreshold(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::SetUserAlarmThresholdOutcomeCallable BssOpenApiClient::setUserAlarmThresholdCallable(const SetUserAlarmThresholdRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SetUserAlarmThresholdOutcome()>>(
[this, request]()
{
return this->setUserAlarmThreshold(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::GetSubscriptionPriceOutcome BssOpenApiClient::getSubscriptionPrice(const GetSubscriptionPriceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -735,36 +1239,36 @@ BssOpenApiClient::GetSubscriptionPriceOutcomeCallable BssOpenApiClient::getSubsc
return task->get_future();
}
BssOpenApiClient::EnableBillGenerationOutcome BssOpenApiClient::enableBillGeneration(const EnableBillGenerationRequest &request) const
BssOpenApiClient::QueryAccountBookListOutcome BssOpenApiClient::queryAccountBookList(const QueryAccountBookListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EnableBillGenerationOutcome(endpointOutcome.error());
return QueryAccountBookListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return EnableBillGenerationOutcome(EnableBillGenerationResult(outcome.result()));
return QueryAccountBookListOutcome(QueryAccountBookListResult(outcome.result()));
else
return EnableBillGenerationOutcome(outcome.error());
return QueryAccountBookListOutcome(outcome.error());
}
void BssOpenApiClient::enableBillGenerationAsync(const EnableBillGenerationRequest& request, const EnableBillGenerationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
void BssOpenApiClient::queryAccountBookListAsync(const QueryAccountBookListRequest& request, const QueryAccountBookListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, enableBillGeneration(request), context);
handler(this, request, queryAccountBookList(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::EnableBillGenerationOutcomeCallable BssOpenApiClient::enableBillGenerationCallable(const EnableBillGenerationRequest &request) const
BssOpenApiClient::QueryAccountBookListOutcomeCallable BssOpenApiClient::queryAccountBookListCallable(const QueryAccountBookListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<EnableBillGenerationOutcome()>>(
auto task = std::make_shared<std::packaged_task<QueryAccountBookListOutcome()>>(
[this, request]()
{
return this->enableBillGeneration(request);
return this->queryAccountBookList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
@@ -843,42 +1347,6 @@ BssOpenApiClient::QueryCashCouponsOutcomeCallable BssOpenApiClient::queryCashCou
return task->get_future();
}
BssOpenApiClient::QueryInvoicingCustomerListOutcome BssOpenApiClient::queryInvoicingCustomerList(const QueryInvoicingCustomerListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryInvoicingCustomerListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryInvoicingCustomerListOutcome(QueryInvoicingCustomerListResult(outcome.result()));
else
return QueryInvoicingCustomerListOutcome(outcome.error());
}
void BssOpenApiClient::queryInvoicingCustomerListAsync(const QueryInvoicingCustomerListRequest& request, const QueryInvoicingCustomerListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryInvoicingCustomerList(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::QueryInvoicingCustomerListOutcomeCallable BssOpenApiClient::queryInvoicingCustomerListCallable(const QueryInvoicingCustomerListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryInvoicingCustomerListOutcome()>>(
[this, request]()
{
return this->queryInvoicingCustomerList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::QueryEvaluateListOutcome BssOpenApiClient::queryEvaluateList(const QueryEvaluateListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -987,78 +1455,6 @@ BssOpenApiClient::DescribeResourcePackageProductOutcomeCallable BssOpenApiClient
return task->get_future();
}
BssOpenApiClient::QueryAccountBalanceOutcome BssOpenApiClient::queryAccountBalance(const QueryAccountBalanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryAccountBalanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryAccountBalanceOutcome(QueryAccountBalanceResult(outcome.result()));
else
return QueryAccountBalanceOutcome(outcome.error());
}
void BssOpenApiClient::queryAccountBalanceAsync(const QueryAccountBalanceRequest& request, const QueryAccountBalanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryAccountBalance(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::QueryAccountBalanceOutcomeCallable BssOpenApiClient::queryAccountBalanceCallable(const QueryAccountBalanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryAccountBalanceOutcome()>>(
[this, request]()
{
return this->queryAccountBalance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::RenewInstanceOutcome BssOpenApiClient::renewInstance(const RenewInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RenewInstanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RenewInstanceOutcome(RenewInstanceResult(outcome.result()));
else
return RenewInstanceOutcome(outcome.error());
}
void BssOpenApiClient::renewInstanceAsync(const RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, renewInstance(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::RenewInstanceOutcomeCallable BssOpenApiClient::renewInstanceCallable(const RenewInstanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RenewInstanceOutcome()>>(
[this, request]()
{
return this->renewInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::CreateResourcePackageOutcome BssOpenApiClient::createResourcePackage(const CreateResourcePackageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1131,6 +1527,114 @@ BssOpenApiClient::QueryInstanceBillOutcomeCallable BssOpenApiClient::queryInstan
return task->get_future();
}
BssOpenApiClient::SubscribeExportToOSSOutcome BssOpenApiClient::subscribeExportToOSS(const SubscribeExportToOSSRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubscribeExportToOSSOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubscribeExportToOSSOutcome(SubscribeExportToOSSResult(outcome.result()));
else
return SubscribeExportToOSSOutcome(outcome.error());
}
void BssOpenApiClient::subscribeExportToOSSAsync(const SubscribeExportToOSSRequest& request, const SubscribeExportToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, subscribeExportToOSS(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::SubscribeExportToOSSOutcomeCallable BssOpenApiClient::subscribeExportToOSSCallable(const SubscribeExportToOSSRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubscribeExportToOSSOutcome()>>(
[this, request]()
{
return this->subscribeExportToOSS(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::QueryAvaliableQuotaOutcome BssOpenApiClient::queryAvaliableQuota(const QueryAvaliableQuotaRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryAvaliableQuotaOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryAvaliableQuotaOutcome(QueryAvaliableQuotaResult(outcome.result()));
else
return QueryAvaliableQuotaOutcome(outcome.error());
}
void BssOpenApiClient::queryAvaliableQuotaAsync(const QueryAvaliableQuotaRequest& request, const QueryAvaliableQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryAvaliableQuota(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::QueryAvaliableQuotaOutcomeCallable BssOpenApiClient::queryAvaliableQuotaCallable(const QueryAvaliableQuotaRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryAvaliableQuotaOutcome()>>(
[this, request]()
{
return this->queryAvaliableQuota(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::QueryPriceOutcome BssOpenApiClient::queryPrice(const QueryPriceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryPriceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryPriceOutcome(QueryPriceResult(outcome.result()));
else
return QueryPriceOutcome(outcome.error());
}
void BssOpenApiClient::queryPriceAsync(const QueryPriceRequest& request, const QueryPriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryPrice(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::QueryPriceOutcomeCallable BssOpenApiClient::queryPriceCallable(const QueryPriceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryPriceOutcome()>>(
[this, request]()
{
return this->queryPrice(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::QueryBillOutcome BssOpenApiClient::queryBill(const QueryBillRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,126 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/ChangeConsumeAmountRequest.h>
using AlibabaCloud::BssOpenApi::Model::ChangeConsumeAmountRequest;
ChangeConsumeAmountRequest::ChangeConsumeAmountRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "ChangeConsumeAmount")
{}
ChangeConsumeAmountRequest::~ChangeConsumeAmountRequest()
{}
long ChangeConsumeAmountRequest::getUid()const
{
return uid_;
}
void ChangeConsumeAmountRequest::setUid(long uid)
{
uid_ = uid;
setCoreParameter("Uid", std::to_string(uid));
}
std::string ChangeConsumeAmountRequest::getAdjustType()const
{
return adjustType_;
}
void ChangeConsumeAmountRequest::setAdjustType(const std::string& adjustType)
{
adjustType_ = adjustType;
setCoreParameter("AdjustType", adjustType);
}
std::string ChangeConsumeAmountRequest::getAmount()const
{
return amount_;
}
void ChangeConsumeAmountRequest::setAmount(const std::string& amount)
{
amount_ = amount;
setCoreParameter("Amount", amount);
}
std::string ChangeConsumeAmountRequest::getOutBizId()const
{
return outBizId_;
}
void ChangeConsumeAmountRequest::setOutBizId(const std::string& outBizId)
{
outBizId_ = outBizId;
setCoreParameter("OutBizId", outBizId);
}
std::string ChangeConsumeAmountRequest::getExtendMap()const
{
return extendMap_;
}
void ChangeConsumeAmountRequest::setExtendMap(const std::string& extendMap)
{
extendMap_ = extendMap;
setCoreParameter("ExtendMap", extendMap);
}
std::string ChangeConsumeAmountRequest::getCurrency()const
{
return currency_;
}
void ChangeConsumeAmountRequest::setCurrency(const std::string& currency)
{
currency_ = currency;
setCoreParameter("Currency", currency);
}
std::string ChangeConsumeAmountRequest::getSource()const
{
return source_;
}
void ChangeConsumeAmountRequest::setSource(const std::string& source)
{
source_ = source;
setCoreParameter("Source", source);
}
std::string ChangeConsumeAmountRequest::getBid()const
{
return bid_;
}
void ChangeConsumeAmountRequest::setBid(const std::string& bid)
{
bid_ = bid;
setCoreParameter("Bid", bid);
}
std::string ChangeConsumeAmountRequest::getBusinessType()const
{
return businessType_;
}
void ChangeConsumeAmountRequest::setBusinessType(const std::string& businessType)
{
businessType_ = businessType;
setCoreParameter("BusinessType", businessType);
}

View File

@@ -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 <alibabacloud/bssopenapi/model/ChangeConsumeAmountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
ChangeConsumeAmountResult::ChangeConsumeAmountResult() :
ServiceResult()
{}
ChangeConsumeAmountResult::ChangeConsumeAmountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ChangeConsumeAmountResult::~ChangeConsumeAmountResult()
{}
void ChangeConsumeAmountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string ChangeConsumeAmountResult::getMessage()const
{
return message_;
}
std::string ChangeConsumeAmountResult::getData()const
{
return data_;
}
std::string ChangeConsumeAmountResult::getCode()const
{
return code_;
}
bool ChangeConsumeAmountResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/CreateUserQuotaRequest.h>
using AlibabaCloud::BssOpenApi::Model::CreateUserQuotaRequest;
CreateUserQuotaRequest::CreateUserQuotaRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateUserQuota")
{}
CreateUserQuotaRequest::~CreateUserQuotaRequest()
{}
long CreateUserQuotaRequest::getUid()const
{
return uid_;
}
void CreateUserQuotaRequest::setUid(long uid)
{
uid_ = uid;
setCoreParameter("Uid", std::to_string(uid));
}
std::string CreateUserQuotaRequest::getAmount()const
{
return amount_;
}
void CreateUserQuotaRequest::setAmount(const std::string& amount)
{
amount_ = amount;
setCoreParameter("Amount", amount);
}
std::string CreateUserQuotaRequest::getOutBizId()const
{
return outBizId_;
}
void CreateUserQuotaRequest::setOutBizId(const std::string& outBizId)
{
outBizId_ = outBizId;
setCoreParameter("OutBizId", outBizId);
}
std::string CreateUserQuotaRequest::getCurrency()const
{
return currency_;
}
void CreateUserQuotaRequest::setCurrency(const std::string& currency)
{
currency_ = currency;
setCoreParameter("Currency", currency);
}
std::string CreateUserQuotaRequest::getBid()const
{
return bid_;
}
void CreateUserQuotaRequest::setBid(const std::string& bid)
{
bid_ = bid;
setCoreParameter("Bid", bid);
}

View File

@@ -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 <alibabacloud/bssopenapi/model/CreateUserQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CreateUserQuotaResult::CreateUserQuotaResult() :
ServiceResult()
{}
CreateUserQuotaResult::CreateUserQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateUserQuotaResult::~CreateUserQuotaResult()
{}
void CreateUserQuotaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
std::string CreateUserQuotaResult::getMessage()const
{
return message_;
}
bool CreateUserQuotaResult::getData()const
{
return data_;
}
std::string CreateUserQuotaResult::getCode()const
{
return code_;
}
bool CreateUserQuotaResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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.
*/
#include <alibabacloud/bssopenapi/model/QueryAccountBookListRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryAccountBookListRequest;
QueryAccountBookListRequest::QueryAccountBookListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBookList")
{}
QueryAccountBookListRequest::~QueryAccountBookListRequest()
{}
long QueryAccountBookListRequest::getUid()const
{
return uid_;
}
void QueryAccountBookListRequest::setUid(long uid)
{
uid_ = uid;
setCoreParameter("Uid", std::to_string(uid));
}
std::string QueryAccountBookListRequest::getItemCodes()const
{
return itemCodes_;
}
void QueryAccountBookListRequest::setItemCodes(const std::string& itemCodes)
{
itemCodes_ = itemCodes;
setCoreParameter("ItemCodes", itemCodes);
}
std::string QueryAccountBookListRequest::getBid()const
{
return bid_;
}
void QueryAccountBookListRequest::setBid(const std::string& bid)
{
bid_ = bid;
setCoreParameter("Bid", bid);
}

View File

@@ -0,0 +1,98 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryAccountBookListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryAccountBookListResult::QueryAccountBookListResult() :
ServiceResult()
{}
QueryAccountBookListResult::QueryAccountBookListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAccountBookListResult::~QueryAccountBookListResult()
{}
void QueryAccountBookListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDatas = value["Datas"]["Data"];
for (auto value : allDatas)
{
Data datasObject;
if(!value["UserId"].isNull())
datasObject.userId = std::stol(value["UserId"].asString());
if(!value["Bid"].isNull())
datasObject.bid = value["Bid"].asString();
if(!value["ItemCode"].isNull())
datasObject.itemCode = value["ItemCode"].asString();
if(!value["Amount"].isNull())
datasObject.amount = value["Amount"].asString();
if(!value["EffectTimeStamp"].isNull())
datasObject.effectTimeStamp = std::stol(value["EffectTimeStamp"].asString());
if(!value["InvalidTimeStamp"].isNull())
datasObject.invalidTimeStamp = std::stol(value["InvalidTimeStamp"].asString());
if(!value["Currency"].isNull())
datasObject.currency = value["Currency"].asString();
datas_.push_back(datasObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Count"].isNull())
count_ = std::stoi(value["Count"].asString());
}
std::string QueryAccountBookListResult::getMessage()const
{
return message_;
}
std::vector<QueryAccountBookListResult::Data> QueryAccountBookListResult::getDatas()const
{
return datas_;
}
int QueryAccountBookListResult::getCount()const
{
return count_;
}
std::string QueryAccountBookListResult::getCode()const
{
return code_;
}
bool QueryAccountBookListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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.
*/
#include <alibabacloud/bssopenapi/model/QueryAvaliableQuotaRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryAvaliableQuotaRequest;
QueryAvaliableQuotaRequest::QueryAvaliableQuotaRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAvaliableQuota")
{}
QueryAvaliableQuotaRequest::~QueryAvaliableQuotaRequest()
{}
long QueryAvaliableQuotaRequest::getUid()const
{
return uid_;
}
void QueryAvaliableQuotaRequest::setUid(long uid)
{
uid_ = uid;
setCoreParameter("Uid", std::to_string(uid));
}
std::string QueryAvaliableQuotaRequest::getItemCodes()const
{
return itemCodes_;
}
void QueryAvaliableQuotaRequest::setItemCodes(const std::string& itemCodes)
{
itemCodes_ = itemCodes;
setCoreParameter("ItemCodes", itemCodes);
}
std::string QueryAvaliableQuotaRequest::getBid()const
{
return bid_;
}
void QueryAvaliableQuotaRequest::setBid(const std::string& bid)
{
bid_ = bid;
setCoreParameter("Bid", bid);
}

View File

@@ -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 <alibabacloud/bssopenapi/model/QueryAvaliableQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryAvaliableQuotaResult::QueryAvaliableQuotaResult() :
ServiceResult()
{}
QueryAvaliableQuotaResult::QueryAvaliableQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAvaliableQuotaResult::~QueryAvaliableQuotaResult()
{}
void QueryAvaliableQuotaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string QueryAvaliableQuotaResult::getMessage()const
{
return message_;
}
std::string QueryAvaliableQuotaResult::getData()const
{
return data_;
}
std::string QueryAvaliableQuotaResult::getCode()const
{
return code_;
}
bool QueryAvaliableQuotaResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryEnduserStatusRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryEnduserStatusRequest;
QueryEnduserStatusRequest::QueryEnduserStatusRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryEnduserStatus")
{}
QueryEnduserStatusRequest::~QueryEnduserStatusRequest()
{}
long QueryEnduserStatusRequest::getUid()const
{
return uid_;
}
void QueryEnduserStatusRequest::setUid(long uid)
{
uid_ = uid;
setCoreParameter("Uid", std::to_string(uid));
}
std::string QueryEnduserStatusRequest::getPrimaryAccount()const
{
return primaryAccount_;
}
void QueryEnduserStatusRequest::setPrimaryAccount(const std::string& primaryAccount)
{
primaryAccount_ = primaryAccount;
setCoreParameter("PrimaryAccount", primaryAccount);
}
std::string QueryEnduserStatusRequest::getStatus()const
{
return status_;
}
void QueryEnduserStatusRequest::setStatus(const std::string& status)
{
status_ = status;
setCoreParameter("Status", status);
}
std::string QueryEnduserStatusRequest::getBusinessType()const
{
return businessType_;
}
void QueryEnduserStatusRequest::setBusinessType(const std::string& businessType)
{
businessType_ = businessType;
setCoreParameter("BusinessType", businessType);
}

View File

@@ -0,0 +1,92 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryEnduserStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryEnduserStatusResult::QueryEnduserStatusResult() :
ServiceResult()
{}
QueryEnduserStatusResult::QueryEnduserStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryEnduserStatusResult::~QueryEnduserStatusResult()
{}
void QueryEnduserStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDatas = value["Datas"]["Data"];
for (auto value : allDatas)
{
Data datasObject;
if(!value["Uid"].isNull())
datasObject.uid = std::stol(value["Uid"].asString());
if(!value["PrimaryAccount"].isNull())
datasObject.primaryAccount = value["PrimaryAccount"].asString();
if(!value["BusinessType"].isNull())
datasObject.businessType = value["BusinessType"].asString();
if(!value["Status"].isNull())
datasObject.status = value["Status"].asString();
datas_.push_back(datasObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Count"].isNull())
count_ = std::stoi(value["Count"].asString());
}
std::string QueryEnduserStatusResult::getMessage()const
{
return message_;
}
std::vector<QueryEnduserStatusResult::Data> QueryEnduserStatusResult::getDatas()const
{
return datas_;
}
int QueryEnduserStatusResult::getCount()const
{
return count_;
}
std::string QueryEnduserStatusResult::getCode()const
{
return code_;
}
bool QueryEnduserStatusResult::getSuccess()const
{
return success_;
}

View File

@@ -70,17 +70,6 @@ void QueryEvaluateListRequest::setBizTypeList(const std::vector<std::string>& bi
setCoreParameter("BizTypeList."+ std::to_string(i), bizTypeList.at(i));
}
long QueryEvaluateListRequest::getCallerBid()const
{
return callerBid_;
}
void QueryEvaluateListRequest::setCallerBid(long callerBid)
{
callerBid_ = callerBid;
setCoreParameter("CallerBid", std::to_string(callerBid));
}
int QueryEvaluateListRequest::getType()const
{
return type_;
@@ -191,14 +180,3 @@ void QueryEvaluateListRequest::setStartBizTime(const std::string& startBizTime)
setCoreParameter("StartBizTime", startBizTime);
}
long QueryEvaluateListRequest::getCallerUid()const
{
return callerUid_;
}
void QueryEvaluateListRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setCoreParameter("CallerUid", std::to_string(callerUid));
}

View File

@@ -49,6 +49,10 @@ void QueryEvaluateListResult::parse(const std::string &payload)
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());
auto allEvaluateList = value["EvaluateList"]["Evaluate"];
for (auto value : allEvaluateList)
{

View File

@@ -25,17 +25,6 @@ QueryInvoicingCustomerListRequest::QueryInvoicingCustomerListRequest() :
QueryInvoicingCustomerListRequest::~QueryInvoicingCustomerListRequest()
{}
long QueryInvoicingCustomerListRequest::getCallerBid()const
{
return callerBid_;
}
void QueryInvoicingCustomerListRequest::setCallerBid(long callerBid)
{
callerBid_ = callerBid;
setCoreParameter("CallerBid", std::to_string(callerBid));
}
long QueryInvoicingCustomerListRequest::getOwnerId()const
{
return ownerId_;
@@ -47,14 +36,3 @@ void QueryInvoicingCustomerListRequest::setOwnerId(long ownerId)
setCoreParameter("OwnerId", std::to_string(ownerId));
}
long QueryInvoicingCustomerListRequest::getCallerUid()const
{
return callerUid_;
}
void QueryInvoicingCustomerListRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setCoreParameter("CallerUid", std::to_string(callerUid));
}

View File

@@ -85,6 +85,8 @@ void QueryInvoicingCustomerListResult::parse(const std::string &payload)
customerInvoiceObject.issueType = std::stol(value["IssueType"].asString());
if(!value["Type"].isNull())
customerInvoiceObject.type = std::stol(value["Type"].asString());
if(!value["DefaultRemark"].isNull())
customerInvoiceObject.defaultRemark = value["DefaultRemark"].asString();
data_.customerInvoiceList.push_back(customerInvoiceObject);
}
if(!value["Success"].isNull())

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryPriceListRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryPriceListRequest;
QueryPriceListRequest::QueryPriceListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPriceList")
{}
QueryPriceListRequest::~QueryPriceListRequest()
{}
std::string QueryPriceListRequest::getModuleCode()const
{
return moduleCode_;
}
void QueryPriceListRequest::setModuleCode(const std::string& moduleCode)
{
moduleCode_ = moduleCode;
setCoreParameter("ModuleCode", moduleCode);
}
std::string QueryPriceListRequest::getProductCode()const
{
return productCode_;
}
void QueryPriceListRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setCoreParameter("ProductCode", productCode);
}
std::string QueryPriceListRequest::getSubscriptionType()const
{
return subscriptionType_;
}
void QueryPriceListRequest::setSubscriptionType(const std::string& subscriptionType)
{
subscriptionType_ = subscriptionType;
setCoreParameter("SubscriptionType", subscriptionType);
}
long QueryPriceListRequest::getOwnerId()const
{
return ownerId_;
}
void QueryPriceListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryPriceListRequest::getProductType()const
{
return productType_;
}
void QueryPriceListRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setCoreParameter("ProductType", productType);
}

View File

@@ -0,0 +1,110 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryPriceListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryPriceListResult::QueryPriceListResult() :
ServiceResult()
{}
QueryPriceListResult::QueryPriceListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryPriceListResult::~QueryPriceListResult()
{}
void QueryPriceListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Currency"].isNull())
data_.currency = dataNode["Currency"].asString();
auto allModules = value["Modules"]["Module"];
for (auto value : allModules)
{
Data::Module moduleObject;
if(!value["ModuleCode"].isNull())
moduleObject.moduleCode = value["ModuleCode"].asString();
if(!value["Region"].isNull())
moduleObject.region = value["Region"].asString();
if(!value["Config"].isNull())
moduleObject.config = value["Config"].asString();
if(!value["PriceUnitQuantity"].isNull())
moduleObject.priceUnitQuantity = value["PriceUnitQuantity"].asString();
if(!value["PriceUnit"].isNull())
moduleObject.priceUnit = value["PriceUnit"].asString();
auto allTierPrices = value["TierPrices"]["TierPrice"];
for (auto value : allTierPrices)
{
Data::Module::TierPrice tierPricesObject;
if(!value["TierStart"].isNull())
tierPricesObject.tierStart = value["TierStart"].asString();
if(!value["StartSymbol"].isNull())
tierPricesObject.startSymbol = value["StartSymbol"].asString();
if(!value["TierEnd"].isNull())
tierPricesObject.tierEnd = value["TierEnd"].asString();
if(!value["EndSymbol"].isNull())
tierPricesObject.endSymbol = value["EndSymbol"].asString();
if(!value["TierType"].isNull())
tierPricesObject.tierType = value["TierType"].asString();
if(!value["PriceType"].isNull())
tierPricesObject.priceType = value["PriceType"].asString();
if(!value["Price"].isNull())
tierPricesObject.price = value["Price"].asString();
moduleObject.tierPrices.push_back(tierPricesObject);
}
data_.modules.push_back(moduleObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryPriceListResult::getMessage()const
{
return message_;
}
QueryPriceListResult::Data QueryPriceListResult::getData()const
{
return data_;
}
std::string QueryPriceListResult::getCode()const
{
return code_;
}
bool QueryPriceListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,38 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryPriceRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryPriceRequest;
QueryPriceRequest::QueryPriceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPrice")
{}
QueryPriceRequest::~QueryPriceRequest()
{}
std::string QueryPriceRequest::getParamStr()const
{
return paramStr_;
}
void QueryPriceRequest::setParamStr(const std::string& paramStr)
{
paramStr_ = paramStr;
setCoreParameter("ParamStr", paramStr);
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryPriceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryPriceResult::QueryPriceResult() :
ServiceResult()
{}
QueryPriceResult::QueryPriceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryPriceResult::~QueryPriceResult()
{}
void QueryPriceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
}
std::string QueryPriceResult::getMessage()const
{
return message_;
}
std::string QueryPriceResult::getData()const
{
return data_;
}
std::string QueryPriceResult::getCode()const
{
return code_;
}
bool QueryPriceResult::getSuccess()const
{
return success_;
}
std::string QueryPriceResult::getErrCode()const
{
return errCode_;
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryUserAlarmThresholdRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryUserAlarmThresholdRequest;
QueryUserAlarmThresholdRequest::QueryUserAlarmThresholdRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryUserAlarmThreshold")
{}
QueryUserAlarmThresholdRequest::~QueryUserAlarmThresholdRequest()
{}
long QueryUserAlarmThresholdRequest::getUid()const
{
return uid_;
}
void QueryUserAlarmThresholdRequest::setUid(long uid)
{
uid_ = uid;
setCoreParameter("Uid", std::to_string(uid));
}
std::string QueryUserAlarmThresholdRequest::getAlarmType()const
{
return alarmType_;
}
void QueryUserAlarmThresholdRequest::setAlarmType(const std::string& alarmType)
{
alarmType_ = alarmType;
setCoreParameter("AlarmType", alarmType);
}
std::string QueryUserAlarmThresholdRequest::getAlarmThresholds()const
{
return alarmThresholds_;
}
void QueryUserAlarmThresholdRequest::setAlarmThresholds(const std::string& alarmThresholds)
{
alarmThresholds_ = alarmThresholds;
setCoreParameter("AlarmThresholds", alarmThresholds);
}
std::string QueryUserAlarmThresholdRequest::getBid()const
{
return bid_;
}
void QueryUserAlarmThresholdRequest::setBid(const std::string& bid)
{
bid_ = bid;
setCoreParameter("Bid", bid);
}

View File

@@ -0,0 +1,92 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryUserAlarmThresholdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryUserAlarmThresholdResult::QueryUserAlarmThresholdResult() :
ServiceResult()
{}
QueryUserAlarmThresholdResult::QueryUserAlarmThresholdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryUserAlarmThresholdResult::~QueryUserAlarmThresholdResult()
{}
void QueryUserAlarmThresholdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDatas = value["Datas"]["Data"];
for (auto value : allDatas)
{
Data datasObject;
if(!value["ThresholdAmount"].isNull())
datasObject.thresholdAmount = value["ThresholdAmount"].asString();
if(!value["Numerator"].isNull())
datasObject.numerator = std::stoi(value["Numerator"].asString());
if(!value["Denominator"].isNull())
datasObject.denominator = std::stoi(value["Denominator"].asString());
if(!value["ThresholdType"].isNull())
datasObject.thresholdType = std::stoi(value["ThresholdType"].asString());
datas_.push_back(datasObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Count"].isNull())
count_ = std::stoi(value["Count"].asString());
}
std::string QueryUserAlarmThresholdResult::getMessage()const
{
return message_;
}
std::vector<QueryUserAlarmThresholdResult::Data> QueryUserAlarmThresholdResult::getDatas()const
{
return datas_;
}
int QueryUserAlarmThresholdResult::getCount()const
{
return count_;
}
std::string QueryUserAlarmThresholdResult::getCode()const
{
return code_;
}
bool QueryUserAlarmThresholdResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SetEnduserStatusRequest.h>
using AlibabaCloud::BssOpenApi::Model::SetEnduserStatusRequest;
SetEnduserStatusRequest::SetEnduserStatusRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SetEnduserStatus")
{}
SetEnduserStatusRequest::~SetEnduserStatusRequest()
{}
long SetEnduserStatusRequest::getUid()const
{
return uid_;
}
void SetEnduserStatusRequest::setUid(long uid)
{
uid_ = uid;
setCoreParameter("Uid", std::to_string(uid));
}
std::string SetEnduserStatusRequest::getPrimaryAccount()const
{
return primaryAccount_;
}
void SetEnduserStatusRequest::setPrimaryAccount(const std::string& primaryAccount)
{
primaryAccount_ = primaryAccount;
setCoreParameter("PrimaryAccount", primaryAccount);
}
std::string SetEnduserStatusRequest::getStatus()const
{
return status_;
}
void SetEnduserStatusRequest::setStatus(const std::string& status)
{
status_ = status;
setCoreParameter("Status", status);
}
std::string SetEnduserStatusRequest::getBusinessType()const
{
return businessType_;
}
void SetEnduserStatusRequest::setBusinessType(const std::string& businessType)
{
businessType_ = businessType;
setCoreParameter("BusinessType", businessType);
}

View File

@@ -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 <alibabacloud/bssopenapi/model/SetEnduserStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetEnduserStatusResult::SetEnduserStatusResult() :
ServiceResult()
{}
SetEnduserStatusResult::SetEnduserStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetEnduserStatusResult::~SetEnduserStatusResult()
{}
void SetEnduserStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
std::string SetEnduserStatusResult::getMessage()const
{
return message_;
}
bool SetEnduserStatusResult::getData()const
{
return data_;
}
std::string SetEnduserStatusResult::getCode()const
{
return code_;
}
bool SetEnduserStatusResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SetUserAlarmThresholdRequest.h>
using AlibabaCloud::BssOpenApi::Model::SetUserAlarmThresholdRequest;
SetUserAlarmThresholdRequest::SetUserAlarmThresholdRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SetUserAlarmThreshold")
{}
SetUserAlarmThresholdRequest::~SetUserAlarmThresholdRequest()
{}
long SetUserAlarmThresholdRequest::getUid()const
{
return uid_;
}
void SetUserAlarmThresholdRequest::setUid(long uid)
{
uid_ = uid;
setCoreParameter("Uid", std::to_string(uid));
}
std::string SetUserAlarmThresholdRequest::getAlarmType()const
{
return alarmType_;
}
void SetUserAlarmThresholdRequest::setAlarmType(const std::string& alarmType)
{
alarmType_ = alarmType;
setCoreParameter("AlarmType", alarmType);
}
std::string SetUserAlarmThresholdRequest::getAlarmThresholds()const
{
return alarmThresholds_;
}
void SetUserAlarmThresholdRequest::setAlarmThresholds(const std::string& alarmThresholds)
{
alarmThresholds_ = alarmThresholds;
setCoreParameter("AlarmThresholds", alarmThresholds);
}
std::string SetUserAlarmThresholdRequest::getBid()const
{
return bid_;
}
void SetUserAlarmThresholdRequest::setBid(const std::string& bid)
{
bid_ = bid;
setCoreParameter("Bid", bid);
}

View File

@@ -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 <alibabacloud/bssopenapi/model/SetUserAlarmThresholdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetUserAlarmThresholdResult::SetUserAlarmThresholdResult() :
ServiceResult()
{}
SetUserAlarmThresholdResult::SetUserAlarmThresholdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetUserAlarmThresholdResult::~SetUserAlarmThresholdResult()
{}
void SetUserAlarmThresholdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
std::string SetUserAlarmThresholdResult::getMessage()const
{
return message_;
}
bool SetUserAlarmThresholdResult::getData()const
{
return data_;
}
std::string SetUserAlarmThresholdResult::getCode()const
{
return code_;
}
bool SetUserAlarmThresholdResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SetUserQuotaRequest.h>
using AlibabaCloud::BssOpenApi::Model::SetUserQuotaRequest;
SetUserQuotaRequest::SetUserQuotaRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SetUserQuota")
{}
SetUserQuotaRequest::~SetUserQuotaRequest()
{}
long SetUserQuotaRequest::getUid()const
{
return uid_;
}
void SetUserQuotaRequest::setUid(long uid)
{
uid_ = uid;
setCoreParameter("Uid", std::to_string(uid));
}
std::string SetUserQuotaRequest::getAmount()const
{
return amount_;
}
void SetUserQuotaRequest::setAmount(const std::string& amount)
{
amount_ = amount;
setCoreParameter("Amount", amount);
}
std::string SetUserQuotaRequest::getOutBizId()const
{
return outBizId_;
}
void SetUserQuotaRequest::setOutBizId(const std::string& outBizId)
{
outBizId_ = outBizId;
setCoreParameter("OutBizId", outBizId);
}
std::string SetUserQuotaRequest::getCurrency()const
{
return currency_;
}
void SetUserQuotaRequest::setCurrency(const std::string& currency)
{
currency_ = currency;
setCoreParameter("Currency", currency);
}
std::string SetUserQuotaRequest::getBid()const
{
return bid_;
}
void SetUserQuotaRequest::setBid(const std::string& bid)
{
bid_ = bid;
setCoreParameter("Bid", bid);
}

View File

@@ -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 <alibabacloud/bssopenapi/model/SetUserQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetUserQuotaResult::SetUserQuotaResult() :
ServiceResult()
{}
SetUserQuotaResult::SetUserQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetUserQuotaResult::~SetUserQuotaResult()
{}
void SetUserQuotaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
std::string SetUserQuotaResult::getMessage()const
{
return message_;
}
bool SetUserQuotaResult::getData()const
{
return data_;
}
std::string SetUserQuotaResult::getCode()const
{
return code_;
}
bool SetUserQuotaResult::getSuccess()const
{
return success_;
}

View File

@@ -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.
*/
#include <alibabacloud/bssopenapi/model/SubscribeDetailRequest.h>
using AlibabaCloud::BssOpenApi::Model::SubscribeDetailRequest;
SubscribeDetailRequest::SubscribeDetailRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SubscribeDetail")
{}
SubscribeDetailRequest::~SubscribeDetailRequest()
{}
long SubscribeDetailRequest::getBucketOwnerId()const
{
return bucketOwnerId_;
}
void SubscribeDetailRequest::setBucketOwnerId(long bucketOwnerId)
{
bucketOwnerId_ = bucketOwnerId;
setCoreParameter("BucketOwnerId", std::to_string(bucketOwnerId));
}
std::vector<std::string> SubscribeDetailRequest::getSubscribeType()const
{
return subscribeType_;
}
void SubscribeDetailRequest::setSubscribeType(const std::vector<std::string>& subscribeType)
{
subscribeType_ = subscribeType;
for(int i = 0; i!= subscribeType.size(); i++)
setCoreParameter("SubscribeType."+ std::to_string(i), subscribeType.at(i));
}
std::string SubscribeDetailRequest::getSubscribeBucket()const
{
return subscribeBucket_;
}
void SubscribeDetailRequest::setSubscribeBucket(const std::string& subscribeBucket)
{
subscribeBucket_ = subscribeBucket;
setCoreParameter("SubscribeBucket", subscribeBucket);
}

View File

@@ -0,0 +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.
*/
#include <alibabacloud/bssopenapi/model/SubscribeDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SubscribeDetailResult::SubscribeDetailResult() :
ServiceResult()
{}
SubscribeDetailResult::SubscribeDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubscribeDetailResult::~SubscribeDetailResult()
{}
void SubscribeDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string SubscribeDetailResult::getMessage()const
{
return message_;
}
std::string SubscribeDetailResult::getCode()const
{
return code_;
}
bool SubscribeDetailResult::getSuccess()const
{
return success_;
}

View File

@@ -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.
*/
#include <alibabacloud/bssopenapi/model/SubscribeExportToOSSRequest.h>
using AlibabaCloud::BssOpenApi::Model::SubscribeExportToOSSRequest;
SubscribeExportToOSSRequest::SubscribeExportToOSSRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SubscribeExportToOSS")
{}
SubscribeExportToOSSRequest::~SubscribeExportToOSSRequest()
{}
long SubscribeExportToOSSRequest::getBucketOwnerId()const
{
return bucketOwnerId_;
}
void SubscribeExportToOSSRequest::setBucketOwnerId(long bucketOwnerId)
{
bucketOwnerId_ = bucketOwnerId;
setCoreParameter("BucketOwnerId", std::to_string(bucketOwnerId));
}
std::vector<std::string> SubscribeExportToOSSRequest::getSubscribeType()const
{
return subscribeType_;
}
void SubscribeExportToOSSRequest::setSubscribeType(const std::vector<std::string>& subscribeType)
{
subscribeType_ = subscribeType;
for(int i = 0; i!= subscribeType.size(); i++)
setCoreParameter("SubscribeType."+ std::to_string(i), subscribeType.at(i));
}
std::string SubscribeExportToOSSRequest::getSubscribeBucket()const
{
return subscribeBucket_;
}
void SubscribeExportToOSSRequest::setSubscribeBucket(const std::string& subscribeBucket)
{
subscribeBucket_ = subscribeBucket;
setCoreParameter("SubscribeBucket", subscribeBucket);
}

View File

@@ -0,0 +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.
*/
#include <alibabacloud/bssopenapi/model/SubscribeExportToOSSResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SubscribeExportToOSSResult::SubscribeExportToOSSResult() :
ServiceResult()
{}
SubscribeExportToOSSResult::SubscribeExportToOSSResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubscribeExportToOSSResult::~SubscribeExportToOSSResult()
{}
void SubscribeExportToOSSResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string SubscribeExportToOSSResult::getMessage()const
{
return message_;
}
std::string SubscribeExportToOSSResult::getCode()const
{
return code_;
}
bool SubscribeExportToOSSResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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 <alibabacloud/bssopenapi/model/UnsubscribeExportToOSSRequest.h>
using AlibabaCloud::BssOpenApi::Model::UnsubscribeExportToOSSRequest;
UnsubscribeExportToOSSRequest::UnsubscribeExportToOSSRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "UnsubscribeExportToOSS")
{}
UnsubscribeExportToOSSRequest::~UnsubscribeExportToOSSRequest()
{}

View File

@@ -0,0 +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.
*/
#include <alibabacloud/bssopenapi/model/UnsubscribeExportToOSSResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
UnsubscribeExportToOSSResult::UnsubscribeExportToOSSResult() :
ServiceResult()
{}
UnsubscribeExportToOSSResult::UnsubscribeExportToOSSResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UnsubscribeExportToOSSResult::~UnsubscribeExportToOSSResult()
{}
void UnsubscribeExportToOSSResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string UnsubscribeExportToOSSResult::getMessage()const
{
return message_;
}
std::string UnsubscribeExportToOSSResult::getCode()const
{
return code_;
}
bool UnsubscribeExportToOSSResult::getSuccess()const
{
return success_;
}