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

@@ -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_;
}