in selectdb-20230522/include/alibabacloud/selectdb_20230522.hpp [4843:4987]
void fromMap(map<string, boost::any> m) override {
if (m.find("Category") != m.end() && !m["Category"].empty()) {
category = make_shared<string>(boost::any_cast<string>(m["Category"]));
}
if (m.find("ChargeType") != m.end() && !m["ChargeType"].empty()) {
chargeType = make_shared<string>(boost::any_cast<string>(m["ChargeType"]));
}
if (m.find("ClusterCount") != m.end() && !m["ClusterCount"].empty()) {
clusterCount = make_shared<long>(boost::any_cast<long>(m["ClusterCount"]));
}
if (m.find("DBInstanceId") != m.end() && !m["DBInstanceId"].empty()) {
DBInstanceId = make_shared<string>(boost::any_cast<string>(m["DBInstanceId"]));
}
if (m.find("DeployScheme") != m.end() && !m["DeployScheme"].empty()) {
deployScheme = make_shared<string>(boost::any_cast<string>(m["DeployScheme"]));
}
if (m.find("Description") != m.end() && !m["Description"].empty()) {
description = make_shared<string>(boost::any_cast<string>(m["Description"]));
}
if (m.find("Engine") != m.end() && !m["Engine"].empty()) {
engine = make_shared<string>(boost::any_cast<string>(m["Engine"]));
}
if (m.find("EngineMinorVersion") != m.end() && !m["EngineMinorVersion"].empty()) {
engineMinorVersion = make_shared<string>(boost::any_cast<string>(m["EngineMinorVersion"]));
}
if (m.find("EngineVersion") != m.end() && !m["EngineVersion"].empty()) {
engineVersion = make_shared<string>(boost::any_cast<string>(m["EngineVersion"]));
}
if (m.find("ExpireTime") != m.end() && !m["ExpireTime"].empty()) {
expireTime = make_shared<string>(boost::any_cast<string>(m["ExpireTime"]));
}
if (m.find("GmtCreated") != m.end() && !m["GmtCreated"].empty()) {
gmtCreated = make_shared<string>(boost::any_cast<string>(m["GmtCreated"]));
}
if (m.find("GmtModified") != m.end() && !m["GmtModified"].empty()) {
gmtModified = make_shared<string>(boost::any_cast<string>(m["GmtModified"]));
}
if (m.find("InstanceUsedType") != m.end() && !m["InstanceUsedType"].empty()) {
instanceUsedType = make_shared<string>(boost::any_cast<string>(m["InstanceUsedType"]));
}
if (m.find("IsDeleted") != m.end() && !m["IsDeleted"].empty()) {
isDeleted = make_shared<bool>(boost::any_cast<bool>(m["IsDeleted"]));
}
if (m.find("LockMode") != m.end() && !m["LockMode"].empty()) {
lockMode = make_shared<long>(boost::any_cast<long>(m["LockMode"]));
}
if (m.find("LockReason") != m.end() && !m["LockReason"].empty()) {
lockReason = make_shared<string>(boost::any_cast<string>(m["LockReason"]));
}
if (m.find("MaintainEndTimeStr") != m.end() && !m["MaintainEndTimeStr"].empty()) {
maintainEndTimeStr = make_shared<string>(boost::any_cast<string>(m["MaintainEndTimeStr"]));
}
if (m.find("MaintainEndtime") != m.end() && !m["MaintainEndtime"].empty()) {
maintainEndtime = make_shared<string>(boost::any_cast<string>(m["MaintainEndtime"]));
}
if (m.find("MaintainStartTimeStr") != m.end() && !m["MaintainStartTimeStr"].empty()) {
maintainStartTimeStr = make_shared<string>(boost::any_cast<string>(m["MaintainStartTimeStr"]));
}
if (m.find("MaintainStarttime") != m.end() && !m["MaintainStarttime"].empty()) {
maintainStarttime = make_shared<string>(boost::any_cast<string>(m["MaintainStarttime"]));
}
if (m.find("MultiZone") != m.end() && !m["MultiZone"].empty()) {
if (typeid(vector<boost::any>) == m["MultiZone"].type()) {
vector<DescribeDBInstancesResponseBodyItemsMultiZone> expect1;
for(auto item1:boost::any_cast<vector<boost::any>>(m["MultiZone"])){
if (typeid(map<string, boost::any>) == item1.type()) {
DescribeDBInstancesResponseBodyItemsMultiZone model2;
model2.fromMap(boost::any_cast<map<string, boost::any>>(item1));
expect1.push_back(model2);
}
}
multiZone = make_shared<vector<DescribeDBInstancesResponseBodyItemsMultiZone>>(expect1);
}
}
if (m.find("ObjectStoreSize") != m.end() && !m["ObjectStoreSize"].empty()) {
objectStoreSize = make_shared<long>(boost::any_cast<long>(m["ObjectStoreSize"]));
}
if (m.find("ParentInstance") != m.end() && !m["ParentInstance"].empty()) {
parentInstance = make_shared<string>(boost::any_cast<string>(m["ParentInstance"]));
}
if (m.find("RegionId") != m.end() && !m["RegionId"].empty()) {
regionId = make_shared<string>(boost::any_cast<string>(m["RegionId"]));
}
if (m.find("ResourceCpu") != m.end() && !m["ResourceCpu"].empty()) {
resourceCpu = make_shared<long>(boost::any_cast<long>(m["ResourceCpu"]));
}
if (m.find("ResourceGroupId") != m.end() && !m["ResourceGroupId"].empty()) {
resourceGroupId = make_shared<string>(boost::any_cast<string>(m["ResourceGroupId"]));
}
if (m.find("ResourceMemory") != m.end() && !m["ResourceMemory"].empty()) {
resourceMemory = make_shared<long>(boost::any_cast<long>(m["ResourceMemory"]));
}
if (m.find("ScaleMax") != m.end() && !m["ScaleMax"].empty()) {
scaleMax = make_shared<long>(boost::any_cast<long>(m["ScaleMax"]));
}
if (m.find("ScaleMin") != m.end() && !m["ScaleMin"].empty()) {
scaleMin = make_shared<long>(boost::any_cast<long>(m["ScaleMin"]));
}
if (m.find("ScaleReplica") != m.end() && !m["ScaleReplica"].empty()) {
scaleReplica = make_shared<long>(boost::any_cast<long>(m["ScaleReplica"]));
}
if (m.find("Status") != m.end() && !m["Status"].empty()) {
status = make_shared<string>(boost::any_cast<string>(m["Status"]));
}
if (m.find("StorageSize") != m.end() && !m["StorageSize"].empty()) {
storageSize = make_shared<long>(boost::any_cast<long>(m["StorageSize"]));
}
if (m.find("StorageType") != m.end() && !m["StorageType"].empty()) {
storageType = make_shared<string>(boost::any_cast<string>(m["StorageType"]));
}
if (m.find("Tags") != m.end() && !m["Tags"].empty()) {
if (typeid(vector<boost::any>) == m["Tags"].type()) {
vector<DescribeDBInstancesResponseBodyItemsTags> expect1;
for(auto item1:boost::any_cast<vector<boost::any>>(m["Tags"])){
if (typeid(map<string, boost::any>) == item1.type()) {
DescribeDBInstancesResponseBodyItemsTags model2;
model2.fromMap(boost::any_cast<map<string, boost::any>>(item1));
expect1.push_back(model2);
}
}
tags = make_shared<vector<DescribeDBInstancesResponseBodyItemsTags>>(expect1);
}
}
if (m.find("TenantClusterId") != m.end() && !m["TenantClusterId"].empty()) {
tenantClusterId = make_shared<string>(boost::any_cast<string>(m["TenantClusterId"]));
}
if (m.find("TenantToken") != m.end() && !m["TenantToken"].empty()) {
tenantToken = make_shared<string>(boost::any_cast<string>(m["TenantToken"]));
}
if (m.find("TenantUserId") != m.end() && !m["TenantUserId"].empty()) {
tenantUserId = make_shared<string>(boost::any_cast<string>(m["TenantUserId"]));
}
if (m.find("VpcId") != m.end() && !m["VpcId"].empty()) {
vpcId = make_shared<string>(boost::any_cast<string>(m["VpcId"]));
}
if (m.find("VswitchId") != m.end() && !m["VswitchId"].empty()) {
vswitchId = make_shared<string>(boost::any_cast<string>(m["VswitchId"]));
}
if (m.find("ZoneId") != m.end() && !m["ZoneId"].empty()) {
zoneId = make_shared<string>(boost::any_cast<string>(m["ZoneId"]));
}
if (m.find("connectionString") != m.end() && !m["connectionString"].empty()) {
connectionString = make_shared<string>(boost::any_cast<string>(m["connectionString"]));
}
}