DDS SDK Auto Released By junjun.zhang,Version:1.36.19
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
3581
dds/src/DdsClient.cc
Normal file
3581
dds/src/DdsClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
126
dds/src/model/AllocatePublicNetworkAddressRequest.cc
Normal file
126
dds/src/model/AllocatePublicNetworkAddressRequest.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/dds/model/AllocatePublicNetworkAddressRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::AllocatePublicNetworkAddressRequest;
|
||||
|
||||
AllocatePublicNetworkAddressRequest::AllocatePublicNetworkAddressRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "AllocatePublicNetworkAddress")
|
||||
{}
|
||||
|
||||
AllocatePublicNetworkAddressRequest::~AllocatePublicNetworkAddressRequest()
|
||||
{}
|
||||
|
||||
long AllocatePublicNetworkAddressRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AllocatePublicNetworkAddressRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AllocatePublicNetworkAddressRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void AllocatePublicNetworkAddressRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string AllocatePublicNetworkAddressRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void AllocatePublicNetworkAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AllocatePublicNetworkAddressRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AllocatePublicNetworkAddressRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AllocatePublicNetworkAddressRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void AllocatePublicNetworkAddressRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AllocatePublicNetworkAddressRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void AllocatePublicNetworkAddressRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long AllocatePublicNetworkAddressRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AllocatePublicNetworkAddressRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AllocatePublicNetworkAddressRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void AllocatePublicNetworkAddressRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setCoreParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
std::string AllocatePublicNetworkAddressRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AllocatePublicNetworkAddressRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
dds/src/model/AllocatePublicNetworkAddressResult.cc
Normal file
45
dds/src/model/AllocatePublicNetworkAddressResult.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/dds/model/AllocatePublicNetworkAddressResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
AllocatePublicNetworkAddressResult::AllocatePublicNetworkAddressResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AllocatePublicNetworkAddressResult::AllocatePublicNetworkAddressResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AllocatePublicNetworkAddressResult::~AllocatePublicNetworkAddressResult()
|
||||
{}
|
||||
|
||||
void AllocatePublicNetworkAddressResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
137
dds/src/model/CheckRecoveryConditionRequest.cc
Normal file
137
dds/src/model/CheckRecoveryConditionRequest.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/dds/model/CheckRecoveryConditionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::CheckRecoveryConditionRequest;
|
||||
|
||||
CheckRecoveryConditionRequest::CheckRecoveryConditionRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "CheckRecoveryCondition")
|
||||
{}
|
||||
|
||||
CheckRecoveryConditionRequest::~CheckRecoveryConditionRequest()
|
||||
{}
|
||||
|
||||
long CheckRecoveryConditionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CheckRecoveryConditionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CheckRecoveryConditionRequest::getRestoreTime()const
|
||||
{
|
||||
return restoreTime_;
|
||||
}
|
||||
|
||||
void CheckRecoveryConditionRequest::setRestoreTime(const std::string& restoreTime)
|
||||
{
|
||||
restoreTime_ = restoreTime;
|
||||
setCoreParameter("RestoreTime", restoreTime);
|
||||
}
|
||||
|
||||
std::string CheckRecoveryConditionRequest::getDatabaseNames()const
|
||||
{
|
||||
return databaseNames_;
|
||||
}
|
||||
|
||||
void CheckRecoveryConditionRequest::setDatabaseNames(const std::string& databaseNames)
|
||||
{
|
||||
databaseNames_ = databaseNames;
|
||||
setCoreParameter("DatabaseNames", databaseNames);
|
||||
}
|
||||
|
||||
std::string CheckRecoveryConditionRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CheckRecoveryConditionRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CheckRecoveryConditionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CheckRecoveryConditionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CheckRecoveryConditionRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CheckRecoveryConditionRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CheckRecoveryConditionRequest::getBackupId()const
|
||||
{
|
||||
return backupId_;
|
||||
}
|
||||
|
||||
void CheckRecoveryConditionRequest::setBackupId(const std::string& backupId)
|
||||
{
|
||||
backupId_ = backupId;
|
||||
setCoreParameter("BackupId", backupId);
|
||||
}
|
||||
|
||||
std::string CheckRecoveryConditionRequest::getSourceDBInstance()const
|
||||
{
|
||||
return sourceDBInstance_;
|
||||
}
|
||||
|
||||
void CheckRecoveryConditionRequest::setSourceDBInstance(const std::string& sourceDBInstance)
|
||||
{
|
||||
sourceDBInstance_ = sourceDBInstance;
|
||||
setCoreParameter("SourceDBInstance", sourceDBInstance);
|
||||
}
|
||||
|
||||
long CheckRecoveryConditionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CheckRecoveryConditionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CheckRecoveryConditionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CheckRecoveryConditionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
59
dds/src/model/CheckRecoveryConditionResult.cc
Normal file
59
dds/src/model/CheckRecoveryConditionResult.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/dds/model/CheckRecoveryConditionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
CheckRecoveryConditionResult::CheckRecoveryConditionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckRecoveryConditionResult::CheckRecoveryConditionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckRecoveryConditionResult::~CheckRecoveryConditionResult()
|
||||
{}
|
||||
|
||||
void CheckRecoveryConditionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = std::stoi(value["DBInstanceName"].asString());
|
||||
if(!value["IsValid"].isNull())
|
||||
isValid_ = value["IsValid"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
int CheckRecoveryConditionResult::getDBInstanceName()const
|
||||
{
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
bool CheckRecoveryConditionResult::getIsValid()const
|
||||
{
|
||||
return isValid_;
|
||||
}
|
||||
|
||||
148
dds/src/model/CreateAccountRequest.cc
Normal file
148
dds/src/model/CreateAccountRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/dds/model/CreateAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::CreateAccountRequest;
|
||||
|
||||
CreateAccountRequest::CreateAccountRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "CreateAccount")
|
||||
{}
|
||||
|
||||
CreateAccountRequest::~CreateAccountRequest()
|
||||
{}
|
||||
|
||||
long CreateAccountRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getAccountPassword()const
|
||||
{
|
||||
return accountPassword_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setAccountPassword(const std::string& accountPassword)
|
||||
{
|
||||
accountPassword_ = accountPassword;
|
||||
setCoreParameter("AccountPassword", accountPassword);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getAccountName()const
|
||||
{
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setAccountName(const std::string& accountName)
|
||||
{
|
||||
accountName_ = accountName;
|
||||
setCoreParameter("AccountName", accountName);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long CreateAccountRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getAccountDescription()const
|
||||
{
|
||||
return accountDescription_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setAccountDescription(const std::string& accountDescription)
|
||||
{
|
||||
accountDescription_ = accountDescription;
|
||||
setCoreParameter("AccountDescription", accountDescription);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
dds/src/model/CreateAccountResult.cc
Normal file
45
dds/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/dds/model/CreateAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::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());
|
||||
|
||||
}
|
||||
|
||||
126
dds/src/model/CreateBackupRequest.cc
Normal file
126
dds/src/model/CreateBackupRequest.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/dds/model/CreateBackupRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::CreateBackupRequest;
|
||||
|
||||
CreateBackupRequest::CreateBackupRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "CreateBackup")
|
||||
{}
|
||||
|
||||
CreateBackupRequest::~CreateBackupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBackupRequest::getBackupMethod()const
|
||||
{
|
||||
return backupMethod_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setBackupMethod(const std::string& backupMethod)
|
||||
{
|
||||
backupMethod_ = backupMethod;
|
||||
setCoreParameter("BackupMethod", backupMethod);
|
||||
}
|
||||
|
||||
long CreateBackupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long CreateBackupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
52
dds/src/model/CreateBackupResult.cc
Normal file
52
dds/src/model/CreateBackupResult.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/dds/model/CreateBackupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
CreateBackupResult::CreateBackupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBackupResult::CreateBackupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBackupResult::~CreateBackupResult()
|
||||
{}
|
||||
|
||||
void CreateBackupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BackupId"].isNull())
|
||||
backupId_ = value["BackupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBackupResult::getBackupId()const
|
||||
{
|
||||
return backupId_;
|
||||
}
|
||||
|
||||
368
dds/src/model/CreateDBInstanceRequest.cc
Normal file
368
dds/src/model/CreateDBInstanceRequest.cc
Normal file
@@ -0,0 +1,368 @@
|
||||
/*
|
||||
* 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/dds/model/CreateDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::CreateDBInstanceRequest;
|
||||
|
||||
CreateDBInstanceRequest::CreateDBInstanceRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "CreateDBInstance")
|
||||
{}
|
||||
|
||||
CreateDBInstanceRequest::~CreateDBInstanceRequest()
|
||||
{}
|
||||
|
||||
long CreateDBInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CreateDBInstanceRequest::getDBInstanceStorage()const
|
||||
{
|
||||
return dBInstanceStorage_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setDBInstanceStorage(int dBInstanceStorage)
|
||||
{
|
||||
dBInstanceStorage_ = dBInstanceStorage;
|
||||
setCoreParameter("DBInstanceStorage", std::to_string(dBInstanceStorage));
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getCouponNo()const
|
||||
{
|
||||
return couponNo_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setCouponNo(const std::string& couponNo)
|
||||
{
|
||||
couponNo_ = couponNo;
|
||||
setCoreParameter("CouponNo", couponNo);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setEngineVersion(const std::string& engineVersion)
|
||||
{
|
||||
engineVersion_ = engineVersion;
|
||||
setCoreParameter("EngineVersion", engineVersion);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getNetworkType()const
|
||||
{
|
||||
return networkType_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setNetworkType(const std::string& networkType)
|
||||
{
|
||||
networkType_ = networkType;
|
||||
setCoreParameter("NetworkType", networkType);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getReplicationFactor()const
|
||||
{
|
||||
return replicationFactor_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setReplicationFactor(const std::string& replicationFactor)
|
||||
{
|
||||
replicationFactor_ = replicationFactor;
|
||||
setCoreParameter("ReplicationFactor", replicationFactor);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getStorageEngine()const
|
||||
{
|
||||
return storageEngine_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setStorageEngine(const std::string& storageEngine)
|
||||
{
|
||||
storageEngine_ = storageEngine;
|
||||
setCoreParameter("StorageEngine", storageEngine);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setCoreParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getDatabaseNames()const
|
||||
{
|
||||
return databaseNames_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setDatabaseNames(const std::string& databaseNames)
|
||||
{
|
||||
databaseNames_ = databaseNames;
|
||||
setCoreParameter("DatabaseNames", databaseNames);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setCoreParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getDBInstanceDescription()const
|
||||
{
|
||||
return dBInstanceDescription_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription)
|
||||
{
|
||||
dBInstanceDescription_ = dBInstanceDescription;
|
||||
setCoreParameter("DBInstanceDescription", dBInstanceDescription);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getBusinessInfo()const
|
||||
{
|
||||
return businessInfo_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setBusinessInfo(const std::string& businessInfo)
|
||||
{
|
||||
businessInfo_ = businessInfo;
|
||||
setCoreParameter("BusinessInfo", businessInfo);
|
||||
}
|
||||
|
||||
int CreateDBInstanceRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setCoreParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getRestoreTime()const
|
||||
{
|
||||
return restoreTime_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setRestoreTime(const std::string& restoreTime)
|
||||
{
|
||||
restoreTime_ = restoreTime;
|
||||
setCoreParameter("RestoreTime", restoreTime);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getSrcDBInstanceId()const
|
||||
{
|
||||
return srcDBInstanceId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setSrcDBInstanceId(const std::string& srcDBInstanceId)
|
||||
{
|
||||
srcDBInstanceId_ = srcDBInstanceId;
|
||||
setCoreParameter("SrcDBInstanceId", srcDBInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getBackupId()const
|
||||
{
|
||||
return backupId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setBackupId(const std::string& backupId)
|
||||
{
|
||||
backupId_ = backupId;
|
||||
setCoreParameter("BackupId", backupId);
|
||||
}
|
||||
|
||||
long CreateDBInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getDBInstanceClass()const
|
||||
{
|
||||
return dBInstanceClass_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setDBInstanceClass(const std::string& dBInstanceClass)
|
||||
{
|
||||
dBInstanceClass_ = dBInstanceClass;
|
||||
setCoreParameter("DBInstanceClass", dBInstanceClass);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getSecurityIPList()const
|
||||
{
|
||||
return securityIPList_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setSecurityIPList(const std::string& securityIPList)
|
||||
{
|
||||
securityIPList_ = securityIPList;
|
||||
setCoreParameter("SecurityIPList", securityIPList);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getAccountPassword()const
|
||||
{
|
||||
return accountPassword_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setAccountPassword(const std::string& accountPassword)
|
||||
{
|
||||
accountPassword_ = accountPassword;
|
||||
setCoreParameter("AccountPassword", accountPassword);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getAutoRenew()const
|
||||
{
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setAutoRenew(const std::string& autoRenew)
|
||||
{
|
||||
autoRenew_ = autoRenew;
|
||||
setCoreParameter("AutoRenew", autoRenew);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getChargeType()const
|
||||
{
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setChargeType(const std::string& chargeType)
|
||||
{
|
||||
chargeType_ = chargeType;
|
||||
setCoreParameter("ChargeType", chargeType);
|
||||
}
|
||||
|
||||
59
dds/src/model/CreateDBInstanceResult.cc
Normal file
59
dds/src/model/CreateDBInstanceResult.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/dds/model/CreateDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::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["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
181
dds/src/model/CreateNodeRequest.cc
Normal file
181
dds/src/model/CreateNodeRequest.cc
Normal file
@@ -0,0 +1,181 @@
|
||||
/*
|
||||
* 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/dds/model/CreateNodeRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::CreateNodeRequest;
|
||||
|
||||
CreateNodeRequest::CreateNodeRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "CreateNode")
|
||||
{}
|
||||
|
||||
CreateNodeRequest::~CreateNodeRequest()
|
||||
{}
|
||||
|
||||
long CreateNodeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateNodeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateNodeRequest::getNodeType()const
|
||||
{
|
||||
return nodeType_;
|
||||
}
|
||||
|
||||
void CreateNodeRequest::setNodeType(const std::string& nodeType)
|
||||
{
|
||||
nodeType_ = nodeType;
|
||||
setCoreParameter("NodeType", nodeType);
|
||||
}
|
||||
|
||||
bool CreateNodeRequest::getAutoPay()const
|
||||
{
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void CreateNodeRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setCoreParameter("AutoPay", autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateNodeRequest::getFromApp()const
|
||||
{
|
||||
return fromApp_;
|
||||
}
|
||||
|
||||
void CreateNodeRequest::setFromApp(const std::string& fromApp)
|
||||
{
|
||||
fromApp_ = fromApp;
|
||||
setCoreParameter("FromApp", fromApp);
|
||||
}
|
||||
|
||||
std::string CreateNodeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateNodeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateNodeRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateNodeRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int CreateNodeRequest::getNodeStorage()const
|
||||
{
|
||||
return nodeStorage_;
|
||||
}
|
||||
|
||||
void CreateNodeRequest::setNodeStorage(int nodeStorage)
|
||||
{
|
||||
nodeStorage_ = nodeStorage;
|
||||
setCoreParameter("NodeStorage", std::to_string(nodeStorage));
|
||||
}
|
||||
|
||||
std::string CreateNodeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateNodeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CreateNodeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateNodeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateNodeRequest::getNodeClass()const
|
||||
{
|
||||
return nodeClass_;
|
||||
}
|
||||
|
||||
void CreateNodeRequest::setNodeClass(const std::string& nodeClass)
|
||||
{
|
||||
nodeClass_ = nodeClass;
|
||||
setCoreParameter("NodeClass", nodeClass);
|
||||
}
|
||||
|
||||
std::string CreateNodeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateNodeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateNodeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateNodeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateNodeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateNodeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateNodeRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void CreateNodeRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
52
dds/src/model/CreateNodeResult.cc
Normal file
52
dds/src/model/CreateNodeResult.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/dds/model/CreateNodeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
CreateNodeResult::CreateNodeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNodeResult::CreateNodeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNodeResult::~CreateNodeResult()
|
||||
{}
|
||||
|
||||
void CreateNodeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNodeResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
148
dds/src/model/CreateRecommendationTaskRequest.cc
Normal file
148
dds/src/model/CreateRecommendationTaskRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/dds/model/CreateRecommendationTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::CreateRecommendationTaskRequest;
|
||||
|
||||
CreateRecommendationTaskRequest::CreateRecommendationTaskRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "CreateRecommendationTask")
|
||||
{}
|
||||
|
||||
CreateRecommendationTaskRequest::~CreateRecommendationTaskRequest()
|
||||
{}
|
||||
|
||||
long CreateRecommendationTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateRecommendationTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateRecommendationTaskRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateRecommendationTaskRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateRecommendationTaskRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateRecommendationTaskRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateRecommendationTaskRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateRecommendationTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateRecommendationTaskRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateRecommendationTaskRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateRecommendationTaskRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateRecommendationTaskRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateRecommendationTaskRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void CreateRecommendationTaskRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string CreateRecommendationTaskRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void CreateRecommendationTaskRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long CreateRecommendationTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateRecommendationTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateRecommendationTaskRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void CreateRecommendationTaskRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setCoreParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
std::string CreateRecommendationTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateRecommendationTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
dds/src/model/CreateRecommendationTaskResult.cc
Normal file
45
dds/src/model/CreateRecommendationTaskResult.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/dds/model/CreateRecommendationTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
CreateRecommendationTaskResult::CreateRecommendationTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRecommendationTaskResult::CreateRecommendationTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRecommendationTaskResult::~CreateRecommendationTaskResult()
|
||||
{}
|
||||
|
||||
void CreateRecommendationTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
330
dds/src/model/CreateShardingDBInstanceRequest.cc
Normal file
330
dds/src/model/CreateShardingDBInstanceRequest.cc
Normal file
@@ -0,0 +1,330 @@
|
||||
/*
|
||||
* 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/dds/model/CreateShardingDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::CreateShardingDBInstanceRequest;
|
||||
|
||||
CreateShardingDBInstanceRequest::CreateShardingDBInstanceRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "CreateShardingDBInstance")
|
||||
{}
|
||||
|
||||
CreateShardingDBInstanceRequest::~CreateShardingDBInstanceRequest()
|
||||
{}
|
||||
|
||||
long CreateShardingDBInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setEngineVersion(const std::string& engineVersion)
|
||||
{
|
||||
engineVersion_ = engineVersion;
|
||||
setCoreParameter("EngineVersion", engineVersion);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getNetworkType()const
|
||||
{
|
||||
return networkType_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setNetworkType(const std::string& networkType)
|
||||
{
|
||||
networkType_ = networkType;
|
||||
setCoreParameter("NetworkType", networkType);
|
||||
}
|
||||
|
||||
std::vector<CreateShardingDBInstanceRequest::ReplicaSet> CreateShardingDBInstanceRequest::getReplicaSet()const
|
||||
{
|
||||
return replicaSet_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setReplicaSet(const std::vector<ReplicaSet>& replicaSet)
|
||||
{
|
||||
replicaSet_ = replicaSet;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= replicaSet.size(); i++) {
|
||||
auto obj = replicaSet.at(i);
|
||||
std::string str ="ReplicaSet."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Storage", std::to_string(obj.storage));
|
||||
setCoreParameter(str + ".Class", obj.class);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getStorageEngine()const
|
||||
{
|
||||
return storageEngine_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setStorageEngine(const std::string& storageEngine)
|
||||
{
|
||||
storageEngine_ = storageEngine;
|
||||
setCoreParameter("StorageEngine", storageEngine);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setCoreParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getDBInstanceDescription()const
|
||||
{
|
||||
return dBInstanceDescription_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription)
|
||||
{
|
||||
dBInstanceDescription_ = dBInstanceDescription;
|
||||
setCoreParameter("DBInstanceDescription", dBInstanceDescription);
|
||||
}
|
||||
|
||||
int CreateShardingDBInstanceRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setCoreParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getRestoreTime()const
|
||||
{
|
||||
return restoreTime_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setRestoreTime(const std::string& restoreTime)
|
||||
{
|
||||
restoreTime_ = restoreTime;
|
||||
setCoreParameter("RestoreTime", restoreTime);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getSrcDBInstanceId()const
|
||||
{
|
||||
return srcDBInstanceId_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setSrcDBInstanceId(const std::string& srcDBInstanceId)
|
||||
{
|
||||
srcDBInstanceId_ = srcDBInstanceId;
|
||||
setCoreParameter("SrcDBInstanceId", srcDBInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::vector<CreateShardingDBInstanceRequest::ConfigServer> CreateShardingDBInstanceRequest::getConfigServer()const
|
||||
{
|
||||
return configServer_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setConfigServer(const std::vector<ConfigServer>& configServer)
|
||||
{
|
||||
configServer_ = configServer;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= configServer.size(); i++) {
|
||||
auto obj = configServer.at(i);
|
||||
std::string str ="ConfigServer."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Storage", std::to_string(obj.storage));
|
||||
setCoreParameter(str + ".Class", obj.class);
|
||||
}
|
||||
}
|
||||
|
||||
long CreateShardingDBInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::vector<CreateShardingDBInstanceRequest::Mongos> CreateShardingDBInstanceRequest::getMongos()const
|
||||
{
|
||||
return mongos_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setMongos(const std::vector<Mongos>& mongos)
|
||||
{
|
||||
mongos_ = mongos;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= mongos.size(); i++) {
|
||||
auto obj = mongos.at(i);
|
||||
std::string str ="Mongos."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Class", obj.class);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getSecurityIPList()const
|
||||
{
|
||||
return securityIPList_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setSecurityIPList(const std::string& securityIPList)
|
||||
{
|
||||
securityIPList_ = securityIPList;
|
||||
setCoreParameter("SecurityIPList", securityIPList);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getAccountPassword()const
|
||||
{
|
||||
return accountPassword_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setAccountPassword(const std::string& accountPassword)
|
||||
{
|
||||
accountPassword_ = accountPassword;
|
||||
setCoreParameter("AccountPassword", accountPassword);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getAutoRenew()const
|
||||
{
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setAutoRenew(const std::string& autoRenew)
|
||||
{
|
||||
autoRenew_ = autoRenew;
|
||||
setCoreParameter("AutoRenew", autoRenew);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceRequest::getChargeType()const
|
||||
{
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
void CreateShardingDBInstanceRequest::setChargeType(const std::string& chargeType)
|
||||
{
|
||||
chargeType_ = chargeType;
|
||||
setCoreParameter("ChargeType", chargeType);
|
||||
}
|
||||
|
||||
59
dds/src/model/CreateShardingDBInstanceResult.cc
Normal file
59
dds/src/model/CreateShardingDBInstanceResult.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/dds/model/CreateShardingDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
CreateShardingDBInstanceResult::CreateShardingDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateShardingDBInstanceResult::CreateShardingDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateShardingDBInstanceResult::~CreateShardingDBInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateShardingDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
std::string CreateShardingDBInstanceResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
137
dds/src/model/CreateStaticVerificationRequest.cc
Normal file
137
dds/src/model/CreateStaticVerificationRequest.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/dds/model/CreateStaticVerificationRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::CreateStaticVerificationRequest;
|
||||
|
||||
CreateStaticVerificationRequest::CreateStaticVerificationRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "CreateStaticVerification")
|
||||
{}
|
||||
|
||||
CreateStaticVerificationRequest::~CreateStaticVerificationRequest()
|
||||
{}
|
||||
|
||||
long CreateStaticVerificationRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateStaticVerificationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateStaticVerificationRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateStaticVerificationRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateStaticVerificationRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateStaticVerificationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateStaticVerificationRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateStaticVerificationRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateStaticVerificationRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateStaticVerificationRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateStaticVerificationRequest::getReplicaId()const
|
||||
{
|
||||
return replicaId_;
|
||||
}
|
||||
|
||||
void CreateStaticVerificationRequest::setReplicaId(const std::string& replicaId)
|
||||
{
|
||||
replicaId_ = replicaId;
|
||||
setCoreParameter("ReplicaId", replicaId);
|
||||
}
|
||||
|
||||
std::string CreateStaticVerificationRequest::getDestinationInstanceId()const
|
||||
{
|
||||
return destinationInstanceId_;
|
||||
}
|
||||
|
||||
void CreateStaticVerificationRequest::setDestinationInstanceId(const std::string& destinationInstanceId)
|
||||
{
|
||||
destinationInstanceId_ = destinationInstanceId;
|
||||
setCoreParameter("DestinationInstanceId", destinationInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateStaticVerificationRequest::getSourceInstanceId()const
|
||||
{
|
||||
return sourceInstanceId_;
|
||||
}
|
||||
|
||||
void CreateStaticVerificationRequest::setSourceInstanceId(const std::string& sourceInstanceId)
|
||||
{
|
||||
sourceInstanceId_ = sourceInstanceId;
|
||||
setCoreParameter("SourceInstanceId", sourceInstanceId);
|
||||
}
|
||||
|
||||
long CreateStaticVerificationRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateStaticVerificationRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateStaticVerificationRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateStaticVerificationRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
dds/src/model/CreateStaticVerificationResult.cc
Normal file
45
dds/src/model/CreateStaticVerificationResult.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/dds/model/CreateStaticVerificationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
CreateStaticVerificationResult::CreateStaticVerificationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateStaticVerificationResult::CreateStaticVerificationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateStaticVerificationResult::~CreateStaticVerificationResult()
|
||||
{}
|
||||
|
||||
void CreateStaticVerificationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
126
dds/src/model/DeleteDBInstanceRequest.cc
Normal file
126
dds/src/model/DeleteDBInstanceRequest.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/dds/model/DeleteDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DeleteDBInstanceRequest;
|
||||
|
||||
DeleteDBInstanceRequest::DeleteDBInstanceRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DeleteDBInstance")
|
||||
{}
|
||||
|
||||
DeleteDBInstanceRequest::~DeleteDBInstanceRequest()
|
||||
{}
|
||||
|
||||
long DeleteDBInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteDBInstanceRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteDBInstanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteDBInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteDBInstanceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteDBInstanceRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteDBInstanceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DeleteDBInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteDBInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
dds/src/model/DeleteDBInstanceResult.cc
Normal file
45
dds/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/dds/model/DeleteDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::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());
|
||||
|
||||
}
|
||||
|
||||
137
dds/src/model/DeleteNodeRequest.cc
Normal file
137
dds/src/model/DeleteNodeRequest.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/dds/model/DeleteNodeRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DeleteNodeRequest;
|
||||
|
||||
DeleteNodeRequest::DeleteNodeRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DeleteNode")
|
||||
{}
|
||||
|
||||
DeleteNodeRequest::~DeleteNodeRequest()
|
||||
{}
|
||||
|
||||
long DeleteNodeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteNodeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteNodeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteNodeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteNodeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteNodeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteNodeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteNodeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteNodeRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteNodeRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteNodeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteNodeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteNodeRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteNodeRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DeleteNodeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteNodeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteNodeRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void DeleteNodeRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setCoreParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
std::string DeleteNodeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteNodeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
52
dds/src/model/DeleteNodeResult.cc
Normal file
52
dds/src/model/DeleteNodeResult.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/dds/model/DeleteNodeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DeleteNodeResult::DeleteNodeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNodeResult::DeleteNodeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNodeResult::~DeleteNodeResult()
|
||||
{}
|
||||
|
||||
void DeleteNodeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = std::stoi(value["TaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DeleteNodeResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
126
dds/src/model/DescribeAccountsRequest.cc
Normal file
126
dds/src/model/DescribeAccountsRequest.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/dds/model/DescribeAccountsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeAccountsRequest;
|
||||
|
||||
DescribeAccountsRequest::DescribeAccountsRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeAccounts")
|
||||
{}
|
||||
|
||||
DescribeAccountsRequest::~DescribeAccountsRequest()
|
||||
{}
|
||||
|
||||
long DescribeAccountsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAccountsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getAccountName()const
|
||||
{
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void DescribeAccountsRequest::setAccountName(const std::string& accountName)
|
||||
{
|
||||
accountName_ = accountName;
|
||||
setCoreParameter("AccountName", accountName);
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeAccountsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAccountsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAccountsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAccountsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeAccountsRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DescribeAccountsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAccountsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAccountsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
64
dds/src/model/DescribeAccountsResult.cc
Normal file
64
dds/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/dds/model/DescribeAccountsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::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"]["Account"];
|
||||
for (auto value : allAccounts)
|
||||
{
|
||||
Account 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::Account> DescribeAccountsResult::getAccounts()const
|
||||
{
|
||||
return accounts_;
|
||||
}
|
||||
|
||||
104
dds/src/model/DescribeActiveOperationTaskCountRequest.cc
Normal file
104
dds/src/model/DescribeActiveOperationTaskCountRequest.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/dds/model/DescribeActiveOperationTaskCountRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeActiveOperationTaskCountRequest;
|
||||
|
||||
DescribeActiveOperationTaskCountRequest::DescribeActiveOperationTaskCountRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeActiveOperationTaskCount")
|
||||
{}
|
||||
|
||||
DescribeActiveOperationTaskCountRequest::~DescribeActiveOperationTaskCountRequest()
|
||||
{}
|
||||
|
||||
long DescribeActiveOperationTaskCountRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskCountRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskCountRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskCountRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskCountRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskCountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskCountRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskCountRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskCountRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskCountRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeActiveOperationTaskCountRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskCountRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskCountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskCountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
59
dds/src/model/DescribeActiveOperationTaskCountResult.cc
Normal file
59
dds/src/model/DescribeActiveOperationTaskCountResult.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/dds/model/DescribeActiveOperationTaskCountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeActiveOperationTaskCountResult::DescribeActiveOperationTaskCountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeActiveOperationTaskCountResult::DescribeActiveOperationTaskCountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeActiveOperationTaskCountResult::~DescribeActiveOperationTaskCountResult()
|
||||
{}
|
||||
|
||||
void DescribeActiveOperationTaskCountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskCount"].isNull())
|
||||
taskCount_ = std::stoi(value["TaskCount"].asString());
|
||||
if(!value["NeedPop"].isNull())
|
||||
needPop_ = std::stoi(value["NeedPop"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTaskCountResult::getNeedPop()const
|
||||
{
|
||||
return needPop_;
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTaskCountResult::getTaskCount()const
|
||||
{
|
||||
return taskCount_;
|
||||
}
|
||||
|
||||
126
dds/src/model/DescribeActiveOperationTaskRegionRequest.cc
Normal file
126
dds/src/model/DescribeActiveOperationTaskRegionRequest.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/dds/model/DescribeActiveOperationTaskRegionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeActiveOperationTaskRegionRequest;
|
||||
|
||||
DescribeActiveOperationTaskRegionRequest::DescribeActiveOperationTaskRegionRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeActiveOperationTaskRegion")
|
||||
{}
|
||||
|
||||
DescribeActiveOperationTaskRegionRequest::~DescribeActiveOperationTaskRegionRequest()
|
||||
{}
|
||||
|
||||
long DescribeActiveOperationTaskRegionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRegionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTaskRegionRequest::getIsHistory()const
|
||||
{
|
||||
return isHistory_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRegionRequest::setIsHistory(int isHistory)
|
||||
{
|
||||
isHistory_ = isHistory;
|
||||
setCoreParameter("IsHistory", std::to_string(isHistory));
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskRegionRequest::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRegionRequest::setTaskType(const std::string& taskType)
|
||||
{
|
||||
taskType_ = taskType;
|
||||
setCoreParameter("TaskType", taskType);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskRegionRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRegionRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskRegionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRegionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskRegionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRegionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskRegionRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRegionRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeActiveOperationTaskRegionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRegionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskRegionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRegionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
60
dds/src/model/DescribeActiveOperationTaskRegionResult.cc
Normal file
60
dds/src/model/DescribeActiveOperationTaskRegionResult.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/dds/model/DescribeActiveOperationTaskRegionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeActiveOperationTaskRegionResult::DescribeActiveOperationTaskRegionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeActiveOperationTaskRegionResult::DescribeActiveOperationTaskRegionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeActiveOperationTaskRegionResult::~DescribeActiveOperationTaskRegionResult()
|
||||
{}
|
||||
|
||||
void DescribeActiveOperationTaskRegionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionList = value["RegionList"]["Items"];
|
||||
for (auto value : allRegionList)
|
||||
{
|
||||
Items regionListObject;
|
||||
if(!value["Region"].isNull())
|
||||
regionListObject.region = value["Region"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
regionListObject.count = std::stoi(value["Count"].asString());
|
||||
regionList_.push_back(regionListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeActiveOperationTaskRegionResult::Items> DescribeActiveOperationTaskRegionResult::getRegionList()const
|
||||
{
|
||||
return regionList_;
|
||||
}
|
||||
|
||||
159
dds/src/model/DescribeActiveOperationTaskRequest.cc
Normal file
159
dds/src/model/DescribeActiveOperationTaskRequest.cc
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeActiveOperationTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeActiveOperationTaskRequest;
|
||||
|
||||
DescribeActiveOperationTaskRequest::DescribeActiveOperationTaskRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeActiveOperationTask")
|
||||
{}
|
||||
|
||||
DescribeActiveOperationTaskRequest::~DescribeActiveOperationTaskRequest()
|
||||
{}
|
||||
|
||||
long DescribeActiveOperationTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskRequest::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRequest::setTaskType(const std::string& taskType)
|
||||
{
|
||||
taskType_ = taskType;
|
||||
setCoreParameter("TaskType", taskType);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeActiveOperationTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTaskRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTaskRequest::getIsHistory()const
|
||||
{
|
||||
return isHistory_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRequest::setIsHistory(int isHistory)
|
||||
{
|
||||
isHistory_ = isHistory;
|
||||
setCoreParameter("IsHistory", std::to_string(isHistory));
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTaskRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setCoreParameter("Region", region);
|
||||
}
|
||||
|
||||
103
dds/src/model/DescribeActiveOperationTaskResult.cc
Normal file
103
dds/src/model/DescribeActiveOperationTaskResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeActiveOperationTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeActiveOperationTaskResult::DescribeActiveOperationTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeActiveOperationTaskResult::DescribeActiveOperationTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeActiveOperationTaskResult::~DescribeActiveOperationTaskResult()
|
||||
{}
|
||||
|
||||
void DescribeActiveOperationTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["ItemsItem"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
ItemsItem itemsObject;
|
||||
if(!value["Id"].isNull())
|
||||
itemsObject.id = std::stoi(value["Id"].asString());
|
||||
if(!value["InsName"].isNull())
|
||||
itemsObject.insName = value["InsName"].asString();
|
||||
if(!value["DbType"].isNull())
|
||||
itemsObject.dbType = value["DbType"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
itemsObject.startTime = value["StartTime"].asString();
|
||||
if(!value["SwitchTime"].isNull())
|
||||
itemsObject.switchTime = value["SwitchTime"].asString();
|
||||
if(!value["Deadline"].isNull())
|
||||
itemsObject.deadline = value["Deadline"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
itemsObject.status = std::stoi(value["Status"].asString());
|
||||
if(!value["CreatedTime"].isNull())
|
||||
itemsObject.createdTime = value["CreatedTime"].asString();
|
||||
if(!value["ModifiedTime"].isNull())
|
||||
itemsObject.modifiedTime = value["ModifiedTime"].asString();
|
||||
if(!value["ResultInfo"].isNull())
|
||||
itemsObject.resultInfo = value["ResultInfo"].asString();
|
||||
if(!value["PrepareInterval"].isNull())
|
||||
itemsObject.prepareInterval = value["PrepareInterval"].asString();
|
||||
if(!value["TaskParams"].isNull())
|
||||
itemsObject.taskParams = value["TaskParams"].asString();
|
||||
if(!value["TaskType"].isNull())
|
||||
itemsObject.taskType = value["TaskType"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTaskResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTaskResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTaskResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeActiveOperationTaskResult::ItemsItem> DescribeActiveOperationTaskResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
115
dds/src/model/DescribeActiveOperationTaskTypeRequest.cc
Normal file
115
dds/src/model/DescribeActiveOperationTaskTypeRequest.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/dds/model/DescribeActiveOperationTaskTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeActiveOperationTaskTypeRequest;
|
||||
|
||||
DescribeActiveOperationTaskTypeRequest::DescribeActiveOperationTaskTypeRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeActiveOperationTaskType")
|
||||
{}
|
||||
|
||||
DescribeActiveOperationTaskTypeRequest::~DescribeActiveOperationTaskTypeRequest()
|
||||
{}
|
||||
|
||||
long DescribeActiveOperationTaskTypeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskTypeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeActiveOperationTaskTypeRequest::getIsHistory()const
|
||||
{
|
||||
return isHistory_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskTypeRequest::setIsHistory(int isHistory)
|
||||
{
|
||||
isHistory_ = isHistory;
|
||||
setCoreParameter("IsHistory", std::to_string(isHistory));
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskTypeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskTypeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskTypeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskTypeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskTypeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskTypeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskTypeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeActiveOperationTaskTypeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskTypeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeActiveOperationTaskTypeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeActiveOperationTaskTypeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
60
dds/src/model/DescribeActiveOperationTaskTypeResult.cc
Normal file
60
dds/src/model/DescribeActiveOperationTaskTypeResult.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/dds/model/DescribeActiveOperationTaskTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeActiveOperationTaskTypeResult::DescribeActiveOperationTaskTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeActiveOperationTaskTypeResult::DescribeActiveOperationTaskTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeActiveOperationTaskTypeResult::~DescribeActiveOperationTaskTypeResult()
|
||||
{}
|
||||
|
||||
void DescribeActiveOperationTaskTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTypeList = value["TypeList"]["Items"];
|
||||
for (auto value : allTypeList)
|
||||
{
|
||||
Items typeListObject;
|
||||
if(!value["TaskType"].isNull())
|
||||
typeListObject.taskType = value["TaskType"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
typeListObject.count = std::stoi(value["Count"].asString());
|
||||
typeList_.push_back(typeListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeActiveOperationTaskTypeResult::Items> DescribeActiveOperationTaskTypeResult::getTypeList()const
|
||||
{
|
||||
return typeList_;
|
||||
}
|
||||
|
||||
148
dds/src/model/DescribeAuditFilesRequest.cc
Normal file
148
dds/src/model/DescribeAuditFilesRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeAuditFilesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeAuditFilesRequest;
|
||||
|
||||
DescribeAuditFilesRequest::DescribeAuditFilesRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeAuditFiles")
|
||||
{}
|
||||
|
||||
DescribeAuditFilesRequest::~DescribeAuditFilesRequest()
|
||||
{}
|
||||
|
||||
long DescribeAuditFilesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditFilesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditFilesRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeAuditFilesRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeAuditFilesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditFilesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAuditFilesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAuditFilesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditFilesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditFilesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeAuditFilesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAuditFilesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAuditFilesRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeAuditFilesRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DescribeAuditFilesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditFilesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditFilesRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void DescribeAuditFilesRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setCoreParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
int DescribeAuditFilesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeAuditFilesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeAuditFilesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAuditFilesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
96
dds/src/model/DescribeAuditFilesResult.cc
Normal file
96
dds/src/model/DescribeAuditFilesResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeAuditFilesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeAuditFilesResult::DescribeAuditFilesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAuditFilesResult::DescribeAuditFilesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAuditFilesResult::~DescribeAuditFilesResult()
|
||||
{}
|
||||
|
||||
void DescribeAuditFilesResult::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 = std::stoi(value["FileID"].asString());
|
||||
if(!value["LogStatus"].isNull())
|
||||
itemsObject.logStatus = value["LogStatus"].asString();
|
||||
if(!value["LogStartTime"].isNull())
|
||||
itemsObject.logStartTime = value["LogStartTime"].asString();
|
||||
if(!value["LogEndTime"].isNull())
|
||||
itemsObject.logEndTime = value["LogEndTime"].asString();
|
||||
if(!value["LogDownloadURL"].isNull())
|
||||
itemsObject.logDownloadURL = value["LogDownloadURL"].asString();
|
||||
if(!value["LogSize"].isNull())
|
||||
itemsObject.logSize = std::stol(value["LogSize"].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());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
int DescribeAuditFilesResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeAuditFilesResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeAuditFilesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeAuditFilesResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAuditFilesResult::LogFile> DescribeAuditFilesResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
126
dds/src/model/DescribeAuditLogFilterRequest.cc
Normal file
126
dds/src/model/DescribeAuditLogFilterRequest.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/dds/model/DescribeAuditLogFilterRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeAuditLogFilterRequest;
|
||||
|
||||
DescribeAuditLogFilterRequest::DescribeAuditLogFilterRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeAuditLogFilter")
|
||||
{}
|
||||
|
||||
DescribeAuditLogFilterRequest::~DescribeAuditLogFilterRequest()
|
||||
{}
|
||||
|
||||
long DescribeAuditLogFilterRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogFilterRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogFilterRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogFilterRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogFilterRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogFilterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogFilterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogFilterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogFilterRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogFilterRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogFilterRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogFilterRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogFilterRequest::getRoleType()const
|
||||
{
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogFilterRequest::setRoleType(const std::string& roleType)
|
||||
{
|
||||
roleType_ = roleType;
|
||||
setCoreParameter("RoleType", roleType);
|
||||
}
|
||||
|
||||
long DescribeAuditLogFilterRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogFilterRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogFilterRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogFilterRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
59
dds/src/model/DescribeAuditLogFilterResult.cc
Normal file
59
dds/src/model/DescribeAuditLogFilterResult.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/dds/model/DescribeAuditLogFilterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeAuditLogFilterResult::DescribeAuditLogFilterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAuditLogFilterResult::DescribeAuditLogFilterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAuditLogFilterResult::~DescribeAuditLogFilterResult()
|
||||
{}
|
||||
|
||||
void DescribeAuditLogFilterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Filter"].isNull())
|
||||
filter_ = value["Filter"].asString();
|
||||
if(!value["RoleType"].isNull())
|
||||
roleType_ = value["RoleType"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogFilterResult::getFilter()const
|
||||
{
|
||||
return filter_;
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogFilterResult::getRoleType()const
|
||||
{
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
115
dds/src/model/DescribeAuditPolicyRequest.cc
Normal file
115
dds/src/model/DescribeAuditPolicyRequest.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/dds/model/DescribeAuditPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeAuditPolicyRequest;
|
||||
|
||||
DescribeAuditPolicyRequest::DescribeAuditPolicyRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeAuditPolicy")
|
||||
{}
|
||||
|
||||
DescribeAuditPolicyRequest::~DescribeAuditPolicyRequest()
|
||||
{}
|
||||
|
||||
long DescribeAuditPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditPolicyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditPolicyRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeAuditPolicyRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeAuditPolicyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAuditPolicyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAuditPolicyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditPolicyRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAuditPolicyRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeAuditPolicyRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DescribeAuditPolicyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditPolicyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAuditPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
59
dds/src/model/DescribeAuditPolicyResult.cc
Normal file
59
dds/src/model/DescribeAuditPolicyResult.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/dds/model/DescribeAuditPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeAuditPolicyResult::DescribeAuditPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAuditPolicyResult::DescribeAuditPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAuditPolicyResult::~DescribeAuditPolicyResult()
|
||||
{}
|
||||
|
||||
void DescribeAuditPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["LogAuditStatus"].isNull())
|
||||
logAuditStatus_ = value["LogAuditStatus"].asString();
|
||||
if(!value["StoragePeriod"].isNull())
|
||||
storagePeriod_ = std::stoi(value["StoragePeriod"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeAuditPolicyResult::getStoragePeriod()const
|
||||
{
|
||||
return storagePeriod_;
|
||||
}
|
||||
|
||||
std::string DescribeAuditPolicyResult::getLogAuditStatus()const
|
||||
{
|
||||
return logAuditStatus_;
|
||||
}
|
||||
|
||||
214
dds/src/model/DescribeAuditRecordsRequest.cc
Normal file
214
dds/src/model/DescribeAuditRecordsRequest.cc
Normal file
@@ -0,0 +1,214 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeAuditRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeAuditRecordsRequest;
|
||||
|
||||
DescribeAuditRecordsRequest::DescribeAuditRecordsRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeAuditRecords")
|
||||
{}
|
||||
|
||||
DescribeAuditRecordsRequest::~DescribeAuditRecordsRequest()
|
||||
{}
|
||||
|
||||
long DescribeAuditRecordsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditRecordsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAuditRecordsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAuditRecordsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeAuditRecordsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long DescribeAuditRecordsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditRecordsRequest::getQueryKeywords()const
|
||||
{
|
||||
return queryKeywords_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setQueryKeywords(const std::string& queryKeywords)
|
||||
{
|
||||
queryKeywords_ = queryKeywords;
|
||||
setCoreParameter("QueryKeywords", queryKeywords);
|
||||
}
|
||||
|
||||
int DescribeAuditRecordsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeAuditRecordsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditRecordsRequest::getDatabase()const
|
||||
{
|
||||
return database_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setDatabase(const std::string& database)
|
||||
{
|
||||
database_ = database;
|
||||
setCoreParameter("Database", database);
|
||||
}
|
||||
|
||||
std::string DescribeAuditRecordsRequest::getForm()const
|
||||
{
|
||||
return form_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setForm(const std::string& form)
|
||||
{
|
||||
form_ = form;
|
||||
setCoreParameter("Form", form);
|
||||
}
|
||||
|
||||
std::string DescribeAuditRecordsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeAuditRecordsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeAuditRecordsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAuditRecordsRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditRecordsRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setCoreParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditRecordsRequest::getUser()const
|
||||
{
|
||||
return user_;
|
||||
}
|
||||
|
||||
void DescribeAuditRecordsRequest::setUser(const std::string& user)
|
||||
{
|
||||
user_ = user;
|
||||
setCoreParameter("User", user);
|
||||
}
|
||||
|
||||
93
dds/src/model/DescribeAuditRecordsResult.cc
Normal file
93
dds/src/model/DescribeAuditRecordsResult.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/dds/model/DescribeAuditRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeAuditRecordsResult::DescribeAuditRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAuditRecordsResult::DescribeAuditRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAuditRecordsResult::~DescribeAuditRecordsResult()
|
||||
{}
|
||||
|
||||
void DescribeAuditRecordsResult::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["Syntax"].isNull())
|
||||
itemsObject.syntax = value["Syntax"].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 DescribeAuditRecordsResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeAuditRecordsResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeAuditRecordsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAuditRecordsResult::SQLRecord> DescribeAuditRecordsResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
115
dds/src/model/DescribeAvailableEngineVersionRequest.cc
Normal file
115
dds/src/model/DescribeAvailableEngineVersionRequest.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/dds/model/DescribeAvailableEngineVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeAvailableEngineVersionRequest;
|
||||
|
||||
DescribeAvailableEngineVersionRequest::DescribeAvailableEngineVersionRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeAvailableEngineVersion")
|
||||
{}
|
||||
|
||||
DescribeAvailableEngineVersionRequest::~DescribeAvailableEngineVersionRequest()
|
||||
{}
|
||||
|
||||
long DescribeAvailableEngineVersionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableEngineVersionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAvailableEngineVersionRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeAvailableEngineVersionRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableEngineVersionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAvailableEngineVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableEngineVersionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableEngineVersionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableEngineVersionRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAvailableEngineVersionRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableEngineVersionRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableEngineVersionRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DescribeAvailableEngineVersionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableEngineVersionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAvailableEngineVersionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableEngineVersionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
53
dds/src/model/DescribeAvailableEngineVersionResult.cc
Normal file
53
dds/src/model/DescribeAvailableEngineVersionResult.cc
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeAvailableEngineVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeAvailableEngineVersionResult::DescribeAvailableEngineVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAvailableEngineVersionResult::DescribeAvailableEngineVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAvailableEngineVersionResult::~DescribeAvailableEngineVersionResult()
|
||||
{}
|
||||
|
||||
void DescribeAvailableEngineVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEngineVersions = value["EngineVersions"]["EngineVersion"];
|
||||
for (const auto &item : allEngineVersions)
|
||||
engineVersions_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeAvailableEngineVersionResult::getEngineVersions()const
|
||||
{
|
||||
return engineVersions_;
|
||||
}
|
||||
|
||||
126
dds/src/model/DescribeAvailableTimeRangeRequest.cc
Normal file
126
dds/src/model/DescribeAvailableTimeRangeRequest.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/dds/model/DescribeAvailableTimeRangeRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeAvailableTimeRangeRequest;
|
||||
|
||||
DescribeAvailableTimeRangeRequest::DescribeAvailableTimeRangeRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeAvailableTimeRange")
|
||||
{}
|
||||
|
||||
DescribeAvailableTimeRangeRequest::~DescribeAvailableTimeRangeRequest()
|
||||
{}
|
||||
|
||||
long DescribeAvailableTimeRangeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableTimeRangeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAvailableTimeRangeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableTimeRangeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableTimeRangeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeAvailableTimeRangeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableTimeRangeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAvailableTimeRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableTimeRangeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableTimeRangeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableTimeRangeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAvailableTimeRangeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeAvailableTimeRangeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableTimeRangeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAvailableTimeRangeRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableTimeRangeRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setCoreParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableTimeRangeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableTimeRangeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
66
dds/src/model/DescribeAvailableTimeRangeResult.cc
Normal file
66
dds/src/model/DescribeAvailableTimeRangeResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeAvailableTimeRangeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeAvailableTimeRangeResult::DescribeAvailableTimeRangeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAvailableTimeRangeResult::DescribeAvailableTimeRangeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAvailableTimeRangeResult::~DescribeAvailableTimeRangeResult()
|
||||
{}
|
||||
|
||||
void DescribeAvailableTimeRangeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTimeRange = value["TimeRange"]["TimeRangeItem"];
|
||||
for (auto value : allTimeRange)
|
||||
{
|
||||
TimeRangeItem timeRangeObject;
|
||||
if(!value["StartTime"].isNull())
|
||||
timeRangeObject.startTime = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
timeRangeObject.endTime = value["EndTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
timeRangeObject.status = value["Status"].asString();
|
||||
if(!value["NodeId"].isNull())
|
||||
timeRangeObject.nodeId = value["NodeId"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
timeRangeObject.taskId = value["TaskId"].asString();
|
||||
timeRange_.push_back(timeRangeObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAvailableTimeRangeResult::TimeRangeItem> DescribeAvailableTimeRangeResult::getTimeRange()const
|
||||
{
|
||||
return timeRange_;
|
||||
}
|
||||
|
||||
126
dds/src/model/DescribeAvaliableTimeRangeRequest.cc
Normal file
126
dds/src/model/DescribeAvaliableTimeRangeRequest.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/dds/model/DescribeAvaliableTimeRangeRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeAvaliableTimeRangeRequest;
|
||||
|
||||
DescribeAvaliableTimeRangeRequest::DescribeAvaliableTimeRangeRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeAvaliableTimeRange")
|
||||
{}
|
||||
|
||||
DescribeAvaliableTimeRangeRequest::~DescribeAvaliableTimeRangeRequest()
|
||||
{}
|
||||
|
||||
long DescribeAvaliableTimeRangeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAvaliableTimeRangeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAvaliableTimeRangeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeAvaliableTimeRangeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeAvaliableTimeRangeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeAvaliableTimeRangeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeAvaliableTimeRangeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAvaliableTimeRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAvaliableTimeRangeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAvaliableTimeRangeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeAvaliableTimeRangeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAvaliableTimeRangeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeAvaliableTimeRangeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAvaliableTimeRangeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAvaliableTimeRangeRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void DescribeAvaliableTimeRangeRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setCoreParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
std::string DescribeAvaliableTimeRangeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAvaliableTimeRangeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
62
dds/src/model/DescribeAvaliableTimeRangeResult.cc
Normal file
62
dds/src/model/DescribeAvaliableTimeRangeResult.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/dds/model/DescribeAvaliableTimeRangeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeAvaliableTimeRangeResult::DescribeAvaliableTimeRangeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAvaliableTimeRangeResult::DescribeAvaliableTimeRangeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAvaliableTimeRangeResult::~DescribeAvaliableTimeRangeResult()
|
||||
{}
|
||||
|
||||
void DescribeAvaliableTimeRangeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTimeRange = value["TimeRange"]["TimeRangeItem"];
|
||||
for (auto value : allTimeRange)
|
||||
{
|
||||
TimeRangeItem timeRangeObject;
|
||||
if(!value["StartTime"].isNull())
|
||||
timeRangeObject.startTime = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
timeRangeObject.endTime = value["EndTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
timeRangeObject.status = value["Status"].asString();
|
||||
timeRange_.push_back(timeRangeObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAvaliableTimeRangeResult::TimeRangeItem> DescribeAvaliableTimeRangeResult::getTimeRange()const
|
||||
{
|
||||
return timeRange_;
|
||||
}
|
||||
|
||||
148
dds/src/model/DescribeBackupDBsRequest.cc
Normal file
148
dds/src/model/DescribeBackupDBsRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeBackupDBsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeBackupDBsRequest;
|
||||
|
||||
DescribeBackupDBsRequest::DescribeBackupDBsRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeBackupDBs")
|
||||
{}
|
||||
|
||||
DescribeBackupDBsRequest::~DescribeBackupDBsRequest()
|
||||
{}
|
||||
|
||||
long DescribeBackupDBsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupDBsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeBackupDBsRequest::getRestoreTime()const
|
||||
{
|
||||
return restoreTime_;
|
||||
}
|
||||
|
||||
void DescribeBackupDBsRequest::setRestoreTime(const std::string& restoreTime)
|
||||
{
|
||||
restoreTime_ = restoreTime;
|
||||
setCoreParameter("RestoreTime", restoreTime);
|
||||
}
|
||||
|
||||
std::string DescribeBackupDBsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeBackupDBsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeBackupDBsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeBackupDBsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeBackupDBsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeBackupDBsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeBackupDBsRequest::getBackupId()const
|
||||
{
|
||||
return backupId_;
|
||||
}
|
||||
|
||||
void DescribeBackupDBsRequest::setBackupId(const std::string& backupId)
|
||||
{
|
||||
backupId_ = backupId;
|
||||
setCoreParameter("BackupId", backupId);
|
||||
}
|
||||
|
||||
int DescribeBackupDBsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeBackupDBsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeBackupDBsRequest::getSourceDBInstance()const
|
||||
{
|
||||
return sourceDBInstance_;
|
||||
}
|
||||
|
||||
void DescribeBackupDBsRequest::setSourceDBInstance(const std::string& sourceDBInstance)
|
||||
{
|
||||
sourceDBInstance_ = sourceDBInstance;
|
||||
setCoreParameter("SourceDBInstance", sourceDBInstance);
|
||||
}
|
||||
|
||||
long DescribeBackupDBsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupDBsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeBackupDBsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeBackupDBsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeBackupDBsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeBackupDBsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
79
dds/src/model/DescribeBackupDBsResult.cc
Normal file
79
dds/src/model/DescribeBackupDBsResult.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/dds/model/DescribeBackupDBsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeBackupDBsResult::DescribeBackupDBsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupDBsResult::DescribeBackupDBsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupDBsResult::~DescribeBackupDBsResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupDBsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatabases = value["Databases"]["Database"];
|
||||
for (auto value : allDatabases)
|
||||
{
|
||||
Database databasesObject;
|
||||
if(!value["DBName"].isNull())
|
||||
databasesObject.dBName = value["DBName"].asString();
|
||||
databases_.push_back(databasesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeBackupDBsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeBackupDBsResult::Database> DescribeBackupDBsResult::getDatabases()const
|
||||
{
|
||||
return databases_;
|
||||
}
|
||||
|
||||
int DescribeBackupDBsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeBackupDBsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
115
dds/src/model/DescribeBackupPolicyRequest.cc
Normal file
115
dds/src/model/DescribeBackupPolicyRequest.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/dds/model/DescribeBackupPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeBackupPolicyRequest;
|
||||
|
||||
DescribeBackupPolicyRequest::DescribeBackupPolicyRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeBackupPolicy")
|
||||
{}
|
||||
|
||||
DescribeBackupPolicyRequest::~DescribeBackupPolicyRequest()
|
||||
{}
|
||||
|
||||
long DescribeBackupPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeBackupPolicyRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeBackupPolicyRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeBackupPolicyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeBackupPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeBackupPolicyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPolicyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupPolicyRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeBackupPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeBackupPolicyRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPolicyRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DescribeBackupPolicyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPolicyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeBackupPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
73
dds/src/model/DescribeBackupPolicyResult.cc
Normal file
73
dds/src/model/DescribeBackupPolicyResult.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/dds/model/DescribeBackupPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeBackupPolicyResult::DescribeBackupPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupPolicyResult::DescribeBackupPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupPolicyResult::~DescribeBackupPolicyResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BackupRetentionPeriod"].isNull())
|
||||
backupRetentionPeriod_ = value["BackupRetentionPeriod"].asString();
|
||||
if(!value["PreferredBackupTime"].isNull())
|
||||
preferredBackupTime_ = value["PreferredBackupTime"].asString();
|
||||
if(!value["PreferredBackupPeriod"].isNull())
|
||||
preferredBackupPeriod_ = value["PreferredBackupPeriod"].asString();
|
||||
if(!value["PreferredNextBackupTime"].isNull())
|
||||
preferredNextBackupTime_ = value["PreferredNextBackupTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeBackupPolicyResult::getPreferredBackupPeriod()const
|
||||
{
|
||||
return preferredBackupPeriod_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupPolicyResult::getPreferredBackupTime()const
|
||||
{
|
||||
return preferredBackupTime_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupPolicyResult::getBackupRetentionPeriod()const
|
||||
{
|
||||
return backupRetentionPeriod_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupPolicyResult::getPreferredNextBackupTime()const
|
||||
{
|
||||
return preferredNextBackupTime_;
|
||||
}
|
||||
|
||||
181
dds/src/model/DescribeBackupsRequest.cc
Normal file
181
dds/src/model/DescribeBackupsRequest.cc
Normal file
@@ -0,0 +1,181 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeBackupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeBackupsRequest;
|
||||
|
||||
DescribeBackupsRequest::DescribeBackupsRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeBackups")
|
||||
{}
|
||||
|
||||
DescribeBackupsRequest::~DescribeBackupsRequest()
|
||||
{}
|
||||
|
||||
long DescribeBackupsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeBackupsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeBackupsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeBackupsRequest::getBackupId()const
|
||||
{
|
||||
return backupId_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setBackupId(const std::string& backupId)
|
||||
{
|
||||
backupId_ = backupId;
|
||||
setCoreParameter("BackupId", backupId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeBackupsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long DescribeBackupsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeBackupsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeBackupsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeBackupsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeBackupsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeBackupsRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupsRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setCoreParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
99
dds/src/model/DescribeBackupsResult.cc
Normal file
99
dds/src/model/DescribeBackupsResult.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/dds/model/DescribeBackupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeBackupsResult::DescribeBackupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupsResult::DescribeBackupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupsResult::~DescribeBackupsResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBackups = value["Backups"]["Backup"];
|
||||
for (auto value : allBackups)
|
||||
{
|
||||
Backup backupsObject;
|
||||
if(!value["BackupDBNames"].isNull())
|
||||
backupsObject.backupDBNames = value["BackupDBNames"].asString();
|
||||
if(!value["BackupId"].isNull())
|
||||
backupsObject.backupId = std::stoi(value["BackupId"].asString());
|
||||
if(!value["BackupStatus"].isNull())
|
||||
backupsObject.backupStatus = value["BackupStatus"].asString();
|
||||
if(!value["BackupStartTime"].isNull())
|
||||
backupsObject.backupStartTime = value["BackupStartTime"].asString();
|
||||
if(!value["BackupEndTime"].isNull())
|
||||
backupsObject.backupEndTime = value["BackupEndTime"].asString();
|
||||
if(!value["BackupType"].isNull())
|
||||
backupsObject.backupType = value["BackupType"].asString();
|
||||
if(!value["BackupMode"].isNull())
|
||||
backupsObject.backupMode = value["BackupMode"].asString();
|
||||
if(!value["BackupMethod"].isNull())
|
||||
backupsObject.backupMethod = value["BackupMethod"].asString();
|
||||
if(!value["BackupDownloadURL"].isNull())
|
||||
backupsObject.backupDownloadURL = value["BackupDownloadURL"].asString();
|
||||
if(!value["BackupIntranetDownloadURL"].isNull())
|
||||
backupsObject.backupIntranetDownloadURL = value["BackupIntranetDownloadURL"].asString();
|
||||
if(!value["BackupSize"].isNull())
|
||||
backupsObject.backupSize = std::stol(value["BackupSize"].asString());
|
||||
backups_.push_back(backupsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeBackupsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeBackupsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeBackupsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeBackupsResult::Backup> DescribeBackupsResult::getBackups()const
|
||||
{
|
||||
return backups_;
|
||||
}
|
||||
|
||||
126
dds/src/model/DescribeDBInstanceAttributeRequest.cc
Normal file
126
dds/src/model/DescribeDBInstanceAttributeRequest.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/dds/model/DescribeDBInstanceAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeDBInstanceAttributeRequest;
|
||||
|
||||
DescribeDBInstanceAttributeRequest::DescribeDBInstanceAttributeRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeDBInstanceAttribute")
|
||||
{}
|
||||
|
||||
DescribeDBInstanceAttributeRequest::~DescribeDBInstanceAttributeRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBInstanceAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceAttributeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceAttributeRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setCoreParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceAttributeRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DescribeDBInstanceAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceAttributeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
188
dds/src/model/DescribeDBInstanceAttributeResult.cc
Normal file
188
dds/src/model/DescribeDBInstanceAttributeResult.cc
Normal file
@@ -0,0 +1,188 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeDBInstanceAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::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 allDBInstances = value["DBInstances"]["DBInstance"];
|
||||
for (auto value : allDBInstances)
|
||||
{
|
||||
DBInstance dBInstancesObject;
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
dBInstancesObject.resourceGroupId = value["ResourceGroupId"].asString();
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstancesObject.dBInstanceId = value["DBInstanceId"].asString();
|
||||
if(!value["DBInstanceDescription"].isNull())
|
||||
dBInstancesObject.dBInstanceDescription = value["DBInstanceDescription"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
dBInstancesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["ZoneId"].isNull())
|
||||
dBInstancesObject.zoneId = value["ZoneId"].asString();
|
||||
if(!value["Engine"].isNull())
|
||||
dBInstancesObject.engine = value["Engine"].asString();
|
||||
if(!value["EngineVersion"].isNull())
|
||||
dBInstancesObject.engineVersion = value["EngineVersion"].asString();
|
||||
if(!value["StorageEngine"].isNull())
|
||||
dBInstancesObject.storageEngine = value["StorageEngine"].asString();
|
||||
if(!value["DBInstanceClass"].isNull())
|
||||
dBInstancesObject.dBInstanceClass = value["DBInstanceClass"].asString();
|
||||
if(!value["DBInstanceStorage"].isNull())
|
||||
dBInstancesObject.dBInstanceStorage = std::stoi(value["DBInstanceStorage"].asString());
|
||||
if(!value["ReplacateId"].isNull())
|
||||
dBInstancesObject.replacateId = value["ReplacateId"].asString();
|
||||
if(!value["VPCId"].isNull())
|
||||
dBInstancesObject.vPCId = value["VPCId"].asString();
|
||||
if(!value["VSwitchId"].isNull())
|
||||
dBInstancesObject.vSwitchId = value["VSwitchId"].asString();
|
||||
if(!value["VPCCloudInstanceIds"].isNull())
|
||||
dBInstancesObject.vPCCloudInstanceIds = value["VPCCloudInstanceIds"].asString();
|
||||
if(!value["DBInstanceStatus"].isNull())
|
||||
dBInstancesObject.dBInstanceStatus = value["DBInstanceStatus"].asString();
|
||||
if(!value["LockMode"].isNull())
|
||||
dBInstancesObject.lockMode = value["LockMode"].asString();
|
||||
if(!value["ChargeType"].isNull())
|
||||
dBInstancesObject.chargeType = value["ChargeType"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
dBInstancesObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["ReplicaSetName"].isNull())
|
||||
dBInstancesObject.replicaSetName = value["ReplicaSetName"].asString();
|
||||
if(!value["NetworkType"].isNull())
|
||||
dBInstancesObject.networkType = value["NetworkType"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
dBInstancesObject.expireTime = value["ExpireTime"].asString();
|
||||
if(!value["MaintainStartTime"].isNull())
|
||||
dBInstancesObject.maintainStartTime = value["MaintainStartTime"].asString();
|
||||
if(!value["MaintainEndTime"].isNull())
|
||||
dBInstancesObject.maintainEndTime = value["MaintainEndTime"].asString();
|
||||
if(!value["DBInstanceType"].isNull())
|
||||
dBInstancesObject.dBInstanceType = value["DBInstanceType"].asString();
|
||||
if(!value["LastDowngradeTime"].isNull())
|
||||
dBInstancesObject.lastDowngradeTime = value["LastDowngradeTime"].asString();
|
||||
if(!value["ReplicationFactor"].isNull())
|
||||
dBInstancesObject.replicationFactor = value["ReplicationFactor"].asString();
|
||||
if(!value["MaxIOPS"].isNull())
|
||||
dBInstancesObject.maxIOPS = std::stoi(value["MaxIOPS"].asString());
|
||||
if(!value["MaxConnections"].isNull())
|
||||
dBInstancesObject.maxConnections = std::stoi(value["MaxConnections"].asString());
|
||||
if(!value["CurrentKernelVersion"].isNull())
|
||||
dBInstancesObject.currentKernelVersion = value["CurrentKernelVersion"].asString();
|
||||
auto allMongosList = value["MongosList"]["MongosAttribute"];
|
||||
for (auto value : allMongosList)
|
||||
{
|
||||
DBInstance::MongosAttribute mongosListObject;
|
||||
if(!value["NodeId"].isNull())
|
||||
mongosListObject.nodeId = value["NodeId"].asString();
|
||||
if(!value["NodeDescription"].isNull())
|
||||
mongosListObject.nodeDescription = value["NodeDescription"].asString();
|
||||
if(!value["NodeClass"].isNull())
|
||||
mongosListObject.nodeClass = value["NodeClass"].asString();
|
||||
if(!value["ConnectSting"].isNull())
|
||||
mongosListObject.connectSting = value["ConnectSting"].asString();
|
||||
if(!value["MaxIOPS"].isNull())
|
||||
mongosListObject.maxIOPS = std::stoi(value["MaxIOPS"].asString());
|
||||
if(!value["MaxConnections"].isNull())
|
||||
mongosListObject.maxConnections = std::stoi(value["MaxConnections"].asString());
|
||||
if(!value["Port"].isNull())
|
||||
mongosListObject.port = std::stoi(value["Port"].asString());
|
||||
if(!value["VpcCloudInstanceId"].isNull())
|
||||
mongosListObject.vpcCloudInstanceId = value["VpcCloudInstanceId"].asString();
|
||||
if(!value["VPCId"].isNull())
|
||||
mongosListObject.vPCId = value["VPCId"].asString();
|
||||
if(!value["VSwitchId"].isNull())
|
||||
mongosListObject.vSwitchId = value["VSwitchId"].asString();
|
||||
dBInstancesObject.mongosList.push_back(mongosListObject);
|
||||
}
|
||||
auto allShardList = value["ShardList"]["ShardAttribute"];
|
||||
for (auto value : allShardList)
|
||||
{
|
||||
DBInstance::ShardAttribute shardListObject;
|
||||
if(!value["NodeId"].isNull())
|
||||
shardListObject.nodeId = value["NodeId"].asString();
|
||||
if(!value["NodeDescription"].isNull())
|
||||
shardListObject.nodeDescription = value["NodeDescription"].asString();
|
||||
if(!value["NodeClass"].isNull())
|
||||
shardListObject.nodeClass = value["NodeClass"].asString();
|
||||
if(!value["NodeStorage"].isNull())
|
||||
shardListObject.nodeStorage = std::stoi(value["NodeStorage"].asString());
|
||||
if(!value["MaxIOPS"].isNull())
|
||||
shardListObject.maxIOPS = std::stoi(value["MaxIOPS"].asString());
|
||||
if(!value["MaxConnections"].isNull())
|
||||
shardListObject.maxConnections = std::stoi(value["MaxConnections"].asString());
|
||||
dBInstancesObject.shardList.push_back(shardListObject);
|
||||
}
|
||||
auto allReplicaSets = value["ReplicaSets"]["ReplicaSet"];
|
||||
for (auto value : allReplicaSets)
|
||||
{
|
||||
DBInstance::ReplicaSet replicaSetsObject;
|
||||
if(!value["ReplicaSetRole"].isNull())
|
||||
replicaSetsObject.replicaSetRole = value["ReplicaSetRole"].asString();
|
||||
if(!value["ConnectionDomain"].isNull())
|
||||
replicaSetsObject.connectionDomain = value["ConnectionDomain"].asString();
|
||||
if(!value["ConnectionPort"].isNull())
|
||||
replicaSetsObject.connectionPort = value["ConnectionPort"].asString();
|
||||
if(!value["VPCCloudInstanceId"].isNull())
|
||||
replicaSetsObject.vPCCloudInstanceId = value["VPCCloudInstanceId"].asString();
|
||||
if(!value["VPCId"].isNull())
|
||||
replicaSetsObject.vPCId = value["VPCId"].asString();
|
||||
if(!value["VSwitchId"].isNull())
|
||||
replicaSetsObject.vSwitchId = value["VSwitchId"].asString();
|
||||
if(!value["NetworkType"].isNull())
|
||||
replicaSetsObject.networkType = value["NetworkType"].asString();
|
||||
dBInstancesObject.replicaSets.push_back(replicaSetsObject);
|
||||
}
|
||||
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();
|
||||
dBInstancesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
dBInstances_.push_back(dBInstancesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstanceAttributeResult::DBInstance> DescribeDBInstanceAttributeResult::getDBInstances()const
|
||||
{
|
||||
return dBInstances_;
|
||||
}
|
||||
|
||||
115
dds/src/model/DescribeDBInstanceMonitorRequest.cc
Normal file
115
dds/src/model/DescribeDBInstanceMonitorRequest.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/dds/model/DescribeDBInstanceMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeDBInstanceMonitorRequest;
|
||||
|
||||
DescribeDBInstanceMonitorRequest::DescribeDBInstanceMonitorRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeDBInstanceMonitor")
|
||||
{}
|
||||
|
||||
DescribeDBInstanceMonitorRequest::~DescribeDBInstanceMonitorRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBInstanceMonitorRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceMonitorRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceMonitorRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceMonitorRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceMonitorRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceMonitorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceMonitorRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceMonitorRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceMonitorRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceMonitorRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceMonitorRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceMonitorRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DescribeDBInstanceMonitorRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceMonitorRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceMonitorRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceMonitorRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
52
dds/src/model/DescribeDBInstanceMonitorResult.cc
Normal file
52
dds/src/model/DescribeDBInstanceMonitorResult.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/dds/model/DescribeDBInstanceMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeDBInstanceMonitorResult::DescribeDBInstanceMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBInstanceMonitorResult::DescribeDBInstanceMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBInstanceMonitorResult::~DescribeDBInstanceMonitorResult()
|
||||
{}
|
||||
|
||||
void DescribeDBInstanceMonitorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Granularity"].isNull())
|
||||
granularity_ = value["Granularity"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceMonitorResult::getGranularity()const
|
||||
{
|
||||
return granularity_;
|
||||
}
|
||||
|
||||
181
dds/src/model/DescribeDBInstancePerformanceRequest.cc
Normal file
181
dds/src/model/DescribeDBInstancePerformanceRequest.cc
Normal file
@@ -0,0 +1,181 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeDBInstancePerformanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeDBInstancePerformanceRequest;
|
||||
|
||||
DescribeDBInstancePerformanceRequest::DescribeDBInstancePerformanceRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeDBInstancePerformance")
|
||||
{}
|
||||
|
||||
DescribeDBInstancePerformanceRequest::~DescribeDBInstancePerformanceRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBInstancePerformanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getRoleId()const
|
||||
{
|
||||
return roleId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setRoleId(const std::string& roleId)
|
||||
{
|
||||
roleId_ = roleId;
|
||||
setCoreParameter("RoleId", roleId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long DescribeDBInstancePerformanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getReplicaSetRole()const
|
||||
{
|
||||
return replicaSetRole_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setReplicaSetRole(const std::string& replicaSetRole)
|
||||
{
|
||||
replicaSetRole_ = replicaSetRole;
|
||||
setCoreParameter("ReplicaSetRole", replicaSetRole);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setCoreParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancePerformanceRequest::getKey()const
|
||||
{
|
||||
return key_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setCoreParameter("Key", key);
|
||||
}
|
||||
|
||||
100
dds/src/model/DescribeDBInstancePerformanceResult.cc
Normal file
100
dds/src/model/DescribeDBInstancePerformanceResult.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/dds/model/DescribeDBInstancePerformanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::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 (auto value : allPerformanceKeys)
|
||||
{
|
||||
PerformanceKey performanceKeysObject;
|
||||
if(!value["Key"].isNull())
|
||||
performanceKeysObject.key = value["Key"].asString();
|
||||
if(!value["Unit"].isNull())
|
||||
performanceKeysObject.unit = value["Unit"].asString();
|
||||
if(!value["ValueFormat"].isNull())
|
||||
performanceKeysObject.valueFormat = value["ValueFormat"].asString();
|
||||
auto allPerformanceValues = value["PerformanceValues"]["PerformanceValue"];
|
||||
for (auto value : allPerformanceValues)
|
||||
{
|
||||
PerformanceKey::PerformanceValue performanceValuesObject;
|
||||
if(!value["Value"].isNull())
|
||||
performanceValuesObject.value = value["Value"].asString();
|
||||
if(!value["Date"].isNull())
|
||||
performanceValuesObject.date = value["Date"].asString();
|
||||
performanceKeysObject.performanceValues.push_back(performanceValuesObject);
|
||||
}
|
||||
performanceKeys_.push_back(performanceKeysObject);
|
||||
}
|
||||
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<DescribeDBInstancePerformanceResult::PerformanceKey> 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_;
|
||||
}
|
||||
|
||||
115
dds/src/model/DescribeDBInstanceSSLRequest.cc
Normal file
115
dds/src/model/DescribeDBInstanceSSLRequest.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/dds/model/DescribeDBInstanceSSLRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeDBInstanceSSLRequest;
|
||||
|
||||
DescribeDBInstanceSSLRequest::DescribeDBInstanceSSLRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeDBInstanceSSL")
|
||||
{}
|
||||
|
||||
DescribeDBInstanceSSLRequest::~DescribeDBInstanceSSLRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBInstanceSSLRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceSSLRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceSSLRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceSSLRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceSSLRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceSSLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceSSLRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceSSLRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceSSLRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceSSLRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceSSLRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceSSLRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DescribeDBInstanceSSLRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceSSLRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceSSLRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstanceSSLRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
66
dds/src/model/DescribeDBInstanceSSLResult.cc
Normal file
66
dds/src/model/DescribeDBInstanceSSLResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeDBInstanceSSLResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeDBInstanceSSLResult::DescribeDBInstanceSSLResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBInstanceSSLResult::DescribeDBInstanceSSLResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBInstanceSSLResult::~DescribeDBInstanceSSLResult()
|
||||
{}
|
||||
|
||||
void DescribeDBInstanceSSLResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SSLExpiredTime"].isNull())
|
||||
sSLExpiredTime_ = value["SSLExpiredTime"].asString();
|
||||
if(!value["CertCommonName"].isNull())
|
||||
certCommonName_ = value["CertCommonName"].asString();
|
||||
if(!value["SSLStatus"].isNull())
|
||||
sSLStatus_ = value["SSLStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceSSLResult::getSSLExpiredTime()const
|
||||
{
|
||||
return sSLExpiredTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceSSLResult::getSSLStatus()const
|
||||
{
|
||||
return sSLStatus_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInstanceSSLResult::getCertCommonName()const
|
||||
{
|
||||
return certCommonName_;
|
||||
}
|
||||
|
||||
308
dds/src/model/DescribeDBInstancesRequest.cc
Normal file
308
dds/src/model/DescribeDBInstancesRequest.cc
Normal file
@@ -0,0 +1,308 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeDBInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeDBInstancesRequest;
|
||||
|
||||
DescribeDBInstancesRequest::DescribeDBInstancesRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeDBInstances")
|
||||
{}
|
||||
|
||||
DescribeDBInstancesRequest::~DescribeDBInstancesRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBInstancesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setEngineVersion(const std::string& engineVersion)
|
||||
{
|
||||
engineVersion_ = engineVersion;
|
||||
setCoreParameter("EngineVersion", engineVersion);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getNetworkType()const
|
||||
{
|
||||
return networkType_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setNetworkType(const std::string& networkType)
|
||||
{
|
||||
networkType_ = networkType;
|
||||
setCoreParameter("NetworkType", networkType);
|
||||
}
|
||||
|
||||
int DescribeDBInstancesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getReplicationFactor()const
|
||||
{
|
||||
return replicationFactor_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setReplicationFactor(const std::string& replicationFactor)
|
||||
{
|
||||
replicationFactor_ = replicationFactor;
|
||||
setCoreParameter("ReplicationFactor", replicationFactor);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getExpired()const
|
||||
{
|
||||
return expired_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setExpired(const std::string& expired)
|
||||
{
|
||||
expired_ = expired;
|
||||
setCoreParameter("Expired", expired);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setCoreParameter("Engine", engine);
|
||||
}
|
||||
|
||||
int DescribeDBInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getDBInstanceDescription()const
|
||||
{
|
||||
return dBInstanceDescription_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setDBInstanceDescription(const std::string& dBInstanceDescription)
|
||||
{
|
||||
dBInstanceDescription_ = dBInstanceDescription;
|
||||
setCoreParameter("DBInstanceDescription", dBInstanceDescription);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getDBInstanceStatus()const
|
||||
{
|
||||
return dBInstanceStatus_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setDBInstanceStatus(const std::string& dBInstanceStatus)
|
||||
{
|
||||
dBInstanceStatus_ = dBInstanceStatus;
|
||||
setCoreParameter("DBInstanceStatus", dBInstanceStatus);
|
||||
}
|
||||
|
||||
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);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getExpireTime()const
|
||||
{
|
||||
return expireTime_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setExpireTime(const std::string& expireTime)
|
||||
{
|
||||
expireTime_ = expireTime;
|
||||
setCoreParameter("ExpireTime", expireTime);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeDBInstancesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getDBInstanceType()const
|
||||
{
|
||||
return dBInstanceType_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setDBInstanceType(const std::string& dBInstanceType)
|
||||
{
|
||||
dBInstanceType_ = dBInstanceType;
|
||||
setCoreParameter("DBInstanceType", dBInstanceType);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getDBInstanceClass()const
|
||||
{
|
||||
return dBInstanceClass_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setDBInstanceClass(const std::string& dBInstanceClass)
|
||||
{
|
||||
dBInstanceClass_ = dBInstanceClass;
|
||||
setCoreParameter("DBInstanceClass", dBInstanceClass);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getChargeType()const
|
||||
{
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setChargeType(const std::string& chargeType)
|
||||
{
|
||||
chargeType_ = chargeType;
|
||||
setCoreParameter("ChargeType", chargeType);
|
||||
}
|
||||
|
||||
155
dds/src/model/DescribeDBInstancesResult.cc
Normal file
155
dds/src/model/DescribeDBInstancesResult.cc
Normal file
@@ -0,0 +1,155 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeDBInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::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 allDBInstances = value["DBInstances"]["DBInstance"];
|
||||
for (auto value : allDBInstances)
|
||||
{
|
||||
DBInstance dBInstancesObject;
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
dBInstancesObject.resourceGroupId = value["ResourceGroupId"].asString();
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstancesObject.dBInstanceId = value["DBInstanceId"].asString();
|
||||
if(!value["DBInstanceDescription"].isNull())
|
||||
dBInstancesObject.dBInstanceDescription = value["DBInstanceDescription"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
dBInstancesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["ZoneId"].isNull())
|
||||
dBInstancesObject.zoneId = value["ZoneId"].asString();
|
||||
if(!value["Engine"].isNull())
|
||||
dBInstancesObject.engine = value["Engine"].asString();
|
||||
if(!value["EngineVersion"].isNull())
|
||||
dBInstancesObject.engineVersion = value["EngineVersion"].asString();
|
||||
if(!value["DBInstanceClass"].isNull())
|
||||
dBInstancesObject.dBInstanceClass = value["DBInstanceClass"].asString();
|
||||
if(!value["DBInstanceStorage"].isNull())
|
||||
dBInstancesObject.dBInstanceStorage = std::stoi(value["DBInstanceStorage"].asString());
|
||||
if(!value["DBInstanceStatus"].isNull())
|
||||
dBInstancesObject.dBInstanceStatus = value["DBInstanceStatus"].asString();
|
||||
if(!value["LockMode"].isNull())
|
||||
dBInstancesObject.lockMode = value["LockMode"].asString();
|
||||
if(!value["ChargeType"].isNull())
|
||||
dBInstancesObject.chargeType = value["ChargeType"].asString();
|
||||
if(!value["NetworkType"].isNull())
|
||||
dBInstancesObject.networkType = value["NetworkType"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
dBInstancesObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
dBInstancesObject.expireTime = value["ExpireTime"].asString();
|
||||
if(!value["DBInstanceType"].isNull())
|
||||
dBInstancesObject.dBInstanceType = value["DBInstanceType"].asString();
|
||||
if(!value["LastDowngradeTime"].isNull())
|
||||
dBInstancesObject.lastDowngradeTime = value["LastDowngradeTime"].asString();
|
||||
if(!value["ReplicationFactor"].isNull())
|
||||
dBInstancesObject.replicationFactor = value["ReplicationFactor"].asString();
|
||||
if(!value["DestroyTime"].isNull())
|
||||
dBInstancesObject.destroyTime = value["DestroyTime"].asString();
|
||||
auto allMongosList = value["MongosList"]["MongosAttribute"];
|
||||
for (auto value : allMongosList)
|
||||
{
|
||||
DBInstance::MongosAttribute mongosListObject;
|
||||
if(!value["NodeId"].isNull())
|
||||
mongosListObject.nodeId = value["NodeId"].asString();
|
||||
if(!value["NodeDescription"].isNull())
|
||||
mongosListObject.nodeDescription = value["NodeDescription"].asString();
|
||||
if(!value["NodeClass"].isNull())
|
||||
mongosListObject.nodeClass = value["NodeClass"].asString();
|
||||
if(!value["ConnectSting"].isNull())
|
||||
mongosListObject.connectSting = value["ConnectSting"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
mongosListObject.port = std::stoi(value["Port"].asString());
|
||||
dBInstancesObject.mongosList.push_back(mongosListObject);
|
||||
}
|
||||
auto allShardList = value["ShardList"]["ShardAttribute"];
|
||||
for (auto value : allShardList)
|
||||
{
|
||||
DBInstance::ShardAttribute shardListObject;
|
||||
if(!value["NodeId"].isNull())
|
||||
shardListObject.nodeId = value["NodeId"].asString();
|
||||
if(!value["NodeDescription"].isNull())
|
||||
shardListObject.nodeDescription = value["NodeDescription"].asString();
|
||||
if(!value["NodeClass"].isNull())
|
||||
shardListObject.nodeClass = value["NodeClass"].asString();
|
||||
if(!value["NodeStorage"].isNull())
|
||||
shardListObject.nodeStorage = std::stoi(value["NodeStorage"].asString());
|
||||
dBInstancesObject.shardList.push_back(shardListObject);
|
||||
}
|
||||
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();
|
||||
dBInstancesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
dBInstances_.push_back(dBInstancesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeDBInstancesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeDBInstancesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeDBInstancesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstancesResult::DBInstance> DescribeDBInstancesResult::getDBInstances()const
|
||||
{
|
||||
return dBInstances_;
|
||||
}
|
||||
|
||||
203
dds/src/model/DescribeErrorLogRecordsRequest.cc
Normal file
203
dds/src/model/DescribeErrorLogRecordsRequest.cc
Normal file
@@ -0,0 +1,203 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeErrorLogRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeErrorLogRecordsRequest;
|
||||
|
||||
DescribeErrorLogRecordsRequest::DescribeErrorLogRecordsRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeErrorLogRecords")
|
||||
{}
|
||||
|
||||
DescribeErrorLogRecordsRequest::~DescribeErrorLogRecordsRequest()
|
||||
{}
|
||||
|
||||
long DescribeErrorLogRecordsRequest::getSQLId()const
|
||||
{
|
||||
return sQLId_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setSQLId(long sQLId)
|
||||
{
|
||||
sQLId_ = sQLId;
|
||||
setCoreParameter("SQLId", std::to_string(sQLId));
|
||||
}
|
||||
|
||||
long DescribeErrorLogRecordsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeErrorLogRecordsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeErrorLogRecordsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeErrorLogRecordsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeErrorLogRecordsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long DescribeErrorLogRecordsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeErrorLogRecordsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeErrorLogRecordsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeErrorLogRecordsRequest::getDBName()const
|
||||
{
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setDBName(const std::string& dBName)
|
||||
{
|
||||
dBName_ = dBName;
|
||||
setCoreParameter("DBName", dBName);
|
||||
}
|
||||
|
||||
std::string DescribeErrorLogRecordsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeErrorLogRecordsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeErrorLogRecordsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeErrorLogRecordsRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeErrorLogRecordsRequest::getRoleType()const
|
||||
{
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setRoleType(const std::string& roleType)
|
||||
{
|
||||
roleType_ = roleType;
|
||||
setCoreParameter("RoleType", roleType);
|
||||
}
|
||||
|
||||
std::string DescribeErrorLogRecordsRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void DescribeErrorLogRecordsRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setCoreParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
94
dds/src/model/DescribeErrorLogRecordsResult.cc
Normal file
94
dds/src/model/DescribeErrorLogRecordsResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeErrorLogRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeErrorLogRecordsResult::DescribeErrorLogRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeErrorLogRecordsResult::DescribeErrorLogRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeErrorLogRecordsResult::~DescribeErrorLogRecordsResult()
|
||||
{}
|
||||
|
||||
void DescribeErrorLogRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["LogRecords"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
LogRecords itemsObject;
|
||||
if(!value["Id"].isNull())
|
||||
itemsObject.id = std::stoi(value["Id"].asString());
|
||||
if(!value["CreateTime"].isNull())
|
||||
itemsObject.createTime = value["CreateTime"].asString();
|
||||
if(!value["Category"].isNull())
|
||||
itemsObject.category = value["Category"].asString();
|
||||
if(!value["ConnInfo"].isNull())
|
||||
itemsObject.connInfo = value["ConnInfo"].asString();
|
||||
if(!value["Content"].isNull())
|
||||
itemsObject.content = std::stol(value["Content"].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 DescribeErrorLogRecordsResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeErrorLogRecordsResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeErrorLogRecordsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeErrorLogRecordsResult::LogRecords> DescribeErrorLogRecordsResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
std::string DescribeErrorLogRecordsResult::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
214
dds/src/model/DescribeIndexRecommendationRequest.cc
Normal file
214
dds/src/model/DescribeIndexRecommendationRequest.cc
Normal file
@@ -0,0 +1,214 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeIndexRecommendationRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeIndexRecommendationRequest;
|
||||
|
||||
DescribeIndexRecommendationRequest::DescribeIndexRecommendationRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeIndexRecommendation")
|
||||
{}
|
||||
|
||||
DescribeIndexRecommendationRequest::~DescribeIndexRecommendationRequest()
|
||||
{}
|
||||
|
||||
long DescribeIndexRecommendationRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getCollection()const
|
||||
{
|
||||
return collection_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setCollection(const std::string& collection)
|
||||
{
|
||||
collection_ = collection;
|
||||
setCoreParameter("Collection", collection);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getOperationType()const
|
||||
{
|
||||
return operationType_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setOperationType(const std::string& operationType)
|
||||
{
|
||||
operationType_ = operationType;
|
||||
setCoreParameter("OperationType", operationType);
|
||||
}
|
||||
|
||||
long DescribeIndexRecommendationRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeIndexRecommendationRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getDatabase()const
|
||||
{
|
||||
return database_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setDatabase(const std::string& database)
|
||||
{
|
||||
database_ = database;
|
||||
setCoreParameter("Database", database);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeIndexRecommendationRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setCoreParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
std::string DescribeIndexRecommendationRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeIndexRecommendationRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
118
dds/src/model/DescribeIndexRecommendationResult.cc
Normal file
118
dds/src/model/DescribeIndexRecommendationResult.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dds/model/DescribeIndexRecommendationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeIndexRecommendationResult::DescribeIndexRecommendationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIndexRecommendationResult::DescribeIndexRecommendationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIndexRecommendationResult::~DescribeIndexRecommendationResult()
|
||||
{}
|
||||
|
||||
void DescribeIndexRecommendationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAnalyzations = value["Analyzations"]["Analyzation"];
|
||||
for (auto value : allAnalyzations)
|
||||
{
|
||||
Analyzation analyzationsObject;
|
||||
if(!value["Database"].isNull())
|
||||
analyzationsObject.database = value["Database"].asString();
|
||||
if(!value["Namespace"].isNull())
|
||||
analyzationsObject._namespace = value["Namespace"].asString();
|
||||
if(!value["Operation"].isNull())
|
||||
analyzationsObject.operation = value["Operation"].asString();
|
||||
if(!value["Query"].isNull())
|
||||
analyzationsObject.query = value["Query"].asString();
|
||||
if(!value["Sort"].isNull())
|
||||
analyzationsObject.sort = value["Sort"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
analyzationsObject.count = std::stol(value["Count"].asString());
|
||||
if(!value["TotalExecutionTime"].isNull())
|
||||
analyzationsObject.totalExecutionTime = std::stol(value["TotalExecutionTime"].asString());
|
||||
if(!value["AverageExecutionTime"].isNull())
|
||||
analyzationsObject.averageExecutionTime = std::stol(value["AverageExecutionTime"].asString());
|
||||
if(!value["AverageReturnRowCount"].isNull())
|
||||
analyzationsObject.averageReturnRowCount = std::stol(value["AverageReturnRowCount"].asString());
|
||||
if(!value["AverageDocsExaminedCount"].isNull())
|
||||
analyzationsObject.averageDocsExaminedCount = std::stol(value["AverageDocsExaminedCount"].asString());
|
||||
if(!value["AverageKeysExaminedCount"].isNull())
|
||||
analyzationsObject.averageKeysExaminedCount = std::stol(value["AverageKeysExaminedCount"].asString());
|
||||
if(!value["InMemorySort"].isNull())
|
||||
analyzationsObject.inMemorySort = value["InMemorySort"].asString();
|
||||
if(!value["LastExecutionTime"].isNull())
|
||||
analyzationsObject.lastExecutionTime = value["LastExecutionTime"].asString();
|
||||
if(!value["ExecutionPlan"].isNull())
|
||||
analyzationsObject.executionPlan = value["ExecutionPlan"].asString();
|
||||
auto allIndexRecommendations = value["IndexRecommendations"]["Recommendation"];
|
||||
for (auto value : allIndexRecommendations)
|
||||
{
|
||||
Analyzation::Recommendation indexRecommendationsObject;
|
||||
if(!value["RecmdType"].isNull())
|
||||
indexRecommendationsObject.recmdType = value["RecmdType"].asString();
|
||||
if(!value["Content"].isNull())
|
||||
indexRecommendationsObject.content = value["Content"].asString();
|
||||
analyzationsObject.indexRecommendations.push_back(indexRecommendationsObject);
|
||||
}
|
||||
auto allIndexCombines = value["IndexCombines"]["IndexCombine"];
|
||||
for (auto value : allIndexCombines)
|
||||
analyzationsObject.indexCombines.push_back(value.asString());
|
||||
analyzations_.push_back(analyzationsObject);
|
||||
}
|
||||
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 DescribeIndexRecommendationResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeIndexRecommendationResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeIndexRecommendationResult::Analyzation> DescribeIndexRecommendationResult::getAnalyzations()const
|
||||
{
|
||||
return analyzations_;
|
||||
}
|
||||
|
||||
int DescribeIndexRecommendationResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
148
dds/src/model/DescribeInstanceAutoRenewalAttributeRequest.cc
Normal file
148
dds/src/model/DescribeInstanceAutoRenewalAttributeRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeInstanceAutoRenewalAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeInstanceAutoRenewalAttributeRequest;
|
||||
|
||||
DescribeInstanceAutoRenewalAttributeRequest::DescribeInstanceAutoRenewalAttributeRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeInstanceAutoRenewalAttribute")
|
||||
{}
|
||||
|
||||
DescribeInstanceAutoRenewalAttributeRequest::~DescribeInstanceAutoRenewalAttributeRequest()
|
||||
{}
|
||||
|
||||
long DescribeInstanceAutoRenewalAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAutoRenewalAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAutoRenewalAttributeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAutoRenewalAttributeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAutoRenewalAttributeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAutoRenewalAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAutoRenewalAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAutoRenewalAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAutoRenewalAttributeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAutoRenewalAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAutoRenewalAttributeRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAutoRenewalAttributeRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAutoRenewalAttributeRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAutoRenewalAttributeRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DescribeInstanceAutoRenewalAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAutoRenewalAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAutoRenewalAttributeRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAutoRenewalAttributeRequest::setPageNumber(const std::string& pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAutoRenewalAttributeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAutoRenewalAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAutoRenewalAttributeRequest::getDBInstanceType()const
|
||||
{
|
||||
return dBInstanceType_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAutoRenewalAttributeRequest::setDBInstanceType(const std::string& dBInstanceType)
|
||||
{
|
||||
dBInstanceType_ = dBInstanceType;
|
||||
setCoreParameter("DBInstanceType", dBInstanceType);
|
||||
}
|
||||
|
||||
87
dds/src/model/DescribeInstanceAutoRenewalAttributeResult.cc
Normal file
87
dds/src/model/DescribeInstanceAutoRenewalAttributeResult.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/dds/model/DescribeInstanceAutoRenewalAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeInstanceAutoRenewalAttributeResult::DescribeInstanceAutoRenewalAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeInstanceAutoRenewalAttributeResult::DescribeInstanceAutoRenewalAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeInstanceAutoRenewalAttributeResult::~DescribeInstanceAutoRenewalAttributeResult()
|
||||
{}
|
||||
|
||||
void DescribeInstanceAutoRenewalAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Item"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
Item itemsObject;
|
||||
if(!value["DbInstanceId"].isNull())
|
||||
itemsObject.dbInstanceId = value["DbInstanceId"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
itemsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["Duration"].isNull())
|
||||
itemsObject.duration = value["Duration"].asString();
|
||||
if(!value["AutoRenew"].isNull())
|
||||
itemsObject.autoRenew = value["AutoRenew"].asString();
|
||||
if(!value["DBInstanceType"].isNull())
|
||||
itemsObject.dBInstanceType = value["DBInstanceType"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["ItemsNumbers"].isNull())
|
||||
itemsNumbers_ = std::stoi(value["ItemsNumbers"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeInstanceAutoRenewalAttributeResult::getItemsNumbers()const
|
||||
{
|
||||
return itemsNumbers_;
|
||||
}
|
||||
|
||||
int DescribeInstanceAutoRenewalAttributeResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeInstanceAutoRenewalAttributeResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeInstanceAutoRenewalAttributeResult::Item> DescribeInstanceAutoRenewalAttributeResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
115
dds/src/model/DescribeKernelReleaseNotesRequest.cc
Normal file
115
dds/src/model/DescribeKernelReleaseNotesRequest.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/dds/model/DescribeKernelReleaseNotesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeKernelReleaseNotesRequest;
|
||||
|
||||
DescribeKernelReleaseNotesRequest::DescribeKernelReleaseNotesRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeKernelReleaseNotes")
|
||||
{}
|
||||
|
||||
DescribeKernelReleaseNotesRequest::~DescribeKernelReleaseNotesRequest()
|
||||
{}
|
||||
|
||||
long DescribeKernelReleaseNotesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeKernelReleaseNotesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeKernelReleaseNotesRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeKernelReleaseNotesRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeKernelReleaseNotesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeKernelReleaseNotesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeKernelReleaseNotesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeKernelReleaseNotesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeKernelReleaseNotesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeKernelReleaseNotesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeKernelReleaseNotesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeKernelReleaseNotesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeKernelReleaseNotesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeKernelReleaseNotesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeKernelReleaseNotesRequest::getKernelVersion()const
|
||||
{
|
||||
return kernelVersion_;
|
||||
}
|
||||
|
||||
void DescribeKernelReleaseNotesRequest::setKernelVersion(const std::string& kernelVersion)
|
||||
{
|
||||
kernelVersion_ = kernelVersion;
|
||||
setCoreParameter("KernelVersion", kernelVersion);
|
||||
}
|
||||
|
||||
60
dds/src/model/DescribeKernelReleaseNotesResult.cc
Normal file
60
dds/src/model/DescribeKernelReleaseNotesResult.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/dds/model/DescribeKernelReleaseNotesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeKernelReleaseNotesResult::DescribeKernelReleaseNotesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeKernelReleaseNotesResult::DescribeKernelReleaseNotesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeKernelReleaseNotesResult::~DescribeKernelReleaseNotesResult()
|
||||
{}
|
||||
|
||||
void DescribeKernelReleaseNotesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allReleaseNotes = value["ReleaseNotes"]["ReleaseNote"];
|
||||
for (auto value : allReleaseNotes)
|
||||
{
|
||||
ReleaseNote releaseNotesObject;
|
||||
if(!value["KernelVersion"].isNull())
|
||||
releaseNotesObject.kernelVersion = value["KernelVersion"].asString();
|
||||
if(!value["ReleaseNote"].isNull())
|
||||
releaseNotesObject.releaseNote = value["ReleaseNote"].asString();
|
||||
releaseNotes_.push_back(releaseNotesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeKernelReleaseNotesResult::ReleaseNote> DescribeKernelReleaseNotesResult::getReleaseNotes()const
|
||||
{
|
||||
return releaseNotes_;
|
||||
}
|
||||
|
||||
148
dds/src/model/DescribeParameterModificationHistoryRequest.cc
Normal file
148
dds/src/model/DescribeParameterModificationHistoryRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeParameterModificationHistoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeParameterModificationHistoryRequest;
|
||||
|
||||
DescribeParameterModificationHistoryRequest::DescribeParameterModificationHistoryRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeParameterModificationHistory")
|
||||
{}
|
||||
|
||||
DescribeParameterModificationHistoryRequest::~DescribeParameterModificationHistoryRequest()
|
||||
{}
|
||||
|
||||
long DescribeParameterModificationHistoryRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterModificationHistoryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterModificationHistoryRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeParameterModificationHistoryRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeParameterModificationHistoryRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterModificationHistoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeParameterModificationHistoryRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeParameterModificationHistoryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterModificationHistoryRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterModificationHistoryRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeParameterModificationHistoryRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeParameterModificationHistoryRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeParameterModificationHistoryRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeParameterModificationHistoryRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterModificationHistoryRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeParameterModificationHistoryRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long DescribeParameterModificationHistoryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterModificationHistoryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterModificationHistoryRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void DescribeParameterModificationHistoryRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setCoreParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterModificationHistoryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeParameterModificationHistoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
64
dds/src/model/DescribeParameterModificationHistoryResult.cc
Normal file
64
dds/src/model/DescribeParameterModificationHistoryResult.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/dds/model/DescribeParameterModificationHistoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeParameterModificationHistoryResult::DescribeParameterModificationHistoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeParameterModificationHistoryResult::DescribeParameterModificationHistoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeParameterModificationHistoryResult::~DescribeParameterModificationHistoryResult()
|
||||
{}
|
||||
|
||||
void DescribeParameterModificationHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allHistoricalParameters = value["HistoricalParameters"]["HistoricalParameter"];
|
||||
for (auto value : allHistoricalParameters)
|
||||
{
|
||||
HistoricalParameter historicalParametersObject;
|
||||
if(!value["ParameterName"].isNull())
|
||||
historicalParametersObject.parameterName = value["ParameterName"].asString();
|
||||
if(!value["ModifyTime"].isNull())
|
||||
historicalParametersObject.modifyTime = value["ModifyTime"].asString();
|
||||
if(!value["OldParameterValue"].isNull())
|
||||
historicalParametersObject.oldParameterValue = value["OldParameterValue"].asString();
|
||||
if(!value["NewParameterValue"].isNull())
|
||||
historicalParametersObject.newParameterValue = value["NewParameterValue"].asString();
|
||||
historicalParameters_.push_back(historicalParametersObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeParameterModificationHistoryResult::HistoricalParameter> DescribeParameterModificationHistoryResult::getHistoricalParameters()const
|
||||
{
|
||||
return historicalParameters_;
|
||||
}
|
||||
|
||||
126
dds/src/model/DescribeParameterTemplatesRequest.cc
Normal file
126
dds/src/model/DescribeParameterTemplatesRequest.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/dds/model/DescribeParameterTemplatesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeParameterTemplatesRequest;
|
||||
|
||||
DescribeParameterTemplatesRequest::DescribeParameterTemplatesRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeParameterTemplates")
|
||||
{}
|
||||
|
||||
DescribeParameterTemplatesRequest::~DescribeParameterTemplatesRequest()
|
||||
{}
|
||||
|
||||
long DescribeParameterTemplatesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setCoreParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setEngineVersion(const std::string& engineVersion)
|
||||
{
|
||||
engineVersion_ = engineVersion;
|
||||
setCoreParameter("EngineVersion", engineVersion);
|
||||
}
|
||||
|
||||
long DescribeParameterTemplatesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
89
dds/src/model/DescribeParameterTemplatesResult.cc
Normal file
89
dds/src/model/DescribeParameterTemplatesResult.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/dds/model/DescribeParameterTemplatesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeParameterTemplatesResult::DescribeParameterTemplatesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeParameterTemplatesResult::DescribeParameterTemplatesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeParameterTemplatesResult::~DescribeParameterTemplatesResult()
|
||||
{}
|
||||
|
||||
void DescribeParameterTemplatesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParameters = value["Parameters"]["TemplateRecord"];
|
||||
for (auto value : allParameters)
|
||||
{
|
||||
TemplateRecord parametersObject;
|
||||
if(!value["ParameterName"].isNull())
|
||||
parametersObject.parameterName = value["ParameterName"].asString();
|
||||
if(!value["ParameterValue"].isNull())
|
||||
parametersObject.parameterValue = value["ParameterValue"].asString();
|
||||
if(!value["ForceModify"].isNull())
|
||||
parametersObject.forceModify = value["ForceModify"].asString() == "true";
|
||||
if(!value["ForceRestart"].isNull())
|
||||
parametersObject.forceRestart = value["ForceRestart"].asString() == "true";
|
||||
if(!value["CheckingCode"].isNull())
|
||||
parametersObject.checkingCode = value["CheckingCode"].asString();
|
||||
if(!value["ParameterDescription"].isNull())
|
||||
parametersObject.parameterDescription = value["ParameterDescription"].asString();
|
||||
parameters_.push_back(parametersObject);
|
||||
}
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
if(!value["EngineVersion"].isNull())
|
||||
engineVersion_ = value["EngineVersion"].asString();
|
||||
if(!value["ParameterCount"].isNull())
|
||||
parameterCount_ = value["ParameterCount"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesResult::getParameterCount()const
|
||||
{
|
||||
return parameterCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeParameterTemplatesResult::TemplateRecord> DescribeParameterTemplatesResult::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesResult::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesResult::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
126
dds/src/model/DescribeParametersRequest.cc
Normal file
126
dds/src/model/DescribeParametersRequest.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/dds/model/DescribeParametersRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeParametersRequest;
|
||||
|
||||
DescribeParametersRequest::DescribeParametersRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeParameters")
|
||||
{}
|
||||
|
||||
DescribeParametersRequest::~DescribeParametersRequest()
|
||||
{}
|
||||
|
||||
long DescribeParametersRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeParametersRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeParametersRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeParametersRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeParametersRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParametersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeParametersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeParametersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeParametersRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParametersRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeParametersRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeParametersRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DescribeParametersRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeParametersRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeParametersRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void DescribeParametersRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setCoreParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
std::string DescribeParametersRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeParametersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
105
dds/src/model/DescribeParametersResult.cc
Normal file
105
dds/src/model/DescribeParametersResult.cc
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeParametersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeParametersResult::DescribeParametersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeParametersResult::DescribeParametersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeParametersResult::~DescribeParametersResult()
|
||||
{}
|
||||
|
||||
void DescribeParametersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allConfigParameters = value["ConfigParameters"]["Parameter"];
|
||||
for (auto value : allConfigParameters)
|
||||
{
|
||||
Parameter configParametersObject;
|
||||
if(!value["ParameterName"].isNull())
|
||||
configParametersObject.parameterName = value["ParameterName"].asString();
|
||||
if(!value["ParameterValue"].isNull())
|
||||
configParametersObject.parameterValue = value["ParameterValue"].asString();
|
||||
if(!value["ModifiableStatus"].isNull())
|
||||
configParametersObject.modifiableStatus = value["ModifiableStatus"].asString() == "true";
|
||||
if(!value["ForceRestart"].isNull())
|
||||
configParametersObject.forceRestart = value["ForceRestart"].asString() == "true";
|
||||
if(!value["CheckingCode"].isNull())
|
||||
configParametersObject.checkingCode = value["CheckingCode"].asString();
|
||||
if(!value["ParameterDescription"].isNull())
|
||||
configParametersObject.parameterDescription = value["ParameterDescription"].asString();
|
||||
configParameters_.push_back(configParametersObject);
|
||||
}
|
||||
auto allRunningParameters = value["RunningParameters"]["Parameter"];
|
||||
for (auto value : allRunningParameters)
|
||||
{
|
||||
Parameter runningParametersObject;
|
||||
if(!value["ParameterName"].isNull())
|
||||
runningParametersObject.parameterName = value["ParameterName"].asString();
|
||||
if(!value["ParameterValue"].isNull())
|
||||
runningParametersObject.parameterValue = value["ParameterValue"].asString();
|
||||
if(!value["ModifiableStatus"].isNull())
|
||||
runningParametersObject.modifiableStatus = value["ModifiableStatus"].asString() == "true";
|
||||
if(!value["ForceRestart"].isNull())
|
||||
runningParametersObject.forceRestart = value["ForceRestart"].asString() == "true";
|
||||
if(!value["CheckingCode"].isNull())
|
||||
runningParametersObject.checkingCode = value["CheckingCode"].asString();
|
||||
if(!value["ParameterDescription"].isNull())
|
||||
runningParametersObject.parameterDescription = value["ParameterDescription"].asString();
|
||||
runningParameters_.push_back(runningParametersObject);
|
||||
}
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
if(!value["EngineVersion"].isNull())
|
||||
engineVersion_ = value["EngineVersion"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeParametersResult::Parameter> DescribeParametersResult::getRunningParameters()const
|
||||
{
|
||||
return runningParameters_;
|
||||
}
|
||||
|
||||
std::string DescribeParametersResult::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
std::vector<DescribeParametersResult::Parameter> DescribeParametersResult::getConfigParameters()const
|
||||
{
|
||||
return configParameters_;
|
||||
}
|
||||
|
||||
std::string DescribeParametersResult::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
126
dds/src/model/DescribeRdsVSwitchsRequest.cc
Normal file
126
dds/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/dds/model/DescribeRdsVSwitchsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeRdsVSwitchsRequest;
|
||||
|
||||
DescribeRdsVSwitchsRequest::DescribeRdsVSwitchsRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeRdsVSwitchs")
|
||||
{}
|
||||
|
||||
DescribeRdsVSwitchsRequest::~DescribeRdsVSwitchsRequest()
|
||||
{}
|
||||
|
||||
long DescribeRdsVSwitchsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRdsVSwitchsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVSwitchsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVSwitchsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVSwitchsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVSwitchsRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVSwitchsRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
long DescribeRdsVSwitchsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRdsVSwitchsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVSwitchsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
79
dds/src/model/DescribeRdsVSwitchsResult.cc
Normal file
79
dds/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/dds/model/DescribeRdsVSwitchsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::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
dds/src/model/DescribeRdsVpcsRequest.cc
Normal file
115
dds/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/dds/model/DescribeRdsVpcsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeRdsVpcsRequest;
|
||||
|
||||
DescribeRdsVpcsRequest::DescribeRdsVpcsRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeRdsVpcs")
|
||||
{}
|
||||
|
||||
DescribeRdsVpcsRequest::~DescribeRdsVpcsRequest()
|
||||
{}
|
||||
|
||||
long DescribeRdsVpcsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRdsVpcsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVpcsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVpcsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVpcsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRdsVpcsRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
long DescribeRdsVpcsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRdsVpcsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRdsVpcsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
99
dds/src/model/DescribeRdsVpcsResult.cc
Normal file
99
dds/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/dds/model/DescribeRdsVpcsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::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_;
|
||||
}
|
||||
|
||||
115
dds/src/model/DescribeRegionsRequest.cc
Normal file
115
dds/src/model/DescribeRegionsRequest.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/dds/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeRegions")
|
||||
{}
|
||||
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest()
|
||||
{}
|
||||
|
||||
long DescribeRegionsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRegionsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRegionsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRegionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeRegionsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRegionsRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
long DescribeRegionsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRegionsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
70
dds/src/model/DescribeRegionsResult.cc
Normal file
70
dds/src/model/DescribeRegionsResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::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"]["DdsRegion"];
|
||||
for (auto value : allRegions)
|
||||
{
|
||||
DdsRegion regionsObject;
|
||||
if(!value["RegionId"].isNull())
|
||||
regionsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["ZoneIds"].isNull())
|
||||
regionsObject.zoneIds = value["ZoneIds"].asString();
|
||||
auto allZones = value["Zones"]["Zone"];
|
||||
for (auto value : allZones)
|
||||
{
|
||||
DdsRegion::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::DdsRegion> DescribeRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
137
dds/src/model/DescribeRenewalPriceRequest.cc
Normal file
137
dds/src/model/DescribeRenewalPriceRequest.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/dds/model/DescribeRenewalPriceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeRenewalPriceRequest;
|
||||
|
||||
DescribeRenewalPriceRequest::DescribeRenewalPriceRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeRenewalPrice")
|
||||
{}
|
||||
|
||||
DescribeRenewalPriceRequest::~DescribeRenewalPriceRequest()
|
||||
{}
|
||||
|
||||
long DescribeRenewalPriceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRenewalPriceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRenewalPriceRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeRenewalPriceRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRenewalPriceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRenewalPriceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRenewalPriceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeRenewalPriceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeRenewalPriceRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRenewalPriceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRenewalPriceRequest::getCouponNo()const
|
||||
{
|
||||
return couponNo_;
|
||||
}
|
||||
|
||||
void DescribeRenewalPriceRequest::setCouponNo(const std::string& couponNo)
|
||||
{
|
||||
couponNo_ = couponNo;
|
||||
setCoreParameter("CouponNo", couponNo);
|
||||
}
|
||||
|
||||
std::string DescribeRenewalPriceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeRenewalPriceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DescribeRenewalPriceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRenewalPriceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRenewalPriceRequest::getBusinessInfo()const
|
||||
{
|
||||
return businessInfo_;
|
||||
}
|
||||
|
||||
void DescribeRenewalPriceRequest::setBusinessInfo(const std::string& businessInfo)
|
||||
{
|
||||
businessInfo_ = businessInfo;
|
||||
setCoreParameter("BusinessInfo", businessInfo);
|
||||
}
|
||||
|
||||
std::string DescribeRenewalPriceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRenewalPriceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
115
dds/src/model/DescribeRenewalPriceResult.cc
Normal file
115
dds/src/model/DescribeRenewalPriceResult.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/dds/model/DescribeRenewalPriceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeRenewalPriceResult::DescribeRenewalPriceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRenewalPriceResult::DescribeRenewalPriceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRenewalPriceResult::~DescribeRenewalPriceResult()
|
||||
{}
|
||||
|
||||
void DescribeRenewalPriceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRules = value["Rules"]["Rule"];
|
||||
for (auto value : allRules)
|
||||
{
|
||||
Rule rulesObject;
|
||||
if(!value["RuleDescId"].isNull())
|
||||
rulesObject.ruleDescId = std::stol(value["RuleDescId"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
rulesObject.name = value["Name"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
rulesObject.title = value["Title"].asString();
|
||||
rules_.push_back(rulesObject);
|
||||
}
|
||||
auto allSubOrders = value["SubOrders"]["SubOrder"];
|
||||
for (auto value : allSubOrders)
|
||||
{
|
||||
SubOrder subOrdersObject;
|
||||
if(!value["OriginalAmount"].isNull())
|
||||
subOrdersObject.originalAmount = std::stof(value["OriginalAmount"].asString());
|
||||
if(!value["TradeAmount"].isNull())
|
||||
subOrdersObject.tradeAmount = std::stof(value["TradeAmount"].asString());
|
||||
if(!value["DiscountAmount"].isNull())
|
||||
subOrdersObject.discountAmount = std::stof(value["DiscountAmount"].asString());
|
||||
if(!value["InstanceId"].isNull())
|
||||
subOrdersObject.instanceId = value["InstanceId"].asString();
|
||||
auto allRuleIds = value["RuleIds"]["RuleId"];
|
||||
for (auto value : allRuleIds)
|
||||
subOrdersObject.ruleIds.push_back(value.asString());
|
||||
subOrders_.push_back(subOrdersObject);
|
||||
}
|
||||
auto orderNode = value["Order"];
|
||||
if(!orderNode["OriginalAmount"].isNull())
|
||||
order_.originalAmount = std::stof(orderNode["OriginalAmount"].asString());
|
||||
if(!orderNode["TradeAmount"].isNull())
|
||||
order_.tradeAmount = std::stof(orderNode["TradeAmount"].asString());
|
||||
if(!orderNode["DiscountAmount"].isNull())
|
||||
order_.discountAmount = std::stof(orderNode["DiscountAmount"].asString());
|
||||
if(!orderNode["Currency"].isNull())
|
||||
order_.currency = orderNode["Currency"].asString();
|
||||
auto allCoupons = value["Coupons"]["Coupon"];
|
||||
for (auto value : allCoupons)
|
||||
{
|
||||
Order::Coupon couponObject;
|
||||
if(!value["CouponNo"].isNull())
|
||||
couponObject.couponNo = value["CouponNo"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
couponObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
couponObject.description = value["Description"].asString();
|
||||
if(!value["IsSelected"].isNull())
|
||||
couponObject.isSelected = value["IsSelected"].asString();
|
||||
order_.coupons.push_back(couponObject);
|
||||
}
|
||||
auto allRuleIds1 = orderNode["RuleIds"]["RuleId"];
|
||||
for (auto value : allRuleIds1)
|
||||
order_.ruleIds1.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeRenewalPriceResult::Order DescribeRenewalPriceResult::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRenewalPriceResult::SubOrder> DescribeRenewalPriceResult::getSubOrders()const
|
||||
{
|
||||
return subOrders_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRenewalPriceResult::Rule> DescribeRenewalPriceResult::getRules()const
|
||||
{
|
||||
return rules_;
|
||||
}
|
||||
|
||||
159
dds/src/model/DescribeReplicaConflictInfoRequest.cc
Normal file
159
dds/src/model/DescribeReplicaConflictInfoRequest.cc
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeReplicaConflictInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeReplicaConflictInfoRequest;
|
||||
|
||||
DescribeReplicaConflictInfoRequest::DescribeReplicaConflictInfoRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeReplicaConflictInfo")
|
||||
{}
|
||||
|
||||
DescribeReplicaConflictInfoRequest::~DescribeReplicaConflictInfoRequest()
|
||||
{}
|
||||
|
||||
long DescribeReplicaConflictInfoRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaConflictInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeReplicaConflictInfoRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeReplicaConflictInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaConflictInfoRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeReplicaConflictInfoRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaConflictInfoRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeReplicaConflictInfoRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaConflictInfoRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeReplicaConflictInfoRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long DescribeReplicaConflictInfoRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaConflictInfoRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeReplicaConflictInfoRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeReplicaConflictInfoRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeReplicaConflictInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaConflictInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaConflictInfoRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeReplicaConflictInfoRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaConflictInfoRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaConflictInfoRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaConflictInfoRequest::getReplicaId()const
|
||||
{
|
||||
return replicaId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaConflictInfoRequest::setReplicaId(const std::string& replicaId)
|
||||
{
|
||||
replicaId_ = replicaId;
|
||||
setCoreParameter("ReplicaId", replicaId);
|
||||
}
|
||||
|
||||
int DescribeReplicaConflictInfoRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeReplicaConflictInfoRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
102
dds/src/model/DescribeReplicaConflictInfoResult.cc
Normal file
102
dds/src/model/DescribeReplicaConflictInfoResult.cc
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeReplicaConflictInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeReplicaConflictInfoResult::DescribeReplicaConflictInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeReplicaConflictInfoResult::DescribeReplicaConflictInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeReplicaConflictInfoResult::~DescribeReplicaConflictInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeReplicaConflictInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["ItemsItem"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
ItemsItem itemsObject;
|
||||
if(!value["SourceInstanceId"].isNull())
|
||||
itemsObject.sourceInstanceId = value["SourceInstanceId"].asString();
|
||||
if(!value["DestinationInstanceId"].isNull())
|
||||
itemsObject.destinationInstanceId = value["DestinationInstanceId"].asString();
|
||||
if(!value["OccurTime"].isNull())
|
||||
itemsObject.occurTime = value["OccurTime"].asString();
|
||||
if(!value["DetailInfo"].isNull())
|
||||
itemsObject.detailInfo = value["DetailInfo"].asString();
|
||||
if(!value["ConfictKey"].isNull())
|
||||
itemsObject.confictKey = value["ConfictKey"].asString();
|
||||
if(!value["ConfictReason"].isNull())
|
||||
itemsObject.confictReason = value["ConfictReason"].asString();
|
||||
if(!value["DatabaseName"].isNull())
|
||||
itemsObject.databaseName = value["DatabaseName"].asString();
|
||||
if(!value["RecoveryMode"].isNull())
|
||||
itemsObject.recoveryMode = value["RecoveryMode"].asString();
|
||||
if(!value["ConflictGtid"].isNull())
|
||||
itemsObject.conflictGtid = value["ConflictGtid"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["ReplicaId"].isNull())
|
||||
replicaId_ = value["ReplicaId"].asString();
|
||||
if(!value["PagNumber"].isNull())
|
||||
pagNumber_ = std::stoi(value["PagNumber"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeReplicaConflictInfoResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeReplicaConflictInfoResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeReplicaConflictInfoResult::ItemsItem> DescribeReplicaConflictInfoResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
int DescribeReplicaConflictInfoResult::getPagNumber()const
|
||||
{
|
||||
return pagNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeReplicaConflictInfoResult::getReplicaId()const
|
||||
{
|
||||
return replicaId_;
|
||||
}
|
||||
|
||||
115
dds/src/model/DescribeReplicaInitializeProgressRequest.cc
Normal file
115
dds/src/model/DescribeReplicaInitializeProgressRequest.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/dds/model/DescribeReplicaInitializeProgressRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeReplicaInitializeProgressRequest;
|
||||
|
||||
DescribeReplicaInitializeProgressRequest::DescribeReplicaInitializeProgressRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeReplicaInitializeProgress")
|
||||
{}
|
||||
|
||||
DescribeReplicaInitializeProgressRequest::~DescribeReplicaInitializeProgressRequest()
|
||||
{}
|
||||
|
||||
long DescribeReplicaInitializeProgressRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaInitializeProgressRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeReplicaInitializeProgressRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeReplicaInitializeProgressRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaInitializeProgressRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeReplicaInitializeProgressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaInitializeProgressRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaInitializeProgressRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaInitializeProgressRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeReplicaInitializeProgressRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaInitializeProgressRequest::getReplicaId()const
|
||||
{
|
||||
return replicaId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaInitializeProgressRequest::setReplicaId(const std::string& replicaId)
|
||||
{
|
||||
replicaId_ = replicaId;
|
||||
setCoreParameter("ReplicaId", replicaId);
|
||||
}
|
||||
|
||||
long DescribeReplicaInitializeProgressRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaInitializeProgressRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeReplicaInitializeProgressRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaInitializeProgressRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
66
dds/src/model/DescribeReplicaInitializeProgressResult.cc
Normal file
66
dds/src/model/DescribeReplicaInitializeProgressResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeReplicaInitializeProgressResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeReplicaInitializeProgressResult::DescribeReplicaInitializeProgressResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeReplicaInitializeProgressResult::DescribeReplicaInitializeProgressResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeReplicaInitializeProgressResult::~DescribeReplicaInitializeProgressResult()
|
||||
{}
|
||||
|
||||
void DescribeReplicaInitializeProgressResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["ItemsItem"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
ItemsItem itemsObject;
|
||||
if(!value["ReplicaId"].isNull())
|
||||
itemsObject.replicaId = value["ReplicaId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
itemsObject.status = value["Status"].asString();
|
||||
if(!value["Progress"].isNull())
|
||||
itemsObject.progress = value["Progress"].asString();
|
||||
if(!value["FinishTime"].isNull())
|
||||
itemsObject.finishTime = value["FinishTime"].asString();
|
||||
if(!value["CurrentStep"].isNull())
|
||||
itemsObject.currentStep = value["CurrentStep"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeReplicaInitializeProgressResult::ItemsItem> DescribeReplicaInitializeProgressResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
170
dds/src/model/DescribeReplicaPerformanceRequest.cc
Normal file
170
dds/src/model/DescribeReplicaPerformanceRequest.cc
Normal file
@@ -0,0 +1,170 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeReplicaPerformanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeReplicaPerformanceRequest;
|
||||
|
||||
DescribeReplicaPerformanceRequest::DescribeReplicaPerformanceRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeReplicaPerformance")
|
||||
{}
|
||||
|
||||
DescribeReplicaPerformanceRequest::~DescribeReplicaPerformanceRequest()
|
||||
{}
|
||||
|
||||
long DescribeReplicaPerformanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaPerformanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeReplicaPerformanceRequest::getDestinationDBInstanceId()const
|
||||
{
|
||||
return destinationDBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaPerformanceRequest::setDestinationDBInstanceId(const std::string& destinationDBInstanceId)
|
||||
{
|
||||
destinationDBInstanceId_ = destinationDBInstanceId;
|
||||
setCoreParameter("DestinationDBInstanceId", destinationDBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaPerformanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeReplicaPerformanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaPerformanceRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeReplicaPerformanceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaPerformanceRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeReplicaPerformanceRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaPerformanceRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeReplicaPerformanceRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long DescribeReplicaPerformanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaPerformanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeReplicaPerformanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaPerformanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaPerformanceRequest::getSourceDBInstanceId()const
|
||||
{
|
||||
return sourceDBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaPerformanceRequest::setSourceDBInstanceId(const std::string& sourceDBInstanceId)
|
||||
{
|
||||
sourceDBInstanceId_ = sourceDBInstanceId;
|
||||
setCoreParameter("SourceDBInstanceId", sourceDBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaPerformanceRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeReplicaPerformanceRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaPerformanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaPerformanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaPerformanceRequest::getReplicaId()const
|
||||
{
|
||||
return replicaId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaPerformanceRequest::setReplicaId(const std::string& replicaId)
|
||||
{
|
||||
replicaId_ = replicaId;
|
||||
setCoreParameter("ReplicaId", replicaId);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaPerformanceRequest::getKey()const
|
||||
{
|
||||
return key_;
|
||||
}
|
||||
|
||||
void DescribeReplicaPerformanceRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setCoreParameter("Key", key);
|
||||
}
|
||||
|
||||
95
dds/src/model/DescribeReplicaPerformanceResult.cc
Normal file
95
dds/src/model/DescribeReplicaPerformanceResult.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dds/model/DescribeReplicaPerformanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeReplicaPerformanceResult::DescribeReplicaPerformanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeReplicaPerformanceResult::DescribeReplicaPerformanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeReplicaPerformanceResult::~DescribeReplicaPerformanceResult()
|
||||
{}
|
||||
|
||||
void DescribeReplicaPerformanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto performanceKeysNode = value["PerformanceKeys"];
|
||||
auto allPerformanceKey = value["PerformanceKey"]["PerformanceKeyItem"];
|
||||
for (auto value : allPerformanceKey)
|
||||
{
|
||||
PerformanceKeys::PerformanceKeyItem performanceKeyItemObject;
|
||||
if(!value["Key"].isNull())
|
||||
performanceKeyItemObject.key = value["Key"].asString();
|
||||
if(!value["Unit"].isNull())
|
||||
performanceKeyItemObject.unit = value["Unit"].asString();
|
||||
if(!value["ValueFormat"].isNull())
|
||||
performanceKeyItemObject.valueFormat = value["ValueFormat"].asString();
|
||||
auto performanceValuesNode = value["PerformanceValues"];
|
||||
auto allPerformanceValue = value["PerformanceValue"]["PerformanceValueItem"];
|
||||
for (auto value : allPerformanceValue)
|
||||
{
|
||||
PerformanceKeys::PerformanceKeyItem::PerformanceValues::PerformanceValueItem performanceValueItemObject;
|
||||
if(!value["Value"].isNull())
|
||||
performanceValueItemObject.value = value["Value"].asString();
|
||||
if(!value["Date"].isNull())
|
||||
performanceValueItemObject.date = value["Date"].asString();
|
||||
performanceKeyItemObject.performanceValues.performanceValue.push_back(performanceValueItemObject);
|
||||
}
|
||||
performanceKeys_.performanceKey.push_back(performanceKeyItemObject);
|
||||
}
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["ReplicaId"].isNull())
|
||||
replicaId_ = value["ReplicaId"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeReplicaPerformanceResult::PerformanceKeys DescribeReplicaPerformanceResult::getPerformanceKeys()const
|
||||
{
|
||||
return performanceKeys_;
|
||||
}
|
||||
|
||||
std::string DescribeReplicaPerformanceResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeReplicaPerformanceResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeReplicaPerformanceResult::getReplicaId()const
|
||||
{
|
||||
return replicaId_;
|
||||
}
|
||||
|
||||
115
dds/src/model/DescribeReplicaSetRoleRequest.cc
Normal file
115
dds/src/model/DescribeReplicaSetRoleRequest.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/dds/model/DescribeReplicaSetRoleRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeReplicaSetRoleRequest;
|
||||
|
||||
DescribeReplicaSetRoleRequest::DescribeReplicaSetRoleRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeReplicaSetRole")
|
||||
{}
|
||||
|
||||
DescribeReplicaSetRoleRequest::~DescribeReplicaSetRoleRequest()
|
||||
{}
|
||||
|
||||
long DescribeReplicaSetRoleRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaSetRoleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeReplicaSetRoleRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeReplicaSetRoleRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaSetRoleRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeReplicaSetRoleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaSetRoleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaSetRoleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaSetRoleRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeReplicaSetRoleRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaSetRoleRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaSetRoleRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DescribeReplicaSetRoleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaSetRoleRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeReplicaSetRoleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaSetRoleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
75
dds/src/model/DescribeReplicaSetRoleResult.cc
Normal file
75
dds/src/model/DescribeReplicaSetRoleResult.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/dds/model/DescribeReplicaSetRoleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeReplicaSetRoleResult::DescribeReplicaSetRoleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeReplicaSetRoleResult::DescribeReplicaSetRoleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeReplicaSetRoleResult::~DescribeReplicaSetRoleResult()
|
||||
{}
|
||||
|
||||
void DescribeReplicaSetRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allReplicaSets = value["ReplicaSets"]["ReplicaSet"];
|
||||
for (auto value : allReplicaSets)
|
||||
{
|
||||
ReplicaSet replicaSetsObject;
|
||||
if(!value["ReplicaSetRole"].isNull())
|
||||
replicaSetsObject.replicaSetRole = value["ReplicaSetRole"].asString();
|
||||
if(!value["RoleId"].isNull())
|
||||
replicaSetsObject.roleId = value["RoleId"].asString();
|
||||
if(!value["ConnectionDomain"].isNull())
|
||||
replicaSetsObject.connectionDomain = value["ConnectionDomain"].asString();
|
||||
if(!value["ConnectionPort"].isNull())
|
||||
replicaSetsObject.connectionPort = value["ConnectionPort"].asString();
|
||||
if(!value["ExpiredTime"].isNull())
|
||||
replicaSetsObject.expiredTime = value["ExpiredTime"].asString();
|
||||
if(!value["NetworkType"].isNull())
|
||||
replicaSetsObject.networkType = value["NetworkType"].asString();
|
||||
replicaSets_.push_back(replicaSetsObject);
|
||||
}
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeReplicaSetRoleResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeReplicaSetRoleResult::ReplicaSet> DescribeReplicaSetRoleResult::getReplicaSets()const
|
||||
{
|
||||
return replicaSets_;
|
||||
}
|
||||
|
||||
137
dds/src/model/DescribeReplicaUsageRequest.cc
Normal file
137
dds/src/model/DescribeReplicaUsageRequest.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/dds/model/DescribeReplicaUsageRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeReplicaUsageRequest;
|
||||
|
||||
DescribeReplicaUsageRequest::DescribeReplicaUsageRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeReplicaUsage")
|
||||
{}
|
||||
|
||||
DescribeReplicaUsageRequest::~DescribeReplicaUsageRequest()
|
||||
{}
|
||||
|
||||
long DescribeReplicaUsageRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaUsageRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeReplicaUsageRequest::getSourceDBInstanceId()const
|
||||
{
|
||||
return sourceDBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaUsageRequest::setSourceDBInstanceId(const std::string& sourceDBInstanceId)
|
||||
{
|
||||
sourceDBInstanceId_ = sourceDBInstanceId;
|
||||
setCoreParameter("SourceDBInstanceId", sourceDBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaUsageRequest::getDestinationDBInstanceId()const
|
||||
{
|
||||
return destinationDBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaUsageRequest::setDestinationDBInstanceId(const std::string& destinationDBInstanceId)
|
||||
{
|
||||
destinationDBInstanceId_ = destinationDBInstanceId;
|
||||
setCoreParameter("DestinationDBInstanceId", destinationDBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaUsageRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeReplicaUsageRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaUsageRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeReplicaUsageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaUsageRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaUsageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaUsageRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeReplicaUsageRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeReplicaUsageRequest::getReplicaId()const
|
||||
{
|
||||
return replicaId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaUsageRequest::setReplicaId(const std::string& replicaId)
|
||||
{
|
||||
replicaId_ = replicaId;
|
||||
setCoreParameter("ReplicaId", replicaId);
|
||||
}
|
||||
|
||||
long DescribeReplicaUsageRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaUsageRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeReplicaUsageRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeReplicaUsageRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
95
dds/src/model/DescribeReplicaUsageResult.cc
Normal file
95
dds/src/model/DescribeReplicaUsageResult.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dds/model/DescribeReplicaUsageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeReplicaUsageResult::DescribeReplicaUsageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeReplicaUsageResult::DescribeReplicaUsageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeReplicaUsageResult::~DescribeReplicaUsageResult()
|
||||
{}
|
||||
|
||||
void DescribeReplicaUsageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto performanceKeysNode = value["PerformanceKeys"];
|
||||
auto allPerformanceKey = value["PerformanceKey"]["PerformanceKeyItem"];
|
||||
for (auto value : allPerformanceKey)
|
||||
{
|
||||
PerformanceKeys::PerformanceKeyItem performanceKeyItemObject;
|
||||
if(!value["Key"].isNull())
|
||||
performanceKeyItemObject.key = value["Key"].asString();
|
||||
if(!value["Unit"].isNull())
|
||||
performanceKeyItemObject.unit = value["Unit"].asString();
|
||||
if(!value["ValueFormat"].isNull())
|
||||
performanceKeyItemObject.valueFormat = value["ValueFormat"].asString();
|
||||
auto performanceValuesNode = value["PerformanceValues"];
|
||||
auto allPerformanceValue = value["PerformanceValue"]["PerformanceValueItem"];
|
||||
for (auto value : allPerformanceValue)
|
||||
{
|
||||
PerformanceKeys::PerformanceKeyItem::PerformanceValues::PerformanceValueItem performanceValueItemObject;
|
||||
if(!value["Value"].isNull())
|
||||
performanceValueItemObject.value = value["Value"].asString();
|
||||
if(!value["Date"].isNull())
|
||||
performanceValueItemObject.date = value["Date"].asString();
|
||||
performanceKeyItemObject.performanceValues.performanceValue.push_back(performanceValueItemObject);
|
||||
}
|
||||
performanceKeys_.performanceKey.push_back(performanceKeyItemObject);
|
||||
}
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["ReplicaId"].isNull())
|
||||
replicaId_ = value["ReplicaId"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeReplicaUsageResult::PerformanceKeys DescribeReplicaUsageResult::getPerformanceKeys()const
|
||||
{
|
||||
return performanceKeys_;
|
||||
}
|
||||
|
||||
std::string DescribeReplicaUsageResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeReplicaUsageResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeReplicaUsageResult::getReplicaId()const
|
||||
{
|
||||
return replicaId_;
|
||||
}
|
||||
|
||||
148
dds/src/model/DescribeReplicasRequest.cc
Normal file
148
dds/src/model/DescribeReplicasRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeReplicasRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeReplicasRequest;
|
||||
|
||||
DescribeReplicasRequest::DescribeReplicasRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeReplicas")
|
||||
{}
|
||||
|
||||
DescribeReplicasRequest::~DescribeReplicasRequest()
|
||||
{}
|
||||
|
||||
long DescribeReplicasRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeReplicasRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeReplicasRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeReplicasRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeReplicasRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeReplicasRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeReplicasRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeReplicasRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool DescribeReplicasRequest::getAttachDbInstanceData()const
|
||||
{
|
||||
return attachDbInstanceData_;
|
||||
}
|
||||
|
||||
void DescribeReplicasRequest::setAttachDbInstanceData(bool attachDbInstanceData)
|
||||
{
|
||||
attachDbInstanceData_ = attachDbInstanceData;
|
||||
setCoreParameter("AttachDbInstanceData", attachDbInstanceData ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeReplicasRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeReplicasRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeReplicasRequest::getReplicaId()const
|
||||
{
|
||||
return replicaId_;
|
||||
}
|
||||
|
||||
void DescribeReplicasRequest::setReplicaId(const std::string& replicaId)
|
||||
{
|
||||
replicaId_ = replicaId;
|
||||
setCoreParameter("ReplicaId", replicaId);
|
||||
}
|
||||
|
||||
int DescribeReplicasRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeReplicasRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeReplicasRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeReplicasRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeReplicasRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeReplicasRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeReplicasRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeReplicasRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
109
dds/src/model/DescribeReplicasResult.cc
Normal file
109
dds/src/model/DescribeReplicasResult.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeReplicasResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeReplicasResult::DescribeReplicasResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeReplicasResult::DescribeReplicasResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeReplicasResult::~DescribeReplicasResult()
|
||||
{}
|
||||
|
||||
void DescribeReplicasResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allReplicas = value["Replicas"]["Items"];
|
||||
for (auto value : allReplicas)
|
||||
{
|
||||
Items replicasObject;
|
||||
if(!value["ReplicaId"].isNull())
|
||||
replicasObject.replicaId = value["ReplicaId"].asString();
|
||||
if(!value["ReplicaDescription"].isNull())
|
||||
replicasObject.replicaDescription = value["ReplicaDescription"].asString();
|
||||
if(!value["ReplicaStatus"].isNull())
|
||||
replicasObject.replicaStatus = value["ReplicaStatus"].asString();
|
||||
if(!value["ReplicaMode"].isNull())
|
||||
replicasObject.replicaMode = value["ReplicaMode"].asString();
|
||||
if(!value["DomainMode"].isNull())
|
||||
replicasObject.domainMode = value["DomainMode"].asString();
|
||||
auto allDBInstances = value["DBInstances"]["Items"];
|
||||
for (auto value : allDBInstances)
|
||||
{
|
||||
Items::Items1 dBInstancesObject;
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstancesObject.dBInstanceId = value["DBInstanceId"].asString();
|
||||
if(!value["Role"].isNull())
|
||||
dBInstancesObject.role = value["Role"].asString();
|
||||
if(!value["ReadWriteType"].isNull())
|
||||
dBInstancesObject.readWriteType = value["ReadWriteType"].asString();
|
||||
if(!value["InstanceNetworkType"].isNull())
|
||||
dBInstancesObject.instanceNetworkType = value["InstanceNetworkType"].asString();
|
||||
if(!value["DBInstanceDescription"].isNull())
|
||||
dBInstancesObject.dBInstanceDescription = value["DBInstanceDescription"].asString();
|
||||
if(!value["DBInstanceStatus"].isNull())
|
||||
dBInstancesObject.dBInstanceStatus = value["DBInstanceStatus"].asString();
|
||||
if(!value["Engine"].isNull())
|
||||
dBInstancesObject.engine = value["Engine"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
dBInstancesObject.regionId = value["RegionId"].asString();
|
||||
replicasObject.dBInstances.push_back(dBInstancesObject);
|
||||
}
|
||||
replicas_.push_back(replicasObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeReplicasResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeReplicasResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
std::string DescribeReplicasResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeReplicasResult::Items> DescribeReplicasResult::getReplicas()const
|
||||
{
|
||||
return replicas_;
|
||||
}
|
||||
|
||||
137
dds/src/model/DescribeReplicationGroupRequest.cc
Normal file
137
dds/src/model/DescribeReplicationGroupRequest.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/dds/model/DescribeReplicationGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeReplicationGroupRequest;
|
||||
|
||||
DescribeReplicationGroupRequest::DescribeReplicationGroupRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeReplicationGroup")
|
||||
{}
|
||||
|
||||
DescribeReplicationGroupRequest::~DescribeReplicationGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeReplicationGroupRequest::getDestinationInstanceIds()const
|
||||
{
|
||||
return destinationInstanceIds_;
|
||||
}
|
||||
|
||||
void DescribeReplicationGroupRequest::setDestinationInstanceIds(const std::string& destinationInstanceIds)
|
||||
{
|
||||
destinationInstanceIds_ = destinationInstanceIds;
|
||||
setCoreParameter("DestinationInstanceIds", destinationInstanceIds);
|
||||
}
|
||||
|
||||
long DescribeReplicationGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeReplicationGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeReplicationGroupRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeReplicationGroupRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeReplicationGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeReplicationGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeReplicationGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeReplicationGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeReplicationGroupRequest::getReplicationGroupId()const
|
||||
{
|
||||
return replicationGroupId_;
|
||||
}
|
||||
|
||||
void DescribeReplicationGroupRequest::setReplicationGroupId(const std::string& replicationGroupId)
|
||||
{
|
||||
replicationGroupId_ = replicationGroupId;
|
||||
setCoreParameter("ReplicationGroupId", replicationGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeReplicationGroupRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeReplicationGroupRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeReplicationGroupRequest::getSourceInstanceId()const
|
||||
{
|
||||
return sourceInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeReplicationGroupRequest::setSourceInstanceId(const std::string& sourceInstanceId)
|
||||
{
|
||||
sourceInstanceId_ = sourceInstanceId;
|
||||
setCoreParameter("SourceInstanceId", sourceInstanceId);
|
||||
}
|
||||
|
||||
long DescribeReplicationGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeReplicationGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeReplicationGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeReplicationGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
53
dds/src/model/DescribeReplicationGroupResult.cc
Normal file
53
dds/src/model/DescribeReplicationGroupResult.cc
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeReplicationGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeReplicationGroupResult::DescribeReplicationGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeReplicationGroupResult::DescribeReplicationGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeReplicationGroupResult::~DescribeReplicationGroupResult()
|
||||
{}
|
||||
|
||||
void DescribeReplicationGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto alltunnelContext = value["tunnelContext"]["TunnelContext"];
|
||||
for (const auto &item : alltunnelContext)
|
||||
tunnelContext_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeReplicationGroupResult::getTunnelContext()const
|
||||
{
|
||||
return tunnelContext_;
|
||||
}
|
||||
|
||||
203
dds/src/model/DescribeRunningLogRecordsRequest.cc
Normal file
203
dds/src/model/DescribeRunningLogRecordsRequest.cc
Normal file
@@ -0,0 +1,203 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeRunningLogRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeRunningLogRecordsRequest;
|
||||
|
||||
DescribeRunningLogRecordsRequest::DescribeRunningLogRecordsRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeRunningLogRecords")
|
||||
{}
|
||||
|
||||
DescribeRunningLogRecordsRequest::~DescribeRunningLogRecordsRequest()
|
||||
{}
|
||||
|
||||
long DescribeRunningLogRecordsRequest::getSQLId()const
|
||||
{
|
||||
return sQLId_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setSQLId(long sQLId)
|
||||
{
|
||||
sQLId_ = sQLId;
|
||||
setCoreParameter("SQLId", std::to_string(sQLId));
|
||||
}
|
||||
|
||||
long DescribeRunningLogRecordsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRunningLogRecordsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRunningLogRecordsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRunningLogRecordsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeRunningLogRecordsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long DescribeRunningLogRecordsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeRunningLogRecordsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeRunningLogRecordsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeRunningLogRecordsRequest::getDBName()const
|
||||
{
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setDBName(const std::string& dBName)
|
||||
{
|
||||
dBName_ = dBName;
|
||||
setCoreParameter("DBName", dBName);
|
||||
}
|
||||
|
||||
std::string DescribeRunningLogRecordsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRunningLogRecordsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeRunningLogRecordsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRunningLogRecordsRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeRunningLogRecordsRequest::getRoleType()const
|
||||
{
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setRoleType(const std::string& roleType)
|
||||
{
|
||||
roleType_ = roleType;
|
||||
setCoreParameter("RoleType", roleType);
|
||||
}
|
||||
|
||||
std::string DescribeRunningLogRecordsRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setCoreParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user