QueryInstanceBillResponse change ownerId type from Long to String.

This commit is contained in:
sdk-team
2019-08-26 17:10:48 +08:00
parent ed89d6f242
commit fcfbd8becc
66 changed files with 905 additions and 4537 deletions

View File

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

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

View File

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

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

View File

@@ -47,6 +47,17 @@ void GetResourcePackagePriceRequest::setProductCode(const std::string& productCo
setCoreParameter("ProductCode", productCode);
}
std::string GetResourcePackagePriceRequest::getInstanceId()const
{
return instanceId_;
}
void GetResourcePackagePriceRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string GetResourcePackagePriceRequest::getSpecification()const
{
return specification_;
@@ -102,3 +113,14 @@ void GetResourcePackagePriceRequest::setPricingCycle(const std::string& pricingC
setCoreParameter("PricingCycle", pricingCycle);
}
std::string GetResourcePackagePriceRequest::getOrderType()const
{
return orderType_;
}
void GetResourcePackagePriceRequest::setOrderType(const std::string& orderType)
{
orderType_ = orderType;
setCoreParameter("OrderType", orderType);
}

View File

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

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

View File

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

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/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

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

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

View File

@@ -77,19 +77,19 @@ void QueryInstanceBillResult::parse(const std::string &payload)
if(!value["ProductDetail"].isNull())
itemObject.productDetail = value["ProductDetail"].asString();
if(!value["OwnerID"].isNull())
itemObject.ownerID = std::stol(value["OwnerID"].asString());
itemObject.ownerID = value["OwnerID"].asString();
if(!value["BillingItem"].isNull())
itemObject.billingItem = value["BillingItem"].asString();
if(!value["ListPrice"].isNull())
itemObject.listPrice = std::stof(value["ListPrice"].asString());
itemObject.listPrice = value["ListPrice"].asString();
if(!value["ListPriceUnit"].isNull())
itemObject.listPriceUnit = value["ListPriceUnit"].asString();
if(!value["Usage"].isNull())
itemObject.usage = std::stof(value["Usage"].asString());
itemObject.usage = value["Usage"].asString();
if(!value["UsageUnit"].isNull())
itemObject.usageUnit = value["UsageUnit"].asString();
if(!value["DeductedByResourcePackage"].isNull())
itemObject.deductedByResourcePackage = std::stof(value["DeductedByResourcePackage"].asString());
itemObject.deductedByResourcePackage = value["DeductedByResourcePackage"].asString();
if(!value["PretaxGrossAmount"].isNull())
itemObject.pretaxGrossAmount = std::stof(value["PretaxGrossAmount"].asString());
if(!value["InvoiceDiscount"].isNull())

View File

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

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

View File

@@ -1,38 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/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

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

View File

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

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

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/RenewResourcePackageRequest.h>
using AlibabaCloud::BssOpenApi::Model::RenewResourcePackageRequest;
RenewResourcePackageRequest::RenewResourcePackageRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "RenewResourcePackage")
{}
RenewResourcePackageRequest::~RenewResourcePackageRequest()
{}
int RenewResourcePackageRequest::getDuration()const
{
return duration_;
}
void RenewResourcePackageRequest::setDuration(int duration)
{
duration_ = duration;
setCoreParameter("Duration", std::to_string(duration));
}
std::string RenewResourcePackageRequest::getInstanceId()const
{
return instanceId_;
}
void RenewResourcePackageRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
long RenewResourcePackageRequest::getOwnerId()const
{
return ownerId_;
}
void RenewResourcePackageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string RenewResourcePackageRequest::getEffectiveDate()const
{
return effectiveDate_;
}
void RenewResourcePackageRequest::setEffectiveDate(const std::string& effectiveDate)
{
effectiveDate_ = effectiveDate;
setCoreParameter("EffectiveDate", effectiveDate);
}
std::string RenewResourcePackageRequest::getPricingCycle()const
{
return pricingCycle_;
}
void RenewResourcePackageRequest::setPricingCycle(const std::string& pricingCycle)
{
pricingCycle_ = pricingCycle;
setCoreParameter("PricingCycle", pricingCycle);
}

View File

