Fix BdsColdStorage.

This commit is contained in:
sdk-team
2021-11-23 04:28:47 +00:00
parent 13d4cbf2f9
commit 2373071165
4 changed files with 35 additions and 14 deletions

View File

@@ -37,18 +37,22 @@ namespace AlibabaCloud
DescribeColdStorageResult();
explicit DescribeColdStorageResult(const std::string &payload);
~DescribeColdStorageResult();
std::string getColdStorageSize()const;
std::string getColdStorageUsePercent()const;
std::string getColdStorageSize()const;
std::string getColdStorageUseAmount()const;
std::string getClusterId()const;
std::string getColdStorageType()const;
std::string getPayType()const;
std::string getOpenStatus()const;
protected:
void parse(const std::string &payload);
private:
std::string coldStorageSize_;
std::string coldStorageUsePercent_;
std::string coldStorageSize_;
std::string coldStorageUseAmount_;
std::string clusterId_;
std::string coldStorageType_;
std::string payType_;
std::string openStatus_;

View File

@@ -39,34 +39,48 @@ void DescribeColdStorageResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ClusterId"].isNull())
clusterId_ = value["ClusterId"].asString();
if(!value["OpenStatus"].isNull())
openStatus_ = value["OpenStatus"].asString();
if(!value["ColdStorageSize"].isNull())
coldStorageSize_ = value["ColdStorageSize"].asString();
if(!value["ColdStorageUsePercent"].isNull())
coldStorageUsePercent_ = value["ColdStorageUsePercent"].asString();
if(!value["PayType"].isNull())
payType_ = value["PayType"].asString();
if(!value["ColdStorageUsePercent"].isNull())
coldStorageUsePercent_ = value["ColdStorageUsePercent"].asString();
if(!value["ColdStorageUseAmount"].isNull())
coldStorageUseAmount_ = value["ColdStorageUseAmount"].asString();
if(!value["ColdStorageSize"].isNull())
coldStorageSize_ = value["ColdStorageSize"].asString();
if(!value["ColdStorageType"].isNull())
coldStorageType_ = value["ColdStorageType"].asString();
if(!value["ClusterId"].isNull())
clusterId_ = value["ClusterId"].asString();
}
std::string DescribeColdStorageResult::getColdStorageSize()const
{
return coldStorageSize_;
}
std::string DescribeColdStorageResult::getColdStorageUsePercent()const
{
return coldStorageUsePercent_;
}
std::string DescribeColdStorageResult::getColdStorageSize()const
{
return coldStorageSize_;
}
std::string DescribeColdStorageResult::getColdStorageUseAmount()const
{
return coldStorageUseAmount_;
}
std::string DescribeColdStorageResult::getClusterId()const
{
return clusterId_;
}
std::string DescribeColdStorageResult::getColdStorageType()const
{
return coldStorageType_;
}
std::string DescribeColdStorageResult::getPayType()const
{
return payType_;