GPDB SDK Auto Released By shenshi,Version:1.34.20
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
71
gpdb/src/model/AddBuDBInstanceRelationRequest.cc
Normal file
71
gpdb/src/model/AddBuDBInstanceRelationRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/gpdb/model/AddBuDBInstanceRelationRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::AddBuDBInstanceRelationRequest;
|
||||
|
||||
AddBuDBInstanceRelationRequest::AddBuDBInstanceRelationRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "AddBuDBInstanceRelation")
|
||||
{}
|
||||
|
||||
AddBuDBInstanceRelationRequest::~AddBuDBInstanceRelationRequest()
|
||||
{}
|
||||
|
||||
std::string AddBuDBInstanceRelationRequest::getBusinessUnit()const
|
||||
{
|
||||
return businessUnit_;
|
||||
}
|
||||
|
||||
void AddBuDBInstanceRelationRequest::setBusinessUnit(const std::string& businessUnit)
|
||||
{
|
||||
businessUnit_ = businessUnit;
|
||||
setParameter("BusinessUnit", businessUnit);
|
||||
}
|
||||
|
||||
std::string AddBuDBInstanceRelationRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void AddBuDBInstanceRelationRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long AddBuDBInstanceRelationRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AddBuDBInstanceRelationRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AddBuDBInstanceRelationRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddBuDBInstanceRelationRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
59
gpdb/src/model/AddBuDBInstanceRelationResult.cc
Normal file
59
gpdb/src/model/AddBuDBInstanceRelationResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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/gpdb/model/AddBuDBInstanceRelationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
AddBuDBInstanceRelationResult::AddBuDBInstanceRelationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddBuDBInstanceRelationResult::AddBuDBInstanceRelationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddBuDBInstanceRelationResult::~AddBuDBInstanceRelationResult()
|
||||
{}
|
||||
|
||||
void AddBuDBInstanceRelationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BusinessUnit"].isNull())
|
||||
businessUnit_ = value["BusinessUnit"].asString();
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddBuDBInstanceRelationResult::getBusinessUnit()const
|
||||
{
|
||||
return businessUnit_;
|
||||
}
|
||||
|
||||
std::string AddBuDBInstanceRelationResult::getDBInstanceName()const
|
||||
{
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
104
gpdb/src/model/AllocateInstancePublicConnectionRequest.cc
Normal file
104
gpdb/src/model/AllocateInstancePublicConnectionRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/gpdb/model/AllocateInstancePublicConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::AllocateInstancePublicConnectionRequest;
|
||||
|
||||
AllocateInstancePublicConnectionRequest::AllocateInstancePublicConnectionRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "AllocateInstancePublicConnection")
|
||||
{}
|
||||
|
||||
AllocateInstancePublicConnectionRequest::~AllocateInstancePublicConnectionRequest()
|
||||
{}
|
||||
|
||||
long AllocateInstancePublicConnectionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AllocateInstancePublicConnectionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AllocateInstancePublicConnectionRequest::getConnectionStringPrefix()const
|
||||
{
|
||||
return connectionStringPrefix_;
|
||||
}
|
||||
|
||||
void AllocateInstancePublicConnectionRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix)
|
||||
{
|
||||
connectionStringPrefix_ = connectionStringPrefix;
|
||||
setParameter("ConnectionStringPrefix", connectionStringPrefix);
|
||||
}
|
||||
|
||||
std::string AllocateInstancePublicConnectionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void AllocateInstancePublicConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AllocateInstancePublicConnectionRequest::getPort()const
|
||||
{
|
||||
return port_;
|
||||
}
|
||||
|
||||
void AllocateInstancePublicConnectionRequest::setPort(const std::string& port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", port);
|
||||
}
|
||||
|
||||
std::string AllocateInstancePublicConnectionRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void AllocateInstancePublicConnectionRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long AllocateInstancePublicConnectionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AllocateInstancePublicConnectionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AllocateInstancePublicConnectionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AllocateInstancePublicConnectionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/AllocateInstancePublicConnectionResult.cc
Normal file
45
gpdb/src/model/AllocateInstancePublicConnectionResult.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/gpdb/model/AllocateInstancePublicConnectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::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());
|
||||
|
||||
}
|
||||
|
||||
104
gpdb/src/model/CreateAccountRequest.cc
Normal file
104
gpdb/src/model/CreateAccountRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/gpdb/model/CreateAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::CreateAccountRequest;
|
||||
|
||||
CreateAccountRequest::CreateAccountRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "CreateAccount")
|
||||
{}
|
||||
|
||||
CreateAccountRequest::~CreateAccountRequest()
|
||||
{}
|
||||
|
||||
std::string CreateAccountRequest::getAccountPassword()const
|
||||
{
|
||||
return accountPassword_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setAccountPassword(const std::string& accountPassword)
|
||||
{
|
||||
accountPassword_ = accountPassword;
|
||||
setParameter("AccountPassword", accountPassword);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getAccountName()const
|
||||
{
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setAccountName(const std::string& accountName)
|
||||
{
|
||||
accountName_ = accountName;
|
||||
setParameter("AccountName", accountName);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getDatabaseName()const
|
||||
{
|
||||
return databaseName_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setDatabaseName(const std::string& databaseName)
|
||||
{
|
||||
databaseName_ = databaseName;
|
||||
setParameter("DatabaseName", databaseName);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long CreateAccountRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getAccountDescription()const
|
||||
{
|
||||
return accountDescription_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setAccountDescription(const std::string& accountDescription)
|
||||
{
|
||||
accountDescription_ = accountDescription;
|
||||
setParameter("AccountDescription", accountDescription);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/CreateAccountResult.cc
Normal file
45
gpdb/src/model/CreateAccountResult.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/gpdb/model/CreateAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
CreateAccountResult::CreateAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAccountResult::CreateAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAccountResult::~CreateAccountResult()
|
||||
{}
|
||||
|
||||
void CreateAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
225
gpdb/src/model/CreateDBInstanceRequest.cc
Normal file
225
gpdb/src/model/CreateDBInstanceRequest.cc
Normal file
@@ -0,0 +1,225 @@
|
||||
/*
|
||||
* 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/gpdb/model/CreateDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::CreateDBInstanceRequest;
|
||||
|
||||
CreateDBInstanceRequest::CreateDBInstanceRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "CreateDBInstance")
|
||||
{}
|
||||
|
||||
CreateDBInstanceRequest::~CreateDBInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDBInstanceRequest::getDBInstanceGroupCount()const
|
||||
{
|
||||
return dBInstanceGroupCount_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setDBInstanceGroupCount(const std::string& dBInstanceGroupCount)
|
||||
{
|
||||
dBInstanceGroupCount_ = dBInstanceGroupCount;
|
||||
setParameter("DBInstanceGroupCount", dBInstanceGroupCount);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setPeriod(const std::string& period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", period);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setEngineVersion(const std::string& engineVersion)
|
||||
{
|
||||
engineVersion_ = engineVersion;
|
||||
setParameter("EngineVersion", engineVersion);
|
||||
}
|
||||
|
||||
long CreateDBInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getUsedTime()const
|
||||
{
|
||||
return usedTime_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setUsedTime(const std::string& usedTime)
|
||||
{
|
||||
usedTime_ = usedTime;
|
||||
setParameter("UsedTime", usedTime);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getDBInstanceClass()const
|
||||
{
|
||||
return dBInstanceClass_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setDBInstanceClass(const std::string& dBInstanceClass)
|
||||
{
|
||||
dBInstanceClass_ = dBInstanceClass;
|
||||
setParameter("DBInstanceClass", dBInstanceClass);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getSecurityIPList()const
|
||||
{
|
||||
return securityIPList_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setSecurityIPList(const std::string& securityIPList)
|
||||
{
|
||||
securityIPList_ = securityIPList;
|
||||
setParameter("SecurityIPList", securityIPList);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getPrivateIpAddress()const
|
||||
{
|
||||
return privateIpAddress_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setPrivateIpAddress(const std::string& privateIpAddress)
|
||||
{
|
||||
privateIpAddress_ = privateIpAddress;
|
||||
setParameter("PrivateIpAddress", privateIpAddress);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getVPCId()const
|
||||
{
|
||||
return vPCId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setVPCId(const std::string& vPCId)
|
||||
{
|
||||
vPCId_ = vPCId;
|
||||
setParameter("VPCId", vPCId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getDBInstanceDescription()const
|
||||
{
|
||||
return dBInstanceDescription_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription)
|
||||
{
|
||||
dBInstanceDescription_ = dBInstanceDescription;
|
||||
setParameter("DBInstanceDescription", dBInstanceDescription);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setParameter("PayType", payType);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getInstanceNetworkType()const
|
||||
{
|
||||
return instanceNetworkType_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setInstanceNetworkType(const std::string& instanceNetworkType)
|
||||
{
|
||||
instanceNetworkType_ = instanceNetworkType;
|
||||
setParameter("InstanceNetworkType", instanceNetworkType);
|
||||
}
|
||||
|
||||
73
gpdb/src/model/CreateDBInstanceResult.cc
Normal file
73
gpdb/src/model/CreateDBInstanceResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/gpdb/model/CreateDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::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());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["ConnectionString"].isNull())
|
||||
connectionString_ = value["ConnectionString"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
port_ = value["Port"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceResult::getPort()const
|
||||
{
|
||||
return port_;
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceResult::getConnectionString()const
|
||||
{
|
||||
return connectionString_;
|
||||
}
|
||||
|
||||
71
gpdb/src/model/DeleteDBInstanceRequest.cc
Normal file
71
gpdb/src/model/DeleteDBInstanceRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/gpdb/model/DeleteDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DeleteDBInstanceRequest;
|
||||
|
||||
DeleteDBInstanceRequest::DeleteDBInstanceRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DeleteDBInstance")
|
||||
{}
|
||||
|
||||
DeleteDBInstanceRequest::~DeleteDBInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDBInstanceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteDBInstanceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DeleteDBInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteDBInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/DeleteDBInstanceResult.cc
Normal file
45
gpdb/src/model/DeleteDBInstanceResult.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/gpdb/model/DeleteDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::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());
|
||||
|
||||
}
|
||||
|
||||
60
gpdb/src/model/DeleteDatabaseRequest.cc
Normal file
60
gpdb/src/model/DeleteDatabaseRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/gpdb/model/DeleteDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DeleteDatabaseRequest;
|
||||
|
||||
DeleteDatabaseRequest::DeleteDatabaseRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DeleteDatabase")
|
||||
{}
|
||||
|
||||
DeleteDatabaseRequest::~DeleteDatabaseRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDatabaseRequest::getDBName()const
|
||||
{
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
void DeleteDatabaseRequest::setDBName(const std::string& dBName)
|
||||
{
|
||||
dBName_ = dBName;
|
||||
setParameter("DBName", dBName);
|
||||
}
|
||||
|
||||
std::string DeleteDatabaseRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteDatabaseRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteDatabaseRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteDatabaseRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/DeleteDatabaseResult.cc
Normal file
45
gpdb/src/model/DeleteDatabaseResult.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/gpdb/model/DeleteDatabaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
DeleteDatabaseResult::DeleteDatabaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDatabaseResult::DeleteDatabaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDatabaseResult::~DeleteDatabaseResult()
|
||||
{}
|
||||
|
||||
void DeleteDatabaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
60
gpdb/src/model/DescribeAccountsRequest.cc
Normal file
60
gpdb/src/model/DescribeAccountsRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeAccountsRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DescribeAccountsRequest;
|
||||
|
||||
DescribeAccountsRequest::DescribeAccountsRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DescribeAccounts")
|
||||
{}
|
||||
|
||||
DescribeAccountsRequest::~DescribeAccountsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAccountsRequest::getAccountName()const
|
||||
{
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void DescribeAccountsRequest::setAccountName(const std::string& accountName)
|
||||
{
|
||||
accountName_ = accountName;
|
||||
setParameter("AccountName", accountName);
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeAccountsRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAccountsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
64
gpdb/src/model/DescribeAccountsResult.cc
Normal file
64
gpdb/src/model/DescribeAccountsResult.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeAccountsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
DescribeAccountsResult::DescribeAccountsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAccountsResult::~DescribeAccountsResult()
|
||||
{}
|
||||
|
||||
void DescribeAccountsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAccounts = value["Accounts"]["DBInstanceAccount"];
|
||||
for (auto value : allAccounts)
|
||||
{
|
||||
DBInstanceAccount accountsObject;
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
accountsObject.dBInstanceId = value["DBInstanceId"].asString();
|
||||
if(!value["AccountName"].isNull())
|
||||
accountsObject.accountName = value["AccountName"].asString();
|
||||
if(!value["AccountStatus"].isNull())
|
||||
accountsObject.accountStatus = value["AccountStatus"].asString();
|
||||
if(!value["AccountDescription"].isNull())
|
||||
accountsObject.accountDescription = value["AccountDescription"].asString();
|
||||
accounts_.push_back(accountsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAccountsResult::DBInstanceAccount> DescribeAccountsResult::getAccounts()const
|
||||
{
|
||||
return accounts_;
|
||||
}
|
||||
|
||||
60
gpdb/src/model/DescribeDBInstanceAttributeRequest.cc
Normal file
60
gpdb/src/model/DescribeDBInstanceAttributeRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeDBInstanceAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DescribeDBInstanceAttributeRequest;
|
||||
|
||||
DescribeDBInstanceAttributeRequest::DescribeDBInstanceAttributeRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstanceAttribute")
|
||||
{}
|
||||
|
||||
DescribeDBInstanceAttributeRequest::~DescribeDBInstanceAttributeRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDBInstanceAttributeRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceAttributeRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DescribeDBInstanceAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
130
gpdb/src/model/DescribeDBInstanceAttributeResult.cc
Normal file
130
gpdb/src/model/DescribeDBInstanceAttributeResult.cc
Normal file
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeDBInstanceAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::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 allItems = value["Items"]["DBInstanceAttribute"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
DBInstanceAttribute itemsObject;
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
itemsObject.dBInstanceId = value["DBInstanceId"].asString();
|
||||
if(!value["PayType"].isNull())
|
||||
itemsObject.payType = value["PayType"].asString();
|
||||
if(!value["DBInstanceClassType"].isNull())
|
||||
itemsObject.dBInstanceClassType = value["DBInstanceClassType"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
itemsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["ConnectionString"].isNull())
|
||||
itemsObject.connectionString = value["ConnectionString"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
itemsObject.port = value["Port"].asString();
|
||||
if(!value["Engine"].isNull())
|
||||
itemsObject.engine = value["Engine"].asString();
|
||||
if(!value["EngineVersion"].isNull())
|
||||
itemsObject.engineVersion = value["EngineVersion"].asString();
|
||||
if(!value["DBInstanceClass"].isNull())
|
||||
itemsObject.dBInstanceClass = value["DBInstanceClass"].asString();
|
||||
if(!value["DBInstanceCpuCores"].isNull())
|
||||
itemsObject.dBInstanceCpuCores = std::stoi(value["DBInstanceCpuCores"].asString());
|
||||
if(!value["DBInstanceMemory"].isNull())
|
||||
itemsObject.dBInstanceMemory = std::stol(value["DBInstanceMemory"].asString());
|
||||
if(!value["DBInstanceStorage"].isNull())
|
||||
itemsObject.dBInstanceStorage = std::stol(value["DBInstanceStorage"].asString());
|
||||
if(!value["DBInstanceDiskMBPS"].isNull())
|
||||
itemsObject.dBInstanceDiskMBPS = std::stol(value["DBInstanceDiskMBPS"].asString());
|
||||
if(!value["HostType"].isNull())
|
||||
itemsObject.hostType = value["HostType"].asString();
|
||||
if(!value["DBInstanceGroupCount"].isNull())
|
||||
itemsObject.dBInstanceGroupCount = value["DBInstanceGroupCount"].asString();
|
||||
if(!value["DBInstanceNetType"].isNull())
|
||||
itemsObject.dBInstanceNetType = value["DBInstanceNetType"].asString();
|
||||
if(!value["DBInstanceStatus"].isNull())
|
||||
itemsObject.dBInstanceStatus = value["DBInstanceStatus"].asString();
|
||||
if(!value["DBInstanceDescription"].isNull())
|
||||
itemsObject.dBInstanceDescription = value["DBInstanceDescription"].asString();
|
||||
if(!value["LockMode"].isNull())
|
||||
itemsObject.lockMode = value["LockMode"].asString();
|
||||
if(!value["LockReason"].isNull())
|
||||
itemsObject.lockReason = value["LockReason"].asString();
|
||||
if(!value["ReadDelayTime"].isNull())
|
||||
itemsObject.readDelayTime = value["ReadDelayTime"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
itemsObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
itemsObject.expireTime = value["ExpireTime"].asString();
|
||||
if(!value["MaintainStartTime"].isNull())
|
||||
itemsObject.maintainStartTime = value["MaintainStartTime"].asString();
|
||||
if(!value["MaintainEndTime"].isNull())
|
||||
itemsObject.maintainEndTime = value["MaintainEndTime"].asString();
|
||||
if(!value["AvailabilityValue"].isNull())
|
||||
itemsObject.availabilityValue = value["AvailabilityValue"].asString();
|
||||
if(!value["MaxConnections"].isNull())
|
||||
itemsObject.maxConnections = std::stoi(value["MaxConnections"].asString());
|
||||
if(!value["SecurityIPList"].isNull())
|
||||
itemsObject.securityIPList = value["SecurityIPList"].asString();
|
||||
if(!value["ZoneId"].isNull())
|
||||
itemsObject.zoneId = value["ZoneId"].asString();
|
||||
if(!value["InstanceNetworkType"].isNull())
|
||||
itemsObject.instanceNetworkType = value["InstanceNetworkType"].asString();
|
||||
if(!value["VpcId"].isNull())
|
||||
itemsObject.vpcId = value["VpcId"].asString();
|
||||
if(!value["ConnectionMode"].isNull())
|
||||
itemsObject.connectionMode = value["ConnectionMode"].asString();
|
||||
auto allTags = value["Tags"]["Tag"];
|
||||
for (auto value : allTags)
|
||||
{
|
||||
DBInstanceAttribute::Tag tagsObject;
|
||||
if(!value["Key"].isNull())
|
||||
tagsObject.key = value["Key"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
tagsObject.value = value["Value"].asString();
|
||||
itemsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstanceAttributeResult::DBInstanceAttribute> DescribeDBInstanceAttributeResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
49
gpdb/src/model/DescribeDBInstanceIPArrayListRequest.cc
Normal file
49
gpdb/src/model/DescribeDBInstanceIPArrayListRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeDBInstanceIPArrayListRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DescribeDBInstanceIPArrayListRequest;
|
||||
|
||||
DescribeDBInstanceIPArrayListRequest::DescribeDBInstanceIPArrayListRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstanceIPArrayList")
|
||||
{}
|
||||
|
||||
DescribeDBInstanceIPArrayListRequest::~DescribeDBInstanceIPArrayListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDBInstanceIPArrayListRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceIPArrayListRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceIPArrayListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceIPArrayListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
62
gpdb/src/model/DescribeDBInstanceIPArrayListResult.cc
Normal file
62
gpdb/src/model/DescribeDBInstanceIPArrayListResult.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/gpdb/model/DescribeDBInstanceIPArrayListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
DescribeDBInstanceIPArrayListResult::DescribeDBInstanceIPArrayListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBInstanceIPArrayListResult::DescribeDBInstanceIPArrayListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBInstanceIPArrayListResult::~DescribeDBInstanceIPArrayListResult()
|
||||
{}
|
||||
|
||||
void DescribeDBInstanceIPArrayListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["DBInstanceIPArray"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
DBInstanceIPArray itemsObject;
|
||||
if(!value["DBInstanceIPArrayName"].isNull())
|
||||
itemsObject.dBInstanceIPArrayName = value["DBInstanceIPArrayName"].asString();
|
||||
if(!value["DBInstanceIPArrayAttribute"].isNull())
|
||||
itemsObject.dBInstanceIPArrayAttribute = value["DBInstanceIPArrayAttribute"].asString();
|
||||
if(!value["SecurityIPList"].isNull())
|
||||
itemsObject.securityIPList = value["SecurityIPList"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstanceIPArrayListResult::DBInstanceIPArray> DescribeDBInstanceIPArrayListResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
49
gpdb/src/model/DescribeDBInstanceNetInfoRequest.cc
Normal file
49
gpdb/src/model/DescribeDBInstanceNetInfoRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeDBInstanceNetInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DescribeDBInstanceNetInfoRequest;
|
||||
|
||||
DescribeDBInstanceNetInfoRequest::DescribeDBInstanceNetInfoRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstanceNetInfo")
|
||||
{}
|
||||
|
||||
DescribeDBInstanceNetInfoRequest::~DescribeDBInstanceNetInfoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDBInstanceNetInfoRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceNetInfoRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceNetInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceNetInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
75
gpdb/src/model/DescribeDBInstanceNetInfoResult.cc
Normal file
75
gpdb/src/model/DescribeDBInstanceNetInfoResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeDBInstanceNetInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::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 allDBInstanceNetInfos = value["DBInstanceNetInfos"]["DBInstanceNetInfo"];
|
||||
for (auto value : allDBInstanceNetInfos)
|
||||
{
|
||||
DBInstanceNetInfo dBInstanceNetInfosObject;
|
||||
if(!value["ConnectionString"].isNull())
|
||||
dBInstanceNetInfosObject.connectionString = value["ConnectionString"].asString();
|
||||
if(!value["IPAddress"].isNull())
|
||||
dBInstanceNetInfosObject.iPAddress = value["IPAddress"].asString();
|
||||
if(!value["IPType"].isNull())
|
||||
dBInstanceNetInfosObject.iPType = value["IPType"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
dBInstanceNetInfosObject.port = value["Port"].asString();
|
||||
if(!value["VPCId"].isNull())
|
||||
dBInstanceNetInfosObject.vPCId = value["VPCId"].asString();
|
||||
if(!value["VSwitchId"].isNull())
|
||||
dBInstanceNetInfosObject.vSwitchId = value["VSwitchId"].asString();
|
||||
dBInstanceNetInfos_.push_back(dBInstanceNetInfosObject);
|
||||
}
|
||||
if(!value["InstanceNetworkType"].isNull())
|
||||
instanceNetworkType_ = value["InstanceNetworkType"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstanceNetInfoResult::DBInstanceNetInfo> DescribeDBInstanceNetInfoResult::getDBInstanceNetInfos()const
|
||||
{
|
||||
return dBInstanceNetInfos_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceNetInfoResult::getInstanceNetworkType()const
|
||||
{
|
||||
return instanceNetworkType_;
|
||||
}
|
||||
|
||||
82
gpdb/src/model/DescribeDBInstancePerformanceRequest.cc
Normal file
82
gpdb/src/model/DescribeDBInstancePerformanceRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeDBInstancePerformanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DescribeDBInstancePerformanceRequest;
|
||||
|
||||
DescribeDBInstancePerformanceRequest::DescribeDBInstancePerformanceRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstancePerformance")
|
||||
{}
|
||||
|
||||
DescribeDBInstancePerformanceRequest::~DescribeDBInstancePerformanceRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getKey()const
|
||||
{
|
||||
return key_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setParameter("Key", key);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
81
gpdb/src/model/DescribeDBInstancePerformanceResult.cc
Normal file
81
gpdb/src/model/DescribeDBInstancePerformanceResult.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/gpdb/model/DescribeDBInstancePerformanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
DescribeDBInstancePerformanceResult::DescribeDBInstancePerformanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBInstancePerformanceResult::DescribeDBInstancePerformanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBInstancePerformanceResult::~DescribeDBInstancePerformanceResult()
|
||||
{}
|
||||
|
||||
void DescribeDBInstancePerformanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPerformanceKeys = value["PerformanceKeys"]["PerformanceKey"];
|
||||
for (const auto &item : allPerformanceKeys)
|
||||
performanceKeys_.push_back(item.asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeDBInstancePerformanceResult::getPerformanceKeys()const
|
||||
{
|
||||
return performanceKeys_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceResult::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
132
gpdb/src/model/DescribeDBInstancesRequest.cc
Normal file
132
gpdb/src/model/DescribeDBInstancesRequest.cc
Normal file
@@ -0,0 +1,132 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeDBInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DescribeDBInstancesRequest;
|
||||
|
||||
DescribeDBInstancesRequest::DescribeDBInstancesRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstances")
|
||||
{}
|
||||
|
||||
DescribeDBInstancesRequest::~DescribeDBInstancesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getDBInstanceIds()const
|
||||
{
|
||||
return dBInstanceIds_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setDBInstanceIds(const std::string& dBInstanceIds)
|
||||
{
|
||||
dBInstanceIds_ = dBInstanceIds;
|
||||
setParameter("DBInstanceIds", dBInstanceIds);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeDBInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getDBInstanceDescription()const
|
||||
{
|
||||
return dBInstanceDescription_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setDBInstanceDescription(const std::string& dBInstanceDescription)
|
||||
{
|
||||
dBInstanceDescription_ = dBInstanceDescription;
|
||||
setParameter("DBInstanceDescription", dBInstanceDescription);
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstancesRequest::Tag> DescribeDBInstancesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= tag.size(); i++) {
|
||||
auto obj = tag.at(i);
|
||||
std::string str ="Tag."+ std::to_string(i);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
long DescribeDBInstancesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getInstanceNetworkType()const
|
||||
{
|
||||
return instanceNetworkType_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setInstanceNetworkType(const std::string& instanceNetworkType)
|
||||
{
|
||||
instanceNetworkType_ = instanceNetworkType;
|
||||
setParameter("InstanceNetworkType", instanceNetworkType);
|
||||
}
|
||||
|
||||
int DescribeDBInstancesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
121
gpdb/src/model/DescribeDBInstancesResult.cc
Normal file
121
gpdb/src/model/DescribeDBInstancesResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeDBInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::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 allItems = value["Items"]["DBInstance"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
DBInstance itemsObject;
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
itemsObject.dBInstanceId = value["DBInstanceId"].asString();
|
||||
if(!value["DBInstanceDescription"].isNull())
|
||||
itemsObject.dBInstanceDescription = value["DBInstanceDescription"].asString();
|
||||
if(!value["PayType"].isNull())
|
||||
itemsObject.payType = value["PayType"].asString();
|
||||
if(!value["InstanceNetworkType"].isNull())
|
||||
itemsObject.instanceNetworkType = value["InstanceNetworkType"].asString();
|
||||
if(!value["ConnectionMode"].isNull())
|
||||
itemsObject.connectionMode = value["ConnectionMode"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
itemsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["ZoneId"].isNull())
|
||||
itemsObject.zoneId = value["ZoneId"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
itemsObject.expireTime = value["ExpireTime"].asString();
|
||||
if(!value["DBInstanceStatus"].isNull())
|
||||
itemsObject.dBInstanceStatus = value["DBInstanceStatus"].asString();
|
||||
if(!value["Engine"].isNull())
|
||||
itemsObject.engine = value["Engine"].asString();
|
||||
if(!value["EngineVersion"].isNull())
|
||||
itemsObject.engineVersion = value["EngineVersion"].asString();
|
||||
if(!value["DBInstanceNetType"].isNull())
|
||||
itemsObject.dBInstanceNetType = value["DBInstanceNetType"].asString();
|
||||
if(!value["LockMode"].isNull())
|
||||
itemsObject.lockMode = value["LockMode"].asString();
|
||||
if(!value["LockReason"].isNull())
|
||||
itemsObject.lockReason = value["LockReason"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
itemsObject.createTime = value["CreateTime"].asString();
|
||||
if(!value["VpcId"].isNull())
|
||||
itemsObject.vpcId = value["VpcId"].asString();
|
||||
if(!value["VSwitchId"].isNull())
|
||||
itemsObject.vSwitchId = value["VSwitchId"].asString();
|
||||
auto allTags = value["Tags"]["Tag"];
|
||||
for (auto value : allTags)
|
||||
{
|
||||
DBInstance::Tag tagsObject;
|
||||
if(!value["Key"].isNull())
|
||||
tagsObject.key = value["Key"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
tagsObject.value = value["Value"].asString();
|
||||
itemsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeDBInstancesResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeDBInstancesResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeDBInstancesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstancesResult::DBInstance> DescribeDBInstancesResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
126
gpdb/src/model/DescribeRdsVSwitchsRequest.cc
Normal file
126
gpdb/src/model/DescribeRdsVSwitchsRequest.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/gpdb/model/DescribeRdsVSwitchsRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DescribeRdsVSwitchsRequest;
|
||||
|
||||
DescribeRdsVSwitchsRequest::DescribeRdsVSwitchsRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DescribeRdsVSwitchs")
|
||||
{}
|
||||
|
||||
DescribeRdsVSwitchsRequest::~DescribeRdsVSwitchsRequest()
|
||||
{}
|
||||
|
||||
long DescribeRdsVSwitchsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRdsVSwitchsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVSwitchsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVSwitchsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVSwitchsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVSwitchsRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVSwitchsRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
long DescribeRdsVSwitchsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRdsVSwitchsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
79
gpdb/src/model/DescribeRdsVSwitchsResult.cc
Normal file
79
gpdb/src/model/DescribeRdsVSwitchsResult.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/gpdb/model/DescribeRdsVSwitchsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
DescribeRdsVSwitchsResult::DescribeRdsVSwitchsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRdsVSwitchsResult::DescribeRdsVSwitchsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRdsVSwitchsResult::~DescribeRdsVSwitchsResult()
|
||||
{}
|
||||
|
||||
void DescribeRdsVSwitchsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto vSwitchesNode = value["VSwitches"];
|
||||
auto allVSwitch = value["VSwitch"]["VSwitchItem"];
|
||||
for (auto value : allVSwitch)
|
||||
{
|
||||
VSwitches::VSwitchItem vSwitchItemObject;
|
||||
if(!value["VSwitchId"].isNull())
|
||||
vSwitchItemObject.vSwitchId = value["VSwitchId"].asString();
|
||||
if(!value["VSwitchName"].isNull())
|
||||
vSwitchItemObject.vSwitchName = value["VSwitchName"].asString();
|
||||
if(!value["IzNo"].isNull())
|
||||
vSwitchItemObject.izNo = value["IzNo"].asString();
|
||||
if(!value["Bid"].isNull())
|
||||
vSwitchItemObject.bid = value["Bid"].asString();
|
||||
if(!value["AliUid"].isNull())
|
||||
vSwitchItemObject.aliUid = value["AliUid"].asString();
|
||||
if(!value["RegionNo"].isNull())
|
||||
vSwitchItemObject.regionNo = value["RegionNo"].asString();
|
||||
if(!value["CidrBlock"].isNull())
|
||||
vSwitchItemObject.cidrBlock = value["CidrBlock"].asString();
|
||||
if(!value["IsDefault"].isNull())
|
||||
vSwitchItemObject.isDefault = value["IsDefault"].asString() == "true";
|
||||
if(!value["Status"].isNull())
|
||||
vSwitchItemObject.status = value["Status"].asString();
|
||||
if(!value["GmtCreate"].isNull())
|
||||
vSwitchItemObject.gmtCreate = value["GmtCreate"].asString();
|
||||
if(!value["GmtModified"].isNull())
|
||||
vSwitchItemObject.gmtModified = value["GmtModified"].asString();
|
||||
vSwitches_.vSwitch.push_back(vSwitchItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeRdsVSwitchsResult::VSwitches DescribeRdsVSwitchsResult::getVSwitches()const
|
||||
{
|
||||
return vSwitches_;
|
||||
}
|
||||
|
||||
115
gpdb/src/model/DescribeRdsVpcsRequest.cc
Normal file
115
gpdb/src/model/DescribeRdsVpcsRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeRdsVpcsRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DescribeRdsVpcsRequest;
|
||||
|
||||
DescribeRdsVpcsRequest::DescribeRdsVpcsRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DescribeRdsVpcs")
|
||||
{}
|
||||
|
||||
DescribeRdsVpcsRequest::~DescribeRdsVpcsRequest()
|
||||
{}
|
||||
|
||||
long DescribeRdsVpcsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRdsVpcsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVpcsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVpcsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVpcsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVpcsRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
long DescribeRdsVpcsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRdsVpcsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
99
gpdb/src/model/DescribeRdsVpcsResult.cc
Normal file
99
gpdb/src/model/DescribeRdsVpcsResult.cc
Normal file
@@ -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/gpdb/model/DescribeRdsVpcsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
DescribeRdsVpcsResult::DescribeRdsVpcsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRdsVpcsResult::DescribeRdsVpcsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRdsVpcsResult::~DescribeRdsVpcsResult()
|
||||
{}
|
||||
|
||||
void DescribeRdsVpcsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto vpcsNode = value["Vpcs"];
|
||||
auto allVpc = value["Vpc"]["VpcItem"];
|
||||
for (auto value : allVpc)
|
||||
{
|
||||
Vpcs::VpcItem vpcItemObject;
|
||||
if(!value["VpcId"].isNull())
|
||||
vpcItemObject.vpcId = value["VpcId"].asString();
|
||||
if(!value["VpcName"].isNull())
|
||||
vpcItemObject.vpcName = value["VpcName"].asString();
|
||||
if(!value["Bid"].isNull())
|
||||
vpcItemObject.bid = value["Bid"].asString();
|
||||
if(!value["AliUid"].isNull())
|
||||
vpcItemObject.aliUid = value["AliUid"].asString();
|
||||
if(!value["RegionNo"].isNull())
|
||||
vpcItemObject.regionNo = value["RegionNo"].asString();
|
||||
if(!value["CidrBlock"].isNull())
|
||||
vpcItemObject.cidrBlock = value["CidrBlock"].asString();
|
||||
if(!value["IsDefault"].isNull())
|
||||
vpcItemObject.isDefault = value["IsDefault"].asString() == "true";
|
||||
if(!value["Status"].isNull())
|
||||
vpcItemObject.status = value["Status"].asString();
|
||||
if(!value["GmtCreate"].isNull())
|
||||
vpcItemObject.gmtCreate = value["GmtCreate"].asString();
|
||||
if(!value["GmtModified"].isNull())
|
||||
vpcItemObject.gmtModified = value["GmtModified"].asString();
|
||||
auto allVSwitchs = value["VSwitchs"]["VSwitch"];
|
||||
for (auto value : allVSwitchs)
|
||||
{
|
||||
Vpcs::VpcItem::VSwitch vSwitchsObject;
|
||||
if(!value["VSwitchId"].isNull())
|
||||
vSwitchsObject.vSwitchId = value["VSwitchId"].asString();
|
||||
if(!value["VSwitchName"].isNull())
|
||||
vSwitchsObject.vSwitchName = value["VSwitchName"].asString();
|
||||
if(!value["IzNo"].isNull())
|
||||
vSwitchsObject.izNo = value["IzNo"].asString();
|
||||
if(!value["CidrBlock"].isNull())
|
||||
vSwitchsObject.cidrBlock = value["CidrBlock"].asString();
|
||||
if(!value["IsDefault"].isNull())
|
||||
vSwitchsObject.isDefault = value["IsDefault"].asString() == "true";
|
||||
if(!value["Status"].isNull())
|
||||
vSwitchsObject.status = value["Status"].asString();
|
||||
if(!value["GmtCreate"].isNull())
|
||||
vSwitchsObject.gmtCreate = value["GmtCreate"].asString();
|
||||
if(!value["GmtModified"].isNull())
|
||||
vSwitchsObject.gmtModified = value["GmtModified"].asString();
|
||||
vpcItemObject.vSwitchs.push_back(vSwitchsObject);
|
||||
}
|
||||
vpcs_.vpc.push_back(vpcItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeRdsVpcsResult::Vpcs DescribeRdsVpcsResult::getVpcs()const
|
||||
{
|
||||
return vpcs_;
|
||||
}
|
||||
|
||||
38
gpdb/src/model/DescribeRegionsRequest.cc
Normal file
38
gpdb/src/model/DescribeRegionsRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DescribeRegions")
|
||||
{}
|
||||
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRegionsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
68
gpdb/src/model/DescribeRegionsResult.cc
Normal file
68
gpdb/src/model/DescribeRegionsResult.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/gpdb/model/DescribeRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRegionsResult::~DescribeRegionsResult()
|
||||
{}
|
||||
|
||||
void DescribeRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegions = value["Regions"]["Region"];
|
||||
for (auto value : allRegions)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!value["RegionId"].isNull())
|
||||
regionsObject.regionId = value["RegionId"].asString();
|
||||
auto allZones = value["Zones"]["Zone"];
|
||||
for (auto value : allZones)
|
||||
{
|
||||
Region::Zone zonesObject;
|
||||
if(!value["ZoneId"].isNull())
|
||||
zonesObject.zoneId = value["ZoneId"].asString();
|
||||
if(!value["VpcEnabled"].isNull())
|
||||
zonesObject.vpcEnabled = value["VpcEnabled"].asString() == "true";
|
||||
regionsObject.zones.push_back(zonesObject);
|
||||
}
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRegionsResult::Region> DescribeRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
49
gpdb/src/model/DescribeResourceUsageRequest.cc
Normal file
49
gpdb/src/model/DescribeResourceUsageRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeResourceUsageRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DescribeResourceUsageRequest;
|
||||
|
||||
DescribeResourceUsageRequest::DescribeResourceUsageRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DescribeResourceUsage")
|
||||
{}
|
||||
|
||||
DescribeResourceUsageRequest::~DescribeResourceUsageRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeResourceUsageRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeResourceUsageRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeResourceUsageRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeResourceUsageRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
87
gpdb/src/model/DescribeResourceUsageResult.cc
Normal file
87
gpdb/src/model/DescribeResourceUsageResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeResourceUsageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
DescribeResourceUsageResult::DescribeResourceUsageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeResourceUsageResult::DescribeResourceUsageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeResourceUsageResult::~DescribeResourceUsageResult()
|
||||
{}
|
||||
|
||||
void DescribeResourceUsageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
if(!value["DiskUsed"].isNull())
|
||||
diskUsed_ = std::stol(value["DiskUsed"].asString());
|
||||
if(!value["DataSize"].isNull())
|
||||
dataSize_ = std::stol(value["DataSize"].asString());
|
||||
if(!value["LogSize"].isNull())
|
||||
logSize_ = std::stol(value["LogSize"].asString());
|
||||
if(!value["BackupSize"].isNull())
|
||||
backupSize_ = std::stol(value["BackupSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeResourceUsageResult::getLogSize()const
|
||||
{
|
||||
return logSize_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceUsageResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
long DescribeResourceUsageResult::getDataSize()const
|
||||
{
|
||||
return dataSize_;
|
||||
}
|
||||
|
||||
long DescribeResourceUsageResult::getBackupSize()const
|
||||
{
|
||||
return backupSize_;
|
||||
}
|
||||
|
||||
long DescribeResourceUsageResult::getDiskUsed()const
|
||||
{
|
||||
return diskUsed_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceUsageResult::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
49
gpdb/src/model/DescribeSQLCollectorPolicyRequest.cc
Normal file
49
gpdb/src/model/DescribeSQLCollectorPolicyRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeSQLCollectorPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DescribeSQLCollectorPolicyRequest;
|
||||
|
||||
DescribeSQLCollectorPolicyRequest::DescribeSQLCollectorPolicyRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DescribeSQLCollectorPolicy")
|
||||
{}
|
||||
|
||||
DescribeSQLCollectorPolicyRequest::~DescribeSQLCollectorPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSQLCollectorPolicyRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
52
gpdb/src/model/DescribeSQLCollectorPolicyResult.cc
Normal file
52
gpdb/src/model/DescribeSQLCollectorPolicyResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeSQLCollectorPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
DescribeSQLCollectorPolicyResult::DescribeSQLCollectorPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLCollectorPolicyResult::DescribeSQLCollectorPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLCollectorPolicyResult::~DescribeSQLCollectorPolicyResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLCollectorPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SQLCollectorStatus"].isNull())
|
||||
sQLCollectorStatus_ = value["SQLCollectorStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorPolicyResult::getSQLCollectorStatus()const
|
||||
{
|
||||
return sQLCollectorStatus_;
|
||||
}
|
||||
|
||||
82
gpdb/src/model/DescribeSQLLogFilesRequest.cc
Normal file
82
gpdb/src/model/DescribeSQLLogFilesRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeSQLLogFilesRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DescribeSQLLogFilesRequest;
|
||||
|
||||
DescribeSQLLogFilesRequest::DescribeSQLLogFilesRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DescribeSQLLogFiles")
|
||||
{}
|
||||
|
||||
DescribeSQLLogFilesRequest::~DescribeSQLLogFilesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSQLLogFilesRequest::getFileName()const
|
||||
{
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogFilesRequest::setFileName(const std::string& fileName)
|
||||
{
|
||||
fileName_ = fileName;
|
||||
setParameter("FileName", fileName);
|
||||
}
|
||||
|
||||
int DescribeSQLLogFilesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogFilesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogFilesRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogFilesRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
int DescribeSQLLogFilesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogFilesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogFilesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogFilesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
89
gpdb/src/model/DescribeSQLLogFilesResult.cc
Normal file
89
gpdb/src/model/DescribeSQLLogFilesResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeSQLLogFilesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
DescribeSQLLogFilesResult::DescribeSQLLogFilesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLLogFilesResult::DescribeSQLLogFilesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLLogFilesResult::~DescribeSQLLogFilesResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLLogFilesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["LogFile"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
LogFile itemsObject;
|
||||
if(!value["FileID"].isNull())
|
||||
itemsObject.fileID = value["FileID"].asString();
|
||||
if(!value["LogStatus"].isNull())
|
||||
itemsObject.logStatus = value["LogStatus"].asString();
|
||||
if(!value["LogDownloadURL"].isNull())
|
||||
itemsObject.logDownloadURL = value["LogDownloadURL"].asString();
|
||||
if(!value["LogSize"].isNull())
|
||||
itemsObject.logSize = value["LogSize"].asString();
|
||||
if(!value["LogStartTime"].isNull())
|
||||
itemsObject.logStartTime = value["LogStartTime"].asString();
|
||||
if(!value["LogEndTime"].isNull())
|
||||
itemsObject.logEndTime = value["LogEndTime"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeSQLLogFilesResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeSQLLogFilesResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeSQLLogFilesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeSQLLogFilesResult::LogFile> DescribeSQLLogFilesResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
137
gpdb/src/model/DescribeSQLLogRecordsRequest.cc
Normal file
137
gpdb/src/model/DescribeSQLLogRecordsRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeSQLLogRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DescribeSQLLogRecordsRequest;
|
||||
|
||||
DescribeSQLLogRecordsRequest::DescribeSQLLogRecordsRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DescribeSQLLogRecords")
|
||||
{}
|
||||
|
||||
DescribeSQLLogRecordsRequest::~DescribeSQLLogRecordsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getDatabase()const
|
||||
{
|
||||
return database_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setDatabase(const std::string& database)
|
||||
{
|
||||
database_ = database;
|
||||
setParameter("Database", database);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getForm()const
|
||||
{
|
||||
return form_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setForm(const std::string& form)
|
||||
{
|
||||
form_ = form;
|
||||
setParameter("Form", form);
|
||||
}
|
||||
|
||||
int DescribeSQLLogRecordsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getUser()const
|
||||
{
|
||||
return user_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setUser(const std::string& user)
|
||||
{
|
||||
user_ = user;
|
||||
setParameter("User", user);
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getQueryKeywords()const
|
||||
{
|
||||
return queryKeywords_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setQueryKeywords(const std::string& queryKeywords)
|
||||
{
|
||||
queryKeywords_ = queryKeywords;
|
||||
setParameter("QueryKeywords", queryKeywords);
|
||||
}
|
||||
|
||||
int DescribeSQLLogRecordsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeSQLLogRecordsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
93
gpdb/src/model/DescribeSQLLogRecordsResult.cc
Normal file
93
gpdb/src/model/DescribeSQLLogRecordsResult.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/gpdb/model/DescribeSQLLogRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
DescribeSQLLogRecordsResult::DescribeSQLLogRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLLogRecordsResult::DescribeSQLLogRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLLogRecordsResult::~DescribeSQLLogRecordsResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLLogRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["SQLRecord"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
SQLRecord itemsObject;
|
||||
if(!value["DBName"].isNull())
|
||||
itemsObject.dBName = value["DBName"].asString();
|
||||
if(!value["AccountName"].isNull())
|
||||
itemsObject.accountName = value["AccountName"].asString();
|
||||
if(!value["HostAddress"].isNull())
|
||||
itemsObject.hostAddress = value["HostAddress"].asString();
|
||||
if(!value["SQLText"].isNull())
|
||||
itemsObject.sQLText = value["SQLText"].asString();
|
||||
if(!value["TotalExecutionTimes"].isNull())
|
||||
itemsObject.totalExecutionTimes = std::stol(value["TotalExecutionTimes"].asString());
|
||||
if(!value["ReturnRowCounts"].isNull())
|
||||
itemsObject.returnRowCounts = std::stol(value["ReturnRowCounts"].asString());
|
||||
if(!value["ExecuteTime"].isNull())
|
||||
itemsObject.executeTime = value["ExecuteTime"].asString();
|
||||
if(!value["ThreadID"].isNull())
|
||||
itemsObject.threadID = value["ThreadID"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeSQLLogRecordsResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeSQLLogRecordsResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeSQLLogRecordsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeSQLLogRecordsResult::SQLRecord> DescribeSQLLogRecordsResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
115
gpdb/src/model/DescribeSlowLogRecordsRequest.cc
Normal file
115
gpdb/src/model/DescribeSlowLogRecordsRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeSlowLogRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::DescribeSlowLogRecordsRequest;
|
||||
|
||||
DescribeSlowLogRecordsRequest::DescribeSlowLogRecordsRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "DescribeSlowLogRecords")
|
||||
{}
|
||||
|
||||
DescribeSlowLogRecordsRequest::~DescribeSlowLogRecordsRequest()
|
||||
{}
|
||||
|
||||
long DescribeSlowLogRecordsRequest::getSQLId()const
|
||||
{
|
||||
return sQLId_;
|
||||
}
|
||||
|
||||
void DescribeSlowLogRecordsRequest::setSQLId(long sQLId)
|
||||
{
|
||||
sQLId_ = sQLId;
|
||||
setParameter("SQLId", std::to_string(sQLId));
|
||||
}
|
||||
|
||||
std::string DescribeSlowLogRecordsRequest::getDBName()const
|
||||
{
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
void DescribeSlowLogRecordsRequest::setDBName(const std::string& dBName)
|
||||
{
|
||||
dBName_ = dBName;
|
||||
setParameter("DBName", dBName);
|
||||
}
|
||||
|
||||
int DescribeSlowLogRecordsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeSlowLogRecordsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeSlowLogRecordsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeSlowLogRecordsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeSlowLogRecordsRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSlowLogRecordsRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeSlowLogRecordsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeSlowLogRecordsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
int DescribeSlowLogRecordsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeSlowLogRecordsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeSlowLogRecordsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSlowLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
100
gpdb/src/model/DescribeSlowLogRecordsResult.cc
Normal file
100
gpdb/src/model/DescribeSlowLogRecordsResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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/gpdb/model/DescribeSlowLogRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
DescribeSlowLogRecordsResult::DescribeSlowLogRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSlowLogRecordsResult::DescribeSlowLogRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSlowLogRecordsResult::~DescribeSlowLogRecordsResult()
|
||||
{}
|
||||
|
||||
void DescribeSlowLogRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["SQLSlowRecord"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
SQLSlowRecord itemsObject;
|
||||
if(!value["HostAddress"].isNull())
|
||||
itemsObject.hostAddress = value["HostAddress"].asString();
|
||||
if(!value["DBName"].isNull())
|
||||
itemsObject.dBName = value["DBName"].asString();
|
||||
if(!value["SQLText"].isNull())
|
||||
itemsObject.sQLText = value["SQLText"].asString();
|
||||
if(!value["QueryTimes"].isNull())
|
||||
itemsObject.queryTimes = std::stol(value["QueryTimes"].asString());
|
||||
if(!value["LockTimes"].isNull())
|
||||
itemsObject.lockTimes = std::stol(value["LockTimes"].asString());
|
||||
if(!value["ParseRowCounts"].isNull())
|
||||
itemsObject.parseRowCounts = std::stol(value["ParseRowCounts"].asString());
|
||||
if(!value["ReturnRowCounts"].isNull())
|
||||
itemsObject.returnRowCounts = std::stol(value["ReturnRowCounts"].asString());
|
||||
if(!value["ExecutionStartTime"].isNull())
|
||||
itemsObject.executionStartTime = value["ExecutionStartTime"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeSlowLogRecordsResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeSlowLogRecordsResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeSlowLogRecordsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeSlowLogRecordsResult::SQLSlowRecord> DescribeSlowLogRecordsResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
std::string DescribeSlowLogRecordsResult::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
144
gpdb/src/model/ListTagResourcesRequest.cc
Normal file
144
gpdb/src/model/ListTagResourcesRequest.cc
Normal file
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* 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/gpdb/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "ListTagResources")
|
||||
{}
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest()
|
||||
{}
|
||||
|
||||
long ListTagResourcesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> ListTagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int i = 0; i!= resourceId.size(); i++)
|
||||
setParameter("ResourceId."+ std::to_string(i), resourceId.at(i));
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= tag.size(); i++) {
|
||||
auto obj = tag.at(i);
|
||||
std::string str ="Tag."+ std::to_string(i);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
long ListTagResourcesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
71
gpdb/src/model/ListTagResourcesResult.cc
Normal file
71
gpdb/src/model/ListTagResourcesResult.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/gpdb/model/ListTagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagResourcesResult::~ListTagResourcesResult()
|
||||
{}
|
||||
|
||||
void ListTagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagResources = value["TagResources"]["TagResource"];
|
||||
for (auto value : allTagResources)
|
||||
{
|
||||
TagResource tagResourcesObject;
|
||||
if(!value["TagKey"].isNull())
|
||||
tagResourcesObject.tagKey = value["TagKey"].asString();
|
||||
if(!value["TagValue"].isNull())
|
||||
tagResourcesObject.tagValue = value["TagValue"].asString();
|
||||
if(!value["ResourceType"].isNull())
|
||||
tagResourcesObject.resourceType = value["ResourceType"].asString();
|
||||
if(!value["ResourceId"].isNull())
|
||||
tagResourcesObject.resourceId = value["ResourceId"].asString();
|
||||
tagResources_.push_back(tagResourcesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTagResourcesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesResult::TagResource> ListTagResourcesResult::getTagResources()const
|
||||
{
|
||||
return tagResources_;
|
||||
}
|
||||
|
||||
71
gpdb/src/model/ModifyAccountDescriptionRequest.cc
Normal file
71
gpdb/src/model/ModifyAccountDescriptionRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/gpdb/model/ModifyAccountDescriptionRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::ModifyAccountDescriptionRequest;
|
||||
|
||||
ModifyAccountDescriptionRequest::ModifyAccountDescriptionRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "ModifyAccountDescription")
|
||||
{}
|
||||
|
||||
ModifyAccountDescriptionRequest::~ModifyAccountDescriptionRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyAccountDescriptionRequest::getAccountName()const
|
||||
{
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void ModifyAccountDescriptionRequest::setAccountName(const std::string& accountName)
|
||||
{
|
||||
accountName_ = accountName;
|
||||
setParameter("AccountName", accountName);
|
||||
}
|
||||
|
||||
std::string ModifyAccountDescriptionRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyAccountDescriptionRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyAccountDescriptionRequest::getAccountDescription()const
|
||||
{
|
||||
return accountDescription_;
|
||||
}
|
||||
|
||||
void ModifyAccountDescriptionRequest::setAccountDescription(const std::string& accountDescription)
|
||||
{
|
||||
accountDescription_ = accountDescription;
|
||||
setParameter("AccountDescription", accountDescription);
|
||||
}
|
||||
|
||||
std::string ModifyAccountDescriptionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyAccountDescriptionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/ModifyAccountDescriptionResult.cc
Normal file
45
gpdb/src/model/ModifyAccountDescriptionResult.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/gpdb/model/ModifyAccountDescriptionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
ModifyAccountDescriptionResult::ModifyAccountDescriptionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyAccountDescriptionResult::ModifyAccountDescriptionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyAccountDescriptionResult::~ModifyAccountDescriptionResult()
|
||||
{}
|
||||
|
||||
void ModifyAccountDescriptionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
60
gpdb/src/model/ModifyDBInstanceConnectionModeRequest.cc
Normal file
60
gpdb/src/model/ModifyDBInstanceConnectionModeRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/gpdb/model/ModifyDBInstanceConnectionModeRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::ModifyDBInstanceConnectionModeRequest;
|
||||
|
||||
ModifyDBInstanceConnectionModeRequest::ModifyDBInstanceConnectionModeRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "ModifyDBInstanceConnectionMode")
|
||||
{}
|
||||
|
||||
ModifyDBInstanceConnectionModeRequest::~ModifyDBInstanceConnectionModeRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDBInstanceConnectionModeRequest::getConnectionMode()const
|
||||
{
|
||||
return connectionMode_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceConnectionModeRequest::setConnectionMode(const std::string& connectionMode)
|
||||
{
|
||||
connectionMode_ = connectionMode;
|
||||
setParameter("ConnectionMode", connectionMode);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceConnectionModeRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceConnectionModeRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceConnectionModeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceConnectionModeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/ModifyDBInstanceConnectionModeResult.cc
Normal file
45
gpdb/src/model/ModifyDBInstanceConnectionModeResult.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/gpdb/model/ModifyDBInstanceConnectionModeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
ModifyDBInstanceConnectionModeResult::ModifyDBInstanceConnectionModeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBInstanceConnectionModeResult::ModifyDBInstanceConnectionModeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBInstanceConnectionModeResult::~ModifyDBInstanceConnectionModeResult()
|
||||
{}
|
||||
|
||||
void ModifyDBInstanceConnectionModeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
82
gpdb/src/model/ModifyDBInstanceConnectionStringRequest.cc
Normal file
82
gpdb/src/model/ModifyDBInstanceConnectionStringRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/gpdb/model/ModifyDBInstanceConnectionStringRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::ModifyDBInstanceConnectionStringRequest;
|
||||
|
||||
ModifyDBInstanceConnectionStringRequest::ModifyDBInstanceConnectionStringRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "ModifyDBInstanceConnectionString")
|
||||
{}
|
||||
|
||||
ModifyDBInstanceConnectionStringRequest::~ModifyDBInstanceConnectionStringRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDBInstanceConnectionStringRequest::getConnectionStringPrefix()const
|
||||
{
|
||||
return connectionStringPrefix_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceConnectionStringRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix)
|
||||
{
|
||||
connectionStringPrefix_ = connectionStringPrefix;
|
||||
setParameter("ConnectionStringPrefix", connectionStringPrefix);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceConnectionStringRequest::getPort()const
|
||||
{
|
||||
return port_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceConnectionStringRequest::setPort(const std::string& port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", port);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceConnectionStringRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceConnectionStringRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceConnectionStringRequest::getCurrentConnectionString()const
|
||||
{
|
||||
return currentConnectionString_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceConnectionStringRequest::setCurrentConnectionString(const std::string& currentConnectionString)
|
||||
{
|
||||
currentConnectionString_ = currentConnectionString;
|
||||
setParameter("CurrentConnectionString", currentConnectionString);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceConnectionStringRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceConnectionStringRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/ModifyDBInstanceConnectionStringResult.cc
Normal file
45
gpdb/src/model/ModifyDBInstanceConnectionStringResult.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/gpdb/model/ModifyDBInstanceConnectionStringResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
ModifyDBInstanceConnectionStringResult::ModifyDBInstanceConnectionStringResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBInstanceConnectionStringResult::ModifyDBInstanceConnectionStringResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBInstanceConnectionStringResult::~ModifyDBInstanceConnectionStringResult()
|
||||
{}
|
||||
|
||||
void ModifyDBInstanceConnectionStringResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
60
gpdb/src/model/ModifyDBInstanceDescriptionRequest.cc
Normal file
60
gpdb/src/model/ModifyDBInstanceDescriptionRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/gpdb/model/ModifyDBInstanceDescriptionRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::ModifyDBInstanceDescriptionRequest;
|
||||
|
||||
ModifyDBInstanceDescriptionRequest::ModifyDBInstanceDescriptionRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "ModifyDBInstanceDescription")
|
||||
{}
|
||||
|
||||
ModifyDBInstanceDescriptionRequest::~ModifyDBInstanceDescriptionRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDBInstanceDescriptionRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceDescriptionRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceDescriptionRequest::getDBInstanceDescription()const
|
||||
{
|
||||
return dBInstanceDescription_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceDescriptionRequest::setDBInstanceDescription(const std::string& dBInstanceDescription)
|
||||
{
|
||||
dBInstanceDescription_ = dBInstanceDescription;
|
||||
setParameter("DBInstanceDescription", dBInstanceDescription);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceDescriptionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceDescriptionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/ModifyDBInstanceDescriptionResult.cc
Normal file
45
gpdb/src/model/ModifyDBInstanceDescriptionResult.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/gpdb/model/ModifyDBInstanceDescriptionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
ModifyDBInstanceDescriptionResult::ModifyDBInstanceDescriptionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBInstanceDescriptionResult::ModifyDBInstanceDescriptionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBInstanceDescriptionResult::~ModifyDBInstanceDescriptionResult()
|
||||
{}
|
||||
|
||||
void ModifyDBInstanceDescriptionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
71
gpdb/src/model/ModifyDBInstanceMaintainTimeRequest.cc
Normal file
71
gpdb/src/model/ModifyDBInstanceMaintainTimeRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/gpdb/model/ModifyDBInstanceMaintainTimeRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::ModifyDBInstanceMaintainTimeRequest;
|
||||
|
||||
ModifyDBInstanceMaintainTimeRequest::ModifyDBInstanceMaintainTimeRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "ModifyDBInstanceMaintainTime")
|
||||
{}
|
||||
|
||||
ModifyDBInstanceMaintainTimeRequest::~ModifyDBInstanceMaintainTimeRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDBInstanceMaintainTimeRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceMaintainTimeRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceMaintainTimeRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceMaintainTimeRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceMaintainTimeRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceMaintainTimeRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceMaintainTimeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceMaintainTimeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/ModifyDBInstanceMaintainTimeResult.cc
Normal file
45
gpdb/src/model/ModifyDBInstanceMaintainTimeResult.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/gpdb/model/ModifyDBInstanceMaintainTimeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
ModifyDBInstanceMaintainTimeResult::ModifyDBInstanceMaintainTimeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBInstanceMaintainTimeResult::ModifyDBInstanceMaintainTimeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBInstanceMaintainTimeResult::~ModifyDBInstanceMaintainTimeResult()
|
||||
{}
|
||||
|
||||
void ModifyDBInstanceMaintainTimeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
93
gpdb/src/model/ModifyDBInstanceNetworkTypeRequest.cc
Normal file
93
gpdb/src/model/ModifyDBInstanceNetworkTypeRequest.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/gpdb/model/ModifyDBInstanceNetworkTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::ModifyDBInstanceNetworkTypeRequest;
|
||||
|
||||
ModifyDBInstanceNetworkTypeRequest::ModifyDBInstanceNetworkTypeRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "ModifyDBInstanceNetworkType")
|
||||
{}
|
||||
|
||||
ModifyDBInstanceNetworkTypeRequest::~ModifyDBInstanceNetworkTypeRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDBInstanceNetworkTypeRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceNetworkTypeRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceNetworkTypeRequest::getPrivateIpAddress()const
|
||||
{
|
||||
return privateIpAddress_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceNetworkTypeRequest::setPrivateIpAddress(const std::string& privateIpAddress)
|
||||
{
|
||||
privateIpAddress_ = privateIpAddress;
|
||||
setParameter("PrivateIpAddress", privateIpAddress);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceNetworkTypeRequest::getVPCId()const
|
||||
{
|
||||
return vPCId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceNetworkTypeRequest::setVPCId(const std::string& vPCId)
|
||||
{
|
||||
vPCId_ = vPCId;
|
||||
setParameter("VPCId", vPCId);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceNetworkTypeRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceNetworkTypeRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceNetworkTypeRequest::getInstanceNetworkType()const
|
||||
{
|
||||
return instanceNetworkType_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceNetworkTypeRequest::setInstanceNetworkType(const std::string& instanceNetworkType)
|
||||
{
|
||||
instanceNetworkType_ = instanceNetworkType;
|
||||
setParameter("InstanceNetworkType", instanceNetworkType);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceNetworkTypeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceNetworkTypeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/ModifyDBInstanceNetworkTypeResult.cc
Normal file
45
gpdb/src/model/ModifyDBInstanceNetworkTypeResult.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/gpdb/model/ModifyDBInstanceNetworkTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
ModifyDBInstanceNetworkTypeResult::ModifyDBInstanceNetworkTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBInstanceNetworkTypeResult::ModifyDBInstanceNetworkTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBInstanceNetworkTypeResult::~ModifyDBInstanceNetworkTypeResult()
|
||||
{}
|
||||
|
||||
void ModifyDBInstanceNetworkTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
60
gpdb/src/model/ModifySQLCollectorPolicyRequest.cc
Normal file
60
gpdb/src/model/ModifySQLCollectorPolicyRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/gpdb/model/ModifySQLCollectorPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::ModifySQLCollectorPolicyRequest;
|
||||
|
||||
ModifySQLCollectorPolicyRequest::ModifySQLCollectorPolicyRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "ModifySQLCollectorPolicy")
|
||||
{}
|
||||
|
||||
ModifySQLCollectorPolicyRequest::~ModifySQLCollectorPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string ModifySQLCollectorPolicyRequest::getSQLCollectorStatus()const
|
||||
{
|
||||
return sQLCollectorStatus_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorPolicyRequest::setSQLCollectorStatus(const std::string& sQLCollectorStatus)
|
||||
{
|
||||
sQLCollectorStatus_ = sQLCollectorStatus;
|
||||
setParameter("SQLCollectorStatus", sQLCollectorStatus);
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorPolicyRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorPolicyRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/ModifySQLCollectorPolicyResult.cc
Normal file
45
gpdb/src/model/ModifySQLCollectorPolicyResult.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/gpdb/model/ModifySQLCollectorPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
ModifySQLCollectorPolicyResult::ModifySQLCollectorPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifySQLCollectorPolicyResult::ModifySQLCollectorPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifySQLCollectorPolicyResult::~ModifySQLCollectorPolicyResult()
|
||||
{}
|
||||
|
||||
void ModifySQLCollectorPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
82
gpdb/src/model/ModifySecurityIpsRequest.cc
Normal file
82
gpdb/src/model/ModifySecurityIpsRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/gpdb/model/ModifySecurityIpsRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::ModifySecurityIpsRequest;
|
||||
|
||||
ModifySecurityIpsRequest::ModifySecurityIpsRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "ModifySecurityIps")
|
||||
{}
|
||||
|
||||
ModifySecurityIpsRequest::~ModifySecurityIpsRequest()
|
||||
{}
|
||||
|
||||
std::string ModifySecurityIpsRequest::getSecurityIPList()const
|
||||
{
|
||||
return securityIPList_;
|
||||
}
|
||||
|
||||
void ModifySecurityIpsRequest::setSecurityIPList(const std::string& securityIPList)
|
||||
{
|
||||
securityIPList_ = securityIPList;
|
||||
setParameter("SecurityIPList", securityIPList);
|
||||
}
|
||||
|
||||
std::string ModifySecurityIpsRequest::getDBInstanceIPArrayName()const
|
||||
{
|
||||
return dBInstanceIPArrayName_;
|
||||
}
|
||||
|
||||
void ModifySecurityIpsRequest::setDBInstanceIPArrayName(const std::string& dBInstanceIPArrayName)
|
||||
{
|
||||
dBInstanceIPArrayName_ = dBInstanceIPArrayName;
|
||||
setParameter("DBInstanceIPArrayName", dBInstanceIPArrayName);
|
||||
}
|
||||
|
||||
std::string ModifySecurityIpsRequest::getDBInstanceIPArrayAttribute()const
|
||||
{
|
||||
return dBInstanceIPArrayAttribute_;
|
||||
}
|
||||
|
||||
void ModifySecurityIpsRequest::setDBInstanceIPArrayAttribute(const std::string& dBInstanceIPArrayAttribute)
|
||||
{
|
||||
dBInstanceIPArrayAttribute_ = dBInstanceIPArrayAttribute;
|
||||
setParameter("DBInstanceIPArrayAttribute", dBInstanceIPArrayAttribute);
|
||||
}
|
||||
|
||||
std::string ModifySecurityIpsRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifySecurityIpsRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifySecurityIpsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifySecurityIpsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/ModifySecurityIpsResult.cc
Normal file
45
gpdb/src/model/ModifySecurityIpsResult.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/gpdb/model/ModifySecurityIpsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
ModifySecurityIpsResult::ModifySecurityIpsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifySecurityIpsResult::ModifySecurityIpsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifySecurityIpsResult::~ModifySecurityIpsResult()
|
||||
{}
|
||||
|
||||
void ModifySecurityIpsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
60
gpdb/src/model/ReleaseInstancePublicConnectionRequest.cc
Normal file
60
gpdb/src/model/ReleaseInstancePublicConnectionRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/gpdb/model/ReleaseInstancePublicConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::ReleaseInstancePublicConnectionRequest;
|
||||
|
||||
ReleaseInstancePublicConnectionRequest::ReleaseInstancePublicConnectionRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "ReleaseInstancePublicConnection")
|
||||
{}
|
||||
|
||||
ReleaseInstancePublicConnectionRequest::~ReleaseInstancePublicConnectionRequest()
|
||||
{}
|
||||
|
||||
std::string ReleaseInstancePublicConnectionRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ReleaseInstancePublicConnectionRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ReleaseInstancePublicConnectionRequest::getCurrentConnectionString()const
|
||||
{
|
||||
return currentConnectionString_;
|
||||
}
|
||||
|
||||
void ReleaseInstancePublicConnectionRequest::setCurrentConnectionString(const std::string& currentConnectionString)
|
||||
{
|
||||
currentConnectionString_ = currentConnectionString;
|
||||
setParameter("CurrentConnectionString", currentConnectionString);
|
||||
}
|
||||
|
||||
std::string ReleaseInstancePublicConnectionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ReleaseInstancePublicConnectionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/ReleaseInstancePublicConnectionResult.cc
Normal file
45
gpdb/src/model/ReleaseInstancePublicConnectionResult.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/gpdb/model/ReleaseInstancePublicConnectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::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());
|
||||
|
||||
}
|
||||
|
||||
71
gpdb/src/model/ResetAccountPasswordRequest.cc
Normal file
71
gpdb/src/model/ResetAccountPasswordRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/gpdb/model/ResetAccountPasswordRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::ResetAccountPasswordRequest;
|
||||
|
||||
ResetAccountPasswordRequest::ResetAccountPasswordRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "ResetAccountPassword")
|
||||
{}
|
||||
|
||||
ResetAccountPasswordRequest::~ResetAccountPasswordRequest()
|
||||
{}
|
||||
|
||||
std::string ResetAccountPasswordRequest::getAccountPassword()const
|
||||
{
|
||||
return accountPassword_;
|
||||
}
|
||||
|
||||
void ResetAccountPasswordRequest::setAccountPassword(const std::string& accountPassword)
|
||||
{
|
||||
accountPassword_ = accountPassword;
|
||||
setParameter("AccountPassword", accountPassword);
|
||||
}
|
||||
|
||||
std::string ResetAccountPasswordRequest::getAccountName()const
|
||||
{
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void ResetAccountPasswordRequest::setAccountName(const std::string& accountName)
|
||||
{
|
||||
accountName_ = accountName;
|
||||
setParameter("AccountName", accountName);
|
||||
}
|
||||
|
||||
std::string ResetAccountPasswordRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ResetAccountPasswordRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ResetAccountPasswordRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ResetAccountPasswordRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/ResetAccountPasswordResult.cc
Normal file
45
gpdb/src/model/ResetAccountPasswordResult.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/gpdb/model/ResetAccountPasswordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::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());
|
||||
|
||||
}
|
||||
|
||||
60
gpdb/src/model/RestartDBInstanceRequest.cc
Normal file
60
gpdb/src/model/RestartDBInstanceRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/gpdb/model/RestartDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::RestartDBInstanceRequest;
|
||||
|
||||
RestartDBInstanceRequest::RestartDBInstanceRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "RestartDBInstance")
|
||||
{}
|
||||
|
||||
RestartDBInstanceRequest::~RestartDBInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string RestartDBInstanceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void RestartDBInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string RestartDBInstanceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void RestartDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string RestartDBInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void RestartDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/RestartDBInstanceResult.cc
Normal file
45
gpdb/src/model/RestartDBInstanceResult.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/gpdb/model/RestartDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
RestartDBInstanceResult::RestartDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RestartDBInstanceResult::RestartDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RestartDBInstanceResult::~RestartDBInstanceResult()
|
||||
{}
|
||||
|
||||
void RestartDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
71
gpdb/src/model/SwitchDBInstanceNetTypeRequest.cc
Normal file
71
gpdb/src/model/SwitchDBInstanceNetTypeRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/gpdb/model/SwitchDBInstanceNetTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::SwitchDBInstanceNetTypeRequest;
|
||||
|
||||
SwitchDBInstanceNetTypeRequest::SwitchDBInstanceNetTypeRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "SwitchDBInstanceNetType")
|
||||
{}
|
||||
|
||||
SwitchDBInstanceNetTypeRequest::~SwitchDBInstanceNetTypeRequest()
|
||||
{}
|
||||
|
||||
std::string SwitchDBInstanceNetTypeRequest::getConnectionStringPrefix()const
|
||||
{
|
||||
return connectionStringPrefix_;
|
||||
}
|
||||
|
||||
void SwitchDBInstanceNetTypeRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix)
|
||||
{
|
||||
connectionStringPrefix_ = connectionStringPrefix;
|
||||
setParameter("ConnectionStringPrefix", connectionStringPrefix);
|
||||
}
|
||||
|
||||
std::string SwitchDBInstanceNetTypeRequest::getPort()const
|
||||
{
|
||||
return port_;
|
||||
}
|
||||
|
||||
void SwitchDBInstanceNetTypeRequest::setPort(const std::string& port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", port);
|
||||
}
|
||||
|
||||
std::string SwitchDBInstanceNetTypeRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void SwitchDBInstanceNetTypeRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string SwitchDBInstanceNetTypeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SwitchDBInstanceNetTypeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/SwitchDBInstanceNetTypeResult.cc
Normal file
45
gpdb/src/model/SwitchDBInstanceNetTypeResult.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/gpdb/model/SwitchDBInstanceNetTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
SwitchDBInstanceNetTypeResult::SwitchDBInstanceNetTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SwitchDBInstanceNetTypeResult::SwitchDBInstanceNetTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SwitchDBInstanceNetTypeResult::~SwitchDBInstanceNetTypeResult()
|
||||
{}
|
||||
|
||||
void SwitchDBInstanceNetTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
133
gpdb/src/model/TagResourcesRequest.cc
Normal file
133
gpdb/src/model/TagResourcesRequest.cc
Normal file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* 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/gpdb/model/TagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::TagResourcesRequest;
|
||||
|
||||
TagResourcesRequest::TagResourcesRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "TagResources")
|
||||
{}
|
||||
|
||||
TagResourcesRequest::~TagResourcesRequest()
|
||||
{}
|
||||
|
||||
long TagResourcesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> TagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int i = 0; i!= resourceId.size(); i++)
|
||||
setParameter("ResourceId."+ std::to_string(i), resourceId.at(i));
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= tag.size(); i++) {
|
||||
auto obj = tag.at(i);
|
||||
std::string str ="Tag."+ std::to_string(i);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
long TagResourcesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/TagResourcesResult.cc
Normal file
45
gpdb/src/model/TagResourcesResult.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/gpdb/model/TagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
TagResourcesResult::TagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TagResourcesResult::TagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TagResourcesResult::~TagResourcesResult()
|
||||
{}
|
||||
|
||||
void TagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
139
gpdb/src/model/UntagResourcesRequest.cc
Normal file
139
gpdb/src/model/UntagResourcesRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* 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/gpdb/model/UntagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Gpdb::Model::UntagResourcesRequest;
|
||||
|
||||
UntagResourcesRequest::UntagResourcesRequest() :
|
||||
RpcServiceRequest("gpdb", "2016-05-03", "UntagResources")
|
||||
{}
|
||||
|
||||
UntagResourcesRequest::~UntagResourcesRequest()
|
||||
{}
|
||||
|
||||
bool UntagResourcesRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("All", std::to_string(all));
|
||||
}
|
||||
|
||||
long UntagResourcesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int i = 0; i!= resourceId.size(); i++)
|
||||
setParameter("ResourceId."+ std::to_string(i), resourceId.at(i));
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long UntagResourcesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getTagKey()const
|
||||
{
|
||||
return tagKey_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
for(int i = 0; i!= tagKey.size(); i++)
|
||||
setParameter("TagKey."+ std::to_string(i), tagKey.at(i));
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
gpdb/src/model/UntagResourcesResult.cc
Normal file
45
gpdb/src/model/UntagResourcesResult.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/gpdb/model/UntagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Gpdb;
|
||||
using namespace AlibabaCloud::Gpdb::Model;
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UntagResourcesResult::~UntagResourcesResult()
|
||||
{}
|
||||
|
||||
void UntagResourcesResult::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