@@ -14,32 +14,42 @@
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SubscribeExportToOSSResult.h>
#include <alibabacloud/bssopenapi/model/RenewResourcePackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SubscribeExportToOSSResult::SubscribeExportToOSSResult() :
RenewResourcePackageResult::RenewResourcePackageResult() :
ServiceResult()
{}
SubscribeExportToOSSResult::SubscribeExportToOSSResult(const std::string &payload) :
RenewResourcePackageResult::RenewResourcePackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubscribeExportToOSSResult::~SubscribeExportToOSSResult()
RenewResourcePackageResult::~RenewResourcePackageResult()
{}
void SubscribeExportToOSSResult::parse(const std::string &payload)
void RenewResourcePackageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
reader.parse(payload, value);
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["OrderId"].isNull())
data_.orderId = std::stol(dataNode["OrderId"].asString());
if(!dataNode["InstanceId"].isNull())
data_.instanceId = dataNode["InstanceId"].asString();
if(!value["OrderId"].isNull())
orderId_ = std::stol(value["OrderId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
@@ -49,17 +59,27 @@ void SubscribeExportToOSSResult::parse(const std::string &payload)
}
std::string SubscribeExportToOSSResult::getMessage()const
std::string RenewResourcePackageResult::getMessage()const
{
return message_;
}
std::string SubscribeExportToOSSResult::getCode()const
RenewResourcePackageResult::Data RenewResourcePackageResult::getData()const
{
return data_;
}
long RenewResourcePackageResult::getOrderId()const
{
return orderId_;
}
std::string RenewResourcePackageResult::getCode()const
{
return code_;
}
bool SubscribeExportToOSSResult::getSuccess()const
bool RenewResourcePackageResult::getSuccess()const
{
return success_;
}

View File

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

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

View File

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

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

View File

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

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/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

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

@@ -1,66 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/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

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

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

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/UpgradeResourcePackageRequest.h>
using AlibabaCloud::BssOpenApi::Model::UpgradeResourcePackageRequest;
UpgradeResourcePackageRequest::UpgradeResourcePackageRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "UpgradeResourcePackage")
{}
UpgradeResourcePackageRequest::~UpgradeResourcePackageRequest()
{}
std::string UpgradeResourcePackageRequest::getInstanceId()const
{
return instanceId_;
}
void UpgradeResourcePackageRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string UpgradeResourcePackageRequest::getSpecification()const
{
return specification_;
}
void UpgradeResourcePackageRequest::setSpecification(const std::string& specification)
{
specification_ = specification;
setCoreParameter("Specification", specification);
}
long UpgradeResourcePackageRequest::getOwnerId()const
{
return ownerId_;
}
void UpgradeResourcePackageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string UpgradeResourcePackageRequest::getEffectiveDate()const
{
return effectiveDate_;
}
void UpgradeResourcePackageRequest::setEffectiveDate(const std::string& effectiveDate)
{
effectiveDate_ = effectiveDate;
setCoreParameter("EffectiveDate", effectiveDate);
}

View File

@@ -14,32 +14,42 @@
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/UnsubscribeExportToOSSResult.h>
#include <alibabacloud/bssopenapi/model/UpgradeResourcePackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
UnsubscribeExportToOSSResult::UnsubscribeExportToOSSResult() :
UpgradeResourcePackageResult::UpgradeResourcePackageResult() :
ServiceResult()
{}
UnsubscribeExportToOSSResult::UnsubscribeExportToOSSResult(const std::string &payload) :
UpgradeResourcePackageResult::UpgradeResourcePackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UnsubscribeExportToOSSResult::~UnsubscribeExportToOSSResult()
UpgradeResourcePackageResult::~UpgradeResourcePackageResult()
{}
void UnsubscribeExportToOSSResult::parse(const std::string &payload)
void UpgradeResourcePackageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
reader.parse(payload, value);
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["OrderId"].isNull())
data_.orderId = std::stol(dataNode["OrderId"].asString());
if(!dataNode["InstanceId"].isNull())
data_.instanceId = dataNode["InstanceId"].asString();
if(!value["OrderId"].isNull())
orderId_ = std::stol(value["OrderId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
@@ -49,17 +59,27 @@ void UnsubscribeExportToOSSResult::parse(const std::string &payload)
}
std::string UnsubscribeExportToOSSResult::getMessage()const
std::string UpgradeResourcePackageResult::getMessage()const
{
return message_;
}
std::string UnsubscribeExportToOSSResult::getCode()const
UpgradeResourcePackageResult::Data UpgradeResourcePackageResult::getData()const
{
return data_;
}
long UpgradeResourcePackageResult::getOrderId()const
{
return orderId_;
}
std::string UpgradeResourcePackageResult::getCode()const
{
return code_;
}
bool UnsubscribeExportToOSSResult::getSuccess()const
bool UpgradeResourcePackageResult::getSuccess()const
{
return success_;
}