Generated 2023-05-22 for selectdb.
This commit is contained in:
1241
selectdb/src/SelectdbClient.cc
Normal file
1241
selectdb/src/SelectdbClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/selectdb/model/AllocateInstancePublicConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::AllocateInstancePublicConnectionRequest;
|
||||
|
||||
AllocateInstancePublicConnectionRequest::AllocateInstancePublicConnectionRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "AllocateInstancePublicConnection") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AllocateInstancePublicConnectionRequest::~AllocateInstancePublicConnectionRequest() {}
|
||||
|
||||
std::string AllocateInstancePublicConnectionRequest::getConnectionStringPrefix() const {
|
||||
return connectionStringPrefix_;
|
||||
}
|
||||
|
||||
void AllocateInstancePublicConnectionRequest::setConnectionStringPrefix(const std::string &connectionStringPrefix) {
|
||||
connectionStringPrefix_ = connectionStringPrefix;
|
||||
setParameter(std::string("ConnectionStringPrefix"), connectionStringPrefix);
|
||||
}
|
||||
|
||||
long AllocateInstancePublicConnectionRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AllocateInstancePublicConnectionRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AllocateInstancePublicConnectionRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AllocateInstancePublicConnectionRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string AllocateInstancePublicConnectionRequest::getNetType() const {
|
||||
return netType_;
|
||||
}
|
||||
|
||||
void AllocateInstancePublicConnectionRequest::setNetType(const std::string &netType) {
|
||||
netType_ = netType;
|
||||
setParameter(std::string("NetType"), netType);
|
||||
}
|
||||
|
||||
std::string AllocateInstancePublicConnectionRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void AllocateInstancePublicConnectionRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
58
selectdb/src/model/AllocateInstancePublicConnectionResult.cc
Normal file
58
selectdb/src/model/AllocateInstancePublicConnectionResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/selectdb/model/AllocateInstancePublicConnectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
AllocateInstancePublicConnectionResult::AllocateInstancePublicConnectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AllocateInstancePublicConnectionResult::AllocateInstancePublicConnectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AllocateInstancePublicConnectionResult::~AllocateInstancePublicConnectionResult()
|
||||
{}
|
||||
|
||||
void AllocateInstancePublicConnectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["InstanceName"].isNull())
|
||||
instanceName_ = value["InstanceName"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string AllocateInstancePublicConnectionResult::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
long AllocateInstancePublicConnectionResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
180
selectdb/src/model/CheckCreateDBInstanceRequest.cc
Normal file
180
selectdb/src/model/CheckCreateDBInstanceRequest.cc
Normal file
@@ -0,0 +1,180 @@
|
||||
/*
|
||||
* 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/selectdb/model/CheckCreateDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::CheckCreateDBInstanceRequest;
|
||||
|
||||
CheckCreateDBInstanceRequest::CheckCreateDBInstanceRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "CheckCreateDBInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckCreateDBInstanceRequest::~CheckCreateDBInstanceRequest() {}
|
||||
|
||||
long CheckCreateDBInstanceRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CheckCreateDBInstanceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CheckCreateDBInstanceRequest::getConnectionString() const {
|
||||
return connectionString_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setConnectionString(const std::string &connectionString) {
|
||||
connectionString_ = connectionString;
|
||||
setParameter(std::string("ConnectionString"), connectionString);
|
||||
}
|
||||
|
||||
std::string CheckCreateDBInstanceRequest::getEngineVersion() const {
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setEngineVersion(const std::string &engineVersion) {
|
||||
engineVersion_ = engineVersion;
|
||||
setParameter(std::string("EngineVersion"), engineVersion);
|
||||
}
|
||||
|
||||
int CheckCreateDBInstanceRequest::getCacheSize() const {
|
||||
return cacheSize_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setCacheSize(int cacheSize) {
|
||||
cacheSize_ = cacheSize;
|
||||
setParameter(std::string("CacheSize"), std::to_string(cacheSize));
|
||||
}
|
||||
|
||||
std::string CheckCreateDBInstanceRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CheckCreateDBInstanceRequest::getEngine() const {
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setEngine(const std::string &engine) {
|
||||
engine_ = engine;
|
||||
setParameter(std::string("Engine"), engine);
|
||||
}
|
||||
|
||||
std::string CheckCreateDBInstanceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CheckCreateDBInstanceRequest::getDBInstanceDescription() const {
|
||||
return dBInstanceDescription_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setDBInstanceDescription(const std::string &dBInstanceDescription) {
|
||||
dBInstanceDescription_ = dBInstanceDescription;
|
||||
setParameter(std::string("DBInstanceDescription"), dBInstanceDescription);
|
||||
}
|
||||
|
||||
std::string CheckCreateDBInstanceRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setPeriod(const std::string &period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), period);
|
||||
}
|
||||
|
||||
int CheckCreateDBInstanceRequest::getUsedTime() const {
|
||||
return usedTime_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setUsedTime(int usedTime) {
|
||||
usedTime_ = usedTime;
|
||||
setParameter(std::string("UsedTime"), std::to_string(usedTime));
|
||||
}
|
||||
|
||||
std::string CheckCreateDBInstanceRequest::getDBInstanceClass() const {
|
||||
return dBInstanceClass_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setDBInstanceClass(const std::string &dBInstanceClass) {
|
||||
dBInstanceClass_ = dBInstanceClass;
|
||||
setParameter(std::string("DBInstanceClass"), dBInstanceClass);
|
||||
}
|
||||
|
||||
std::string CheckCreateDBInstanceRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string CheckCreateDBInstanceRequest::getSecurityIPList() const {
|
||||
return securityIPList_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setSecurityIPList(const std::string &securityIPList) {
|
||||
securityIPList_ = securityIPList;
|
||||
setParameter(std::string("SecurityIPList"), securityIPList);
|
||||
}
|
||||
|
||||
std::string CheckCreateDBInstanceRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
std::string CheckCreateDBInstanceRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
std::string CheckCreateDBInstanceRequest::getChargeType() const {
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
void CheckCreateDBInstanceRequest::setChargeType(const std::string &chargeType) {
|
||||
chargeType_ = chargeType;
|
||||
setParameter(std::string("ChargeType"), chargeType);
|
||||
}
|
||||
|
||||
44
selectdb/src/model/CheckCreateDBInstanceResult.cc
Normal file
44
selectdb/src/model/CheckCreateDBInstanceResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/selectdb/model/CheckCreateDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
CheckCreateDBInstanceResult::CheckCreateDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckCreateDBInstanceResult::CheckCreateDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckCreateDBInstanceResult::~CheckCreateDBInstanceResult()
|
||||
{}
|
||||
|
||||
void CheckCreateDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
selectdb/src/model/CheckServiceLinkedRoleRequest.cc
Normal file
45
selectdb/src/model/CheckServiceLinkedRoleRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/selectdb/model/CheckServiceLinkedRoleRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::CheckServiceLinkedRoleRequest;
|
||||
|
||||
CheckServiceLinkedRoleRequest::CheckServiceLinkedRoleRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "CheckServiceLinkedRole") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckServiceLinkedRoleRequest::~CheckServiceLinkedRoleRequest() {}
|
||||
|
||||
long CheckServiceLinkedRoleRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
51
selectdb/src/model/CheckServiceLinkedRoleResult.cc
Normal file
51
selectdb/src/model/CheckServiceLinkedRoleResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/selectdb/model/CheckServiceLinkedRoleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
CheckServiceLinkedRoleResult::CheckServiceLinkedRoleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckServiceLinkedRoleResult::CheckServiceLinkedRoleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckServiceLinkedRoleResult::~CheckServiceLinkedRoleResult()
|
||||
{}
|
||||
|
||||
void CheckServiceLinkedRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HasServiceLinkedRole"].isNull())
|
||||
hasServiceLinkedRole_ = value["HasServiceLinkedRole"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CheckServiceLinkedRoleResult::getHasServiceLinkedRole()const
|
||||
{
|
||||
return hasServiceLinkedRole_;
|
||||
}
|
||||
|
||||
153
selectdb/src/model/CreateDBClusterRequest.cc
Normal file
153
selectdb/src/model/CreateDBClusterRequest.cc
Normal file
@@ -0,0 +1,153 @@
|
||||
/*
|
||||
* 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/selectdb/model/CreateDBClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::CreateDBClusterRequest;
|
||||
|
||||
CreateDBClusterRequest::CreateDBClusterRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "CreateDBCluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDBClusterRequest::~CreateDBClusterRequest() {}
|
||||
|
||||
std::string CreateDBClusterRequest::getDBClusterDescription() const {
|
||||
return dBClusterDescription_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setDBClusterDescription(const std::string &dBClusterDescription) {
|
||||
dBClusterDescription_ = dBClusterDescription;
|
||||
setParameter(std::string("DBClusterDescription"), dBClusterDescription);
|
||||
}
|
||||
|
||||
long CreateDBClusterRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getEngineVersion() const {
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setEngineVersion(const std::string &engineVersion) {
|
||||
engineVersion_ = engineVersion;
|
||||
setParameter(std::string("EngineVersion"), engineVersion);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getCacheSize() const {
|
||||
return cacheSize_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setCacheSize(const std::string &cacheSize) {
|
||||
cacheSize_ = cacheSize;
|
||||
setParameter(std::string("CacheSize"), cacheSize);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getEngine() const {
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setEngine(const std::string &engine) {
|
||||
engine_ = engine;
|
||||
setParameter(std::string("Engine"), engine);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setBodyParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setPeriod(const std::string &period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), period);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getDBClusterClass() const {
|
||||
return dBClusterClass_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setDBClusterClass(const std::string &dBClusterClass) {
|
||||
dBClusterClass_ = dBClusterClass;
|
||||
setParameter(std::string("DBClusterClass"), dBClusterClass);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getUsedTime() const {
|
||||
return usedTime_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setUsedTime(const std::string &usedTime) {
|
||||
usedTime_ = usedTime;
|
||||
setParameter(std::string("UsedTime"), usedTime);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getChargeType() const {
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setChargeType(const std::string &chargeType) {
|
||||
chargeType_ = chargeType;
|
||||
setParameter(std::string("ChargeType"), chargeType);
|
||||
}
|
||||
|
||||
56
selectdb/src/model/CreateDBClusterResult.cc
Normal file
56
selectdb/src/model/CreateDBClusterResult.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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/selectdb/model/CreateDBClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
CreateDBClusterResult::CreateDBClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDBClusterResult::CreateDBClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDBClusterResult::~CreateDBClusterResult()
|
||||
{}
|
||||
|
||||
void CreateDBClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DBInstanceId"].isNull())
|
||||
data_.dBInstanceId = dataNode["DBInstanceId"].asString();
|
||||
if(!dataNode["OrderId"].isNull())
|
||||
data_.orderId = std::stol(dataNode["OrderId"].asString());
|
||||
if(!dataNode["ClusterId"].isNull())
|
||||
data_.clusterId = dataNode["ClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateDBClusterResult::Data CreateDBClusterResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
192
selectdb/src/model/CreateDBInstanceRequest.cc
Normal file
192
selectdb/src/model/CreateDBInstanceRequest.cc
Normal file
@@ -0,0 +1,192 @@
|
||||
/*
|
||||
* 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/selectdb/model/CreateDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::CreateDBInstanceRequest;
|
||||
|
||||
CreateDBInstanceRequest::CreateDBInstanceRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "CreateDBInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDBInstanceRequest::~CreateDBInstanceRequest() {}
|
||||
|
||||
long CreateDBInstanceRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getConnectionString() const {
|
||||
return connectionString_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setConnectionString(const std::string &connectionString) {
|
||||
connectionString_ = connectionString;
|
||||
setParameter(std::string("ConnectionString"), connectionString);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getEngineVersion() const {
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setEngineVersion(const std::string &engineVersion) {
|
||||
engineVersion_ = engineVersion;
|
||||
setParameter(std::string("EngineVersion"), engineVersion);
|
||||
}
|
||||
|
||||
int CreateDBInstanceRequest::getCacheSize() const {
|
||||
return cacheSize_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setCacheSize(int cacheSize) {
|
||||
cacheSize_ = cacheSize;
|
||||
setParameter(std::string("CacheSize"), std::to_string(cacheSize));
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setBodyParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getEngine() const {
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setEngine(const std::string &engine) {
|
||||
engine_ = engine;
|
||||
setParameter(std::string("Engine"), engine);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getDBInstanceDescription() const {
|
||||
return dBInstanceDescription_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setDBInstanceDescription(const std::string &dBInstanceDescription) {
|
||||
dBInstanceDescription_ = dBInstanceDescription;
|
||||
setParameter(std::string("DBInstanceDescription"), dBInstanceDescription);
|
||||
}
|
||||
|
||||
std::vector<CreateDBInstanceRequest::Tag> CreateDBInstanceRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setTag(const std::vector<CreateDBInstanceRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
|
||||
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setPeriod(const std::string &period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), period);
|
||||
}
|
||||
|
||||
int CreateDBInstanceRequest::getUsedTime() const {
|
||||
return usedTime_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setUsedTime(int usedTime) {
|
||||
usedTime_ = usedTime;
|
||||
setParameter(std::string("UsedTime"), std::to_string(usedTime));
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getDBInstanceClass() const {
|
||||
return dBInstanceClass_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setDBInstanceClass(const std::string &dBInstanceClass) {
|
||||
dBInstanceClass_ = dBInstanceClass;
|
||||
setParameter(std::string("DBInstanceClass"), dBInstanceClass);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getSecurityIPList() const {
|
||||
return securityIPList_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setSecurityIPList(const std::string &securityIPList) {
|
||||
securityIPList_ = securityIPList;
|
||||
setParameter(std::string("SecurityIPList"), securityIPList);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getChargeType() const {
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setChargeType(const std::string &chargeType) {
|
||||
chargeType_ = chargeType;
|
||||
setParameter(std::string("ChargeType"), chargeType);
|
||||
}
|
||||
|
||||
54
selectdb/src/model/CreateDBInstanceResult.cc
Normal file
54
selectdb/src/model/CreateDBInstanceResult.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/selectdb/model/CreateDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
CreateDBInstanceResult::CreateDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDBInstanceResult::CreateDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDBInstanceResult::~CreateDBInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DBInstanceId"].isNull())
|
||||
data_.dBInstanceId = dataNode["DBInstanceId"].asString();
|
||||
if(!dataNode["OrderId"].isNull())
|
||||
data_.orderId = std::stol(dataNode["OrderId"].asString());
|
||||
|
||||
}
|
||||
|
||||
CreateDBInstanceResult::Data CreateDBInstanceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
90
selectdb/src/model/CreateElasticRuleRequest.cc
Normal file
90
selectdb/src/model/CreateElasticRuleRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/selectdb/model/CreateElasticRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::CreateElasticRuleRequest;
|
||||
|
||||
CreateElasticRuleRequest::CreateElasticRuleRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "CreateElasticRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateElasticRuleRequest::~CreateElasticRuleRequest() {}
|
||||
|
||||
long CreateElasticRuleRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateElasticRuleRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateElasticRuleRequest::getExecutionPeriod() const {
|
||||
return executionPeriod_;
|
||||
}
|
||||
|
||||
void CreateElasticRuleRequest::setExecutionPeriod(const std::string &executionPeriod) {
|
||||
executionPeriod_ = executionPeriod;
|
||||
setParameter(std::string("ExecutionPeriod"), executionPeriod);
|
||||
}
|
||||
|
||||
std::string CreateElasticRuleRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateElasticRuleRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string CreateElasticRuleRequest::getElasticRuleStartTime() const {
|
||||
return elasticRuleStartTime_;
|
||||
}
|
||||
|
||||
void CreateElasticRuleRequest::setElasticRuleStartTime(const std::string &elasticRuleStartTime) {
|
||||
elasticRuleStartTime_ = elasticRuleStartTime;
|
||||
setParameter(std::string("ElasticRuleStartTime"), elasticRuleStartTime);
|
||||
}
|
||||
|
||||
std::string CreateElasticRuleRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateElasticRuleRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateElasticRuleRequest::getClusterClass() const {
|
||||
return clusterClass_;
|
||||
}
|
||||
|
||||
void CreateElasticRuleRequest::setClusterClass(const std::string &clusterClass) {
|
||||
clusterClass_ = clusterClass;
|
||||
setParameter(std::string("ClusterClass"), clusterClass);
|
||||
}
|
||||
|
||||
std::string CreateElasticRuleRequest::getDbInstanceId() const {
|
||||
return dbInstanceId_;
|
||||
}
|
||||
|
||||
void CreateElasticRuleRequest::setDbInstanceId(const std::string &dbInstanceId) {
|
||||
dbInstanceId_ = dbInstanceId;
|
||||
setParameter(std::string("DbInstanceId"), dbInstanceId);
|
||||
}
|
||||
|
||||
62
selectdb/src/model/CreateElasticRuleResult.cc
Normal file
62
selectdb/src/model/CreateElasticRuleResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/selectdb/model/CreateElasticRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
CreateElasticRuleResult::CreateElasticRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateElasticRuleResult::CreateElasticRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateElasticRuleResult::~CreateElasticRuleResult()
|
||||
{}
|
||||
|
||||
void CreateElasticRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DbInstanceId"].isNull())
|
||||
data_.dbInstanceId = dataNode["DbInstanceId"].asString();
|
||||
if(!dataNode["ClusterId"].isNull())
|
||||
data_.clusterId = dataNode["ClusterId"].asString();
|
||||
if(!dataNode["RuleId"].isNull())
|
||||
data_.ruleId = std::stol(dataNode["RuleId"].asString());
|
||||
if(!dataNode["ExecutionPeriod"].isNull())
|
||||
data_.executionPeriod = dataNode["ExecutionPeriod"].asString();
|
||||
if(!dataNode["ElasticRuleStartTime"].isNull())
|
||||
data_.elasticRuleStartTime = dataNode["ElasticRuleStartTime"].asString();
|
||||
if(!dataNode["ClusterClass"].isNull())
|
||||
data_.clusterClass = dataNode["ClusterClass"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateElasticRuleResult::Data CreateElasticRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/selectdb/model/CreateServiceLinkedRoleForSelectDBRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::CreateServiceLinkedRoleForSelectDBRequest;
|
||||
|
||||
CreateServiceLinkedRoleForSelectDBRequest::CreateServiceLinkedRoleForSelectDBRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "CreateServiceLinkedRoleForSelectDB") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateServiceLinkedRoleForSelectDBRequest::~CreateServiceLinkedRoleForSelectDBRequest() {}
|
||||
|
||||
long CreateServiceLinkedRoleForSelectDBRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateServiceLinkedRoleForSelectDBRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateServiceLinkedRoleForSelectDBRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateServiceLinkedRoleForSelectDBRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/selectdb/model/CreateServiceLinkedRoleForSelectDBResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
CreateServiceLinkedRoleForSelectDBResult::CreateServiceLinkedRoleForSelectDBResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateServiceLinkedRoleForSelectDBResult::CreateServiceLinkedRoleForSelectDBResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateServiceLinkedRoleForSelectDBResult::~CreateServiceLinkedRoleForSelectDBResult()
|
||||
{}
|
||||
|
||||
void CreateServiceLinkedRoleForSelectDBResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
72
selectdb/src/model/DeleteDBClusterRequest.cc
Normal file
72
selectdb/src/model/DeleteDBClusterRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/selectdb/model/DeleteDBClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::DeleteDBClusterRequest;
|
||||
|
||||
DeleteDBClusterRequest::DeleteDBClusterRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "DeleteDBCluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDBClusterRequest::~DeleteDBClusterRequest() {}
|
||||
|
||||
long DeleteDBClusterRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteDBClusterRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteDBClusterRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DeleteDBClusterRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
std::string DeleteDBClusterRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DeleteDBClusterRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setBodyParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteDBClusterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteDBClusterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteDBClusterRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteDBClusterRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setBodyParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
54
selectdb/src/model/DeleteDBClusterResult.cc
Normal file
54
selectdb/src/model/DeleteDBClusterResult.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/selectdb/model/DeleteDBClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
DeleteDBClusterResult::DeleteDBClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDBClusterResult::DeleteDBClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDBClusterResult::~DeleteDBClusterResult()
|
||||
{}
|
||||
|
||||
void DeleteDBClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DBInstanceId"].isNull())
|
||||
data_.dBInstanceId = dataNode["DBInstanceId"].asString();
|
||||
if(!dataNode["OrderId"].isNull())
|
||||
data_.orderId = dataNode["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
DeleteDBClusterResult::Data DeleteDBClusterResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
54
selectdb/src/model/DeleteDBInstanceRequest.cc
Normal file
54
selectdb/src/model/DeleteDBInstanceRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/selectdb/model/DeleteDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::DeleteDBInstanceRequest;
|
||||
|
||||
DeleteDBInstanceRequest::DeleteDBInstanceRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "DeleteDBInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDBInstanceRequest::~DeleteDBInstanceRequest() {}
|
||||
|
||||
long DeleteDBInstanceRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteDBInstanceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteDBInstanceRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setBodyParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
44
selectdb/src/model/DeleteDBInstanceResult.cc
Normal file
44
selectdb/src/model/DeleteDBInstanceResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/selectdb/model/DeleteDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
DeleteDBInstanceResult::DeleteDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDBInstanceResult::DeleteDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDBInstanceResult::~DeleteDBInstanceResult()
|
||||
{}
|
||||
|
||||
void DeleteDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
81
selectdb/src/model/DeleteElasticRuleRequest.cc
Normal file
81
selectdb/src/model/DeleteElasticRuleRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/selectdb/model/DeleteElasticRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::DeleteElasticRuleRequest;
|
||||
|
||||
DeleteElasticRuleRequest::DeleteElasticRuleRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "DeleteElasticRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteElasticRuleRequest::~DeleteElasticRuleRequest() {}
|
||||
|
||||
long DeleteElasticRuleRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteElasticRuleRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteElasticRuleRequest::getProduct() const {
|
||||
return product_;
|
||||
}
|
||||
|
||||
void DeleteElasticRuleRequest::setProduct(const std::string &product) {
|
||||
product_ = product;
|
||||
setParameter(std::string("Product"), product);
|
||||
}
|
||||
|
||||
std::string DeleteElasticRuleRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteElasticRuleRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteElasticRuleRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteElasticRuleRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteElasticRuleRequest::getDbInstanceId() const {
|
||||
return dbInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteElasticRuleRequest::setDbInstanceId(const std::string &dbInstanceId) {
|
||||
dbInstanceId_ = dbInstanceId;
|
||||
setParameter(std::string("DbInstanceId"), dbInstanceId);
|
||||
}
|
||||
|
||||
long DeleteElasticRuleRequest::getRuleId() const {
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void DeleteElasticRuleRequest::setRuleId(long ruleId) {
|
||||
ruleId_ = ruleId;
|
||||
setParameter(std::string("RuleId"), std::to_string(ruleId));
|
||||
}
|
||||
|
||||
51
selectdb/src/model/DeleteElasticRuleResult.cc
Normal file
51
selectdb/src/model/DeleteElasticRuleResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/selectdb/model/DeleteElasticRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
DeleteElasticRuleResult::DeleteElasticRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteElasticRuleResult::DeleteElasticRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteElasticRuleResult::~DeleteElasticRuleResult()
|
||||
{}
|
||||
|
||||
void DeleteElasticRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteElasticRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
selectdb/src/model/DescribeAllDBInstanceClassRequest.cc
Normal file
45
selectdb/src/model/DescribeAllDBInstanceClassRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeAllDBInstanceClassRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::DescribeAllDBInstanceClassRequest;
|
||||
|
||||
DescribeAllDBInstanceClassRequest::DescribeAllDBInstanceClassRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "DescribeAllDBInstanceClass") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAllDBInstanceClassRequest::~DescribeAllDBInstanceClassRequest() {}
|
||||
|
||||
long DescribeAllDBInstanceClassRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAllDBInstanceClassRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAllDBInstanceClassRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAllDBInstanceClassRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
69
selectdb/src/model/DescribeAllDBInstanceClassResult.cc
Normal file
69
selectdb/src/model/DescribeAllDBInstanceClassResult.cc
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeAllDBInstanceClassResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
DescribeAllDBInstanceClassResult::DescribeAllDBInstanceClassResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAllDBInstanceClassResult::DescribeAllDBInstanceClassResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAllDBInstanceClassResult::~DescribeAllDBInstanceClassResult()
|
||||
{}
|
||||
|
||||
void DescribeAllDBInstanceClassResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allClassCodeListNode = value["ClassCodeList"]["classCodeListItem"];
|
||||
for (auto valueClassCodeListclassCodeListItem : allClassCodeListNode)
|
||||
{
|
||||
ClassCodeListItem classCodeListObject;
|
||||
if(!valueClassCodeListclassCodeListItem["ClassCode"].isNull())
|
||||
classCodeListObject.classCode = valueClassCodeListclassCodeListItem["ClassCode"].asString();
|
||||
if(!valueClassCodeListclassCodeListItem["CpuCores"].isNull())
|
||||
classCodeListObject.cpuCores = std::stol(valueClassCodeListclassCodeListItem["CpuCores"].asString());
|
||||
if(!valueClassCodeListclassCodeListItem["MemoryInGB"].isNull())
|
||||
classCodeListObject.memoryInGB = std::stol(valueClassCodeListclassCodeListItem["MemoryInGB"].asString());
|
||||
if(!valueClassCodeListclassCodeListItem["DefaultStorageInGB"].isNull())
|
||||
classCodeListObject.defaultStorageInGB = std::stol(valueClassCodeListclassCodeListItem["DefaultStorageInGB"].asString());
|
||||
if(!valueClassCodeListclassCodeListItem["MinStorageInGB"].isNull())
|
||||
classCodeListObject.minStorageInGB = std::stol(valueClassCodeListclassCodeListItem["MinStorageInGB"].asString());
|
||||
if(!valueClassCodeListclassCodeListItem["MaxStorageInGB"].isNull())
|
||||
classCodeListObject.maxStorageInGB = std::stol(valueClassCodeListclassCodeListItem["MaxStorageInGB"].asString());
|
||||
if(!valueClassCodeListclassCodeListItem["StepStorageInGB"].isNull())
|
||||
classCodeListObject.stepStorageInGB = std::stol(valueClassCodeListclassCodeListItem["StepStorageInGB"].asString());
|
||||
classCodeList_.push_back(classCodeListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAllDBInstanceClassResult::ClassCodeListItem> DescribeAllDBInstanceClassResult::getClassCodeList()const
|
||||
{
|
||||
return classCodeList_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeDBClusterConfigChangeLogsRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::DescribeDBClusterConfigChangeLogsRequest;
|
||||
|
||||
DescribeDBClusterConfigChangeLogsRequest::DescribeDBClusterConfigChangeLogsRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "DescribeDBClusterConfigChangeLogs") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBClusterConfigChangeLogsRequest::~DescribeDBClusterConfigChangeLogsRequest() {}
|
||||
|
||||
std::string DescribeDBClusterConfigChangeLogsRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterConfigChangeLogsRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterConfigChangeLogsRequest::getConfigKey() const {
|
||||
return configKey_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterConfigChangeLogsRequest::setConfigKey(const std::string &configKey) {
|
||||
configKey_ = configKey;
|
||||
setParameter(std::string("ConfigKey"), configKey);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterConfigChangeLogsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterConfigChangeLogsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterConfigChangeLogsRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterConfigChangeLogsRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterConfigChangeLogsRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterConfigChangeLogsRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterConfigChangeLogsRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterConfigChangeLogsRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeDBClusterConfigChangeLogsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
DescribeDBClusterConfigChangeLogsResult::DescribeDBClusterConfigChangeLogsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBClusterConfigChangeLogsResult::DescribeDBClusterConfigChangeLogsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBClusterConfigChangeLogsResult::~DescribeDBClusterConfigChangeLogsResult()
|
||||
{}
|
||||
|
||||
void DescribeDBClusterConfigChangeLogsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DbInstanceName"].isNull())
|
||||
data_.dbInstanceName = dataNode["DbInstanceName"].asString();
|
||||
if(!dataNode["DbInstanceId"].isNull())
|
||||
data_.dbInstanceId = dataNode["DbInstanceId"].asString();
|
||||
if(!dataNode["DbClusterId"].isNull())
|
||||
data_.dbClusterId = dataNode["DbClusterId"].asString();
|
||||
if(!dataNode["TaskId"].isNull())
|
||||
data_.taskId = std::stoi(dataNode["TaskId"].asString());
|
||||
auto allParamChangeLogsNode = dataNode["ParamChangeLogs"]["ParamChangeLog"];
|
||||
for (auto dataNodeParamChangeLogsParamChangeLog : allParamChangeLogsNode)
|
||||
{
|
||||
Data::ParamChangeLog paramChangeLogObject;
|
||||
if(!dataNodeParamChangeLogsParamChangeLog["Id"].isNull())
|
||||
paramChangeLogObject.id = std::stol(dataNodeParamChangeLogsParamChangeLog["Id"].asString());
|
||||
if(!dataNodeParamChangeLogsParamChangeLog["Name"].isNull())
|
||||
paramChangeLogObject.name = dataNodeParamChangeLogsParamChangeLog["Name"].asString();
|
||||
if(!dataNodeParamChangeLogsParamChangeLog["OldValue"].isNull())
|
||||
paramChangeLogObject.oldValue = dataNodeParamChangeLogsParamChangeLog["OldValue"].asString();
|
||||
if(!dataNodeParamChangeLogsParamChangeLog["NewValue"].isNull())
|
||||
paramChangeLogObject.newValue = dataNodeParamChangeLogsParamChangeLog["NewValue"].asString();
|
||||
if(!dataNodeParamChangeLogsParamChangeLog["IsApplied"].isNull())
|
||||
paramChangeLogObject.isApplied = dataNodeParamChangeLogsParamChangeLog["IsApplied"].asString() == "true";
|
||||
if(!dataNodeParamChangeLogsParamChangeLog["GmtCreated"].isNull())
|
||||
paramChangeLogObject.gmtCreated = dataNodeParamChangeLogsParamChangeLog["GmtCreated"].asString();
|
||||
if(!dataNodeParamChangeLogsParamChangeLog["GmtModified"].isNull())
|
||||
paramChangeLogObject.gmtModified = dataNodeParamChangeLogsParamChangeLog["GmtModified"].asString();
|
||||
data_.paramChangeLogs.push_back(paramChangeLogObject);
|
||||
}
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterConfigChangeLogsResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
DescribeDBClusterConfigChangeLogsResult::Data DescribeDBClusterConfigChangeLogsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterConfigChangeLogsResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterConfigChangeLogsResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
63
selectdb/src/model/DescribeDBClusterConfigRequest.cc
Normal file
63
selectdb/src/model/DescribeDBClusterConfigRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeDBClusterConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::DescribeDBClusterConfigRequest;
|
||||
|
||||
DescribeDBClusterConfigRequest::DescribeDBClusterConfigRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "DescribeDBClusterConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBClusterConfigRequest::~DescribeDBClusterConfigRequest() {}
|
||||
|
||||
std::string DescribeDBClusterConfigRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterConfigRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterConfigRequest::getConfigKey() const {
|
||||
return configKey_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterConfigRequest::setConfigKey(const std::string &configKey) {
|
||||
configKey_ = configKey;
|
||||
setParameter(std::string("ConfigKey"), configKey);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterConfigRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterConfigRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterConfigRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterConfigRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
101
selectdb/src/model/DescribeDBClusterConfigResult.cc
Normal file
101
selectdb/src/model/DescribeDBClusterConfigResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeDBClusterConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
DescribeDBClusterConfigResult::DescribeDBClusterConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBClusterConfigResult::DescribeDBClusterConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBClusterConfigResult::~DescribeDBClusterConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeDBClusterConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DbInstanceName"].isNull())
|
||||
data_.dbInstanceName = dataNode["DbInstanceName"].asString();
|
||||
if(!dataNode["DbInstanceId"].isNull())
|
||||
data_.dbInstanceId = dataNode["DbInstanceId"].asString();
|
||||
if(!dataNode["DbClusterId"].isNull())
|
||||
data_.dbClusterId = dataNode["DbClusterId"].asString();
|
||||
if(!dataNode["TaskId"].isNull())
|
||||
data_.taskId = std::stoi(dataNode["TaskId"].asString());
|
||||
auto allParamsNode = dataNode["Params"]["Param"];
|
||||
for (auto dataNodeParamsParam : allParamsNode)
|
||||
{
|
||||
Data::Param paramObject;
|
||||
if(!dataNodeParamsParam["Name"].isNull())
|
||||
paramObject.name = dataNodeParamsParam["Name"].asString();
|
||||
if(!dataNodeParamsParam["Optional"].isNull())
|
||||
paramObject.optional = dataNodeParamsParam["Optional"].asString();
|
||||
if(!dataNodeParamsParam["Comment"].isNull())
|
||||
paramObject.comment = dataNodeParamsParam["Comment"].asString();
|
||||
if(!dataNodeParamsParam["Value"].isNull())
|
||||
paramObject.value = dataNodeParamsParam["Value"].asString();
|
||||
if(!dataNodeParamsParam["ParamCategory"].isNull())
|
||||
paramObject.paramCategory = dataNodeParamsParam["ParamCategory"].asString();
|
||||
if(!dataNodeParamsParam["DefaultValue"].isNull())
|
||||
paramObject.defaultValue = dataNodeParamsParam["DefaultValue"].asString();
|
||||
if(!dataNodeParamsParam["IsDynamic"].isNull())
|
||||
paramObject.isDynamic = std::stoi(dataNodeParamsParam["IsDynamic"].asString());
|
||||
if(!dataNodeParamsParam["IsUserModifiable"].isNull())
|
||||
paramObject.isUserModifiable = std::stoi(dataNodeParamsParam["IsUserModifiable"].asString());
|
||||
data_.params.push_back(paramObject);
|
||||
}
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterConfigResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
DescribeDBClusterConfigResult::Data DescribeDBClusterConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterConfigResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterConfigResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
54
selectdb/src/model/DescribeDBInstanceAttributeRequest.cc
Normal file
54
selectdb/src/model/DescribeDBInstanceAttributeRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeDBInstanceAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::DescribeDBInstanceAttributeRequest;
|
||||
|
||||
DescribeDBInstanceAttributeRequest::DescribeDBInstanceAttributeRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "DescribeDBInstanceAttribute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBInstanceAttributeRequest::~DescribeDBInstanceAttributeRequest() {}
|
||||
|
||||
long DescribeDBInstanceAttributeRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceAttributeRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceAttributeRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
262
selectdb/src/model/DescribeDBInstanceAttributeResult.cc
Normal file
262
selectdb/src/model/DescribeDBInstanceAttributeResult.cc
Normal file
@@ -0,0 +1,262 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeDBInstanceAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
DescribeDBInstanceAttributeResult::DescribeDBInstanceAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBInstanceAttributeResult::DescribeDBInstanceAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBInstanceAttributeResult::~DescribeDBInstanceAttributeResult()
|
||||
{}
|
||||
|
||||
void DescribeDBInstanceAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDBClusterListNode = value["DBClusterList"]["DbClusterListItem"];
|
||||
for (auto valueDBClusterListDbClusterListItem : allDBClusterListNode)
|
||||
{
|
||||
DbClusterListItem dBClusterListObject;
|
||||
if(!valueDBClusterListDbClusterListItem["DbInstanceName"].isNull())
|
||||
dBClusterListObject.dbInstanceName = valueDBClusterListDbClusterListItem["DbInstanceName"].asString();
|
||||
if(!valueDBClusterListDbClusterListItem["DbClusterId"].isNull())
|
||||
dBClusterListObject.dbClusterId = valueDBClusterListDbClusterListItem["DbClusterId"].asString();
|
||||
if(!valueDBClusterListDbClusterListItem["DbClusterName"].isNull())
|
||||
dBClusterListObject.dbClusterName = valueDBClusterListDbClusterListItem["DbClusterName"].asString();
|
||||
if(!valueDBClusterListDbClusterListItem["Status"].isNull())
|
||||
dBClusterListObject.status = valueDBClusterListDbClusterListItem["Status"].asString();
|
||||
if(!valueDBClusterListDbClusterListItem["CreatedTime"].isNull())
|
||||
dBClusterListObject.createdTime = valueDBClusterListDbClusterListItem["CreatedTime"].asString();
|
||||
if(!valueDBClusterListDbClusterListItem["DbClusterClass"].isNull())
|
||||
dBClusterListObject.dbClusterClass = valueDBClusterListDbClusterListItem["DbClusterClass"].asString();
|
||||
if(!valueDBClusterListDbClusterListItem["CpuCores"].isNull())
|
||||
dBClusterListObject.cpuCores = std::stol(valueDBClusterListDbClusterListItem["CpuCores"].asString());
|
||||
if(!valueDBClusterListDbClusterListItem["Memory"].isNull())
|
||||
dBClusterListObject.memory = std::stol(valueDBClusterListDbClusterListItem["Memory"].asString());
|
||||
if(!valueDBClusterListDbClusterListItem["CacheStorageType"].isNull())
|
||||
dBClusterListObject.cacheStorageType = valueDBClusterListDbClusterListItem["CacheStorageType"].asString();
|
||||
if(!valueDBClusterListDbClusterListItem["PerformanceLevel"].isNull())
|
||||
dBClusterListObject.performanceLevel = valueDBClusterListDbClusterListItem["PerformanceLevel"].asString();
|
||||
if(!valueDBClusterListDbClusterListItem["CacheStorageSizeGB"].isNull())
|
||||
dBClusterListObject.cacheStorageSizeGB = valueDBClusterListDbClusterListItem["CacheStorageSizeGB"].asString();
|
||||
if(!valueDBClusterListDbClusterListItem["StartTime"].isNull())
|
||||
dBClusterListObject.startTime = valueDBClusterListDbClusterListItem["StartTime"].asString();
|
||||
if(!valueDBClusterListDbClusterListItem["ChargeType"].isNull())
|
||||
dBClusterListObject.chargeType = valueDBClusterListDbClusterListItem["ChargeType"].asString();
|
||||
if(!valueDBClusterListDbClusterListItem["ModifiedTime"].isNull())
|
||||
dBClusterListObject.modifiedTime = valueDBClusterListDbClusterListItem["ModifiedTime"].asString();
|
||||
if(!valueDBClusterListDbClusterListItem["ScalingRulesEnable"].isNull())
|
||||
dBClusterListObject.scalingRulesEnable = valueDBClusterListDbClusterListItem["ScalingRulesEnable"].asString() == "true";
|
||||
dBClusterList_.push_back(dBClusterListObject);
|
||||
}
|
||||
auto allTagsNode = value["Tags"]["TagsItem"];
|
||||
for (auto valueTagsTagsItem : allTagsNode)
|
||||
{
|
||||
TagsItem tagsObject;
|
||||
if(!valueTagsTagsItem["TagKey"].isNull())
|
||||
tagsObject.tagKey = valueTagsTagsItem["TagKey"].asString();
|
||||
if(!valueTagsTagsItem["TagValue"].isNull())
|
||||
tagsObject.tagValue = valueTagsTagsItem["TagValue"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
auto allCanUpgradeVersions = value["CanUpgradeVersions"]["canUpgradeCanUpgradeVersionsVersions"];
|
||||
for (const auto &item : allCanUpgradeVersions)
|
||||
canUpgradeVersions_.push_back(item.asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["SubDomain"].isNull())
|
||||
subDomain_ = value["SubDomain"].asString();
|
||||
if(!value["GmtModified"].isNull())
|
||||
gmtModified_ = value["GmtModified"].asString();
|
||||
if(!value["LockMode"].isNull())
|
||||
lockMode_ = std::stol(value["LockMode"].asString());
|
||||
if(!value["LockReason"].isNull())
|
||||
lockReason_ = value["LockReason"].asString();
|
||||
if(!value["ResourceCpu"].isNull())
|
||||
resourceCpu_ = std::stol(value["ResourceCpu"].asString());
|
||||
if(!value["StorageSize"].isNull())
|
||||
storageSize_ = std::stol(value["StorageSize"].asString());
|
||||
if(!value["ObjectStoreSize"].isNull())
|
||||
objectStoreSize_ = std::stol(value["ObjectStoreSize"].asString());
|
||||
if(!value["MaintainStarttime"].isNull())
|
||||
maintainStarttime_ = value["MaintainStarttime"].asString();
|
||||
if(!value["MaintainEndtime"].isNull())
|
||||
maintainEndtime_ = value["MaintainEndtime"].asString();
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
if(!value["EngineVersion"].isNull())
|
||||
engineVersion_ = value["EngineVersion"].asString();
|
||||
if(!value["EngineMinorVersion"].isNull())
|
||||
engineMinorVersion_ = value["EngineMinorVersion"].asString();
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["ChargeType"].isNull())
|
||||
chargeType_ = value["ChargeType"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
expireTime_ = value["ExpireTime"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["ZoneId"].isNull())
|
||||
zoneId_ = value["ZoneId"].asString();
|
||||
if(!value["VpcId"].isNull())
|
||||
vpcId_ = value["VpcId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getEngineMinorVersion()const
|
||||
{
|
||||
return engineMinorVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getGmtModified()const
|
||||
{
|
||||
return gmtModified_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeDBInstanceAttributeResult::getCanUpgradeVersions()const
|
||||
{
|
||||
return canUpgradeVersions_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getMaintainStarttime()const
|
||||
{
|
||||
return maintainStarttime_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getSubDomain()const
|
||||
{
|
||||
return subDomain_;
|
||||
}
|
||||
|
||||
long DescribeDBInstanceAttributeResult::getObjectStoreSize()const
|
||||
{
|
||||
return objectStoreSize_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getLockReason()const
|
||||
{
|
||||
return lockReason_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstanceAttributeResult::TagsItem> DescribeDBInstanceAttributeResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getMaintainEndtime()const
|
||||
{
|
||||
return maintainEndtime_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
long DescribeDBInstanceAttributeResult::getResourceCpu()const
|
||||
{
|
||||
return resourceCpu_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
long DescribeDBInstanceAttributeResult::getStorageSize()const
|
||||
{
|
||||
return storageSize_;
|
||||
}
|
||||
|
||||
long DescribeDBInstanceAttributeResult::getLockMode()const
|
||||
{
|
||||
return lockMode_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstanceAttributeResult::DbClusterListItem> DescribeDBInstanceAttributeResult::getDBClusterList()const
|
||||
{
|
||||
return dBClusterList_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getChargeType()const
|
||||
{
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeResult::getExpireTime()const
|
||||
{
|
||||
return expireTime_;
|
||||
}
|
||||
|
||||
54
selectdb/src/model/DescribeDBInstanceNetInfoRequest.cc
Normal file
54
selectdb/src/model/DescribeDBInstanceNetInfoRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeDBInstanceNetInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::DescribeDBInstanceNetInfoRequest;
|
||||
|
||||
DescribeDBInstanceNetInfoRequest::DescribeDBInstanceNetInfoRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "DescribeDBInstanceNetInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBInstanceNetInfoRequest::~DescribeDBInstanceNetInfoRequest() {}
|
||||
|
||||
long DescribeDBInstanceNetInfoRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceNetInfoRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceNetInfoRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceNetInfoRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceNetInfoRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceNetInfoRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
118
selectdb/src/model/DescribeDBInstanceNetInfoResult.cc
Normal file
118
selectdb/src/model/DescribeDBInstanceNetInfoResult.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeDBInstanceNetInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
DescribeDBInstanceNetInfoResult::DescribeDBInstanceNetInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBInstanceNetInfoResult::DescribeDBInstanceNetInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBInstanceNetInfoResult::~DescribeDBInstanceNetInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeDBInstanceNetInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDBInstanceNetInfosNode = value["DBInstanceNetInfos"]["DBInstanceNetInfosItem"];
|
||||
for (auto valueDBInstanceNetInfosDBInstanceNetInfosItem : allDBInstanceNetInfosNode)
|
||||
{
|
||||
DBInstanceNetInfosItem dBInstanceNetInfosObject;
|
||||
if(!valueDBInstanceNetInfosDBInstanceNetInfosItem["NetType"].isNull())
|
||||
dBInstanceNetInfosObject.netType = valueDBInstanceNetInfosDBInstanceNetInfosItem["NetType"].asString();
|
||||
if(!valueDBInstanceNetInfosDBInstanceNetInfosItem["VpcInstanceId"].isNull())
|
||||
dBInstanceNetInfosObject.vpcInstanceId = valueDBInstanceNetInfosDBInstanceNetInfosItem["VpcInstanceId"].asString();
|
||||
if(!valueDBInstanceNetInfosDBInstanceNetInfosItem["VpcId"].isNull())
|
||||
dBInstanceNetInfosObject.vpcId = valueDBInstanceNetInfosDBInstanceNetInfosItem["VpcId"].asString();
|
||||
if(!valueDBInstanceNetInfosDBInstanceNetInfosItem["VswitchId"].isNull())
|
||||
dBInstanceNetInfosObject.vswitchId = valueDBInstanceNetInfosDBInstanceNetInfosItem["VswitchId"].asString();
|
||||
if(!valueDBInstanceNetInfosDBInstanceNetInfosItem["UserVisible"].isNull())
|
||||
dBInstanceNetInfosObject.userVisible = valueDBInstanceNetInfosDBInstanceNetInfosItem["UserVisible"].asString() == "true";
|
||||
if(!valueDBInstanceNetInfosDBInstanceNetInfosItem["ConnectionString"].isNull())
|
||||
dBInstanceNetInfosObject.connectionString = valueDBInstanceNetInfosDBInstanceNetInfosItem["ConnectionString"].asString();
|
||||
if(!valueDBInstanceNetInfosDBInstanceNetInfosItem["Ip"].isNull())
|
||||
dBInstanceNetInfosObject.ip = valueDBInstanceNetInfosDBInstanceNetInfosItem["Ip"].asString();
|
||||
if(!valueDBInstanceNetInfosDBInstanceNetInfosItem["ClusterId"].isNull())
|
||||
dBInstanceNetInfosObject.clusterId = valueDBInstanceNetInfosDBInstanceNetInfosItem["ClusterId"].asString();
|
||||
auto allPortListNode = valueDBInstanceNetInfosDBInstanceNetInfosItem["PortList"]["PortListItem"];
|
||||
for (auto valueDBInstanceNetInfosDBInstanceNetInfosItemPortListPortListItem : allPortListNode)
|
||||
{
|
||||
DBInstanceNetInfosItem::PortListItem portListObject;
|
||||
if(!valueDBInstanceNetInfosDBInstanceNetInfosItemPortListPortListItem["Protocol"].isNull())
|
||||
portListObject.protocol = valueDBInstanceNetInfosDBInstanceNetInfosItemPortListPortListItem["Protocol"].asString();
|
||||
if(!valueDBInstanceNetInfosDBInstanceNetInfosItemPortListPortListItem["Port"].isNull())
|
||||
portListObject.port = std::stoi(valueDBInstanceNetInfosDBInstanceNetInfosItemPortListPortListItem["Port"].asString());
|
||||
dBInstanceNetInfosObject.portList.push_back(portListObject);
|
||||
}
|
||||
dBInstanceNetInfos_.push_back(dBInstanceNetInfosObject);
|
||||
}
|
||||
auto allDBClustersNetInfosNode = value["DBClustersNetInfos"]["DBClustersNetInfosItem"];
|
||||
for (auto valueDBClustersNetInfosDBClustersNetInfosItem : allDBClustersNetInfosNode)
|
||||
{
|
||||
DBClustersNetInfosItem dBClustersNetInfosObject;
|
||||
if(!valueDBClustersNetInfosDBClustersNetInfosItem["NetType"].isNull())
|
||||
dBClustersNetInfosObject.netType = valueDBClustersNetInfosDBClustersNetInfosItem["NetType"].asString();
|
||||
if(!valueDBClustersNetInfosDBClustersNetInfosItem["VpcInstanceId"].isNull())
|
||||
dBClustersNetInfosObject.vpcInstanceId = valueDBClustersNetInfosDBClustersNetInfosItem["VpcInstanceId"].asString();
|
||||
if(!valueDBClustersNetInfosDBClustersNetInfosItem["VpcId"].isNull())
|
||||
dBClustersNetInfosObject.vpcId = valueDBClustersNetInfosDBClustersNetInfosItem["VpcId"].asString();
|
||||
if(!valueDBClustersNetInfosDBClustersNetInfosItem["VswitchId"].isNull())
|
||||
dBClustersNetInfosObject.vswitchId = valueDBClustersNetInfosDBClustersNetInfosItem["VswitchId"].asString();
|
||||
if(!valueDBClustersNetInfosDBClustersNetInfosItem["UserVisible"].isNull())
|
||||
dBClustersNetInfosObject.userVisible = valueDBClustersNetInfosDBClustersNetInfosItem["UserVisible"].asString() == "true";
|
||||
if(!valueDBClustersNetInfosDBClustersNetInfosItem["ConnectionString"].isNull())
|
||||
dBClustersNetInfosObject.connectionString = valueDBClustersNetInfosDBClustersNetInfosItem["ConnectionString"].asString();
|
||||
if(!valueDBClustersNetInfosDBClustersNetInfosItem["Ip"].isNull())
|
||||
dBClustersNetInfosObject.ip = valueDBClustersNetInfosDBClustersNetInfosItem["Ip"].asString();
|
||||
if(!valueDBClustersNetInfosDBClustersNetInfosItem["ClusterId"].isNull())
|
||||
dBClustersNetInfosObject.clusterId = valueDBClustersNetInfosDBClustersNetInfosItem["ClusterId"].asString();
|
||||
auto allPortList1Node = valueDBClustersNetInfosDBClustersNetInfosItem["PortList"]["PortListItem"];
|
||||
for (auto valueDBClustersNetInfosDBClustersNetInfosItemPortListPortListItem : allPortList1Node)
|
||||
{
|
||||
DBClustersNetInfosItem::PortListItem2 portList1Object;
|
||||
if(!valueDBClustersNetInfosDBClustersNetInfosItemPortListPortListItem["Protocol"].isNull())
|
||||
portList1Object.protocol = valueDBClustersNetInfosDBClustersNetInfosItemPortListPortListItem["Protocol"].asString();
|
||||
if(!valueDBClustersNetInfosDBClustersNetInfosItemPortListPortListItem["Port"].isNull())
|
||||
portList1Object.port = std::stoi(valueDBClustersNetInfosDBClustersNetInfosItemPortListPortListItem["Port"].asString());
|
||||
dBClustersNetInfosObject.portList1.push_back(portList1Object);
|
||||
}
|
||||
dBClustersNetInfos_.push_back(dBClustersNetInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstanceNetInfoResult::DBClustersNetInfosItem> DescribeDBInstanceNetInfoResult::getDBClustersNetInfos()const
|
||||
{
|
||||
return dBClustersNetInfos_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstanceNetInfoResult::DBInstanceNetInfosItem> DescribeDBInstanceNetInfoResult::getDBInstanceNetInfos()const
|
||||
{
|
||||
return dBInstanceNetInfos_;
|
||||
}
|
||||
|
||||
111
selectdb/src/model/DescribeDBInstancesRequest.cc
Normal file
111
selectdb/src/model/DescribeDBInstancesRequest.cc
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeDBInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::DescribeDBInstancesRequest;
|
||||
|
||||
DescribeDBInstancesRequest::DescribeDBInstancesRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "DescribeDBInstances") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBInstancesRequest::~DescribeDBInstancesRequest() {}
|
||||
|
||||
long DescribeDBInstancesRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DescribeDBInstancesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setPageNumber(long pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
long DescribeDBInstancesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getDBInstanceStatus() const {
|
||||
return dBInstanceStatus_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setDBInstanceStatus(const std::string &dBInstanceStatus) {
|
||||
dBInstanceStatus_ = dBInstanceStatus;
|
||||
setParameter(std::string("DBInstanceStatus"), dBInstanceStatus);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getDBInstanceDescription() const {
|
||||
return dBInstanceDescription_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setDBInstanceDescription(const std::string &dBInstanceDescription) {
|
||||
dBInstanceDescription_ = dBInstanceDescription;
|
||||
setParameter(std::string("DBInstanceDescription"), dBInstanceDescription);
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstancesRequest::Tag> DescribeDBInstancesRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setTag(const std::vector<DescribeDBInstancesRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
|
||||
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getDBInstanceIds() const {
|
||||
return dBInstanceIds_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setDBInstanceIds(const std::string &dBInstanceIds) {
|
||||
dBInstanceIds_ = dBInstanceIds;
|
||||
setParameter(std::string("DBInstanceIds"), dBInstanceIds);
|
||||
}
|
||||
|
||||
160
selectdb/src/model/DescribeDBInstancesResult.cc
Normal file
160
selectdb/src/model/DescribeDBInstancesResult.cc
Normal file
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeDBInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
DescribeDBInstancesResult::DescribeDBInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBInstancesResult::DescribeDBInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBInstancesResult::~DescribeDBInstancesResult()
|
||||
{}
|
||||
|
||||
void DescribeDBInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["DBInstance"];
|
||||
for (auto valueItemsDBInstance : allItemsNode)
|
||||
{
|
||||
DBInstance itemsObject;
|
||||
if(!valueItemsDBInstance["connectionString"].isNull())
|
||||
itemsObject.connectionString = valueItemsDBInstance["connectionString"].asString();
|
||||
if(!valueItemsDBInstance["DBInstanceId"].isNull())
|
||||
itemsObject.dBInstanceId = valueItemsDBInstance["DBInstanceId"].asString();
|
||||
if(!valueItemsDBInstance["Description"].isNull())
|
||||
itemsObject.description = valueItemsDBInstance["Description"].asString();
|
||||
if(!valueItemsDBInstance["Engine"].isNull())
|
||||
itemsObject.engine = valueItemsDBInstance["Engine"].asString();
|
||||
if(!valueItemsDBInstance["EngineVersion"].isNull())
|
||||
itemsObject.engineVersion = valueItemsDBInstance["EngineVersion"].asString();
|
||||
if(!valueItemsDBInstance["InstanceUsedType"].isNull())
|
||||
itemsObject.instanceUsedType = valueItemsDBInstance["InstanceUsedType"].asString();
|
||||
if(!valueItemsDBInstance["RegionId"].isNull())
|
||||
itemsObject.regionId = valueItemsDBInstance["RegionId"].asString();
|
||||
if(!valueItemsDBInstance["ZoneId"].isNull())
|
||||
itemsObject.zoneId = valueItemsDBInstance["ZoneId"].asString();
|
||||
if(!valueItemsDBInstance["ChargeType"].isNull())
|
||||
itemsObject.chargeType = valueItemsDBInstance["ChargeType"].asString();
|
||||
if(!valueItemsDBInstance["Category"].isNull())
|
||||
itemsObject.category = valueItemsDBInstance["Category"].asString();
|
||||
if(!valueItemsDBInstance["Status"].isNull())
|
||||
itemsObject.status = valueItemsDBInstance["Status"].asString();
|
||||
if(!valueItemsDBInstance["VpcId"].isNull())
|
||||
itemsObject.vpcId = valueItemsDBInstance["VpcId"].asString();
|
||||
if(!valueItemsDBInstance["VswitchId"].isNull())
|
||||
itemsObject.vswitchId = valueItemsDBInstance["VswitchId"].asString();
|
||||
if(!valueItemsDBInstance["ResourceCpu"].isNull())
|
||||
itemsObject.resourceCpu = std::stol(valueItemsDBInstance["ResourceCpu"].asString());
|
||||
if(!valueItemsDBInstance["ResourceMemory"].isNull())
|
||||
itemsObject.resourceMemory = std::stol(valueItemsDBInstance["ResourceMemory"].asString());
|
||||
if(!valueItemsDBInstance["ScaleMin"].isNull())
|
||||
itemsObject.scaleMin = std::stol(valueItemsDBInstance["ScaleMin"].asString());
|
||||
if(!valueItemsDBInstance["ScaleMax"].isNull())
|
||||
itemsObject.scaleMax = std::stol(valueItemsDBInstance["ScaleMax"].asString());
|
||||
if(!valueItemsDBInstance["ScaleReplica"].isNull())
|
||||
itemsObject.scaleReplica = std::stol(valueItemsDBInstance["ScaleReplica"].asString());
|
||||
if(!valueItemsDBInstance["StorageSize"].isNull())
|
||||
itemsObject.storageSize = std::stol(valueItemsDBInstance["StorageSize"].asString());
|
||||
if(!valueItemsDBInstance["StorageType"].isNull())
|
||||
itemsObject.storageType = valueItemsDBInstance["StorageType"].asString();
|
||||
if(!valueItemsDBInstance["ObjectStoreSize"].isNull())
|
||||
itemsObject.objectStoreSize = std::stol(valueItemsDBInstance["ObjectStoreSize"].asString());
|
||||
if(!valueItemsDBInstance["ExpireTime"].isNull())
|
||||
itemsObject.expireTime = valueItemsDBInstance["ExpireTime"].asString();
|
||||
if(!valueItemsDBInstance["LockMode"].isNull())
|
||||
itemsObject.lockMode = std::stol(valueItemsDBInstance["LockMode"].asString());
|
||||
if(!valueItemsDBInstance["LockReason"].isNull())
|
||||
itemsObject.lockReason = valueItemsDBInstance["LockReason"].asString();
|
||||
if(!valueItemsDBInstance["IsDeleted"].isNull())
|
||||
itemsObject.isDeleted = valueItemsDBInstance["IsDeleted"].asString() == "true";
|
||||
if(!valueItemsDBInstance["MaintainStarttime"].isNull())
|
||||
itemsObject.maintainStarttime = valueItemsDBInstance["MaintainStarttime"].asString();
|
||||
if(!valueItemsDBInstance["MaintainEndtime"].isNull())
|
||||
itemsObject.maintainEndtime = valueItemsDBInstance["MaintainEndtime"].asString();
|
||||
if(!valueItemsDBInstance["GmtCreated"].isNull())
|
||||
itemsObject.gmtCreated = valueItemsDBInstance["GmtCreated"].asString();
|
||||
if(!valueItemsDBInstance["GmtModified"].isNull())
|
||||
itemsObject.gmtModified = valueItemsDBInstance["GmtModified"].asString();
|
||||
if(!valueItemsDBInstance["ParentInstance"].isNull())
|
||||
itemsObject.parentInstance = valueItemsDBInstance["ParentInstance"].asString();
|
||||
if(!valueItemsDBInstance["ResourceGroupId"].isNull())
|
||||
itemsObject.resourceGroupId = valueItemsDBInstance["ResourceGroupId"].asString();
|
||||
if(!valueItemsDBInstance["MaintainStartTimeStr"].isNull())
|
||||
itemsObject.maintainStartTimeStr = valueItemsDBInstance["MaintainStartTimeStr"].asString();
|
||||
if(!valueItemsDBInstance["MaintainEndTimeStr"].isNull())
|
||||
itemsObject.maintainEndTimeStr = valueItemsDBInstance["MaintainEndTimeStr"].asString();
|
||||
if(!valueItemsDBInstance["TenantClusterId"].isNull())
|
||||
itemsObject.tenantClusterId = valueItemsDBInstance["TenantClusterId"].asString();
|
||||
if(!valueItemsDBInstance["TenantToken"].isNull())
|
||||
itemsObject.tenantToken = valueItemsDBInstance["TenantToken"].asString();
|
||||
if(!valueItemsDBInstance["TenantUserId"].isNull())
|
||||
itemsObject.tenantUserId = valueItemsDBInstance["TenantUserId"].asString();
|
||||
if(!valueItemsDBInstance["ClusterCount"].isNull())
|
||||
itemsObject.clusterCount = std::stoi(valueItemsDBInstance["ClusterCount"].asString());
|
||||
auto allTagsNode = valueItemsDBInstance["Tags"]["TagsItem"];
|
||||
for (auto valueItemsDBInstanceTagsTagsItem : allTagsNode)
|
||||
{
|
||||
DBInstance::TagsItem tagsObject;
|
||||
if(!valueItemsDBInstanceTagsTagsItem["TagKey"].isNull())
|
||||
tagsObject.tagKey = valueItemsDBInstanceTagsTagsItem["TagKey"].asString();
|
||||
if(!valueItemsDBInstanceTagsTagsItem["TagValue"].isNull())
|
||||
tagsObject.tagValue = valueItemsDBInstanceTagsTagsItem["TagValue"].asString();
|
||||
itemsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stol(value["TotalRecordCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeDBInstancesResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
long DescribeDBInstancesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeDBInstancesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstancesResult::DBInstance> DescribeDBInstancesResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
72
selectdb/src/model/DescribeElasticRulesRequest.cc
Normal file
72
selectdb/src/model/DescribeElasticRulesRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeElasticRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::DescribeElasticRulesRequest;
|
||||
|
||||
DescribeElasticRulesRequest::DescribeElasticRulesRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "DescribeElasticRules") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeElasticRulesRequest::~DescribeElasticRulesRequest() {}
|
||||
|
||||
long DescribeElasticRulesRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeElasticRulesRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeElasticRulesRequest::getProduct() const {
|
||||
return product_;
|
||||
}
|
||||
|
||||
void DescribeElasticRulesRequest::setProduct(const std::string &product) {
|
||||
product_ = product;
|
||||
setParameter(std::string("Product"), product);
|
||||
}
|
||||
|
||||
std::string DescribeElasticRulesRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeElasticRulesRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeElasticRulesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeElasticRulesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeElasticRulesRequest::getDbInstanceId() const {
|
||||
return dbInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeElasticRulesRequest::setDbInstanceId(const std::string &dbInstanceId) {
|
||||
dbInstanceId_ = dbInstanceId;
|
||||
setParameter(std::string("DbInstanceId"), dbInstanceId);
|
||||
}
|
||||
|
||||
68
selectdb/src/model/DescribeElasticRulesResult.cc
Normal file
68
selectdb/src/model/DescribeElasticRulesResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeElasticRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
DescribeElasticRulesResult::DescribeElasticRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeElasticRulesResult::DescribeElasticRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeElasticRulesResult::~DescribeElasticRulesResult()
|
||||
{}
|
||||
|
||||
void DescribeElasticRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DbInstanceId"].isNull())
|
||||
data_.dbInstanceId = dataNode["DbInstanceId"].asString();
|
||||
if(!dataNode["ClusterId"].isNull())
|
||||
data_.clusterId = dataNode["ClusterId"].asString();
|
||||
auto allRulesNode = dataNode["Rules"]["RulesItem"];
|
||||
for (auto dataNodeRulesRulesItem : allRulesNode)
|
||||
{
|
||||
Data::RulesItem rulesItemObject;
|
||||
if(!dataNodeRulesRulesItem["RuleId"].isNull())
|
||||
rulesItemObject.ruleId = std::stol(dataNodeRulesRulesItem["RuleId"].asString());
|
||||
if(!dataNodeRulesRulesItem["ExecutionPeriod"].isNull())
|
||||
rulesItemObject.executionPeriod = dataNodeRulesRulesItem["ExecutionPeriod"].asString();
|
||||
if(!dataNodeRulesRulesItem["ElasticRuleStartTime"].isNull())
|
||||
rulesItemObject.elasticRuleStartTime = dataNodeRulesRulesItem["ElasticRuleStartTime"].asString();
|
||||
if(!dataNodeRulesRulesItem["ClusterClass"].isNull())
|
||||
rulesItemObject.clusterClass = dataNodeRulesRulesItem["ClusterClass"].asString();
|
||||
data_.rules.push_back(rulesItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeElasticRulesResult::Data DescribeElasticRulesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
54
selectdb/src/model/DescribeSecurityIPListRequest.cc
Normal file
54
selectdb/src/model/DescribeSecurityIPListRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeSecurityIPListRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::DescribeSecurityIPListRequest;
|
||||
|
||||
DescribeSecurityIPListRequest::DescribeSecurityIPListRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "DescribeSecurityIPList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSecurityIPListRequest::~DescribeSecurityIPListRequest() {}
|
||||
|
||||
long DescribeSecurityIPListRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSecurityIPListRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSecurityIPListRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeSecurityIPListRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeSecurityIPListRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSecurityIPListRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
72
selectdb/src/model/DescribeSecurityIPListResult.cc
Normal file
72
selectdb/src/model/DescribeSecurityIPListResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/selectdb/model/DescribeSecurityIPListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
DescribeSecurityIPListResult::DescribeSecurityIPListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSecurityIPListResult::DescribeSecurityIPListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSecurityIPListResult::~DescribeSecurityIPListResult()
|
||||
{}
|
||||
|
||||
void DescribeSecurityIPListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allGroupItemsNode = value["GroupItems"]["GroupItemsItem"];
|
||||
for (auto valueGroupItemsGroupItemsItem : allGroupItemsNode)
|
||||
{
|
||||
GroupItemsItem groupItemsObject;
|
||||
if(!valueGroupItemsGroupItemsItem["GroupName"].isNull())
|
||||
groupItemsObject.groupName = valueGroupItemsGroupItemsItem["GroupName"].asString();
|
||||
if(!valueGroupItemsGroupItemsItem["AecurityIPType"].isNull())
|
||||
groupItemsObject.aecurityIPType = valueGroupItemsGroupItemsItem["AecurityIPType"].asString();
|
||||
if(!valueGroupItemsGroupItemsItem["GroupTag"].isNull())
|
||||
groupItemsObject.groupTag = valueGroupItemsGroupItemsItem["GroupTag"].asString();
|
||||
if(!valueGroupItemsGroupItemsItem["SecurityIPList"].isNull())
|
||||
groupItemsObject.securityIPList = valueGroupItemsGroupItemsItem["SecurityIPList"].asString();
|
||||
if(!valueGroupItemsGroupItemsItem["WhitelistNetType"].isNull())
|
||||
groupItemsObject.whitelistNetType = valueGroupItemsGroupItemsItem["WhitelistNetType"].asString();
|
||||
groupItems_.push_back(groupItemsObject);
|
||||
}
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeSecurityIPListResult::GroupItemsItem> DescribeSecurityIPListResult::getGroupItems()const
|
||||
{
|
||||
return groupItems_;
|
||||
}
|
||||
|
||||
std::string DescribeSecurityIPListResult::getDBInstanceName()const
|
||||
{
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
81
selectdb/src/model/EnDisableScalingRulesRequest.cc
Normal file
81
selectdb/src/model/EnDisableScalingRulesRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/selectdb/model/EnDisableScalingRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::EnDisableScalingRulesRequest;
|
||||
|
||||
EnDisableScalingRulesRequest::EnDisableScalingRulesRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "EnDisableScalingRules") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnDisableScalingRulesRequest::~EnDisableScalingRulesRequest() {}
|
||||
|
||||
long EnDisableScalingRulesRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void EnDisableScalingRulesRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string EnDisableScalingRulesRequest::getProduct() const {
|
||||
return product_;
|
||||
}
|
||||
|
||||
void EnDisableScalingRulesRequest::setProduct(const std::string &product) {
|
||||
product_ = product;
|
||||
setParameter(std::string("Product"), product);
|
||||
}
|
||||
|
||||
std::string EnDisableScalingRulesRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void EnDisableScalingRulesRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string EnDisableScalingRulesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void EnDisableScalingRulesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string EnDisableScalingRulesRequest::getDbInstanceId() const {
|
||||
return dbInstanceId_;
|
||||
}
|
||||
|
||||
void EnDisableScalingRulesRequest::setDbInstanceId(const std::string &dbInstanceId) {
|
||||
dbInstanceId_ = dbInstanceId;
|
||||
setParameter(std::string("DbInstanceId"), dbInstanceId);
|
||||
}
|
||||
|
||||
bool EnDisableScalingRulesRequest::getScalingRulesEnable() const {
|
||||
return scalingRulesEnable_;
|
||||
}
|
||||
|
||||
void EnDisableScalingRulesRequest::setScalingRulesEnable(bool scalingRulesEnable) {
|
||||
scalingRulesEnable_ = scalingRulesEnable;
|
||||
setParameter(std::string("ScalingRulesEnable"), scalingRulesEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
56
selectdb/src/model/EnDisableScalingRulesResult.cc
Normal file
56
selectdb/src/model/EnDisableScalingRulesResult.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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/selectdb/model/EnDisableScalingRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
EnDisableScalingRulesResult::EnDisableScalingRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnDisableScalingRulesResult::EnDisableScalingRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnDisableScalingRulesResult::~EnDisableScalingRulesResult()
|
||||
{}
|
||||
|
||||
void EnDisableScalingRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DbInstanceId"].isNull())
|
||||
data_.dbInstanceId = dataNode["DbInstanceId"].asString();
|
||||
if(!dataNode["ClusterId"].isNull())
|
||||
data_.clusterId = dataNode["ClusterId"].asString();
|
||||
if(!dataNode["ScalingRulesEnable"].isNull())
|
||||
data_.scalingRulesEnable = dataNode["ScalingRulesEnable"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
EnDisableScalingRulesResult::Data EnDisableScalingRulesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
126
selectdb/src/model/GetCreateBEClusterInquiryRequest.cc
Normal file
126
selectdb/src/model/GetCreateBEClusterInquiryRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/selectdb/model/GetCreateBEClusterInquiryRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::GetCreateBEClusterInquiryRequest;
|
||||
|
||||
GetCreateBEClusterInquiryRequest::GetCreateBEClusterInquiryRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "GetCreateBEClusterInquiry") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetCreateBEClusterInquiryRequest::~GetCreateBEClusterInquiryRequest() {}
|
||||
|
||||
long GetCreateBEClusterInquiryRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetCreateBEClusterInquiryRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long GetCreateBEClusterInquiryRequest::getCacheSize() const {
|
||||
return cacheSize_;
|
||||
}
|
||||
|
||||
void GetCreateBEClusterInquiryRequest::setCacheSize(long cacheSize) {
|
||||
cacheSize_ = cacheSize;
|
||||
setParameter(std::string("CacheSize"), std::to_string(cacheSize));
|
||||
}
|
||||
|
||||
std::string GetCreateBEClusterInquiryRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetCreateBEClusterInquiryRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
long GetCreateBEClusterInquiryRequest::getPreCacheSize() const {
|
||||
return preCacheSize_;
|
||||
}
|
||||
|
||||
void GetCreateBEClusterInquiryRequest::setPreCacheSize(long preCacheSize) {
|
||||
preCacheSize_ = preCacheSize;
|
||||
setParameter(std::string("PreCacheSize"), std::to_string(preCacheSize));
|
||||
}
|
||||
|
||||
long GetCreateBEClusterInquiryRequest::getComputeSize() const {
|
||||
return computeSize_;
|
||||
}
|
||||
|
||||
void GetCreateBEClusterInquiryRequest::setComputeSize(long computeSize) {
|
||||
computeSize_ = computeSize;
|
||||
setParameter(std::string("ComputeSize"), std::to_string(computeSize));
|
||||
}
|
||||
|
||||
std::string GetCreateBEClusterInquiryRequest::getDbInstanceId() const {
|
||||
return dbInstanceId_;
|
||||
}
|
||||
|
||||
void GetCreateBEClusterInquiryRequest::setDbInstanceId(const std::string &dbInstanceId) {
|
||||
dbInstanceId_ = dbInstanceId;
|
||||
setParameter(std::string("DbInstanceId"), dbInstanceId);
|
||||
}
|
||||
|
||||
long GetCreateBEClusterInquiryRequest::getPreComputeSize() const {
|
||||
return preComputeSize_;
|
||||
}
|
||||
|
||||
void GetCreateBEClusterInquiryRequest::setPreComputeSize(long preComputeSize) {
|
||||
preComputeSize_ = preComputeSize;
|
||||
setParameter(std::string("PreComputeSize"), std::to_string(preComputeSize));
|
||||
}
|
||||
|
||||
long GetCreateBEClusterInquiryRequest::getQuantity() const {
|
||||
return quantity_;
|
||||
}
|
||||
|
||||
void GetCreateBEClusterInquiryRequest::setQuantity(long quantity) {
|
||||
quantity_ = quantity;
|
||||
setParameter(std::string("Quantity"), std::to_string(quantity));
|
||||
}
|
||||
|
||||
std::string GetCreateBEClusterInquiryRequest::getCommodityCode() const {
|
||||
return commodityCode_;
|
||||
}
|
||||
|
||||
void GetCreateBEClusterInquiryRequest::setCommodityCode(const std::string &commodityCode) {
|
||||
commodityCode_ = commodityCode;
|
||||
setParameter(std::string("CommodityCode"), commodityCode);
|
||||
}
|
||||
|
||||
std::string GetCreateBEClusterInquiryRequest::getChargeType() const {
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
void GetCreateBEClusterInquiryRequest::setChargeType(const std::string &chargeType) {
|
||||
chargeType_ = chargeType;
|
||||
setParameter(std::string("ChargeType"), chargeType);
|
||||
}
|
||||
|
||||
std::string GetCreateBEClusterInquiryRequest::getPricingCycle() const {
|
||||
return pricingCycle_;
|
||||
}
|
||||
|
||||
void GetCreateBEClusterInquiryRequest::setPricingCycle(const std::string &pricingCycle) {
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter(std::string("PricingCycle"), pricingCycle);
|
||||
}
|
||||
|
||||
54
selectdb/src/model/GetCreateBEClusterInquiryResult.cc
Normal file
54
selectdb/src/model/GetCreateBEClusterInquiryResult.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/selectdb/model/GetCreateBEClusterInquiryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
GetCreateBEClusterInquiryResult::GetCreateBEClusterInquiryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetCreateBEClusterInquiryResult::GetCreateBEClusterInquiryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetCreateBEClusterInquiryResult::~GetCreateBEClusterInquiryResult()
|
||||
{}
|
||||
|
||||
void GetCreateBEClusterInquiryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Currency"].isNull())
|
||||
data_.currency = dataNode["Currency"].asString();
|
||||
if(!dataNode["TradeAmount"].isNull())
|
||||
data_.tradeAmount = dataNode["TradeAmount"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetCreateBEClusterInquiryResult::Data GetCreateBEClusterInquiryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
135
selectdb/src/model/GetModifyBEClusterInquiryRequest.cc
Normal file
135
selectdb/src/model/GetModifyBEClusterInquiryRequest.cc
Normal file
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* 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/selectdb/model/GetModifyBEClusterInquiryRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::GetModifyBEClusterInquiryRequest;
|
||||
|
||||
GetModifyBEClusterInquiryRequest::GetModifyBEClusterInquiryRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "GetModifyBEClusterInquiry") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetModifyBEClusterInquiryRequest::~GetModifyBEClusterInquiryRequest() {}
|
||||
|
||||
long GetModifyBEClusterInquiryRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetModifyBEClusterInquiryRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long GetModifyBEClusterInquiryRequest::getCacheSize() const {
|
||||
return cacheSize_;
|
||||
}
|
||||
|
||||
void GetModifyBEClusterInquiryRequest::setCacheSize(long cacheSize) {
|
||||
cacheSize_ = cacheSize;
|
||||
setParameter(std::string("CacheSize"), std::to_string(cacheSize));
|
||||
}
|
||||
|
||||
std::string GetModifyBEClusterInquiryRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetModifyBEClusterInquiryRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
long GetModifyBEClusterInquiryRequest::getPreCacheSize() const {
|
||||
return preCacheSize_;
|
||||
}
|
||||
|
||||
void GetModifyBEClusterInquiryRequest::setPreCacheSize(long preCacheSize) {
|
||||
preCacheSize_ = preCacheSize;
|
||||
setParameter(std::string("PreCacheSize"), std::to_string(preCacheSize));
|
||||
}
|
||||
|
||||
long GetModifyBEClusterInquiryRequest::getComputeSize() const {
|
||||
return computeSize_;
|
||||
}
|
||||
|
||||
void GetModifyBEClusterInquiryRequest::setComputeSize(long computeSize) {
|
||||
computeSize_ = computeSize;
|
||||
setParameter(std::string("ComputeSize"), std::to_string(computeSize));
|
||||
}
|
||||
|
||||
std::string GetModifyBEClusterInquiryRequest::getDbInstanceId() const {
|
||||
return dbInstanceId_;
|
||||
}
|
||||
|
||||
void GetModifyBEClusterInquiryRequest::setDbInstanceId(const std::string &dbInstanceId) {
|
||||
dbInstanceId_ = dbInstanceId;
|
||||
setParameter(std::string("DbInstanceId"), dbInstanceId);
|
||||
}
|
||||
|
||||
long GetModifyBEClusterInquiryRequest::getPreComputeSize() const {
|
||||
return preComputeSize_;
|
||||
}
|
||||
|
||||
void GetModifyBEClusterInquiryRequest::setPreComputeSize(long preComputeSize) {
|
||||
preComputeSize_ = preComputeSize;
|
||||
setParameter(std::string("PreComputeSize"), std::to_string(preComputeSize));
|
||||
}
|
||||
|
||||
long GetModifyBEClusterInquiryRequest::getQuantity() const {
|
||||
return quantity_;
|
||||
}
|
||||
|
||||
void GetModifyBEClusterInquiryRequest::setQuantity(long quantity) {
|
||||
quantity_ = quantity;
|
||||
setParameter(std::string("Quantity"), std::to_string(quantity));
|
||||
}
|
||||
|
||||
std::string GetModifyBEClusterInquiryRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetModifyBEClusterInquiryRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string GetModifyBEClusterInquiryRequest::getCommodityCode() const {
|
||||
return commodityCode_;
|
||||
}
|
||||
|
||||
void GetModifyBEClusterInquiryRequest::setCommodityCode(const std::string &commodityCode) {
|
||||
commodityCode_ = commodityCode;
|
||||
setParameter(std::string("CommodityCode"), commodityCode);
|
||||
}
|
||||
|
||||
std::string GetModifyBEClusterInquiryRequest::getChargeType() const {
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
void GetModifyBEClusterInquiryRequest::setChargeType(const std::string &chargeType) {
|
||||
chargeType_ = chargeType;
|
||||
setParameter(std::string("ChargeType"), chargeType);
|
||||
}
|
||||
|
||||
std::string GetModifyBEClusterInquiryRequest::getPricingCycle() const {
|
||||
return pricingCycle_;
|
||||
}
|
||||
|
||||
void GetModifyBEClusterInquiryRequest::setPricingCycle(const std::string &pricingCycle) {
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter(std::string("PricingCycle"), pricingCycle);
|
||||
}
|
||||
|
||||
54
selectdb/src/model/GetModifyBEClusterInquiryResult.cc
Normal file
54
selectdb/src/model/GetModifyBEClusterInquiryResult.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/selectdb/model/GetModifyBEClusterInquiryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
GetModifyBEClusterInquiryResult::GetModifyBEClusterInquiryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetModifyBEClusterInquiryResult::GetModifyBEClusterInquiryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetModifyBEClusterInquiryResult::~GetModifyBEClusterInquiryResult()
|
||||
{}
|
||||
|
||||
void GetModifyBEClusterInquiryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Currency"].isNull())
|
||||
data_.currency = dataNode["Currency"].asString();
|
||||
if(!dataNode["TradeAmount"].isNull())
|
||||
data_.tradeAmount = dataNode["TradeAmount"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetModifyBEClusterInquiryResult::Data GetModifyBEClusterInquiryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
81
selectdb/src/model/ModifyBEClusterAttributeRequest.cc
Normal file
81
selectdb/src/model/ModifyBEClusterAttributeRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/selectdb/model/ModifyBEClusterAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::ModifyBEClusterAttributeRequest;
|
||||
|
||||
ModifyBEClusterAttributeRequest::ModifyBEClusterAttributeRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "ModifyBEClusterAttribute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyBEClusterAttributeRequest::~ModifyBEClusterAttributeRequest() {}
|
||||
|
||||
long ModifyBEClusterAttributeRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyBEClusterAttributeRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyBEClusterAttributeRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void ModifyBEClusterAttributeRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
std::string ModifyBEClusterAttributeRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyBEClusterAttributeRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ModifyBEClusterAttributeRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyBEClusterAttributeRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyBEClusterAttributeRequest::getValue() const {
|
||||
return value_;
|
||||
}
|
||||
|
||||
void ModifyBEClusterAttributeRequest::setValue(const std::string &value) {
|
||||
value_ = value;
|
||||
setParameter(std::string("Value"), value);
|
||||
}
|
||||
|
||||
std::string ModifyBEClusterAttributeRequest::getInstanceAttributeType() const {
|
||||
return instanceAttributeType_;
|
||||
}
|
||||
|
||||
void ModifyBEClusterAttributeRequest::setInstanceAttributeType(const std::string &instanceAttributeType) {
|
||||
instanceAttributeType_ = instanceAttributeType;
|
||||
setParameter(std::string("InstanceAttributeType"), instanceAttributeType);
|
||||
}
|
||||
|
||||
44
selectdb/src/model/ModifyBEClusterAttributeResult.cc
Normal file
44
selectdb/src/model/ModifyBEClusterAttributeResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/selectdb/model/ModifyBEClusterAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
ModifyBEClusterAttributeResult::ModifyBEClusterAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyBEClusterAttributeResult::ModifyBEClusterAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyBEClusterAttributeResult::~ModifyBEClusterAttributeResult()
|
||||
{}
|
||||
|
||||
void ModifyBEClusterAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
81
selectdb/src/model/ModifyDBClusterConfigRequest.cc
Normal file
81
selectdb/src/model/ModifyDBClusterConfigRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/selectdb/model/ModifyDBClusterConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::ModifyDBClusterConfigRequest;
|
||||
|
||||
ModifyDBClusterConfigRequest::ModifyDBClusterConfigRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "ModifyDBClusterConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDBClusterConfigRequest::~ModifyDBClusterConfigRequest() {}
|
||||
|
||||
std::string ModifyDBClusterConfigRequest::getConfigKey() const {
|
||||
return configKey_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterConfigRequest::setConfigKey(const std::string &configKey) {
|
||||
configKey_ = configKey;
|
||||
setParameter(std::string("ConfigKey"), configKey);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterConfigRequest::getSwitchTimeMode() const {
|
||||
return switchTimeMode_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterConfigRequest::setSwitchTimeMode(const std::string &switchTimeMode) {
|
||||
switchTimeMode_ = switchTimeMode;
|
||||
setParameter(std::string("SwitchTimeMode"), switchTimeMode);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterConfigRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterConfigRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterConfigRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterConfigRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterConfigRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterConfigRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterConfigRequest::getParameters() const {
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterConfigRequest::setParameters(const std::string ¶meters) {
|
||||
parameters_ = parameters;
|
||||
setParameter(std::string("Parameters"), parameters);
|
||||
}
|
||||
|
||||
79
selectdb/src/model/ModifyDBClusterConfigResult.cc
Normal file
79
selectdb/src/model/ModifyDBClusterConfigResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/selectdb/model/ModifyDBClusterConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
ModifyDBClusterConfigResult::ModifyDBClusterConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBClusterConfigResult::ModifyDBClusterConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBClusterConfigResult::~ModifyDBClusterConfigResult()
|
||||
{}
|
||||
|
||||
void ModifyDBClusterConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DbInstanceName"].isNull())
|
||||
data_.dbInstanceName = dataNode["DbInstanceName"].asString();
|
||||
if(!dataNode["DbInstanceId"].isNull())
|
||||
data_.dbInstanceId = dataNode["DbInstanceId"].asString();
|
||||
if(!dataNode["DbClusterId"].isNull())
|
||||
data_.dbClusterId = dataNode["DbClusterId"].asString();
|
||||
if(!dataNode["TaskId"].isNull())
|
||||
data_.taskId = std::stoi(dataNode["TaskId"].asString());
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["AccessDeniedDetail"].isNull())
|
||||
accessDeniedDetail_ = value["AccessDeniedDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterConfigResult::getAccessDeniedDetail()const
|
||||
{
|
||||
return accessDeniedDetail_;
|
||||
}
|
||||
|
||||
ModifyDBClusterConfigResult::Data ModifyDBClusterConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterConfigResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterConfigResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
90
selectdb/src/model/ModifyDBClusterRequest.cc
Normal file
90
selectdb/src/model/ModifyDBClusterRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/selectdb/model/ModifyDBClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::ModifyDBClusterRequest;
|
||||
|
||||
ModifyDBClusterRequest::ModifyDBClusterRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "ModifyDBCluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDBClusterRequest::~ModifyDBClusterRequest() {}
|
||||
|
||||
long ModifyDBClusterRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getDBClusterClass() const {
|
||||
return dBClusterClass_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setDBClusterClass(const std::string &dBClusterClass) {
|
||||
dBClusterClass_ = dBClusterClass;
|
||||
setParameter(std::string("DBClusterClass"), dBClusterClass);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getCacheSize() const {
|
||||
return cacheSize_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setCacheSize(const std::string &cacheSize) {
|
||||
cacheSize_ = cacheSize;
|
||||
setParameter(std::string("CacheSize"), cacheSize);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getEngine() const {
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setEngine(const std::string &engine) {
|
||||
engine_ = engine;
|
||||
setParameter(std::string("Engine"), engine);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
63
selectdb/src/model/ModifyDBClusterResult.cc
Normal file
63
selectdb/src/model/ModifyDBClusterResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/selectdb/model/ModifyDBClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
ModifyDBClusterResult::ModifyDBClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBClusterResult::ModifyDBClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBClusterResult::~ModifyDBClusterResult()
|
||||
{}
|
||||
|
||||
void ModifyDBClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DBInstanceId"].isNull())
|
||||
data_.dBInstanceId = dataNode["DBInstanceId"].asString();
|
||||
if(!dataNode["DBClusterId"].isNull())
|
||||
data_.dBClusterId = dataNode["DBClusterId"].asString();
|
||||
if(!dataNode["OrderId"].isNull())
|
||||
data_.orderId = std::stol(dataNode["OrderId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
ModifyDBClusterResult::Data ModifyDBClusterResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
72
selectdb/src/model/ModifyDBInstanceAttributeRequest.cc
Normal file
72
selectdb/src/model/ModifyDBInstanceAttributeRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/selectdb/model/ModifyDBInstanceAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::ModifyDBInstanceAttributeRequest;
|
||||
|
||||
ModifyDBInstanceAttributeRequest::ModifyDBInstanceAttributeRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "ModifyDBInstanceAttribute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDBInstanceAttributeRequest::~ModifyDBInstanceAttributeRequest() {}
|
||||
|
||||
long ModifyDBInstanceAttributeRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceAttributeRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceAttributeRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceAttributeRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceAttributeRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceAttributeRequest::getValue() const {
|
||||
return value_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceAttributeRequest::setValue(const std::string &value) {
|
||||
value_ = value;
|
||||
setParameter(std::string("Value"), value);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceAttributeRequest::getInstanceAttributeType() const {
|
||||
return instanceAttributeType_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceAttributeRequest::setInstanceAttributeType(const std::string &instanceAttributeType) {
|
||||
instanceAttributeType_ = instanceAttributeType;
|
||||
setParameter(std::string("InstanceAttributeType"), instanceAttributeType);
|
||||
}
|
||||
|
||||
44
selectdb/src/model/ModifyDBInstanceAttributeResult.cc
Normal file
44
selectdb/src/model/ModifyDBInstanceAttributeResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/selectdb/model/ModifyDBInstanceAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
ModifyDBInstanceAttributeResult::ModifyDBInstanceAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBInstanceAttributeResult::ModifyDBInstanceAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBInstanceAttributeResult::~ModifyDBInstanceAttributeResult()
|
||||
{}
|
||||
|
||||
void ModifyDBInstanceAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
108
selectdb/src/model/ModifyElasticRuleRequest.cc
Normal file
108
selectdb/src/model/ModifyElasticRuleRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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/selectdb/model/ModifyElasticRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::ModifyElasticRuleRequest;
|
||||
|
||||
ModifyElasticRuleRequest::ModifyElasticRuleRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "ModifyElasticRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyElasticRuleRequest::~ModifyElasticRuleRequest() {}
|
||||
|
||||
long ModifyElasticRuleRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyElasticRuleRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyElasticRuleRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyElasticRuleRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ModifyElasticRuleRequest::getDbInstanceId() const {
|
||||
return dbInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyElasticRuleRequest::setDbInstanceId(const std::string &dbInstanceId) {
|
||||
dbInstanceId_ = dbInstanceId;
|
||||
setParameter(std::string("DbInstanceId"), dbInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyElasticRuleRequest::getProduct() const {
|
||||
return product_;
|
||||
}
|
||||
|
||||
void ModifyElasticRuleRequest::setProduct(const std::string &product) {
|
||||
product_ = product;
|
||||
setParameter(std::string("Product"), product);
|
||||
}
|
||||
|
||||
std::string ModifyElasticRuleRequest::getExecutionPeriod() const {
|
||||
return executionPeriod_;
|
||||
}
|
||||
|
||||
void ModifyElasticRuleRequest::setExecutionPeriod(const std::string &executionPeriod) {
|
||||
executionPeriod_ = executionPeriod;
|
||||
setParameter(std::string("ExecutionPeriod"), executionPeriod);
|
||||
}
|
||||
|
||||
std::string ModifyElasticRuleRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyElasticRuleRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string ModifyElasticRuleRequest::getElasticRuleStartTime() const {
|
||||
return elasticRuleStartTime_;
|
||||
}
|
||||
|
||||
void ModifyElasticRuleRequest::setElasticRuleStartTime(const std::string &elasticRuleStartTime) {
|
||||
elasticRuleStartTime_ = elasticRuleStartTime;
|
||||
setParameter(std::string("ElasticRuleStartTime"), elasticRuleStartTime);
|
||||
}
|
||||
|
||||
std::string ModifyElasticRuleRequest::getClusterClass() const {
|
||||
return clusterClass_;
|
||||
}
|
||||
|
||||
void ModifyElasticRuleRequest::setClusterClass(const std::string &clusterClass) {
|
||||
clusterClass_ = clusterClass;
|
||||
setParameter(std::string("ClusterClass"), clusterClass);
|
||||
}
|
||||
|
||||
long ModifyElasticRuleRequest::getRuleId() const {
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void ModifyElasticRuleRequest::setRuleId(long ruleId) {
|
||||
ruleId_ = ruleId;
|
||||
setParameter(std::string("RuleId"), std::to_string(ruleId));
|
||||
}
|
||||
|
||||
62
selectdb/src/model/ModifyElasticRuleResult.cc
Normal file
62
selectdb/src/model/ModifyElasticRuleResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/selectdb/model/ModifyElasticRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
ModifyElasticRuleResult::ModifyElasticRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyElasticRuleResult::ModifyElasticRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyElasticRuleResult::~ModifyElasticRuleResult()
|
||||
{}
|
||||
|
||||
void ModifyElasticRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DbInstanceId"].isNull())
|
||||
data_.dbInstanceId = dataNode["DbInstanceId"].asString();
|
||||
if(!dataNode["ClusterId"].isNull())
|
||||
data_.clusterId = dataNode["ClusterId"].asString();
|
||||
if(!dataNode["RuleId"].isNull())
|
||||
data_.ruleId = std::stol(dataNode["RuleId"].asString());
|
||||
if(!dataNode["ExecutionPeriod"].isNull())
|
||||
data_.executionPeriod = dataNode["ExecutionPeriod"].asString();
|
||||
if(!dataNode["ElasticRuleStartTime"].isNull())
|
||||
data_.elasticRuleStartTime = dataNode["ElasticRuleStartTime"].asString();
|
||||
if(!dataNode["ClusterClass"].isNull())
|
||||
data_.clusterClass = dataNode["ClusterClass"].asString();
|
||||
|
||||
}
|
||||
|
||||
ModifyElasticRuleResult::Data ModifyElasticRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
81
selectdb/src/model/ModifySecurityIPListRequest.cc
Normal file
81
selectdb/src/model/ModifySecurityIPListRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/selectdb/model/ModifySecurityIPListRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::ModifySecurityIPListRequest;
|
||||
|
||||
ModifySecurityIPListRequest::ModifySecurityIPListRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "ModifySecurityIPList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifySecurityIPListRequest::~ModifySecurityIPListRequest() {}
|
||||
|
||||
std::string ModifySecurityIPListRequest::getModifyMode() const {
|
||||
return modifyMode_;
|
||||
}
|
||||
|
||||
void ModifySecurityIPListRequest::setModifyMode(const std::string &modifyMode) {
|
||||
modifyMode_ = modifyMode;
|
||||
setParameter(std::string("ModifyMode"), modifyMode);
|
||||
}
|
||||
|
||||
long ModifySecurityIPListRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifySecurityIPListRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifySecurityIPListRequest::getGroupName() const {
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void ModifySecurityIPListRequest::setGroupName(const std::string &groupName) {
|
||||
groupName_ = groupName;
|
||||
setParameter(std::string("GroupName"), groupName);
|
||||
}
|
||||
|
||||
std::string ModifySecurityIPListRequest::getSecurityIPList() const {
|
||||
return securityIPList_;
|
||||
}
|
||||
|
||||
void ModifySecurityIPListRequest::setSecurityIPList(const std::string &securityIPList) {
|
||||
securityIPList_ = securityIPList;
|
||||
setParameter(std::string("SecurityIPList"), securityIPList);
|
||||
}
|
||||
|
||||
std::string ModifySecurityIPListRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifySecurityIPListRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ModifySecurityIPListRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifySecurityIPListRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
93
selectdb/src/model/ModifySecurityIPListResult.cc
Normal file
93
selectdb/src/model/ModifySecurityIPListResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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/selectdb/model/ModifySecurityIPListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
ModifySecurityIPListResult::ModifySecurityIPListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifySecurityIPListResult::ModifySecurityIPListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifySecurityIPListResult::~ModifySecurityIPListResult()
|
||||
{}
|
||||
|
||||
void ModifySecurityIPListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["GroupName"].isNull())
|
||||
groupName_ = value["GroupName"].asString();
|
||||
if(!value["SecurityIPType"].isNull())
|
||||
securityIPType_ = value["SecurityIPType"].asString();
|
||||
if(!value["GroupTag"].isNull())
|
||||
groupTag_ = value["GroupTag"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
if(!value["SecurityIPList"].isNull())
|
||||
securityIPList_ = value["SecurityIPList"].asString();
|
||||
if(!value["WhitelistNetType"].isNull())
|
||||
whitelistNetType_ = value["WhitelistNetType"].asString();
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifySecurityIPListResult::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
std::string ModifySecurityIPListResult::getSecurityIPType()const
|
||||
{
|
||||
return securityIPType_;
|
||||
}
|
||||
|
||||
std::string ModifySecurityIPListResult::getGroupTag()const
|
||||
{
|
||||
return groupTag_;
|
||||
}
|
||||
|
||||
long ModifySecurityIPListResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string ModifySecurityIPListResult::getSecurityIPList()const
|
||||
{
|
||||
return securityIPList_;
|
||||
}
|
||||
|
||||
std::string ModifySecurityIPListResult::getWhitelistNetType()const
|
||||
{
|
||||
return whitelistNetType_;
|
||||
}
|
||||
|
||||
std::string ModifySecurityIPListResult::getDBInstanceName()const
|
||||
{
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
63
selectdb/src/model/ReleaseInstancePublicConnectionRequest.cc
Normal file
63
selectdb/src/model/ReleaseInstancePublicConnectionRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/selectdb/model/ReleaseInstancePublicConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::ReleaseInstancePublicConnectionRequest;
|
||||
|
||||
ReleaseInstancePublicConnectionRequest::ReleaseInstancePublicConnectionRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "ReleaseInstancePublicConnection") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ReleaseInstancePublicConnectionRequest::~ReleaseInstancePublicConnectionRequest() {}
|
||||
|
||||
long ReleaseInstancePublicConnectionRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ReleaseInstancePublicConnectionRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ReleaseInstancePublicConnectionRequest::getConnectionString() const {
|
||||
return connectionString_;
|
||||
}
|
||||
|
||||
void ReleaseInstancePublicConnectionRequest::setConnectionString(const std::string &connectionString) {
|
||||
connectionString_ = connectionString;
|
||||
setParameter(std::string("ConnectionString"), connectionString);
|
||||
}
|
||||
|
||||
std::string ReleaseInstancePublicConnectionRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ReleaseInstancePublicConnectionRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ReleaseInstancePublicConnectionRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ReleaseInstancePublicConnectionRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
44
selectdb/src/model/ReleaseInstancePublicConnectionResult.cc
Normal file
44
selectdb/src/model/ReleaseInstancePublicConnectionResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/selectdb/model/ReleaseInstancePublicConnectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
ReleaseInstancePublicConnectionResult::ReleaseInstancePublicConnectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ReleaseInstancePublicConnectionResult::ReleaseInstancePublicConnectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ReleaseInstancePublicConnectionResult::~ReleaseInstancePublicConnectionResult()
|
||||
{}
|
||||
|
||||
void ReleaseInstancePublicConnectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
72
selectdb/src/model/ResetAccountPasswordRequest.cc
Normal file
72
selectdb/src/model/ResetAccountPasswordRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/selectdb/model/ResetAccountPasswordRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::ResetAccountPasswordRequest;
|
||||
|
||||
ResetAccountPasswordRequest::ResetAccountPasswordRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "ResetAccountPassword") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ResetAccountPasswordRequest::~ResetAccountPasswordRequest() {}
|
||||
|
||||
long ResetAccountPasswordRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ResetAccountPasswordRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ResetAccountPasswordRequest::getAccountPassword() const {
|
||||
return accountPassword_;
|
||||
}
|
||||
|
||||
void ResetAccountPasswordRequest::setAccountPassword(const std::string &accountPassword) {
|
||||
accountPassword_ = accountPassword;
|
||||
setParameter(std::string("AccountPassword"), accountPassword);
|
||||
}
|
||||
|
||||
std::string ResetAccountPasswordRequest::getAccountName() const {
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void ResetAccountPasswordRequest::setAccountName(const std::string &accountName) {
|
||||
accountName_ = accountName;
|
||||
setParameter(std::string("AccountName"), accountName);
|
||||
}
|
||||
|
||||
std::string ResetAccountPasswordRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ResetAccountPasswordRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ResetAccountPasswordRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ResetAccountPasswordRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
44
selectdb/src/model/ResetAccountPasswordResult.cc
Normal file
44
selectdb/src/model/ResetAccountPasswordResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/selectdb/model/ResetAccountPasswordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
ResetAccountPasswordResult::ResetAccountPasswordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ResetAccountPasswordResult::ResetAccountPasswordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ResetAccountPasswordResult::~ResetAccountPasswordResult()
|
||||
{}
|
||||
|
||||
void ResetAccountPasswordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
72
selectdb/src/model/RestartDBClusterRequest.cc
Normal file
72
selectdb/src/model/RestartDBClusterRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/selectdb/model/RestartDBClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::RestartDBClusterRequest;
|
||||
|
||||
RestartDBClusterRequest::RestartDBClusterRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "RestartDBCluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RestartDBClusterRequest::~RestartDBClusterRequest() {}
|
||||
|
||||
long RestartDBClusterRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void RestartDBClusterRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string RestartDBClusterRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void RestartDBClusterRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
std::string RestartDBClusterRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void RestartDBClusterRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setBodyParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string RestartDBClusterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void RestartDBClusterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string RestartDBClusterRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void RestartDBClusterRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setBodyParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
54
selectdb/src/model/RestartDBClusterResult.cc
Normal file
54
selectdb/src/model/RestartDBClusterResult.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/selectdb/model/RestartDBClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
RestartDBClusterResult::RestartDBClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RestartDBClusterResult::RestartDBClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RestartDBClusterResult::~RestartDBClusterResult()
|
||||
{}
|
||||
|
||||
void RestartDBClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DBInstanceId"].isNull())
|
||||
data_.dBInstanceId = dataNode["DBInstanceId"].asString();
|
||||
if(!dataNode["DBClusterId"].isNull())
|
||||
data_.dBClusterId = dataNode["DBClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
RestartDBClusterResult::Data RestartDBClusterResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
63
selectdb/src/model/StartBEClusterRequest.cc
Normal file
63
selectdb/src/model/StartBEClusterRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/selectdb/model/StartBEClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::StartBEClusterRequest;
|
||||
|
||||
StartBEClusterRequest::StartBEClusterRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "StartBECluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartBEClusterRequest::~StartBEClusterRequest() {}
|
||||
|
||||
long StartBEClusterRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void StartBEClusterRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string StartBEClusterRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void StartBEClusterRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
std::string StartBEClusterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void StartBEClusterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string StartBEClusterRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void StartBEClusterRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
44
selectdb/src/model/StartBEClusterResult.cc
Normal file
44
selectdb/src/model/StartBEClusterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/selectdb/model/StartBEClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
StartBEClusterResult::StartBEClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartBEClusterResult::StartBEClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartBEClusterResult::~StartBEClusterResult()
|
||||
{}
|
||||
|
||||
void StartBEClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
selectdb/src/model/StopBEClusterRequest.cc
Normal file
63
selectdb/src/model/StopBEClusterRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/selectdb/model/StopBEClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::StopBEClusterRequest;
|
||||
|
||||
StopBEClusterRequest::StopBEClusterRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "StopBECluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopBEClusterRequest::~StopBEClusterRequest() {}
|
||||
|
||||
long StopBEClusterRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void StopBEClusterRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string StopBEClusterRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void StopBEClusterRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
std::string StopBEClusterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void StopBEClusterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string StopBEClusterRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void StopBEClusterRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
44
selectdb/src/model/StopBEClusterResult.cc
Normal file
44
selectdb/src/model/StopBEClusterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/selectdb/model/StopBEClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
StopBEClusterResult::StopBEClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopBEClusterResult::StopBEClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopBEClusterResult::~StopBEClusterResult()
|
||||
{}
|
||||
|
||||
void StopBEClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
72
selectdb/src/model/UpgradeDBInstanceEngineVersionRequest.cc
Normal file
72
selectdb/src/model/UpgradeDBInstanceEngineVersionRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/selectdb/model/UpgradeDBInstanceEngineVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Selectdb::Model::UpgradeDBInstanceEngineVersionRequest;
|
||||
|
||||
UpgradeDBInstanceEngineVersionRequest::UpgradeDBInstanceEngineVersionRequest()
|
||||
: RpcServiceRequest("selectdb", "2023-05-22", "UpgradeDBInstanceEngineVersion") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpgradeDBInstanceEngineVersionRequest::~UpgradeDBInstanceEngineVersionRequest() {}
|
||||
|
||||
long UpgradeDBInstanceEngineVersionRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UpgradeDBInstanceEngineVersionRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UpgradeDBInstanceEngineVersionRequest::getEngineVersion() const {
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void UpgradeDBInstanceEngineVersionRequest::setEngineVersion(const std::string &engineVersion) {
|
||||
engineVersion_ = engineVersion;
|
||||
setParameter(std::string("EngineVersion"), engineVersion);
|
||||
}
|
||||
|
||||
std::string UpgradeDBInstanceEngineVersionRequest::getSwitchTimeMode() const {
|
||||
return switchTimeMode_;
|
||||
}
|
||||
|
||||
void UpgradeDBInstanceEngineVersionRequest::setSwitchTimeMode(const std::string &switchTimeMode) {
|
||||
switchTimeMode_ = switchTimeMode;
|
||||
setParameter(std::string("SwitchTimeMode"), switchTimeMode);
|
||||
}
|
||||
|
||||
std::string UpgradeDBInstanceEngineVersionRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpgradeDBInstanceEngineVersionRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string UpgradeDBInstanceEngineVersionRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void UpgradeDBInstanceEngineVersionRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
44
selectdb/src/model/UpgradeDBInstanceEngineVersionResult.cc
Normal file
44
selectdb/src/model/UpgradeDBInstanceEngineVersionResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/selectdb/model/UpgradeDBInstanceEngineVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Selectdb;
|
||||
using namespace AlibabaCloud::Selectdb::Model;
|
||||
|
||||
UpgradeDBInstanceEngineVersionResult::UpgradeDBInstanceEngineVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpgradeDBInstanceEngineVersionResult::UpgradeDBInstanceEngineVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpgradeDBInstanceEngineVersionResult::~UpgradeDBInstanceEngineVersionResult()
|
||||
{}
|
||||
|
||||
void UpgradeDBInstanceEngineVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user