Generated 2017-12-14 for BssOpenApi.
This commit is contained in:
@@ -36,51 +36,6 @@ void ApplyInvoiceRequest::setInvoicingType(int invoicingType)
|
||||
setCoreParameter("InvoicingType", std::to_string(invoicingType));
|
||||
}
|
||||
|
||||
std::string ApplyInvoiceRequest::getApplyUserNick()const
|
||||
{
|
||||
return applyUserNick_;
|
||||
}
|
||||
|
||||
void ApplyInvoiceRequest::setApplyUserNick(const std::string& applyUserNick)
|
||||
{
|
||||
applyUserNick_ = applyUserNick;
|
||||
setCoreParameter("ApplyUserNick", applyUserNick);
|
||||
}
|
||||
|
||||
bool ApplyInvoiceRequest::getInvoiceByAmount()const
|
||||
{
|
||||
return invoiceByAmount_;
|
||||
}
|
||||
|
||||
void ApplyInvoiceRequest::setInvoiceByAmount(bool invoiceByAmount)
|
||||
{
|
||||
invoiceByAmount_ = invoiceByAmount;
|
||||
setCoreParameter("InvoiceByAmount", invoiceByAmount ? "true" : "false");
|
||||
}
|
||||
|
||||
long ApplyInvoiceRequest::getCustomerId()const
|
||||
{
|
||||
return customerId_;
|
||||
}
|
||||
|
||||
void ApplyInvoiceRequest::setCustomerId(long customerId)
|
||||
{
|
||||
customerId_ = customerId;
|
||||
setCoreParameter("CustomerId", std::to_string(customerId));
|
||||
}
|
||||
|
||||
std::vector<long> ApplyInvoiceRequest::getSelectedIds()const
|
||||
{
|
||||
return selectedIds_;
|
||||
}
|
||||
|
||||
void ApplyInvoiceRequest::setSelectedIds(const std::vector<long>& selectedIds)
|
||||
{
|
||||
selectedIds_ = selectedIds;
|
||||
for(int i = 0; i!= selectedIds.size(); i++)
|
||||
setCoreParameter("SelectedIds."+ std::to_string(i), std::to_string(selectedIds.at(i)));
|
||||
}
|
||||
|
||||
int ApplyInvoiceRequest::getProcessWay()const
|
||||
{
|
||||
return processWay_;
|
||||
@@ -136,6 +91,51 @@ void ApplyInvoiceRequest::setAddressId(long addressId)
|
||||
setCoreParameter("AddressId", std::to_string(addressId));
|
||||
}
|
||||
|
||||
std::string ApplyInvoiceRequest::getApplyUserNick()const
|
||||
{
|
||||
return applyUserNick_;
|
||||
}
|
||||
|
||||
void ApplyInvoiceRequest::setApplyUserNick(const std::string& applyUserNick)
|
||||
{
|
||||
applyUserNick_ = applyUserNick;
|
||||
setCoreParameter("ApplyUserNick", applyUserNick);
|
||||
}
|
||||
|
||||
bool ApplyInvoiceRequest::getInvoiceByAmount()const
|
||||
{
|
||||
return invoiceByAmount_;
|
||||
}
|
||||
|
||||
void ApplyInvoiceRequest::setInvoiceByAmount(bool invoiceByAmount)
|
||||
{
|
||||
invoiceByAmount_ = invoiceByAmount;
|
||||
setCoreParameter("InvoiceByAmount", invoiceByAmount ? "true" : "false");
|
||||
}
|
||||
|
||||
long ApplyInvoiceRequest::getCustomerId()const
|
||||
{
|
||||
return customerId_;
|
||||
}
|
||||
|
||||
void ApplyInvoiceRequest::setCustomerId(long customerId)
|
||||
{
|
||||
customerId_ = customerId;
|
||||
setCoreParameter("CustomerId", std::to_string(customerId));
|
||||
}
|
||||
|
||||
std::vector<long> ApplyInvoiceRequest::getSelectedIds()const
|
||||
{
|
||||
return selectedIds_;
|
||||
}
|
||||
|
||||
void ApplyInvoiceRequest::setSelectedIds(const std::vector<long>& selectedIds)
|
||||
{
|
||||
selectedIds_ = selectedIds;
|
||||
for(int i = 0; i!= selectedIds.size(); i++)
|
||||
setCoreParameter("SelectedIds."+ std::to_string(i), std::to_string(selectedIds.at(i)));
|
||||
}
|
||||
|
||||
long ApplyInvoiceRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
|
||||
@@ -35,13 +35,9 @@ ApplyInvoiceResult::~ApplyInvoiceResult()
|
||||
|
||||
void ApplyInvoiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["InvoiceApplyId"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ CancelOrderResult::~CancelOrderResult()
|
||||
|
||||
void CancelOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["HostId"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ ChangeResellerConsumeAmountRequest::ChangeResellerConsumeAmountRequest() :
|
||||
ChangeResellerConsumeAmountRequest::~ChangeResellerConsumeAmountRequest()
|
||||
{}
|
||||
|
||||
std::string ChangeResellerConsumeAmountRequest::getAdjustType()const
|
||||
{
|
||||
return adjustType_;
|
||||
}
|
||||
|
||||
void ChangeResellerConsumeAmountRequest::setAdjustType(const std::string& adjustType)
|
||||
{
|
||||
adjustType_ = adjustType;
|
||||
setCoreParameter("AdjustType", adjustType);
|
||||
}
|
||||
|
||||
std::string ChangeResellerConsumeAmountRequest::getAmount()const
|
||||
{
|
||||
return amount_;
|
||||
@@ -58,28 +47,6 @@ void ChangeResellerConsumeAmountRequest::setOutBizId(const std::string& outBizId
|
||||
setCoreParameter("OutBizId", outBizId);
|
||||
}
|
||||
|
||||
std::string ChangeResellerConsumeAmountRequest::getExtendMap()const
|
||||
{
|
||||
return extendMap_;
|
||||
}
|
||||
|
||||
void ChangeResellerConsumeAmountRequest::setExtendMap(const std::string& extendMap)
|
||||
{
|
||||
extendMap_ = extendMap;
|
||||
setCoreParameter("ExtendMap", extendMap);
|
||||
}
|
||||
|
||||
std::string ChangeResellerConsumeAmountRequest::getCurrency()const
|
||||
{
|
||||
return currency_;
|
||||
}
|
||||
|
||||
void ChangeResellerConsumeAmountRequest::setCurrency(const std::string& currency)
|
||||
{
|
||||
currency_ = currency;
|
||||
setCoreParameter("Currency", currency);
|
||||
}
|
||||
|
||||
std::string ChangeResellerConsumeAmountRequest::getSource()const
|
||||
{
|
||||
return source_;
|
||||
@@ -113,3 +80,36 @@ void ChangeResellerConsumeAmountRequest::setBusinessType(const std::string& busi
|
||||
setCoreParameter("BusinessType", businessType);
|
||||
}
|
||||
|
||||
std::string ChangeResellerConsumeAmountRequest::getAdjustType()const
|
||||
{
|
||||
return adjustType_;
|
||||
}
|
||||
|
||||
void ChangeResellerConsumeAmountRequest::setAdjustType(const std::string& adjustType)
|
||||
{
|
||||
adjustType_ = adjustType;
|
||||
setCoreParameter("AdjustType", adjustType);
|
||||
}
|
||||
|
||||
std::string ChangeResellerConsumeAmountRequest::getExtendMap()const
|
||||
{
|
||||
return extendMap_;
|
||||
}
|
||||
|
||||
void ChangeResellerConsumeAmountRequest::setExtendMap(const std::string& extendMap)
|
||||
{
|
||||
extendMap_ = extendMap;
|
||||
setCoreParameter("ExtendMap", extendMap);
|
||||
}
|
||||
|
||||
std::string ChangeResellerConsumeAmountRequest::getCurrency()const
|
||||
{
|
||||
return currency_;
|
||||
}
|
||||
|
||||
void ChangeResellerConsumeAmountRequest::setCurrency(const std::string& currency)
|
||||
{
|
||||
currency_ = currency;
|
||||
setCoreParameter("Currency", currency);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ ChangeResellerConsumeAmountResult::~ChangeResellerConsumeAmountResult()
|
||||
|
||||
void ChangeResellerConsumeAmountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -47,17 +47,6 @@ void ConvertChargeTypeRequest::setProductCode(const std::string& productCode)
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string ConvertChargeTypeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ConvertChargeTypeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ConvertChargeTypeRequest::getSubscriptionType()const
|
||||
{
|
||||
return subscriptionType_;
|
||||
@@ -91,3 +80,14 @@ void ConvertChargeTypeRequest::setProductType(const std::string& productType)
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
std::string ConvertChargeTypeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ConvertChargeTypeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ ConvertChargeTypeResult::~ConvertChargeTypeResult()
|
||||
|
||||
void ConvertChargeTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["OrderId"].isNull())
|
||||
|
||||
@@ -36,28 +36,6 @@ void CreateAgAccountRequest::setFirstName(const std::string& firstName)
|
||||
setCoreParameter("FirstName", firstName);
|
||||
}
|
||||
|
||||
std::string CreateAgAccountRequest::getLoginEmail()const
|
||||
{
|
||||
return loginEmail_;
|
||||
}
|
||||
|
||||
void CreateAgAccountRequest::setLoginEmail(const std::string& loginEmail)
|
||||
{
|
||||
loginEmail_ = loginEmail;
|
||||
setCoreParameter("LoginEmail", loginEmail);
|
||||
}
|
||||
|
||||
std::string CreateAgAccountRequest::getProvinceName()const
|
||||
{
|
||||
return provinceName_;
|
||||
}
|
||||
|
||||
void CreateAgAccountRequest::setProvinceName(const std::string& provinceName)
|
||||
{
|
||||
provinceName_ = provinceName;
|
||||
setCoreParameter("ProvinceName", provinceName);
|
||||
}
|
||||
|
||||
std::string CreateAgAccountRequest::getCityName()const
|
||||
{
|
||||
return cityName_;
|
||||
@@ -69,17 +47,6 @@ void CreateAgAccountRequest::setCityName(const std::string& cityName)
|
||||
setCoreParameter("CityName", cityName);
|
||||
}
|
||||
|
||||
std::string CreateAgAccountRequest::getAccountAttr()const
|
||||
{
|
||||
return accountAttr_;
|
||||
}
|
||||
|
||||
void CreateAgAccountRequest::setAccountAttr(const std::string& accountAttr)
|
||||
{
|
||||
accountAttr_ = accountAttr;
|
||||
setCoreParameter("AccountAttr", accountAttr);
|
||||
}
|
||||
|
||||
std::string CreateAgAccountRequest::getPostcode()const
|
||||
{
|
||||
return postcode_;
|
||||
@@ -124,3 +91,36 @@ void CreateAgAccountRequest::setLastName(const std::string& lastName)
|
||||
setCoreParameter("LastName", lastName);
|
||||
}
|
||||
|
||||
std::string CreateAgAccountRequest::getLoginEmail()const
|
||||
{
|
||||
return loginEmail_;
|
||||
}
|
||||
|
||||
void CreateAgAccountRequest::setLoginEmail(const std::string& loginEmail)
|
||||
{
|
||||
loginEmail_ = loginEmail;
|
||||
setCoreParameter("LoginEmail", loginEmail);
|
||||
}
|
||||
|
||||
std::string CreateAgAccountRequest::getProvinceName()const
|
||||
{
|
||||
return provinceName_;
|
||||
}
|
||||
|
||||
void CreateAgAccountRequest::setProvinceName(const std::string& provinceName)
|
||||
{
|
||||
provinceName_ = provinceName;
|
||||
setCoreParameter("ProvinceName", provinceName);
|
||||
}
|
||||
|
||||
std::string CreateAgAccountRequest::getAccountAttr()const
|
||||
{
|
||||
return accountAttr_;
|
||||
}
|
||||
|
||||
void CreateAgAccountRequest::setAccountAttr(const std::string& accountAttr)
|
||||
{
|
||||
accountAttr_ = accountAttr;
|
||||
setCoreParameter("AccountAttr", accountAttr);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateAgAccountResult::~CreateAgAccountResult()
|
||||
|
||||
void CreateAgAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto agRelationDtoNode = value["AgRelationDto"];
|
||||
if(!agRelationDtoNode["Pk"].isNull())
|
||||
|
||||
@@ -69,6 +69,28 @@ void CreateInstanceRequest::setSubscriptionType(const std::string& subscriptionT
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
long CreateInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
int CreateInstanceRequest::getRenewPeriod()const
|
||||
{
|
||||
return renewPeriod_;
|
||||
@@ -108,25 +130,3 @@ void CreateInstanceRequest::setRenewalStatus(const std::string& renewalStatus)
|
||||
setCoreParameter("RenewalStatus", renewalStatus);
|
||||
}
|
||||
|
||||
long CreateInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateInstanceResult::~CreateInstanceResult()
|
||||
|
||||
void CreateInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["InstanceId"].isNull())
|
||||
|
||||
@@ -47,17 +47,6 @@ void CreateResellerUserQuotaRequest::setOutBizId(const std::string& outBizId)
|
||||
setCoreParameter("OutBizId", outBizId);
|
||||
}
|
||||
|
||||
std::string CreateResellerUserQuotaRequest::getCurrency()const
|
||||
{
|
||||
return currency_;
|
||||
}
|
||||
|
||||
void CreateResellerUserQuotaRequest::setCurrency(const std::string& currency)
|
||||
{
|
||||
currency_ = currency;
|
||||
setCoreParameter("Currency", currency);
|
||||
}
|
||||
|
||||
long CreateResellerUserQuotaRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -69,3 +58,14 @@ void CreateResellerUserQuotaRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateResellerUserQuotaRequest::getCurrency()const
|
||||
{
|
||||
return currency_;
|
||||
}
|
||||
|
||||
void CreateResellerUserQuotaRequest::setCurrency(const std::string& currency)
|
||||
{
|
||||
currency_ = currency;
|
||||
setCoreParameter("Currency", currency);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateResellerUserQuotaResult::~CreateResellerUserQuotaResult()
|
||||
|
||||
void CreateResellerUserQuotaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ CreateResourcePackageRequest::CreateResourcePackageRequest() :
|
||||
CreateResourcePackageRequest::~CreateResourcePackageRequest()
|
||||
{}
|
||||
|
||||
int CreateResourcePackageRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void CreateResourcePackageRequest::setDuration(int duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setCoreParameter("Duration", std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string CreateResourcePackageRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
@@ -69,17 +58,6 @@ void CreateResourcePackageRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateResourcePackageRequest::getPackageType()const
|
||||
{
|
||||
return packageType_;
|
||||
}
|
||||
|
||||
void CreateResourcePackageRequest::setPackageType(const std::string& packageType)
|
||||
{
|
||||
packageType_ = packageType;
|
||||
setCoreParameter("PackageType", packageType);
|
||||
}
|
||||
|
||||
std::string CreateResourcePackageRequest::getEffectiveDate()const
|
||||
{
|
||||
return effectiveDate_;
|
||||
@@ -91,6 +69,28 @@ void CreateResourcePackageRequest::setEffectiveDate(const std::string& effective
|
||||
setCoreParameter("EffectiveDate", effectiveDate);
|
||||
}
|
||||
|
||||
int CreateResourcePackageRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void CreateResourcePackageRequest::setDuration(int duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setCoreParameter("Duration", std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string CreateResourcePackageRequest::getPackageType()const
|
||||
{
|
||||
return packageType_;
|
||||
}
|
||||
|
||||
void CreateResourcePackageRequest::setPackageType(const std::string& packageType)
|
||||
{
|
||||
packageType_ = packageType;
|
||||
setCoreParameter("PackageType", packageType);
|
||||
}
|
||||
|
||||
std::string CreateResourcePackageRequest::getPricingCycle()const
|
||||
{
|
||||
return pricingCycle_;
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateResourcePackageResult::~CreateResourcePackageResult()
|
||||
|
||||
void CreateResourcePackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["OrderId"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribePricingModuleResult::~DescribePricingModuleResult()
|
||||
|
||||
void DescribePricingModuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allModuleList = value["ModuleList"]["Module"];
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeResourcePackageProductResult::~DescribeResourcePackageProductResult()
|
||||
|
||||
void DescribeResourcePackageProductResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allResourcePackages = value["ResourcePackages"]["ResourcePackage"];
|
||||
|
||||
@@ -35,13 +35,9 @@ EnableBillGenerationResult::~EnableBillGenerationResult()
|
||||
|
||||
void EnableBillGenerationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Boolean"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ GetCustomerAccountInfoResult::~GetCustomerAccountInfoResult()
|
||||
|
||||
void GetCustomerAccountInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["LoginEmail"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ GetCustomerListResult::~GetCustomerListResult()
|
||||
|
||||
void GetCustomerListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allUidList = dataNode["UidList"]["Item"];
|
||||
|
||||
@@ -35,13 +35,9 @@ GetOrderDetailResult::~GetOrderDetailResult()
|
||||
|
||||
void GetOrderDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["HostName"].isNull())
|
||||
|
||||
@@ -76,17 +76,6 @@ void GetPayAsYouGoPriceRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetPayAsYouGoPriceRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void GetPayAsYouGoPriceRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setCoreParameter("Region", region);
|
||||
}
|
||||
|
||||
std::string GetPayAsYouGoPriceRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
@@ -98,3 +87,14 @@ void GetPayAsYouGoPriceRequest::setProductType(const std::string& productType)
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
std::string GetPayAsYouGoPriceRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void GetPayAsYouGoPriceRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setCoreParameter("Region", region);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ GetPayAsYouGoPriceResult::~GetPayAsYouGoPriceResult()
|
||||
|
||||
void GetPayAsYouGoPriceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Currency"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ GetResourcePackagePriceRequest::GetResourcePackagePriceRequest() :
|
||||
GetResourcePackagePriceRequest::~GetResourcePackagePriceRequest()
|
||||
{}
|
||||
|
||||
int GetResourcePackagePriceRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void GetResourcePackagePriceRequest::setDuration(int duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setCoreParameter("Duration", std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string GetResourcePackagePriceRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
@@ -47,17 +36,6 @@ 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_;
|
||||
@@ -80,17 +58,6 @@ void GetResourcePackagePriceRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetResourcePackagePriceRequest::getPackageType()const
|
||||
{
|
||||
return packageType_;
|
||||
}
|
||||
|
||||
void GetResourcePackagePriceRequest::setPackageType(const std::string& packageType)
|
||||
{
|
||||
packageType_ = packageType;
|
||||
setCoreParameter("PackageType", packageType);
|
||||
}
|
||||
|
||||
std::string GetResourcePackagePriceRequest::getEffectiveDate()const
|
||||
{
|
||||
return effectiveDate_;
|
||||
@@ -102,6 +69,39 @@ void GetResourcePackagePriceRequest::setEffectiveDate(const std::string& effecti
|
||||
setCoreParameter("EffectiveDate", effectiveDate);
|
||||
}
|
||||
|
||||
int GetResourcePackagePriceRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void GetResourcePackagePriceRequest::setDuration(int duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setCoreParameter("Duration", std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string GetResourcePackagePriceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetResourcePackagePriceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetResourcePackagePriceRequest::getPackageType()const
|
||||
{
|
||||
return packageType_;
|
||||
}
|
||||
|
||||
void GetResourcePackagePriceRequest::setPackageType(const std::string& packageType)
|
||||
{
|
||||
packageType_ = packageType;
|
||||
setCoreParameter("PackageType", packageType);
|
||||
}
|
||||
|
||||
std::string GetResourcePackagePriceRequest::getPricingCycle()const
|
||||
{
|
||||
return pricingCycle_;
|
||||
|
||||
@@ -35,13 +35,9 @@ GetResourcePackagePriceResult::~GetResourcePackagePriceResult()
|
||||
|
||||
void GetResourcePackagePriceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Currency"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ GetSubscriptionPriceRequest::GetSubscriptionPriceRequest() :
|
||||
GetSubscriptionPriceRequest::~GetSubscriptionPriceRequest()
|
||||
{}
|
||||
|
||||
int GetSubscriptionPriceRequest::getServicePeriodQuantity()const
|
||||
{
|
||||
return servicePeriodQuantity_;
|
||||
}
|
||||
|
||||
void GetSubscriptionPriceRequest::setServicePeriodQuantity(int servicePeriodQuantity)
|
||||
{
|
||||
servicePeriodQuantity_ = servicePeriodQuantity;
|
||||
setCoreParameter("ServicePeriodQuantity", std::to_string(servicePeriodQuantity));
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
@@ -47,17 +36,6 @@ void GetSubscriptionPriceRequest::setProductCode(const std::string& productCode)
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetSubscriptionPriceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
int GetSubscriptionPriceRequest::getQuantity()const
|
||||
{
|
||||
return quantity_;
|
||||
@@ -69,17 +47,6 @@ void GetSubscriptionPriceRequest::setQuantity(int quantity)
|
||||
setCoreParameter("Quantity", std::to_string(quantity));
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getServicePeriodUnit()const
|
||||
{
|
||||
return servicePeriodUnit_;
|
||||
}
|
||||
|
||||
void GetSubscriptionPriceRequest::setServicePeriodUnit(const std::string& servicePeriodUnit)
|
||||
{
|
||||
servicePeriodUnit_ = servicePeriodUnit;
|
||||
setCoreParameter("ServicePeriodUnit", servicePeriodUnit);
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getSubscriptionType()const
|
||||
{
|
||||
return subscriptionType_;
|
||||
@@ -121,6 +88,50 @@ void GetSubscriptionPriceRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void GetSubscriptionPriceRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
int GetSubscriptionPriceRequest::getServicePeriodQuantity()const
|
||||
{
|
||||
return servicePeriodQuantity_;
|
||||
}
|
||||
|
||||
void GetSubscriptionPriceRequest::setServicePeriodQuantity(int servicePeriodQuantity)
|
||||
{
|
||||
servicePeriodQuantity_ = servicePeriodQuantity;
|
||||
setCoreParameter("ServicePeriodQuantity", std::to_string(servicePeriodQuantity));
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetSubscriptionPriceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getServicePeriodUnit()const
|
||||
{
|
||||
return servicePeriodUnit_;
|
||||
}
|
||||
|
||||
void GetSubscriptionPriceRequest::setServicePeriodUnit(const std::string& servicePeriodUnit)
|
||||
{
|
||||
servicePeriodUnit_ = servicePeriodUnit;
|
||||
setCoreParameter("ServicePeriodUnit", servicePeriodUnit);
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
@@ -143,14 +154,3 @@ void GetSubscriptionPriceRequest::setOrderType(const std::string& orderType)
|
||||
setCoreParameter("OrderType", orderType);
|
||||
}
|
||||
|
||||
std::string GetSubscriptionPriceRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void GetSubscriptionPriceRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ GetSubscriptionPriceResult::~GetSubscriptionPriceResult()
|
||||
|
||||
void GetSubscriptionPriceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["OriginalPrice"].isNull())
|
||||
|
||||
@@ -36,17 +36,6 @@ void ModifyInstanceRequest::setProductCode(const std::string& productCode)
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
@@ -69,6 +58,39 @@ void ModifyInstanceRequest::setSubscriptionType(const std::string& subscriptionT
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
long ModifyInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyInstanceRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void ModifyInstanceRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceRequest::getModifyType()const
|
||||
{
|
||||
return modifyType_;
|
||||
@@ -97,25 +119,3 @@ void ModifyInstanceRequest::setParameter(const std::vector<Parameter>& parameter
|
||||
}
|
||||
}
|
||||
|
||||
long ModifyInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyInstanceRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void ModifyInstanceRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ ModifyInstanceResult::~ModifyInstanceResult()
|
||||
|
||||
void ModifyInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["HostId"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryAccountBalanceResult::~QueryAccountBalanceResult()
|
||||
|
||||
void QueryAccountBalanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["AvailableAmount"].isNull())
|
||||
|
||||
@@ -25,6 +25,28 @@ QueryAccountTransactionsRequest::QueryAccountTransactionsRequest() :
|
||||
QueryAccountTransactionsRequest::~QueryAccountTransactionsRequest()
|
||||
{}
|
||||
|
||||
int QueryAccountTransactionsRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionsRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionsRequest::getCreateTimeEnd()const
|
||||
{
|
||||
return createTimeEnd_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionsRequest::setCreateTimeEnd(const std::string& createTimeEnd)
|
||||
{
|
||||
createTimeEnd_ = createTimeEnd;
|
||||
setCoreParameter("CreateTimeEnd", createTimeEnd);
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionsRequest::getRecordID()const
|
||||
{
|
||||
return recordID_;
|
||||
@@ -80,25 +102,3 @@ void QueryAccountTransactionsRequest::setTransactionNumber(const std::string& tr
|
||||
setCoreParameter("TransactionNumber", transactionNumber);
|
||||
}
|
||||
|
||||
int QueryAccountTransactionsRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionsRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionsRequest::getCreateTimeEnd()const
|
||||
{
|
||||
return createTimeEnd_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionsRequest::setCreateTimeEnd(const std::string& createTimeEnd)
|
||||
{
|
||||
createTimeEnd_ = createTimeEnd;
|
||||
setCoreParameter("CreateTimeEnd", createTimeEnd);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryAccountTransactionsResult::~QueryAccountTransactionsResult()
|
||||
|
||||
void QueryAccountTransactionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["AccountName"].isNull())
|
||||
|
||||
@@ -47,17 +47,6 @@ void QueryAvailableInstancesRequest::setSubscriptionType(const std::string& subs
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
long QueryAvailableInstancesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryAvailableInstancesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int QueryAvailableInstancesRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
@@ -69,17 +58,6 @@ void QueryAvailableInstancesRequest::setPageNum(int pageNum)
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getEndTimeStart()const
|
||||
{
|
||||
return endTimeStart_;
|
||||
}
|
||||
|
||||
void QueryAvailableInstancesRequest::setEndTimeStart(const std::string& endTimeStart)
|
||||
{
|
||||
endTimeStart_ = endTimeStart;
|
||||
setCoreParameter("EndTimeStart", endTimeStart);
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
@@ -91,6 +69,50 @@ void QueryAvailableInstancesRequest::setProductType(const std::string& productTy
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
int QueryAvailableInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryAvailableInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getRenewStatus()const
|
||||
{
|
||||
return renewStatus_;
|
||||
}
|
||||
|
||||
void QueryAvailableInstancesRequest::setRenewStatus(const std::string& renewStatus)
|
||||
{
|
||||
renewStatus_ = renewStatus;
|
||||
setCoreParameter("RenewStatus", renewStatus);
|
||||
}
|
||||
|
||||
long QueryAvailableInstancesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryAvailableInstancesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getEndTimeStart()const
|
||||
{
|
||||
return endTimeStart_;
|
||||
}
|
||||
|
||||
void QueryAvailableInstancesRequest::setEndTimeStart(const std::string& endTimeStart)
|
||||
{
|
||||
endTimeStart_ = endTimeStart;
|
||||
setCoreParameter("EndTimeStart", endTimeStart);
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getCreateTimeEnd()const
|
||||
{
|
||||
return createTimeEnd_;
|
||||
@@ -124,17 +146,6 @@ void QueryAvailableInstancesRequest::setEndTimeEnd(const std::string& endTimeEnd
|
||||
setCoreParameter("EndTimeEnd", endTimeEnd);
|
||||
}
|
||||
|
||||
int QueryAvailableInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryAvailableInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getCreateTimeStart()const
|
||||
{
|
||||
return createTimeStart_;
|
||||
@@ -157,14 +168,3 @@ void QueryAvailableInstancesRequest::setRegion(const std::string& region)
|
||||
setCoreParameter("Region", region);
|
||||
}
|
||||
|
||||
std::string QueryAvailableInstancesRequest::getRenewStatus()const
|
||||
{
|
||||
return renewStatus_;
|
||||
}
|
||||
|
||||
void QueryAvailableInstancesRequest::setRenewStatus(const std::string& renewStatus)
|
||||
{
|
||||
renewStatus_ = renewStatus;
|
||||
setCoreParameter("RenewStatus", renewStatus);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryAvailableInstancesResult::~QueryAvailableInstancesResult()
|
||||
|
||||
void QueryAvailableInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryBillOverviewResult::~QueryBillOverviewResult()
|
||||
|
||||
void QueryBillOverviewResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["BillingCycle"].isNull())
|
||||
|
||||
@@ -69,17 +69,6 @@ void QueryBillRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
int QueryBillRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryBillRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryBillRequest::getBillingCycle()const
|
||||
{
|
||||
return billingCycle_;
|
||||
@@ -135,3 +124,14 @@ void QueryBillRequest::setProductType(const std::string& productType)
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
int QueryBillRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryBillRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryBillResult::~QueryBillResult()
|
||||
|
||||
void QueryBillResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["BillingCycle"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryCashCouponsResult::~QueryCashCouponsResult()
|
||||
|
||||
void QueryCashCouponsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["CashCoupon"];
|
||||
for (auto value : allData)
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryCustomerAddressListResult::~QueryCustomerAddressListResult()
|
||||
|
||||
void QueryCustomerAddressListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allCustomerInvoiceAddressList = value["CustomerInvoiceAddressList"]["CustomerInvoiceAddress"];
|
||||
|
||||
@@ -58,18 +58,6 @@ void QueryEvaluateListRequest::setSortType(int sortType)
|
||||
setCoreParameter("SortType", std::to_string(sortType));
|
||||
}
|
||||
|
||||
std::vector<std::string> QueryEvaluateListRequest::getBizTypeList()const
|
||||
{
|
||||
return bizTypeList_;
|
||||
}
|
||||
|
||||
void QueryEvaluateListRequest::setBizTypeList(const std::vector<std::string>& bizTypeList)
|
||||
{
|
||||
bizTypeList_ = bizTypeList;
|
||||
for(int i = 0; i!= bizTypeList.size(); i++)
|
||||
setCoreParameter("BizTypeList."+ std::to_string(i), bizTypeList.at(i));
|
||||
}
|
||||
|
||||
int QueryEvaluateListRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
@@ -81,17 +69,6 @@ void QueryEvaluateListRequest::setType(int type)
|
||||
setCoreParameter("Type", std::to_string(type));
|
||||
}
|
||||
|
||||
long QueryEvaluateListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryEvaluateListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int QueryEvaluateListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
@@ -103,28 +80,6 @@ void QueryEvaluateListRequest::setPageNum(int pageNum)
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string QueryEvaluateListRequest::getStartSearchTime()const
|
||||
{
|
||||
return startSearchTime_;
|
||||
}
|
||||
|
||||
void QueryEvaluateListRequest::setStartSearchTime(const std::string& startSearchTime)
|
||||
{
|
||||
startSearchTime_ = startSearchTime;
|
||||
setCoreParameter("StartSearchTime", startSearchTime);
|
||||
}
|
||||
|
||||
std::string QueryEvaluateListRequest::getEndBizTime()const
|
||||
{
|
||||
return endBizTime_;
|
||||
}
|
||||
|
||||
void QueryEvaluateListRequest::setEndBizTime(const std::string& endBizTime)
|
||||
{
|
||||
endBizTime_ = endBizTime;
|
||||
setCoreParameter("EndBizTime", endBizTime);
|
||||
}
|
||||
|
||||
int QueryEvaluateListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
@@ -158,6 +113,51 @@ void QueryEvaluateListRequest::setBillCycle(const std::string& billCycle)
|
||||
setCoreParameter("BillCycle", billCycle);
|
||||
}
|
||||
|
||||
std::vector<std::string> QueryEvaluateListRequest::getBizTypeList()const
|
||||
{
|
||||
return bizTypeList_;
|
||||
}
|
||||
|
||||
void QueryEvaluateListRequest::setBizTypeList(const std::vector<std::string>& bizTypeList)
|
||||
{
|
||||
bizTypeList_ = bizTypeList;
|
||||
for(int i = 0; i!= bizTypeList.size(); i++)
|
||||
setCoreParameter("BizTypeList."+ std::to_string(i), bizTypeList.at(i));
|
||||
}
|
||||
|
||||
long QueryEvaluateListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryEvaluateListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryEvaluateListRequest::getStartSearchTime()const
|
||||
{
|
||||
return startSearchTime_;
|
||||
}
|
||||
|
||||
void QueryEvaluateListRequest::setStartSearchTime(const std::string& startSearchTime)
|
||||
{
|
||||
startSearchTime_ = startSearchTime;
|
||||
setCoreParameter("StartSearchTime", startSearchTime);
|
||||
}
|
||||
|
||||
std::string QueryEvaluateListRequest::getEndBizTime()const
|
||||
{
|
||||
return endBizTime_;
|
||||
}
|
||||
|
||||
void QueryEvaluateListRequest::setEndBizTime(const std::string& endBizTime)
|
||||
{
|
||||
endBizTime_ = endBizTime;
|
||||
setCoreParameter("EndBizTime", endBizTime);
|
||||
}
|
||||
|
||||
long QueryEvaluateListRequest::getStartAmount()const
|
||||
{
|
||||
return startAmount_;
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryEvaluateListResult::~QueryEvaluateListResult()
|
||||
|
||||
void QueryEvaluateListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["HostId"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ QueryInstanceBillRequest::QueryInstanceBillRequest() :
|
||||
QueryInstanceBillRequest::~QueryInstanceBillRequest()
|
||||
{}
|
||||
|
||||
bool QueryInstanceBillRequest::getIsBillingItem()const
|
||||
{
|
||||
return isBillingItem_;
|
||||
}
|
||||
|
||||
void QueryInstanceBillRequest::setIsBillingItem(bool isBillingItem)
|
||||
{
|
||||
isBillingItem_ = isBillingItem;
|
||||
setCoreParameter("IsBillingItem", isBillingItem ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string QueryInstanceBillRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
@@ -69,17 +58,6 @@ void QueryInstanceBillRequest::setSubscriptionType(const std::string& subscripti
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
int QueryInstanceBillRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryInstanceBillRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryInstanceBillRequest::getBillingCycle()const
|
||||
{
|
||||
return billingCycle_;
|
||||
@@ -124,3 +102,25 @@ void QueryInstanceBillRequest::setProductType(const std::string& productType)
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
bool QueryInstanceBillRequest::getIsBillingItem()const
|
||||
{
|
||||
return isBillingItem_;
|
||||
}
|
||||
|
||||
void QueryInstanceBillRequest::setIsBillingItem(bool isBillingItem)
|
||||
{
|
||||
isBillingItem_ = isBillingItem;
|
||||
setCoreParameter("IsBillingItem", isBillingItem ? "true" : "false");
|
||||
}
|
||||
|
||||
int QueryInstanceBillRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryInstanceBillRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryInstanceBillResult::~QueryInstanceBillResult()
|
||||
|
||||
void QueryInstanceBillResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["BillingCycle"].isNull())
|
||||
|
||||
@@ -47,17 +47,6 @@ void QueryInstanceGaapCostRequest::setSubscriptionType(const std::string& subscr
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
int QueryInstanceGaapCostRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryInstanceGaapCostRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryInstanceGaapCostRequest::getBillingCycle()const
|
||||
{
|
||||
return billingCycle_;
|
||||
@@ -91,3 +80,14 @@ void QueryInstanceGaapCostRequest::setProductType(const std::string& productType
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
int QueryInstanceGaapCostRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryInstanceGaapCostRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryInstanceGaapCostResult::~QueryInstanceGaapCostResult()
|
||||
|
||||
void QueryInstanceGaapCostResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["HostId"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryInvoicingCustomerListResult::~QueryInvoicingCustomerListResult()
|
||||
|
||||
void QueryInvoicingCustomerListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allCustomerInvoiceList = value["CustomerInvoiceList"]["CustomerInvoice"];
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryMonthlyBillResult::~QueryMonthlyBillResult()
|
||||
|
||||
void QueryMonthlyBillResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["OutstandingAmount"].isNull())
|
||||
|
||||
@@ -47,17 +47,6 @@ void QueryMonthlyInstanceConsumptionRequest::setSubscriptionType(const std::stri
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
int QueryMonthlyInstanceConsumptionRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryMonthlyInstanceConsumptionRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryMonthlyInstanceConsumptionRequest::getBillingCycle()const
|
||||
{
|
||||
return billingCycle_;
|
||||
@@ -102,3 +91,14 @@ void QueryMonthlyInstanceConsumptionRequest::setProductType(const std::string& p
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
int QueryMonthlyInstanceConsumptionRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryMonthlyInstanceConsumptionRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryMonthlyInstanceConsumptionResult::~QueryMonthlyInstanceConsumptionResult()
|
||||
|
||||
void QueryMonthlyInstanceConsumptionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
|
||||
@@ -47,39 +47,6 @@ void QueryOrdersRequest::setSubscriptionType(const std::string& subscriptionType
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
int QueryOrdersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryOrdersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryOrdersRequest::getPaymentStatus()const
|
||||
{
|
||||
return paymentStatus_;
|
||||
}
|
||||
|
||||
void QueryOrdersRequest::setPaymentStatus(const std::string& paymentStatus)
|
||||
{
|
||||
paymentStatus_ = paymentStatus;
|
||||
setCoreParameter("PaymentStatus", paymentStatus);
|
||||
}
|
||||
|
||||
std::string QueryOrdersRequest::getCreateTimeStart()const
|
||||
{
|
||||
return createTimeStart_;
|
||||
}
|
||||
|
||||
void QueryOrdersRequest::setCreateTimeStart(const std::string& createTimeStart)
|
||||
{
|
||||
createTimeStart_ = createTimeStart;
|
||||
setCoreParameter("CreateTimeStart", createTimeStart);
|
||||
}
|
||||
|
||||
int QueryOrdersRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
@@ -124,6 +91,39 @@ void QueryOrdersRequest::setProductType(const std::string& productType)
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
int QueryOrdersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryOrdersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryOrdersRequest::getPaymentStatus()const
|
||||
{
|
||||
return paymentStatus_;
|
||||
}
|
||||
|
||||
void QueryOrdersRequest::setPaymentStatus(const std::string& paymentStatus)
|
||||
{
|
||||
paymentStatus_ = paymentStatus;
|
||||
setCoreParameter("PaymentStatus", paymentStatus);
|
||||
}
|
||||
|
||||
std::string QueryOrdersRequest::getCreateTimeStart()const
|
||||
{
|
||||
return createTimeStart_;
|
||||
}
|
||||
|
||||
void QueryOrdersRequest::setCreateTimeStart(const std::string& createTimeStart)
|
||||
{
|
||||
createTimeStart_ = createTimeStart;
|
||||
setCoreParameter("CreateTimeStart", createTimeStart);
|
||||
}
|
||||
|
||||
std::string QueryOrdersRequest::getOrderType()const
|
||||
{
|
||||
return orderType_;
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryOrdersResult::~QueryOrdersResult()
|
||||
|
||||
void QueryOrdersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["HostName"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryPrepaidCardsResult::~QueryPrepaidCardsResult()
|
||||
|
||||
void QueryPrepaidCardsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["PrepaidCard"];
|
||||
for (auto value : allData)
|
||||
|
||||
@@ -25,6 +25,17 @@ QueryProductListRequest::QueryProductListRequest() :
|
||||
QueryProductListRequest::~QueryProductListRequest()
|
||||
{}
|
||||
|
||||
int QueryProductListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void QueryProductListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
bool QueryProductListRequest::getQueryTotalCount()const
|
||||
{
|
||||
return queryTotalCount_;
|
||||
@@ -47,14 +58,3 @@ void QueryProductListRequest::setPageSize(int pageSize)
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int QueryProductListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void QueryProductListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryProductListResult::~QueryProductListResult()
|
||||
|
||||
void QueryProductListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
|
||||
@@ -36,17 +36,6 @@ void QueryRedeemRequest::setExpiryTimeEnd(const std::string& expiryTimeEnd)
|
||||
setCoreParameter("ExpiryTimeEnd", expiryTimeEnd);
|
||||
}
|
||||
|
||||
int QueryRedeemRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryRedeemRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryRedeemRequest::getExpiryTimeStart()const
|
||||
{
|
||||
return expiryTimeStart_;
|
||||
@@ -80,3 +69,14 @@ void QueryRedeemRequest::setEffectiveOrNot(bool effectiveOrNot)
|
||||
setCoreParameter("EffectiveOrNot", effectiveOrNot ? "true" : "false");
|
||||
}
|
||||
|
||||
int QueryRedeemRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryRedeemRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryRedeemResult::~QueryRedeemResult()
|
||||
|
||||
void QueryRedeemResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryResellerAvailableQuotaResult::~QueryResellerAvailableQuotaResult()
|
||||
|
||||
void QueryResellerAvailableQuotaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -47,17 +47,6 @@ void QueryResourcePackageInstancesRequest::setProductCode(const std::string& pro
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
int QueryResourcePackageInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryResourcePackageInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long QueryResourcePackageInstancesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -91,3 +80,14 @@ void QueryResourcePackageInstancesRequest::setPageNum(int pageNum)
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
int QueryResourcePackageInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryResourcePackageInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryResourcePackageInstancesResult::~QueryResourcePackageInstancesResult()
|
||||
|
||||
void QueryResourcePackageInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["HostId"].isNull())
|
||||
|
||||
@@ -58,17 +58,6 @@ void QuerySettlementBillRequest::setSubscriptionType(const std::string& subscrip
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
int QuerySettlementBillRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QuerySettlementBillRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QuerySettlementBillRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
@@ -146,3 +135,14 @@ void QuerySettlementBillRequest::setProductType(const std::string& productType)
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
int QuerySettlementBillRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QuerySettlementBillRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QuerySettlementBillResult::~QuerySettlementBillResult()
|
||||
|
||||
void QuerySettlementBillResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
|
||||
@@ -25,39 +25,6 @@ QueryUserOmsDataRequest::QueryUserOmsDataRequest() :
|
||||
QueryUserOmsDataRequest::~QueryUserOmsDataRequest()
|
||||
{}
|
||||
|
||||
std::string QueryUserOmsDataRequest::getDataType()const
|
||||
{
|
||||
return dataType_;
|
||||
}
|
||||
|
||||
void QueryUserOmsDataRequest::setDataType(const std::string& dataType)
|
||||
{
|
||||
dataType_ = dataType;
|
||||
setCoreParameter("DataType", dataType);
|
||||
}
|
||||
|
||||
std::string QueryUserOmsDataRequest::getMarker()const
|
||||
{
|
||||
return marker_;
|
||||
}
|
||||
|
||||
void QueryUserOmsDataRequest::setMarker(const std::string& marker)
|
||||
{
|
||||
marker_ = marker;
|
||||
setCoreParameter("Marker", marker);
|
||||
}
|
||||
|
||||
int QueryUserOmsDataRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryUserOmsDataRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryUserOmsDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
@@ -91,6 +58,39 @@ void QueryUserOmsDataRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryUserOmsDataRequest::getDataType()const
|
||||
{
|
||||
return dataType_;
|
||||
}
|
||||
|
||||
void QueryUserOmsDataRequest::setDataType(const std::string& dataType)
|
||||
{
|
||||
dataType_ = dataType;
|
||||
setCoreParameter("DataType", dataType);
|
||||
}
|
||||
|
||||
std::string QueryUserOmsDataRequest::getMarker()const
|
||||
{
|
||||
return marker_;
|
||||
}
|
||||
|
||||
void QueryUserOmsDataRequest::setMarker(const std::string& marker)
|
||||
{
|
||||
marker_ = marker;
|
||||
setCoreParameter("Marker", marker);
|
||||
}
|
||||
|
||||
int QueryUserOmsDataRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryUserOmsDataRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryUserOmsDataRequest::getTable()const
|
||||
{
|
||||
return table_;
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryUserOmsDataResult::~QueryUserOmsDataResult()
|
||||
|
||||
void QueryUserOmsDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Marker"].isNull())
|
||||
|
||||
@@ -36,17 +36,6 @@ void RenewInstanceRequest::setProductCode(const std::string& productCode)
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string RenewInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void RenewInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string RenewInstanceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
@@ -58,17 +47,6 @@ void RenewInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int RenewInstanceRequest::getRenewPeriod()const
|
||||
{
|
||||
return renewPeriod_;
|
||||
}
|
||||
|
||||
void RenewInstanceRequest::setRenewPeriod(int renewPeriod)
|
||||
{
|
||||
renewPeriod_ = renewPeriod;
|
||||
setCoreParameter("RenewPeriod", std::to_string(renewPeriod));
|
||||
}
|
||||
|
||||
long RenewInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -91,3 +69,25 @@ void RenewInstanceRequest::setProductType(const std::string& productType)
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
std::string RenewInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void RenewInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
int RenewInstanceRequest::getRenewPeriod()const
|
||||
{
|
||||
return renewPeriod_;
|
||||
}
|
||||
|
||||
void RenewInstanceRequest::setRenewPeriod(int renewPeriod)
|
||||
{
|
||||
renewPeriod_ = renewPeriod;
|
||||
setCoreParameter("RenewPeriod", std::to_string(renewPeriod));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ RenewInstanceResult::~RenewInstanceResult()
|
||||
|
||||
void RenewInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["OrderId"].isNull())
|
||||
|
||||
@@ -25,28 +25,6 @@ RenewResourcePackageRequest::RenewResourcePackageRequest() :
|
||||
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_;
|
||||
@@ -69,6 +47,28 @@ void RenewResourcePackageRequest::setEffectiveDate(const std::string& effectiveD
|
||||
setCoreParameter("EffectiveDate", effectiveDate);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
std::string RenewResourcePackageRequest::getPricingCycle()const
|
||||
{
|
||||
return pricingCycle_;
|
||||
|
||||
@@ -35,13 +35,9 @@ RenewResourcePackageResult::~RenewResourcePackageResult()
|
||||
|
||||
void RenewResourcePackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["OrderId"].isNull())
|
||||
|
||||
@@ -36,17 +36,6 @@ void SetRenewalRequest::setProductCode(const std::string& productCode)
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string SetRenewalRequest::getInstanceIDs()const
|
||||
{
|
||||
return instanceIDs_;
|
||||
}
|
||||
|
||||
void SetRenewalRequest::setInstanceIDs(const std::string& instanceIDs)
|
||||
{
|
||||
instanceIDs_ = instanceIDs;
|
||||
setCoreParameter("InstanceIDs", instanceIDs);
|
||||
}
|
||||
|
||||
std::string SetRenewalRequest::getSubscriptionType()const
|
||||
{
|
||||
return subscriptionType_;
|
||||
@@ -58,28 +47,6 @@ void SetRenewalRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
std::string SetRenewalRequest::getRenewalStatus()const
|
||||
{
|
||||
return renewalStatus_;
|
||||
}
|
||||
|
||||
void SetRenewalRequest::setRenewalStatus(const std::string& renewalStatus)
|
||||
{
|
||||
renewalStatus_ = renewalStatus;
|
||||
setCoreParameter("RenewalStatus", renewalStatus);
|
||||
}
|
||||
|
||||
std::string SetRenewalRequest::getRenewalPeriodUnit()const
|
||||
{
|
||||
return renewalPeriodUnit_;
|
||||
}
|
||||
|
||||
void SetRenewalRequest::setRenewalPeriodUnit(const std::string& renewalPeriodUnit)
|
||||
{
|
||||
renewalPeriodUnit_ = renewalPeriodUnit;
|
||||
setCoreParameter("RenewalPeriodUnit", renewalPeriodUnit);
|
||||
}
|
||||
|
||||
int SetRenewalRequest::getRenewalPeriod()const
|
||||
{
|
||||
return renewalPeriod_;
|
||||
@@ -113,3 +80,36 @@ void SetRenewalRequest::setProductType(const std::string& productType)
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
std::string SetRenewalRequest::getInstanceIDs()const
|
||||
{
|
||||
return instanceIDs_;
|
||||
}
|
||||
|
||||
void SetRenewalRequest::setInstanceIDs(const std::string& instanceIDs)
|
||||
{
|
||||
instanceIDs_ = instanceIDs;
|
||||
setCoreParameter("InstanceIDs", instanceIDs);
|
||||
}
|
||||
|
||||
std::string SetRenewalRequest::getRenewalStatus()const
|
||||
{
|
||||
return renewalStatus_;
|
||||
}
|
||||
|
||||
void SetRenewalRequest::setRenewalStatus(const std::string& renewalStatus)
|
||||
{
|
||||
renewalStatus_ = renewalStatus;
|
||||
setCoreParameter("RenewalStatus", renewalStatus);
|
||||
}
|
||||
|
||||
std::string SetRenewalRequest::getRenewalPeriodUnit()const
|
||||
{
|
||||
return renewalPeriodUnit_;
|
||||
}
|
||||
|
||||
void SetRenewalRequest::setRenewalPeriodUnit(const std::string& renewalPeriodUnit)
|
||||
{
|
||||
renewalPeriodUnit_ = renewalPeriodUnit;
|
||||
setCoreParameter("RenewalPeriodUnit", renewalPeriodUnit);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ SetRenewalResult::~SetRenewalResult()
|
||||
|
||||
void SetRenewalResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -35,13 +35,9 @@ SetResellerUserAlarmThresholdResult::~SetResellerUserAlarmThresholdResult()
|
||||
|
||||
void SetResellerUserAlarmThresholdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -47,17 +47,6 @@ void SetResellerUserQuotaRequest::setOutBizId(const std::string& outBizId)
|
||||
setCoreParameter("OutBizId", outBizId);
|
||||
}
|
||||
|
||||
std::string SetResellerUserQuotaRequest::getCurrency()const
|
||||
{
|
||||
return currency_;
|
||||
}
|
||||
|
||||
void SetResellerUserQuotaRequest::setCurrency(const std::string& currency)
|
||||
{
|
||||
currency_ = currency;
|
||||
setCoreParameter("Currency", currency);
|
||||
}
|
||||
|
||||
long SetResellerUserQuotaRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -69,3 +58,14 @@ void SetResellerUserQuotaRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SetResellerUserQuotaRequest::getCurrency()const
|
||||
{
|
||||
return currency_;
|
||||
}
|
||||
|
||||
void SetResellerUserQuotaRequest::setCurrency(const std::string& currency)
|
||||
{
|
||||
currency_ = currency;
|
||||
setCoreParameter("Currency", currency);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ SetResellerUserQuotaResult::~SetResellerUserQuotaResult()
|
||||
|
||||
void SetResellerUserQuotaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -36,17 +36,6 @@ void SetResellerUserStatusRequest::setOwnerId(const std::string& ownerId)
|
||||
setCoreParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
std::string SetResellerUserStatusRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void SetResellerUserStatusRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
std::string SetResellerUserStatusRequest::getBusinessType()const
|
||||
{
|
||||
return businessType_;
|
||||
@@ -58,3 +47,14 @@ void SetResellerUserStatusRequest::setBusinessType(const std::string& businessTy
|
||||
setCoreParameter("BusinessType", businessType);
|
||||
}
|
||||
|
||||
std::string SetResellerUserStatusRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void SetResellerUserStatusRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ SetResellerUserStatusResult::~SetResellerUserStatusResult()
|
||||
|
||||
void SetResellerUserStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
@@ -35,13 +35,9 @@ SubscribeBillToOSSResult::~SubscribeBillToOSSResult()
|
||||
|
||||
void SubscribeBillToOSSResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -35,13 +35,9 @@ UnsubscribeBillToOSSResult::~UnsubscribeBillToOSSResult()
|
||||
|
||||
void UnsubscribeBillToOSSResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -25,17 +25,6 @@ UpgradeResourcePackageRequest::UpgradeResourcePackageRequest() :
|
||||
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_;
|
||||
@@ -69,3 +58,14 @@ void UpgradeResourcePackageRequest::setEffectiveDate(const std::string& effectiv
|
||||
setCoreParameter("EffectiveDate", effectiveDate);
|
||||
}
|
||||
|
||||
std::string UpgradeResourcePackageRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void UpgradeResourcePackageRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ UpgradeResourcePackageResult::~UpgradeResourcePackageResult()
|
||||
|
||||
void UpgradeResourcePackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["OrderId"].isNull())
|
||||
|
||||
Reference in New Issue
Block a user