Support DescribePolarSQLCollectorPolicy.
This commit is contained in:
@@ -39,92 +39,94 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueTagsTag["Key"].asString();
|
||||
if(!valueTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueTagsTag["Value"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
auto allDBNodesNode = value["DBNodes"]["DBNode"];
|
||||
for (auto valueDBNodesDBNode : allDBNodesNode)
|
||||
{
|
||||
DBNode dBNodesObject;
|
||||
if(!valueDBNodesDBNode["DBNodeId"].isNull())
|
||||
dBNodesObject.dBNodeId = valueDBNodesDBNode["DBNodeId"].asString();
|
||||
if(!valueDBNodesDBNode["ZoneId"].isNull())
|
||||
dBNodesObject.zoneId = valueDBNodesDBNode["ZoneId"].asString();
|
||||
if(!valueDBNodesDBNode["DBNodeStatus"].isNull())
|
||||
dBNodesObject.dBNodeStatus = valueDBNodesDBNode["DBNodeStatus"].asString();
|
||||
if(!valueDBNodesDBNode["CreationTime"].isNull())
|
||||
dBNodesObject.creationTime = valueDBNodesDBNode["CreationTime"].asString();
|
||||
if(!valueDBNodesDBNode["DBNodeClass"].isNull())
|
||||
dBNodesObject.dBNodeClass = valueDBNodesDBNode["DBNodeClass"].asString();
|
||||
if(!valueDBNodesDBNode["DBNodeRole"].isNull())
|
||||
dBNodesObject.dBNodeRole = valueDBNodesDBNode["DBNodeRole"].asString();
|
||||
if(!valueDBNodesDBNode["MaxIOPS"].isNull())
|
||||
dBNodesObject.maxIOPS = std::stoi(valueDBNodesDBNode["MaxIOPS"].asString());
|
||||
if(!valueDBNodesDBNode["MaxConnections"].isNull())
|
||||
dBNodesObject.maxConnections = std::stoi(valueDBNodesDBNode["MaxConnections"].asString());
|
||||
if(!valueDBNodesDBNode["ZoneId"].isNull())
|
||||
dBNodesObject.zoneId = valueDBNodesDBNode["ZoneId"].asString();
|
||||
if(!valueDBNodesDBNode["DBNodeRole"].isNull())
|
||||
dBNodesObject.dBNodeRole = valueDBNodesDBNode["DBNodeRole"].asString();
|
||||
if(!valueDBNodesDBNode["CreationTime"].isNull())
|
||||
dBNodesObject.creationTime = valueDBNodesDBNode["CreationTime"].asString();
|
||||
if(!valueDBNodesDBNode["DBNodeId"].isNull())
|
||||
dBNodesObject.dBNodeId = valueDBNodesDBNode["DBNodeId"].asString();
|
||||
if(!valueDBNodesDBNode["FailoverPriority"].isNull())
|
||||
dBNodesObject.failoverPriority = std::stoi(valueDBNodesDBNode["FailoverPriority"].asString());
|
||||
if(!valueDBNodesDBNode["DBNodeClass"].isNull())
|
||||
dBNodesObject.dBNodeClass = valueDBNodesDBNode["DBNodeClass"].asString();
|
||||
if(!valueDBNodesDBNode["MaxIOPS"].isNull())
|
||||
dBNodesObject.maxIOPS = std::stoi(valueDBNodesDBNode["MaxIOPS"].asString());
|
||||
dBNodes_.push_back(dBNodesObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["DBClusterNetworkType"].isNull())
|
||||
dBClusterNetworkType_ = value["DBClusterNetworkType"].asString();
|
||||
if(!value["VPCId"].isNull())
|
||||
vPCId_ = value["VPCId"].asString();
|
||||
if(!value["VSwitchId"].isNull())
|
||||
vSwitchId_ = value["VSwitchId"].asString();
|
||||
if(!value["PayType"].isNull())
|
||||
payType_ = value["PayType"].asString();
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
if(!value["DBClusterStatus"].isNull())
|
||||
dBClusterStatus_ = value["DBClusterStatus"].asString();
|
||||
if(!value["DBClusterDescription"].isNull())
|
||||
dBClusterDescription_ = value["DBClusterDescription"].asString();
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
if(!value["DBType"].isNull())
|
||||
dBType_ = value["DBType"].asString();
|
||||
if(!value["DBVersion"].isNull())
|
||||
dBVersion_ = value["DBVersion"].asString();
|
||||
if(!value["LockMode"].isNull())
|
||||
lockMode_ = value["LockMode"].asString();
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueTagsTag["Value"].asString();
|
||||
if(!valueTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueTagsTag["Key"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
if(!value["DeletionLock"].isNull())
|
||||
deletionLock_ = std::stoi(value["DeletionLock"].asString());
|
||||
if(!value["CreationTime"].isNull())
|
||||
creationTime_ = value["CreationTime"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
expireTime_ = value["ExpireTime"].asString();
|
||||
if(!value["Expired"].isNull())
|
||||
expired_ = value["Expired"].asString();
|
||||
if(!value["MaintainTime"].isNull())
|
||||
maintainTime_ = value["MaintainTime"].asString();
|
||||
if(!value["StorageUsed"].isNull())
|
||||
storageUsed_ = std::stol(value["StorageUsed"].asString());
|
||||
if(!value["StorageMax"].isNull())
|
||||
storageMax_ = std::stol(value["StorageMax"].asString());
|
||||
if(!value["ZoneIds"].isNull())
|
||||
zoneIds_ = value["ZoneIds"].asString();
|
||||
if(!value["SQLSize"].isNull())
|
||||
sQLSize_ = std::stol(value["SQLSize"].asString());
|
||||
if(!value["IsLatestVersion"].isNull())
|
||||
isLatestVersion_ = value["IsLatestVersion"].asString() == "true";
|
||||
if(!value["Category"].isNull())
|
||||
category_ = value["Category"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
if(!value["DataLevel1BackupChainSize"].isNull())
|
||||
dataLevel1BackupChainSize_ = std::stol(value["DataLevel1BackupChainSize"].asString());
|
||||
if(!value["Category"].isNull())
|
||||
category_ = value["Category"].asString();
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
if(!value["DBClusterNetworkType"].isNull())
|
||||
dBClusterNetworkType_ = value["DBClusterNetworkType"].asString();
|
||||
if(!value["DBType"].isNull())
|
||||
dBType_ = value["DBType"].asString();
|
||||
if(!value["IsLatestVersion"].isNull())
|
||||
isLatestVersion_ = value["IsLatestVersion"].asString() == "true";
|
||||
if(!value["DBVersion"].isNull())
|
||||
dBVersion_ = value["DBVersion"].asString();
|
||||
if(!value["StorageMax"].isNull())
|
||||
storageMax_ = std::stol(value["StorageMax"].asString());
|
||||
if(!value["ZoneIds"].isNull())
|
||||
zoneIds_ = value["ZoneIds"].asString();
|
||||
if(!value["MaintainTime"].isNull())
|
||||
maintainTime_ = value["MaintainTime"].asString();
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
if(!value["VPCId"].isNull())
|
||||
vPCId_ = value["VPCId"].asString();
|
||||
if(!value["DBClusterStatus"].isNull())
|
||||
dBClusterStatus_ = value["DBClusterStatus"].asString();
|
||||
if(!value["VSwitchId"].isNull())
|
||||
vSwitchId_ = value["VSwitchId"].asString();
|
||||
if(!value["DBClusterDescription"].isNull())
|
||||
dBClusterDescription_ = value["DBClusterDescription"].asString();
|
||||
if(!value["Expired"].isNull())
|
||||
expired_ = value["Expired"].asString();
|
||||
if(!value["LockMode"].isNull())
|
||||
lockMode_ = value["LockMode"].asString();
|
||||
if(!value["PayType"].isNull())
|
||||
payType_ = value["PayType"].asString();
|
||||
if(!value["StorageUsed"].isNull())
|
||||
storageUsed_ = std::stol(value["StorageUsed"].asString());
|
||||
if(!value["DBVersionStatus"].isNull())
|
||||
dBVersionStatus_ = value["DBVersionStatus"].asString();
|
||||
if(!value["SubCategory"].isNull())
|
||||
subCategory_ = value["SubCategory"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
creationTime_ = value["CreationTime"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["SQLSize"].isNull())
|
||||
sQLSize_ = std::stol(value["SQLSize"].asString());
|
||||
if(!value["ExpireTime"].isNull())
|
||||
expireTime_ = value["ExpireTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -228,16 +230,16 @@ std::string DescribeDBClusterAttributeResult::getExpired()const
|
||||
return expired_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAttributeResult::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAttributeResult::getLockMode()const
|
||||
{
|
||||
return lockMode_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAttributeResult::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
long DescribeDBClusterAttributeResult::getStorageUsed()const
|
||||
{
|
||||
return storageUsed_;
|
||||
@@ -248,6 +250,11 @@ std::string DescribeDBClusterAttributeResult::getDBVersionStatus()const
|
||||
return dBVersionStatus_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAttributeResult::getSubCategory()const
|
||||
{
|
||||
return subCategory_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAttributeResult::getCreationTime()const
|
||||
{
|
||||
return creationTime_;
|
||||
|
||||
@@ -45,40 +45,40 @@ void DescribeDBClusterEndpointsResult::parse(const std::string &payload)
|
||||
DBEndpoint itemsObject;
|
||||
if(!valueItemsDBEndpoint["DBEndpointId"].isNull())
|
||||
itemsObject.dBEndpointId = valueItemsDBEndpoint["DBEndpointId"].asString();
|
||||
if(!valueItemsDBEndpoint["EndpointType"].isNull())
|
||||
itemsObject.endpointType = valueItemsDBEndpoint["EndpointType"].asString();
|
||||
if(!valueItemsDBEndpoint["Nodes"].isNull())
|
||||
itemsObject.nodes = valueItemsDBEndpoint["Nodes"].asString();
|
||||
if(!valueItemsDBEndpoint["ReadWriteMode"].isNull())
|
||||
itemsObject.readWriteMode = valueItemsDBEndpoint["ReadWriteMode"].asString();
|
||||
if(!valueItemsDBEndpoint["AutoAddNewNodes"].isNull())
|
||||
itemsObject.autoAddNewNodes = valueItemsDBEndpoint["AutoAddNewNodes"].asString();
|
||||
if(!valueItemsDBEndpoint["EndpointConfig"].isNull())
|
||||
itemsObject.endpointConfig = valueItemsDBEndpoint["EndpointConfig"].asString();
|
||||
if(!valueItemsDBEndpoint["NodeWithRoles"].isNull())
|
||||
itemsObject.nodeWithRoles = valueItemsDBEndpoint["NodeWithRoles"].asString();
|
||||
if(!valueItemsDBEndpoint["AutoAddNewNodes"].isNull())
|
||||
itemsObject.autoAddNewNodes = valueItemsDBEndpoint["AutoAddNewNodes"].asString();
|
||||
if(!valueItemsDBEndpoint["EndpointType"].isNull())
|
||||
itemsObject.endpointType = valueItemsDBEndpoint["EndpointType"].asString();
|
||||
if(!valueItemsDBEndpoint["DBEndpointDescription"].isNull())
|
||||
itemsObject.dBEndpointDescription = valueItemsDBEndpoint["DBEndpointDescription"].asString();
|
||||
if(!valueItemsDBEndpoint["EndpointConfig"].isNull())
|
||||
itemsObject.endpointConfig = valueItemsDBEndpoint["EndpointConfig"].asString();
|
||||
if(!valueItemsDBEndpoint["ReadWriteMode"].isNull())
|
||||
itemsObject.readWriteMode = valueItemsDBEndpoint["ReadWriteMode"].asString();
|
||||
if(!valueItemsDBEndpoint["Nodes"].isNull())
|
||||
itemsObject.nodes = valueItemsDBEndpoint["Nodes"].asString();
|
||||
auto allAddressItemsNode = valueItemsDBEndpoint["AddressItems"]["Address"];
|
||||
for (auto valueItemsDBEndpointAddressItemsAddress : allAddressItemsNode)
|
||||
{
|
||||
DBEndpoint::Address addressItemsObject;
|
||||
if(!valueItemsDBEndpointAddressItemsAddress["ConnectionString"].isNull())
|
||||
addressItemsObject.connectionString = valueItemsDBEndpointAddressItemsAddress["ConnectionString"].asString();
|
||||
if(!valueItemsDBEndpointAddressItemsAddress["IPAddress"].isNull())
|
||||
addressItemsObject.iPAddress = valueItemsDBEndpointAddressItemsAddress["IPAddress"].asString();
|
||||
if(!valueItemsDBEndpointAddressItemsAddress["NetType"].isNull())
|
||||
addressItemsObject.netType = valueItemsDBEndpointAddressItemsAddress["NetType"].asString();
|
||||
if(!valueItemsDBEndpointAddressItemsAddress["Port"].isNull())
|
||||
addressItemsObject.port = valueItemsDBEndpointAddressItemsAddress["Port"].asString();
|
||||
if(!valueItemsDBEndpointAddressItemsAddress["PrivateZoneConnectionString"].isNull())
|
||||
addressItemsObject.privateZoneConnectionString = valueItemsDBEndpointAddressItemsAddress["PrivateZoneConnectionString"].asString();
|
||||
if(!valueItemsDBEndpointAddressItemsAddress["VPCId"].isNull())
|
||||
addressItemsObject.vPCId = valueItemsDBEndpointAddressItemsAddress["VPCId"].asString();
|
||||
if(!valueItemsDBEndpointAddressItemsAddress["Port"].isNull())
|
||||
addressItemsObject.port = valueItemsDBEndpointAddressItemsAddress["Port"].asString();
|
||||
if(!valueItemsDBEndpointAddressItemsAddress["VSwitchId"].isNull())
|
||||
addressItemsObject.vSwitchId = valueItemsDBEndpointAddressItemsAddress["VSwitchId"].asString();
|
||||
if(!valueItemsDBEndpointAddressItemsAddress["VpcInstanceId"].isNull())
|
||||
addressItemsObject.vpcInstanceId = valueItemsDBEndpointAddressItemsAddress["VpcInstanceId"].asString();
|
||||
if(!valueItemsDBEndpointAddressItemsAddress["PrivateZoneConnectionString"].isNull())
|
||||
addressItemsObject.privateZoneConnectionString = valueItemsDBEndpointAddressItemsAddress["PrivateZoneConnectionString"].asString();
|
||||
if(!valueItemsDBEndpointAddressItemsAddress["IPAddress"].isNull())
|
||||
addressItemsObject.iPAddress = valueItemsDBEndpointAddressItemsAddress["IPAddress"].asString();
|
||||
if(!valueItemsDBEndpointAddressItemsAddress["ConnectionString"].isNull())
|
||||
addressItemsObject.connectionString = valueItemsDBEndpointAddressItemsAddress["ConnectionString"].asString();
|
||||
if(!valueItemsDBEndpointAddressItemsAddress["NetType"].isNull())
|
||||
addressItemsObject.netType = valueItemsDBEndpointAddressItemsAddress["NetType"].asString();
|
||||
itemsObject.addressItems.push_back(addressItemsObject);
|
||||
}
|
||||
items_.push_back(itemsObject);
|
||||
|
||||
@@ -39,21 +39,34 @@ void DescribeDBClusterVersionResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
if(!value["DBVersion"].isNull())
|
||||
dBVersion_ = value["DBVersion"].asString();
|
||||
if(!value["DBMinorVersion"].isNull())
|
||||
dBMinorVersion_ = value["DBMinorVersion"].asString();
|
||||
if(!value["DBVersionStatus"].isNull())
|
||||
dBVersionStatus_ = value["DBVersionStatus"].asString();
|
||||
if(!value["ProxyVersionStatus"].isNull())
|
||||
proxyVersionStatus_ = value["ProxyVersionStatus"].asString();
|
||||
if(!value["IsLatestVersion"].isNull())
|
||||
isLatestVersion_ = value["IsLatestVersion"].asString();
|
||||
if(!value["DBVersion"].isNull())
|
||||
dBVersion_ = value["DBVersion"].asString();
|
||||
if(!value["DBRevisionVersion"].isNull())
|
||||
dBRevisionVersion_ = value["DBRevisionVersion"].asString();
|
||||
if(!value["DBVersionStatus"].isNull())
|
||||
dBVersionStatus_ = value["DBVersionStatus"].asString();
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
if(!value["DBLatestVersion"].isNull())
|
||||
dBLatestVersion_ = value["DBLatestVersion"].asString();
|
||||
if(!value["ProxyRevisionVersion"].isNull())
|
||||
proxyRevisionVersion_ = value["ProxyRevisionVersion"].asString();
|
||||
if(!value["DBMinorVersion"].isNull())
|
||||
dBMinorVersion_ = value["DBMinorVersion"].asString();
|
||||
if(!value["ProxyLatestVersion"].isNull())
|
||||
proxyLatestVersion_ = value["ProxyLatestVersion"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterVersionResult::getProxyVersionStatus()const
|
||||
{
|
||||
return proxyVersionStatus_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterVersionResult::getIsLatestVersion()const
|
||||
{
|
||||
return isLatestVersion_;
|
||||
@@ -79,8 +92,23 @@ std::string DescribeDBClusterVersionResult::getDBClusterId()const
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterVersionResult::getDBLatestVersion()const
|
||||
{
|
||||
return dBLatestVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterVersionResult::getProxyRevisionVersion()const
|
||||
{
|
||||
return proxyRevisionVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterVersionResult::getDBMinorVersion()const
|
||||
{
|
||||
return dBMinorVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterVersionResult::getProxyLatestVersion()const
|
||||
{
|
||||
return proxyLatestVersion_;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,8 +47,6 @@ void DescribeParameterGroupsResult::parse(const std::string &payload)
|
||||
parameterGroupsObject.dBVersion = valueParameterGroupsParameterGroupsItem["DBVersion"].asString();
|
||||
if(!valueParameterGroupsParameterGroupsItem["ParameterGroupId"].isNull())
|
||||
parameterGroupsObject.parameterGroupId = valueParameterGroupsParameterGroupsItem["ParameterGroupId"].asString();
|
||||
if(!valueParameterGroupsParameterGroupsItem["DigitalId"].isNull())
|
||||
parameterGroupsObject.digitalId = valueParameterGroupsParameterGroupsItem["DigitalId"].asString();
|
||||
if(!valueParameterGroupsParameterGroupsItem["ForceRestart"].isNull())
|
||||
parameterGroupsObject.forceRestart = valueParameterGroupsParameterGroupsItem["ForceRestart"].asString();
|
||||
if(!valueParameterGroupsParameterGroupsItem["ParameterGroupName"].isNull())
|
||||
|
||||
117
polardb/src/model/DescribeParameterTemplatesRequest.cc
Normal file
117
polardb/src/model/DescribeParameterTemplatesRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeParameterTemplatesRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeParameterTemplatesRequest;
|
||||
|
||||
DescribeParameterTemplatesRequest::DescribeParameterTemplatesRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeParameterTemplates")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeParameterTemplatesRequest::~DescribeParameterTemplatesRequest()
|
||||
{}
|
||||
|
||||
long DescribeParameterTemplatesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeParameterTemplatesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getDBType()const
|
||||
{
|
||||
return dBType_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setDBType(const std::string& dBType)
|
||||
{
|
||||
dBType_ = dBType;
|
||||
setParameter("DBType", dBType);
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getDBVersion()const
|
||||
{
|
||||
return dBVersion_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setDBVersion(const std::string& dBVersion)
|
||||
{
|
||||
dBVersion_ = dBVersion;
|
||||
setParameter("DBVersion", dBVersion);
|
||||
}
|
||||
|
||||
95
polardb/src/model/DescribeParameterTemplatesResult.cc
Normal file
95
polardb/src/model/DescribeParameterTemplatesResult.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeParameterTemplatesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeParameterTemplatesResult::DescribeParameterTemplatesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeParameterTemplatesResult::DescribeParameterTemplatesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeParameterTemplatesResult::~DescribeParameterTemplatesResult()
|
||||
{}
|
||||
|
||||
void DescribeParameterTemplatesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParametersNode = value["Parameters"]["TemplateRecord"];
|
||||
for (auto valueParametersTemplateRecord : allParametersNode)
|
||||
{
|
||||
TemplateRecord parametersObject;
|
||||
if(!valueParametersTemplateRecord["ForceModify"].isNull())
|
||||
parametersObject.forceModify = valueParametersTemplateRecord["ForceModify"].asString();
|
||||
if(!valueParametersTemplateRecord["CheckingCode"].isNull())
|
||||
parametersObject.checkingCode = valueParametersTemplateRecord["CheckingCode"].asString();
|
||||
if(!valueParametersTemplateRecord["ParameterValue"].isNull())
|
||||
parametersObject.parameterValue = valueParametersTemplateRecord["ParameterValue"].asString();
|
||||
if(!valueParametersTemplateRecord["ForceRestart"].isNull())
|
||||
parametersObject.forceRestart = valueParametersTemplateRecord["ForceRestart"].asString();
|
||||
if(!valueParametersTemplateRecord["ParameterName"].isNull())
|
||||
parametersObject.parameterName = valueParametersTemplateRecord["ParameterName"].asString();
|
||||
if(!valueParametersTemplateRecord["ParameterDescription"].isNull())
|
||||
parametersObject.parameterDescription = valueParametersTemplateRecord["ParameterDescription"].asString();
|
||||
parameters_.push_back(parametersObject);
|
||||
}
|
||||
if(!value["ParameterCount"].isNull())
|
||||
parameterCount_ = value["ParameterCount"].asString();
|
||||
if(!value["DBVersion"].isNull())
|
||||
dBVersion_ = value["DBVersion"].asString();
|
||||
if(!value["DBType"].isNull())
|
||||
dBType_ = value["DBType"].asString();
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesResult::getParameterCount()const
|
||||
{
|
||||
return parameterCount_;
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesResult::getDBVersion()const
|
||||
{
|
||||
return dBVersion_;
|
||||
}
|
||||
|
||||
std::vector<DescribeParameterTemplatesResult::TemplateRecord> DescribeParameterTemplatesResult::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesResult::getDBType()const
|
||||
{
|
||||
return dBType_;
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesResult::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
95
polardb/src/model/DescribePolarSQLCollectorPolicyRequest.cc
Normal file
95
polardb/src/model/DescribePolarSQLCollectorPolicyRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribePolarSQLCollectorPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribePolarSQLCollectorPolicyRequest;
|
||||
|
||||
DescribePolarSQLCollectorPolicyRequest::DescribePolarSQLCollectorPolicyRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribePolarSQLCollectorPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribePolarSQLCollectorPolicyRequest::~DescribePolarSQLCollectorPolicyRequest()
|
||||
{}
|
||||
|
||||
long DescribePolarSQLCollectorPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribePolarSQLCollectorPolicyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribePolarSQLCollectorPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribePolarSQLCollectorPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribePolarSQLCollectorPolicyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribePolarSQLCollectorPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribePolarSQLCollectorPolicyRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribePolarSQLCollectorPolicyRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribePolarSQLCollectorPolicyRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribePolarSQLCollectorPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribePolarSQLCollectorPolicyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribePolarSQLCollectorPolicyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeSQLExplorerPolicyResult.h>
|
||||
#include <alibabacloud/polardb/model/DescribePolarSQLCollectorPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeSQLExplorerPolicyResult::DescribeSQLExplorerPolicyResult() :
|
||||
DescribePolarSQLCollectorPolicyResult::DescribePolarSQLCollectorPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLExplorerPolicyResult::DescribeSQLExplorerPolicyResult(const std::string &payload) :
|
||||
DescribePolarSQLCollectorPolicyResult::DescribePolarSQLCollectorPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLExplorerPolicyResult::~DescribeSQLExplorerPolicyResult()
|
||||
DescribePolarSQLCollectorPolicyResult::~DescribePolarSQLCollectorPolicyResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLExplorerPolicyResult::parse(const std::string &payload)
|
||||
void DescribePolarSQLCollectorPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -44,7 +44,7 @@ void DescribeSQLExplorerPolicyResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerPolicyResult::getSQLCollectorStatus()const
|
||||
std::string DescribePolarSQLCollectorPolicyResult::getSQLCollectorStatus()const
|
||||
{
|
||||
return sQLCollectorStatus_;
|
||||
}
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeSQLExplorerPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeSQLExplorerPolicyRequest;
|
||||
|
||||
DescribeSQLExplorerPolicyRequest::DescribeSQLExplorerPolicyRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeSQLExplorerPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSQLExplorerPolicyRequest::~DescribeSQLExplorerPolicyRequest()
|
||||
{}
|
||||
|
||||
long DescribeSQLExplorerPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerPolicyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerPolicyRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerPolicyRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerPolicyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerPolicyRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeSQLExplorerPolicyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerPolicyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeSQLExplorerRetentionRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeSQLExplorerRetentionRequest;
|
||||
|
||||
DescribeSQLExplorerRetentionRequest::DescribeSQLExplorerRetentionRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeSQLExplorerRetention")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSQLExplorerRetentionRequest::~DescribeSQLExplorerRetentionRequest()
|
||||
{}
|
||||
|
||||
long DescribeSQLExplorerRetentionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeSQLExplorerRetentionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeSQLExplorerRetentionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeSQLExplorerRetentionResult::DescribeSQLExplorerRetentionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLExplorerRetentionResult::DescribeSQLExplorerRetentionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLExplorerRetentionResult::~DescribeSQLExplorerRetentionResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLExplorerRetentionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ConfigValue"].isNull())
|
||||
configValue_ = value["ConfigValue"].asString();
|
||||
if(!value["DBInstanceID"].isNull())
|
||||
dBInstanceID_ = std::stoi(value["DBInstanceID"].asString());
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionResult::getConfigValue()const
|
||||
{
|
||||
return configValue_;
|
||||
}
|
||||
|
||||
int DescribeSQLExplorerRetentionResult::getDBInstanceID()const
|
||||
{
|
||||
return dBInstanceID_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionResult::getDBInstanceName()const
|
||||
{
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
@@ -1,348 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeSQLLogRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeSQLLogRecordsRequest;
|
||||
|
||||
DescribeSQLLogRecordsRequest::DescribeSQLLogRecordsRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeSQLLogRecords")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSQLLogRecordsRequest::~DescribeSQLLogRecordsRequest()
|
||||
{}
|
||||
|
||||
long DescribeSQLLogRecordsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getAccountName()const
|
||||
{
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setAccountName(const std::string& accountName)
|
||||
{
|
||||
accountName_ = accountName;
|
||||
setParameter("AccountName", accountName);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getState()const
|
||||
{
|
||||
return state_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setState(const std::string& state)
|
||||
{
|
||||
state_ = state;
|
||||
setParameter("State", state);
|
||||
}
|
||||
|
||||
long DescribeSQLLogRecordsRequest::getMinConsume()const
|
||||
{
|
||||
return minConsume_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setMinConsume(long minConsume)
|
||||
{
|
||||
minConsume_ = minConsume;
|
||||
setParameter("MinConsume", std::to_string(minConsume));
|
||||
}
|
||||
|
||||
long DescribeSQLLogRecordsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getLogicalOperator()const
|
||||
{
|
||||
return logicalOperator_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setLogicalOperator(const std::string& logicalOperator)
|
||||
{
|
||||
logicalOperator_ = logicalOperator;
|
||||
setParameter("LogicalOperator", logicalOperator);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getDBName()const
|
||||
{
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setDBName(const std::string& dBName)
|
||||
{
|
||||
dBName_ = dBName;
|
||||
setParameter("DBName", dBName);
|
||||
}
|
||||
|
||||
long DescribeSQLLogRecordsRequest::getMinScanRows()const
|
||||
{
|
||||
return minScanRows_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setMinScanRows(long minScanRows)
|
||||
{
|
||||
minScanRows_ = minScanRows;
|
||||
setParameter("MinScanRows", std::to_string(minScanRows));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getHostAddress()const
|
||||
{
|
||||
return hostAddress_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setHostAddress(const std::string& hostAddress)
|
||||
{
|
||||
hostAddress_ = hostAddress;
|
||||
setParameter("HostAddress", hostAddress);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getSortKey()const
|
||||
{
|
||||
return sortKey_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setSortKey(const std::string& sortKey)
|
||||
{
|
||||
sortKey_ = sortKey;
|
||||
setParameter("SortKey", sortKey);
|
||||
}
|
||||
|
||||
int DescribeSQLLogRecordsRequest::getPageNumbers()const
|
||||
{
|
||||
return pageNumbers_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setPageNumbers(int pageNumbers)
|
||||
{
|
||||
pageNumbers_ = pageNumbers;
|
||||
setParameter("PageNumbers", std::to_string(pageNumbers));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getPagingID()const
|
||||
{
|
||||
return pagingID_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setPagingID(const std::string& pagingID)
|
||||
{
|
||||
pagingID_ = pagingID;
|
||||
setParameter("PagingID", pagingID);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setTableName(const std::string& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
setParameter("TableName", tableName);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getSqlType()const
|
||||
{
|
||||
return sqlType_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setSqlType(const std::string& sqlType)
|
||||
{
|
||||
sqlType_ = sqlType;
|
||||
setParameter("SqlType", sqlType);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeSQLLogRecordsRequest::getMaxRecordsPerPage()const
|
||||
{
|
||||
return maxRecordsPerPage_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setMaxRecordsPerPage(int maxRecordsPerPage)
|
||||
{
|
||||
maxRecordsPerPage_ = maxRecordsPerPage;
|
||||
setParameter("MaxRecordsPerPage", std::to_string(maxRecordsPerPage));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getQueryKeyword()const
|
||||
{
|
||||
return queryKeyword_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setQueryKeyword(const std::string& queryKeyword)
|
||||
{
|
||||
queryKeyword_ = queryKeyword;
|
||||
setParameter("QueryKeyword", queryKeyword);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeSQLLogRecordsRequest::getMaxConsume()const
|
||||
{
|
||||
return maxConsume_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setMaxConsume(long maxConsume)
|
||||
{
|
||||
maxConsume_ = maxConsume;
|
||||
setParameter("MaxConsume", std::to_string(maxConsume));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getThreadID()const
|
||||
{
|
||||
return threadID_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setThreadID(const std::string& threadID)
|
||||
{
|
||||
threadID_ = threadID;
|
||||
setParameter("ThreadID", threadID);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getChildDBInstanceIDs()const
|
||||
{
|
||||
return childDBInstanceIDs_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setChildDBInstanceIDs(const std::string& childDBInstanceIDs)
|
||||
{
|
||||
childDBInstanceIDs_ = childDBInstanceIDs;
|
||||
setParameter("ChildDBInstanceIDs", childDBInstanceIDs);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getSortMethod()const
|
||||
{
|
||||
return sortMethod_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setSortMethod(const std::string& sortMethod)
|
||||
{
|
||||
sortMethod_ = sortMethod;
|
||||
setParameter("SortMethod", sortMethod);
|
||||
}
|
||||
|
||||
long DescribeSQLLogRecordsRequest::getMaxScanRows()const
|
||||
{
|
||||
return maxScanRows_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setMaxScanRows(long maxScanRows)
|
||||
{
|
||||
maxScanRows_ = maxScanRows;
|
||||
setParameter("MaxScanRows", std::to_string(maxScanRows));
|
||||
}
|
||||
|
||||
@@ -1,160 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeSQLLogRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeSQLLogRecordsResult::DescribeSQLLogRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLLogRecordsResult::DescribeSQLLogRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLLogRecordsResult::~DescribeSQLLogRecordsResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLLogRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["SQLLogRecord"];
|
||||
for (auto valueItemsSQLLogRecord : allItemsNode)
|
||||
{
|
||||
SQLLogRecord itemsObject;
|
||||
if(!valueItemsSQLLogRecord["ExecuteTime"].isNull())
|
||||
itemsObject.executeTime = valueItemsSQLLogRecord["ExecuteTime"].asString();
|
||||
if(!valueItemsSQLLogRecord["InsName"].isNull())
|
||||
itemsObject.insName = valueItemsSQLLogRecord["InsName"].asString();
|
||||
if(!valueItemsSQLLogRecord["HostAddress"].isNull())
|
||||
itemsObject.hostAddress = valueItemsSQLLogRecord["HostAddress"].asString();
|
||||
if(!valueItemsSQLLogRecord["UpdateRows"].isNull())
|
||||
itemsObject.updateRows = std::stol(valueItemsSQLLogRecord["UpdateRows"].asString());
|
||||
if(!valueItemsSQLLogRecord["SQLText"].isNull())
|
||||
itemsObject.sQLText = valueItemsSQLLogRecord["SQLText"].asString();
|
||||
if(!valueItemsSQLLogRecord["OriginTime"].isNull())
|
||||
itemsObject.originTime = valueItemsSQLLogRecord["OriginTime"].asString();
|
||||
if(!valueItemsSQLLogRecord["Consume"].isNull())
|
||||
itemsObject.consume = std::stol(valueItemsSQLLogRecord["Consume"].asString());
|
||||
if(!valueItemsSQLLogRecord["ScanRows"].isNull())
|
||||
itemsObject.scanRows = std::stol(valueItemsSQLLogRecord["ScanRows"].asString());
|
||||
if(!valueItemsSQLLogRecord["ThreadID"].isNull())
|
||||
itemsObject.threadID = std::stoi(valueItemsSQLLogRecord["ThreadID"].asString());
|
||||
if(!valueItemsSQLLogRecord["State"].isNull())
|
||||
itemsObject.state = valueItemsSQLLogRecord["State"].asString();
|
||||
if(!valueItemsSQLLogRecord["DBName"].isNull())
|
||||
itemsObject.dBName = valueItemsSQLLogRecord["DBName"].asString();
|
||||
if(!valueItemsSQLLogRecord["SqlType"].isNull())
|
||||
itemsObject.sqlType = valueItemsSQLLogRecord["SqlType"].asString();
|
||||
if(!valueItemsSQLLogRecord["Vip"].isNull())
|
||||
itemsObject.vip = valueItemsSQLLogRecord["Vip"].asString();
|
||||
if(!valueItemsSQLLogRecord["AccountName"].isNull())
|
||||
itemsObject.accountName = valueItemsSQLLogRecord["AccountName"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["MaxRecordsPerPage"].isNull())
|
||||
maxRecordsPerPage_ = std::stoi(value["MaxRecordsPerPage"].asString());
|
||||
if(!value["ItemsNumbers"].isNull())
|
||||
itemsNumbers_ = std::stoi(value["ItemsNumbers"].asString());
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["DBInstanceID"].isNull())
|
||||
dBInstanceID_ = value["DBInstanceID"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["TotalRecords"].isNull())
|
||||
totalRecords_ = std::stoi(value["TotalRecords"].asString());
|
||||
if(!value["Finish"].isNull())
|
||||
finish_ = value["Finish"].asString();
|
||||
if(!value["PageNumbers"].isNull())
|
||||
pageNumbers_ = std::stoi(value["PageNumbers"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
if(!value["PagingID"].isNull())
|
||||
pagingID_ = value["PagingID"].asString();
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
int DescribeSQLLogRecordsResult::getMaxRecordsPerPage()const
|
||||
{
|
||||
return maxRecordsPerPage_;
|
||||
}
|
||||
|
||||
int DescribeSQLLogRecordsResult::getItemsNumbers()const
|
||||
{
|
||||
return itemsNumbers_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsResult::getDBInstanceID()const
|
||||
{
|
||||
return dBInstanceID_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
int DescribeSQLLogRecordsResult::getTotalRecords()const
|
||||
{
|
||||
return totalRecords_;
|
||||
}
|
||||
|
||||
std::vector<DescribeSQLLogRecordsResult::SQLLogRecord> DescribeSQLLogRecordsResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsResult::getFinish()const
|
||||
{
|
||||
return finish_;
|
||||
}
|
||||
|
||||
int DescribeSQLLogRecordsResult::getPageNumbers()const
|
||||
{
|
||||
return pageNumbers_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsResult::getPagingID()const
|
||||
{
|
||||
return pagingID_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsResult::getDBInstanceName()const
|
||||
{
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
@@ -1,260 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeSQLLogTemplatesRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeSQLLogTemplatesRequest;
|
||||
|
||||
DescribeSQLLogTemplatesRequest::DescribeSQLLogTemplatesRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeSQLLogTemplates")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSQLLogTemplatesRequest::~DescribeSQLLogTemplatesRequest()
|
||||
{}
|
||||
|
||||
long DescribeSQLLogTemplatesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesRequest::getSortKey()const
|
||||
{
|
||||
return sortKey_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setSortKey(const std::string& sortKey)
|
||||
{
|
||||
sortKey_ = sortKey;
|
||||
setParameter("SortKey", sortKey);
|
||||
}
|
||||
|
||||
float DescribeSQLLogTemplatesRequest::getMinAvgScanRows()const
|
||||
{
|
||||
return minAvgScanRows_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setMinAvgScanRows(float minAvgScanRows)
|
||||
{
|
||||
minAvgScanRows_ = minAvgScanRows;
|
||||
setParameter("MinAvgScanRows", std::to_string(minAvgScanRows));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
int DescribeSQLLogTemplatesRequest::getPageNumbers()const
|
||||
{
|
||||
return pageNumbers_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setPageNumbers(int pageNumbers)
|
||||
{
|
||||
pageNumbers_ = pageNumbers;
|
||||
setParameter("PageNumbers", std::to_string(pageNumbers));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesRequest::getPagingId()const
|
||||
{
|
||||
return pagingId_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setPagingId(const std::string& pagingId)
|
||||
{
|
||||
pagingId_ = pagingId;
|
||||
setParameter("PagingId", pagingId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
float DescribeSQLLogTemplatesRequest::getMaxAvgScanRows()const
|
||||
{
|
||||
return maxAvgScanRows_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setMaxAvgScanRows(float maxAvgScanRows)
|
||||
{
|
||||
maxAvgScanRows_ = maxAvgScanRows;
|
||||
setParameter("MaxAvgScanRows", std::to_string(maxAvgScanRows));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesRequest::getSqlType()const
|
||||
{
|
||||
return sqlType_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setSqlType(const std::string& sqlType)
|
||||
{
|
||||
sqlType_ = sqlType;
|
||||
setParameter("SqlType", sqlType);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
float DescribeSQLLogTemplatesRequest::getMinAvgConsume()const
|
||||
{
|
||||
return minAvgConsume_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setMinAvgConsume(float minAvgConsume)
|
||||
{
|
||||
minAvgConsume_ = minAvgConsume;
|
||||
setParameter("MinAvgConsume", std::to_string(minAvgConsume));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeSQLLogTemplatesRequest::getMaxRecordsPerPage()const
|
||||
{
|
||||
return maxRecordsPerPage_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setMaxRecordsPerPage(int maxRecordsPerPage)
|
||||
{
|
||||
maxRecordsPerPage_ = maxRecordsPerPage;
|
||||
setParameter("MaxRecordsPerPage", std::to_string(maxRecordsPerPage));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeSQLLogTemplatesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
float DescribeSQLLogTemplatesRequest::getMaxAvgConsume()const
|
||||
{
|
||||
return maxAvgConsume_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setMaxAvgConsume(float maxAvgConsume)
|
||||
{
|
||||
maxAvgConsume_ = maxAvgConsume;
|
||||
setParameter("MaxAvgConsume", std::to_string(maxAvgConsume));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesRequest::getChildDBInstanceIDs()const
|
||||
{
|
||||
return childDBInstanceIDs_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setChildDBInstanceIDs(const std::string& childDBInstanceIDs)
|
||||
{
|
||||
childDBInstanceIDs_ = childDBInstanceIDs;
|
||||
setParameter("ChildDBInstanceIDs", childDBInstanceIDs);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesRequest::getSortMethod()const
|
||||
{
|
||||
return sortMethod_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogTemplatesRequest::setSortMethod(const std::string& sortMethod)
|
||||
{
|
||||
sortMethod_ = sortMethod;
|
||||
setParameter("SortMethod", sortMethod);
|
||||
}
|
||||
|
||||
@@ -1,154 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeSQLLogTemplatesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeSQLLogTemplatesResult::DescribeSQLLogTemplatesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLLogTemplatesResult::DescribeSQLLogTemplatesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLLogTemplatesResult::~DescribeSQLLogTemplatesResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLLogTemplatesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["Template"];
|
||||
for (auto valueItemsTemplate : allItemsNode)
|
||||
{
|
||||
_Template itemsObject;
|
||||
if(!valueItemsTemplate["AvgScanRows"].isNull())
|
||||
itemsObject.avgScanRows = std::stof(valueItemsTemplate["AvgScanRows"].asString());
|
||||
if(!valueItemsTemplate["TemplateHash"].isNull())
|
||||
itemsObject.templateHash = valueItemsTemplate["TemplateHash"].asString();
|
||||
if(!valueItemsTemplate["AvgConsume"].isNull())
|
||||
itemsObject.avgConsume = std::stof(valueItemsTemplate["AvgConsume"].asString());
|
||||
if(!valueItemsTemplate["TotalScanRows"].isNull())
|
||||
itemsObject.totalScanRows = std::stol(valueItemsTemplate["TotalScanRows"].asString());
|
||||
if(!valueItemsTemplate["TotalUpdateRows"].isNull())
|
||||
itemsObject.totalUpdateRows = std::stol(valueItemsTemplate["TotalUpdateRows"].asString());
|
||||
if(!valueItemsTemplate["TotalCounts"].isNull())
|
||||
itemsObject.totalCounts = std::stol(valueItemsTemplate["TotalCounts"].asString());
|
||||
if(!valueItemsTemplate["SqlType"].isNull())
|
||||
itemsObject.sqlType = valueItemsTemplate["SqlType"].asString();
|
||||
if(!valueItemsTemplate["AvgUpdateRows"].isNull())
|
||||
itemsObject.avgUpdateRows = std::stof(valueItemsTemplate["AvgUpdateRows"].asString());
|
||||
if(!valueItemsTemplate["ItemID"].isNull())
|
||||
itemsObject.itemID = std::stoi(valueItemsTemplate["ItemID"].asString());
|
||||
if(!valueItemsTemplate["Template"].isNull())
|
||||
itemsObject._template = valueItemsTemplate["Template"].asString();
|
||||
if(!valueItemsTemplate["TotalConsume"].isNull())
|
||||
itemsObject.totalConsume = std::stol(valueItemsTemplate["TotalConsume"].asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["MaxRecordsPerPage"].isNull())
|
||||
maxRecordsPerPage_ = std::stoi(value["MaxRecordsPerPage"].asString());
|
||||
if(!value["ItemsNumbers"].isNull())
|
||||
itemsNumbers_ = std::stoi(value["ItemsNumbers"].asString());
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["DBInstanceID"].isNull())
|
||||
dBInstanceID_ = std::stoi(value["DBInstanceID"].asString());
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["TotalRecords"].isNull())
|
||||
totalRecords_ = std::stoi(value["TotalRecords"].asString());
|
||||
if(!value["Finish"].isNull())
|
||||
finish_ = value["Finish"].asString();
|
||||
if(!value["PageNumbers"].isNull())
|
||||
pageNumbers_ = std::stoi(value["PageNumbers"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
if(!value["PagingID"].isNull())
|
||||
pagingID_ = value["PagingID"].asString();
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
int DescribeSQLLogTemplatesResult::getMaxRecordsPerPage()const
|
||||
{
|
||||
return maxRecordsPerPage_;
|
||||
}
|
||||
|
||||
int DescribeSQLLogTemplatesResult::getItemsNumbers()const
|
||||
{
|
||||
return itemsNumbers_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
int DescribeSQLLogTemplatesResult::getDBInstanceID()const
|
||||
{
|
||||
return dBInstanceID_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
int DescribeSQLLogTemplatesResult::getTotalRecords()const
|
||||
{
|
||||
return totalRecords_;
|
||||
}
|
||||
|
||||
std::vector<DescribeSQLLogTemplatesResult::_Template> DescribeSQLLogTemplatesResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesResult::getFinish()const
|
||||
{
|
||||
return finish_;
|
||||
}
|
||||
|
||||
int DescribeSQLLogTemplatesResult::getPageNumbers()const
|
||||
{
|
||||
return pageNumbers_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesResult::getPagingID()const
|
||||
{
|
||||
return pagingID_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogTemplatesResult::getDBInstanceName()const
|
||||
{
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
@@ -60,17 +60,6 @@ void ModifyDBClusterParametersRequest::setParameterGroupId(const std::string& pa
|
||||
setParameter("ParameterGroupId", parameterGroupId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterParametersRequest::getEffectiveTime()const
|
||||
{
|
||||
return effectiveTime_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterParametersRequest::setEffectiveTime(const std::string& effectiveTime)
|
||||
{
|
||||
effectiveTime_ = effectiveTime;
|
||||
setParameter("EffectiveTime", effectiveTime);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterParametersRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
|
||||
Reference in New Issue
Block a user