Generated 2014-08-15 for Rds.
This commit is contained in:
2520
rds/src/RdsClient.cc
2520
rds/src/RdsClient.cc
File diff suppressed because it is too large
Load Diff
45
rds/src/model/AcceptRCInquiredSystemEventRequest.cc
Normal file
45
rds/src/model/AcceptRCInquiredSystemEventRequest.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/rds/model/AcceptRCInquiredSystemEventRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::AcceptRCInquiredSystemEventRequest;
|
||||
|
||||
AcceptRCInquiredSystemEventRequest::AcceptRCInquiredSystemEventRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "AcceptRCInquiredSystemEvent") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AcceptRCInquiredSystemEventRequest::~AcceptRCInquiredSystemEventRequest() {}
|
||||
|
||||
std::string AcceptRCInquiredSystemEventRequest::getEventId() const {
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
void AcceptRCInquiredSystemEventRequest::setEventId(const std::string &eventId) {
|
||||
eventId_ = eventId;
|
||||
setParameter(std::string("EventId"), eventId);
|
||||
}
|
||||
|
||||
std::string AcceptRCInquiredSystemEventRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AcceptRCInquiredSystemEventRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
51
rds/src/model/AcceptRCInquiredSystemEventResult.cc
Normal file
51
rds/src/model/AcceptRCInquiredSystemEventResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/AcceptRCInquiredSystemEventResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
AcceptRCInquiredSystemEventResult::AcceptRCInquiredSystemEventResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AcceptRCInquiredSystemEventResult::AcceptRCInquiredSystemEventResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AcceptRCInquiredSystemEventResult::~AcceptRCInquiredSystemEventResult()
|
||||
{}
|
||||
|
||||
void AcceptRCInquiredSystemEventResult::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 AcceptRCInquiredSystemEventResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
@@ -41,12 +41,12 @@ void ActivateMigrationTargetInstanceResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
if(!value["SourceIpAddress"].isNull())
|
||||
sourceIpAddress_ = value["SourceIpAddress"].asString();
|
||||
if(!value["SourcePort"].isNull())
|
||||
sourcePort_ = std::stol(value["SourcePort"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,20 +39,20 @@ void AllocateInstancePublicConnectionResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DbInstanceName"].isNull())
|
||||
dbInstanceName_ = value["DbInstanceName"].asString();
|
||||
if(!value["ConnectionString"].isNull())
|
||||
connectionString_ = value["ConnectionString"].asString();
|
||||
if(!value["DbInstanceName"].isNull())
|
||||
dbInstanceName_ = value["DbInstanceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AllocateInstancePublicConnectionResult::getDbInstanceName()const
|
||||
{
|
||||
return dbInstanceName_;
|
||||
}
|
||||
|
||||
std::string AllocateInstancePublicConnectionResult::getConnectionString()const
|
||||
{
|
||||
return connectionString_;
|
||||
}
|
||||
|
||||
std::string AllocateInstancePublicConnectionResult::getDbInstanceName()const
|
||||
{
|
||||
return dbInstanceName_;
|
||||
}
|
||||
|
||||
|
||||
54
rds/src/model/AssociateEipAddressWithRCInstanceRequest.cc
Normal file
54
rds/src/model/AssociateEipAddressWithRCInstanceRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/AssociateEipAddressWithRCInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::AssociateEipAddressWithRCInstanceRequest;
|
||||
|
||||
AssociateEipAddressWithRCInstanceRequest::AssociateEipAddressWithRCInstanceRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "AssociateEipAddressWithRCInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AssociateEipAddressWithRCInstanceRequest::~AssociateEipAddressWithRCInstanceRequest() {}
|
||||
|
||||
std::string AssociateEipAddressWithRCInstanceRequest::getAllocationId() const {
|
||||
return allocationId_;
|
||||
}
|
||||
|
||||
void AssociateEipAddressWithRCInstanceRequest::setAllocationId(const std::string &allocationId) {
|
||||
allocationId_ = allocationId;
|
||||
setParameter(std::string("AllocationId"), allocationId);
|
||||
}
|
||||
|
||||
std::string AssociateEipAddressWithRCInstanceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AssociateEipAddressWithRCInstanceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string AssociateEipAddressWithRCInstanceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AssociateEipAddressWithRCInstanceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
44
rds/src/model/AssociateEipAddressWithRCInstanceResult.cc
Normal file
44
rds/src/model/AssociateEipAddressWithRCInstanceResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/AssociateEipAddressWithRCInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
AssociateEipAddressWithRCInstanceResult::AssociateEipAddressWithRCInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AssociateEipAddressWithRCInstanceResult::AssociateEipAddressWithRCInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AssociateEipAddressWithRCInstanceResult::~AssociateEipAddressWithRCInstanceResult()
|
||||
{}
|
||||
|
||||
void AssociateEipAddressWithRCInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
rds/src/model/AttachRCDiskRequest.cc
Normal file
63
rds/src/model/AttachRCDiskRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/AttachRCDiskRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::AttachRCDiskRequest;
|
||||
|
||||
AttachRCDiskRequest::AttachRCDiskRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "AttachRCDisk") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AttachRCDiskRequest::~AttachRCDiskRequest() {}
|
||||
|
||||
std::string AttachRCDiskRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AttachRCDiskRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string AttachRCDiskRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AttachRCDiskRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string AttachRCDiskRequest::getDiskId() const {
|
||||
return diskId_;
|
||||
}
|
||||
|
||||
void AttachRCDiskRequest::setDiskId(const std::string &diskId) {
|
||||
diskId_ = diskId;
|
||||
setParameter(std::string("DiskId"), diskId);
|
||||
}
|
||||
|
||||
bool AttachRCDiskRequest::getDeleteWithInstance() const {
|
||||
return deleteWithInstance_;
|
||||
}
|
||||
|
||||
void AttachRCDiskRequest::setDeleteWithInstance(bool deleteWithInstance) {
|
||||
deleteWithInstance_ = deleteWithInstance;
|
||||
setParameter(std::string("DeleteWithInstance"), deleteWithInstance ? "true" : "false");
|
||||
}
|
||||
|
||||
44
rds/src/model/AttachRCDiskResult.cc
Normal file
44
rds/src/model/AttachRCDiskResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/AttachRCDiskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
AttachRCDiskResult::AttachRCDiskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachRCDiskResult::AttachRCDiskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachRCDiskResult::~AttachRCDiskResult()
|
||||
{}
|
||||
|
||||
void AttachRCDiskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
74
rds/src/model/AttachRCInstancesRequest.cc
Normal file
74
rds/src/model/AttachRCInstancesRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/rds/model/AttachRCInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::AttachRCInstancesRequest;
|
||||
|
||||
AttachRCInstancesRequest::AttachRCInstancesRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "AttachRCInstances") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AttachRCInstancesRequest::~AttachRCInstancesRequest() {}
|
||||
|
||||
std::string AttachRCInstancesRequest::getKeyPair() const {
|
||||
return keyPair_;
|
||||
}
|
||||
|
||||
void AttachRCInstancesRequest::setKeyPair(const std::string &keyPair) {
|
||||
keyPair_ = keyPair;
|
||||
setParameter(std::string("KeyPair"), keyPair);
|
||||
}
|
||||
|
||||
std::string AttachRCInstancesRequest::getPassword() const {
|
||||
return password_;
|
||||
}
|
||||
|
||||
void AttachRCInstancesRequest::setPassword(const std::string &password) {
|
||||
password_ = password;
|
||||
setParameter(std::string("Password"), password);
|
||||
}
|
||||
|
||||
std::string AttachRCInstancesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AttachRCInstancesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<AttachRCInstancesRequest::std::string> AttachRCInstancesRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void AttachRCInstancesRequest::setInstanceIds(const std::vector<AttachRCInstancesRequest::std::string> &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
for(int dep1 = 0; dep1 != instanceIds.size(); dep1++) {
|
||||
setParameter(std::string("InstanceIds") + "." + std::to_string(dep1 + 1), instanceIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string AttachRCInstancesRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void AttachRCInstancesRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
68
rds/src/model/AttachRCInstancesResult.cc
Normal file
68
rds/src/model/AttachRCInstancesResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/AttachRCInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
AttachRCInstancesResult::AttachRCInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachRCInstancesResult::AttachRCInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachRCInstancesResult::~AttachRCInstancesResult()
|
||||
{}
|
||||
|
||||
void AttachRCInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResponsesNode = value["Responses"]["Response"];
|
||||
for (auto valueResponsesResponse : allResponsesNode)
|
||||
{
|
||||
Response responsesObject;
|
||||
if(!valueResponsesResponse["Code"].isNull())
|
||||
responsesObject.code = valueResponsesResponse["Code"].asString();
|
||||
if(!valueResponsesResponse["InstanceId"].isNull())
|
||||
responsesObject.instanceId = valueResponsesResponse["InstanceId"].asString();
|
||||
if(!valueResponsesResponse["Message"].isNull())
|
||||
responsesObject.message = valueResponsesResponse["Message"].asString();
|
||||
responses_.push_back(responsesObject);
|
||||
}
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AttachRCInstancesResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::vector<AttachRCInstancesResult::Response> AttachRCInstancesResult::getResponses()const
|
||||
{
|
||||
return responses_;
|
||||
}
|
||||
|
||||
@@ -42,14 +42,14 @@ void AttachWhitelistTemplateToInstanceResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
71
rds/src/model/AuthorizeRCSecurityGroupPermissionRequest.cc
Normal file
71
rds/src/model/AuthorizeRCSecurityGroupPermissionRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/AuthorizeRCSecurityGroupPermissionRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::AuthorizeRCSecurityGroupPermissionRequest;
|
||||
|
||||
AuthorizeRCSecurityGroupPermissionRequest::AuthorizeRCSecurityGroupPermissionRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "AuthorizeRCSecurityGroupPermission") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AuthorizeRCSecurityGroupPermissionRequest::~AuthorizeRCSecurityGroupPermissionRequest() {}
|
||||
|
||||
std::string AuthorizeRCSecurityGroupPermissionRequest::getSecurityGroupId() const {
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void AuthorizeRCSecurityGroupPermissionRequest::setSecurityGroupId(const std::string &securityGroupId) {
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter(std::string("SecurityGroupId"), securityGroupId);
|
||||
}
|
||||
|
||||
std::string AuthorizeRCSecurityGroupPermissionRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AuthorizeRCSecurityGroupPermissionRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<AuthorizeRCSecurityGroupPermissionRequest::SecurityGroupPermissions> AuthorizeRCSecurityGroupPermissionRequest::getSecurityGroupPermissions() const {
|
||||
return securityGroupPermissions_;
|
||||
}
|
||||
|
||||
void AuthorizeRCSecurityGroupPermissionRequest::setSecurityGroupPermissions(const std::vector<AuthorizeRCSecurityGroupPermissionRequest::SecurityGroupPermissions> &securityGroupPermissions) {
|
||||
securityGroupPermissions_ = securityGroupPermissions;
|
||||
for(int dep1 = 0; dep1 != securityGroupPermissions.size(); dep1++) {
|
||||
setParameter(std::string("SecurityGroupPermissions") + "." + std::to_string(dep1 + 1) + ".SourcePortRange", securityGroupPermissions[dep1].sourcePortRange);
|
||||
setParameter(std::string("SecurityGroupPermissions") + "." + std::to_string(dep1 + 1) + ".PortRange", securityGroupPermissions[dep1].portRange);
|
||||
setParameter(std::string("SecurityGroupPermissions") + "." + std::to_string(dep1 + 1) + ".IpProtocol", securityGroupPermissions[dep1].ipProtocol);
|
||||
setParameter(std::string("SecurityGroupPermissions") + "." + std::to_string(dep1 + 1) + ".SourceCidrIp", securityGroupPermissions[dep1].sourceCidrIp);
|
||||
setParameter(std::string("SecurityGroupPermissions") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(securityGroupPermissions[dep1].priority));
|
||||
setParameter(std::string("SecurityGroupPermissions") + "." + std::to_string(dep1 + 1) + ".DestCidrIp", securityGroupPermissions[dep1].destCidrIp);
|
||||
setParameter(std::string("SecurityGroupPermissions") + "." + std::to_string(dep1 + 1) + ".Policy", securityGroupPermissions[dep1].policy);
|
||||
}
|
||||
}
|
||||
|
||||
std::string AuthorizeRCSecurityGroupPermissionRequest::getDirection() const {
|
||||
return direction_;
|
||||
}
|
||||
|
||||
void AuthorizeRCSecurityGroupPermissionRequest::setDirection(const std::string &direction) {
|
||||
direction_ = direction;
|
||||
setParameter(std::string("Direction"), direction);
|
||||
}
|
||||
|
||||
44
rds/src/model/AuthorizeRCSecurityGroupPermissionResult.cc
Normal file
44
rds/src/model/AuthorizeRCSecurityGroupPermissionResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/AuthorizeRCSecurityGroupPermissionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
AuthorizeRCSecurityGroupPermissionResult::AuthorizeRCSecurityGroupPermissionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AuthorizeRCSecurityGroupPermissionResult::AuthorizeRCSecurityGroupPermissionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AuthorizeRCSecurityGroupPermissionResult::~AuthorizeRCSecurityGroupPermissionResult()
|
||||
{}
|
||||
|
||||
void AuthorizeRCSecurityGroupPermissionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -34,33 +34,6 @@ void CalculateDBInstanceWeightRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CalculateDBInstanceWeightRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CalculateDBInstanceWeightRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CalculateDBInstanceWeightRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CalculateDBInstanceWeightRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long CalculateDBInstanceWeightRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CalculateDBInstanceWeightRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CalculateDBInstanceWeightRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -88,3 +61,30 @@ void CalculateDBInstanceWeightRequest::setDBInstanceId(const std::string &dBInst
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string CalculateDBInstanceWeightRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CalculateDBInstanceWeightRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CalculateDBInstanceWeightRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CalculateDBInstanceWeightRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long CalculateDBInstanceWeightRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CalculateDBInstanceWeightRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,18 +43,18 @@ void CalculateDBInstanceWeightResult::parse(const std::string &payload)
|
||||
for (auto valueItemsDBInstanceWeight : allItemsNode)
|
||||
{
|
||||
DBInstanceWeight itemsObject;
|
||||
if(!valueItemsDBInstanceWeight["ReadonlyInstanceSQLDelayedTime"].isNull())
|
||||
itemsObject.readonlyInstanceSQLDelayedTime = valueItemsDBInstanceWeight["ReadonlyInstanceSQLDelayedTime"].asString();
|
||||
if(!valueItemsDBInstanceWeight["Availability"].isNull())
|
||||
itemsObject.availability = valueItemsDBInstanceWeight["Availability"].asString();
|
||||
if(!valueItemsDBInstanceWeight["Weight"].isNull())
|
||||
itemsObject.weight = valueItemsDBInstanceWeight["Weight"].asString();
|
||||
if(!valueItemsDBInstanceWeight["DBInstanceType"].isNull())
|
||||
itemsObject.dBInstanceType = valueItemsDBInstanceWeight["DBInstanceType"].asString();
|
||||
if(!valueItemsDBInstanceWeight["DBInstanceId"].isNull())
|
||||
itemsObject.dBInstanceId = valueItemsDBInstanceWeight["DBInstanceId"].asString();
|
||||
if(!valueItemsDBInstanceWeight["DBInstanceType"].isNull())
|
||||
itemsObject.dBInstanceType = valueItemsDBInstanceWeight["DBInstanceType"].asString();
|
||||
if(!valueItemsDBInstanceWeight["ReadonlyInstanceSQLDelayedTime"].isNull())
|
||||
itemsObject.readonlyInstanceSQLDelayedTime = valueItemsDBInstanceWeight["ReadonlyInstanceSQLDelayedTime"].asString();
|
||||
if(!valueItemsDBInstanceWeight["Role"].isNull())
|
||||
itemsObject.role = valueItemsDBInstanceWeight["Role"].asString();
|
||||
if(!valueItemsDBInstanceWeight["Weight"].isNull())
|
||||
itemsObject.weight = valueItemsDBInstanceWeight["Weight"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
|
||||
|
||||
99
rds/src/model/CancelActiveOperationTasksRequest.cc
Normal file
99
rds/src/model/CancelActiveOperationTasksRequest.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/rds/model/CancelActiveOperationTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CancelActiveOperationTasksRequest;
|
||||
|
||||
CancelActiveOperationTasksRequest::CancelActiveOperationTasksRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "CancelActiveOperationTasks") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelActiveOperationTasksRequest::~CancelActiveOperationTasksRequest() {}
|
||||
|
||||
long CancelActiveOperationTasksRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CancelActiveOperationTasksRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CancelActiveOperationTasksRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CancelActiveOperationTasksRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string CancelActiveOperationTasksRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CancelActiveOperationTasksRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string CancelActiveOperationTasksRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CancelActiveOperationTasksRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CancelActiveOperationTasksRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CancelActiveOperationTasksRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CancelActiveOperationTasksRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CancelActiveOperationTasksRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long CancelActiveOperationTasksRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CancelActiveOperationTasksRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CancelActiveOperationTasksRequest::getIds() const {
|
||||
return ids_;
|
||||
}
|
||||
|
||||
void CancelActiveOperationTasksRequest::setIds(const std::string &ids) {
|
||||
ids_ = ids;
|
||||
setParameter(std::string("Ids"), ids);
|
||||
}
|
||||
|
||||
51
rds/src/model/CancelActiveOperationTasksResult.cc
Normal file
51
rds/src/model/CancelActiveOperationTasksResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CancelActiveOperationTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CancelActiveOperationTasksResult::CancelActiveOperationTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelActiveOperationTasksResult::CancelActiveOperationTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelActiveOperationTasksResult::~CancelActiveOperationTasksResult()
|
||||
{}
|
||||
|
||||
void CancelActiveOperationTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Ids"].isNull())
|
||||
ids_ = value["Ids"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CancelActiveOperationTasksResult::getIds()const
|
||||
{
|
||||
return ids_;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,13 @@ void CheckAccountNameAvailableResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CheckAccountNameAvailableResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ void CheckCloudResourceAuthorizedResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RoleArn"].isNull())
|
||||
roleArn_ = value["RoleArn"].asString();
|
||||
if(!value["AuthorizationState"].isNull())
|
||||
authorizationState_ = std::stoi(value["AuthorizationState"].asString());
|
||||
if(!value["RoleArn"].isNull())
|
||||
roleArn_ = value["RoleArn"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -41,9 +41,16 @@ void CheckServiceLinkedRoleResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HasServiceLinkedRole"].isNull())
|
||||
hasServiceLinkedRole_ = value["HasServiceLinkedRole"].asString();
|
||||
if(!value["RequireServiceLinkedRole"].isNull())
|
||||
requireServiceLinkedRole_ = value["RequireServiceLinkedRole"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleResult::getRequireServiceLinkedRole()const
|
||||
{
|
||||
return requireServiceLinkedRole_;
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleResult::getHasServiceLinkedRole()const
|
||||
{
|
||||
return hasServiceLinkedRole_;
|
||||
|
||||
@@ -39,14 +39,14 @@ void CloneDBInstanceResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
port_ = value["Port"].asString();
|
||||
if(!value["ConnectionString"].isNull())
|
||||
connectionString_ = value["ConnectionString"].asString();
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
port_ = value["Port"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ CopyDatabaseRequest::CopyDatabaseRequest()
|
||||
|
||||
CopyDatabaseRequest::~CopyDatabaseRequest() {}
|
||||
|
||||
std::string CopyDatabaseRequest::getDBInstanceName() const {
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
void CopyDatabaseRequest::setDBInstanceName(const std::string &dBInstanceName) {
|
||||
dBInstanceName_ = dBInstanceName;
|
||||
setParameter(std::string("DBInstanceName"), dBInstanceName);
|
||||
}
|
||||
|
||||
long CopyDatabaseRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
@@ -61,6 +70,24 @@ void CopyDatabaseRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int CopyDatabaseRequest::getReserveAccount() const {
|
||||
return reserveAccount_;
|
||||
}
|
||||
|
||||
void CopyDatabaseRequest::setReserveAccount(int reserveAccount) {
|
||||
reserveAccount_ = reserveAccount;
|
||||
setParameter(std::string("ReserveAccount"), std::to_string(reserveAccount));
|
||||
}
|
||||
|
||||
std::string CopyDatabaseRequest::getSrcDBName() const {
|
||||
return srcDBName_;
|
||||
}
|
||||
|
||||
void CopyDatabaseRequest::setSrcDBName(const std::string &srcDBName) {
|
||||
srcDBName_ = srcDBName;
|
||||
setParameter(std::string("SrcDBName"), srcDBName);
|
||||
}
|
||||
|
||||
std::string CopyDatabaseRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
@@ -79,3 +106,12 @@ void CopyDatabaseRequest::setOwnerId(long ownerId) {
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CopyDatabaseRequest::getDstDBName() const {
|
||||
return dstDBName_;
|
||||
}
|
||||
|
||||
void CopyDatabaseRequest::setDstDBName(const std::string &dstDBName) {
|
||||
dstDBName_ = dstDBName;
|
||||
setParameter(std::string("DstDBName"), dstDBName);
|
||||
}
|
||||
|
||||
|
||||
@@ -41,10 +41,10 @@ void CopyDatabaseResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBName"].isNull())
|
||||
dBName_ = value["DBName"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["DBStatus"].isNull())
|
||||
dBStatus_ = value["DBStatus"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -124,3 +124,12 @@ void CreateAccountRequest::setAccountPassword(const std::string &accountPassword
|
||||
setParameter(std::string("AccountPassword"), accountPassword);
|
||||
}
|
||||
|
||||
bool CreateAccountRequest::getCheckPolicy() const {
|
||||
return checkPolicy_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setCheckPolicy(bool checkPolicy) {
|
||||
checkPolicy_ = checkPolicy;
|
||||
setParameter(std::string("CheckPolicy"), checkPolicy ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -40,12 +40,12 @@ void CreateDBInstanceEndpointAddressResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DBInstanceName"].isNull())
|
||||
data_.dBInstanceName = dataNode["DBInstanceName"].asString();
|
||||
if(!dataNode["DBInstanceEndpointId"].isNull())
|
||||
data_.dBInstanceEndpointId = dataNode["DBInstanceEndpointId"].asString();
|
||||
if(!dataNode["ConnectionString"].isNull())
|
||||
data_.connectionString = dataNode["ConnectionString"].asString();
|
||||
if(!dataNode["DBInstanceEndpointId"].isNull())
|
||||
data_.dBInstanceEndpointId = dataNode["DBInstanceEndpointId"].asString();
|
||||
if(!dataNode["DBInstanceName"].isNull())
|
||||
data_.dBInstanceName = dataNode["DBInstanceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,12 +40,12 @@ void CreateDBInstanceEndpointResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DBInstanceName"].isNull())
|
||||
data_.dBInstanceName = dataNode["DBInstanceName"].asString();
|
||||
if(!dataNode["DBInstanceEndpointId"].isNull())
|
||||
data_.dBInstanceEndpointId = dataNode["DBInstanceEndpointId"].asString();
|
||||
if(!dataNode["ConnectionString"].isNull())
|
||||
data_.connectionString = dataNode["ConnectionString"].asString();
|
||||
if(!dataNode["DBInstanceEndpointId"].isNull())
|
||||
data_.dBInstanceEndpointId = dataNode["DBInstanceEndpointId"].asString();
|
||||
if(!dataNode["DBInstanceName"].isNull())
|
||||
data_.dBInstanceName = dataNode["DBInstanceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateDBInstanceForRebuildResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -88,6 +88,15 @@ void CreateDBInstanceRequest::setAutoCreateProxy(bool autoCreateProxy) {
|
||||
setParameter(std::string("AutoCreateProxy"), autoCreateProxy ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getOptimizedWrites() const {
|
||||
return optimizedWrites_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setOptimizedWrites(const std::string &optimizedWrites) {
|
||||
optimizedWrites_ = optimizedWrites;
|
||||
setParameter(std::string("OptimizedWrites"), optimizedWrites);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getEngineVersion() const {
|
||||
return engineVersion_;
|
||||
}
|
||||
@@ -282,6 +291,15 @@ void CreateDBInstanceRequest::setRoleARN(const std::string &roleARN) {
|
||||
setParameter(std::string("RoleARN"), roleARN);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getPromotionCode() const {
|
||||
return promotionCode_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setPromotionCode(const std::string &promotionCode) {
|
||||
promotionCode_ = promotionCode;
|
||||
setParameter(std::string("PromotionCode"), promotionCode);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getTunnelId() const {
|
||||
return tunnelId_;
|
||||
}
|
||||
@@ -363,6 +381,15 @@ void CreateDBInstanceRequest::setZoneIdSlave2(const std::string &zoneIdSlave2) {
|
||||
setParameter(std::string("ZoneIdSlave2"), zoneIdSlave2);
|
||||
}
|
||||
|
||||
bool CreateDBInstanceRequest::getAutoUseCoupon() const {
|
||||
return autoUseCoupon_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setAutoUseCoupon(bool autoUseCoupon) {
|
||||
autoUseCoupon_ = autoUseCoupon;
|
||||
setParameter(std::string("AutoUseCoupon"), autoUseCoupon ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getDBIsIgnoreCase() const {
|
||||
return dBIsIgnoreCase_;
|
||||
}
|
||||
|
||||
@@ -39,10 +39,10 @@ void CreateDBInstanceSecurityGroupRuleResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -41,10 +41,10 @@ void CreateDBNodesResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = std::stol(value["OrderId"].asString());
|
||||
if(!value["NodeIds"].isNull())
|
||||
nodeIds_ = value["NodeIds"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = std::stol(value["OrderId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -124,6 +124,15 @@ void CreateDdrInstanceRequest::setBackupSetId(const std::string &backupSetId) {
|
||||
setParameter(std::string("BackupSetId"), backupSetId);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getEncryptionKey() const {
|
||||
return encryptionKey_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setEncryptionKey(const std::string &encryptionKey) {
|
||||
encryptionKey_ = encryptionKey;
|
||||
setParameter(std::string("EncryptionKey"), encryptionKey);
|
||||
}
|
||||
|
||||
long CreateDdrInstanceRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
@@ -178,6 +187,15 @@ void CreateDdrInstanceRequest::setBinlogName(const std::string &binlogName) {
|
||||
setParameter(std::string("BinlogName"), binlogName);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getRoleARN() const {
|
||||
return roleARN_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setRoleARN(const std::string &roleARN) {
|
||||
roleARN_ = roleARN;
|
||||
setParameter(std::string("RoleARN"), roleARN);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getTunnelId() const {
|
||||
return tunnelId_;
|
||||
}
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateDdrInstanceResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
port_ = value["Port"].asString();
|
||||
if(!value["ConnectionString"].isNull())
|
||||
connectionString_ = value["ConnectionString"].asString();
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
port_ = value["Port"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -100,15 +100,15 @@ void CreateGADInstanceRequest::setUnitNode(const std::vector<CreateGADInstanceRe
|
||||
setParameter(unitNodeObjStr + ".DbInstanceClass", unitNodeObj.dbInstanceClass);
|
||||
setParameter(unitNodeObjStr + ".SecurityIPList", unitNodeObj.securityIPList);
|
||||
setParameter(unitNodeObjStr + ".VSwitchID", unitNodeObj.vSwitchID);
|
||||
setParameter(unitNodeObjStr + ".RegionID", unitNodeObj.regionID);
|
||||
setParameter(unitNodeObjStr + ".Engine", unitNodeObj.engine);
|
||||
setParameter(unitNodeObjStr + ".RegionID", unitNodeObj.regionID);
|
||||
setParameter(unitNodeObjStr + ".DtsInstanceClass", unitNodeObj.dtsInstanceClass);
|
||||
setParameter(unitNodeObjStr + ".VpcID", unitNodeObj.vpcID);
|
||||
setParameter(unitNodeObjStr + ".ZoneID", unitNodeObj.zoneID);
|
||||
setParameter(unitNodeObjStr + ".DBInstanceDescription", unitNodeObj.dBInstanceDescription);
|
||||
setParameter(unitNodeObjStr + ".DBInstanceStorageType", unitNodeObj.dBInstanceStorageType);
|
||||
setParameter(unitNodeObjStr + ".PayType", unitNodeObj.payType);
|
||||
setParameter(unitNodeObjStr + ".DtsConflict", unitNodeObj.dtsConflict);
|
||||
setParameter(unitNodeObjStr + ".PayType", unitNodeObj.payType);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ void CreateGADInstanceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["GadInstanceName"].isNull())
|
||||
result_.gadInstanceName = resultNode["GadInstanceName"].asString();
|
||||
if(!resultNode["CreateMemberCount"].isNull())
|
||||
result_.createMemberCount = resultNode["CreateMemberCount"].asString();
|
||||
if(!resultNode["GadInstanceName"].isNull())
|
||||
result_.gadInstanceName = resultNode["GadInstanceName"].asString();
|
||||
if(!resultNode["TaskID"].isNull())
|
||||
result_.taskID = resultNode["TaskID"].asString();
|
||||
|
||||
|
||||
@@ -75,10 +75,10 @@ void CreateGadInstanceMemberRequest::setUnitNode(const std::vector<CreateGadInst
|
||||
setParameter(unitNodeObjStr + ".ZoneIDSlave2", unitNodeObj.zoneIDSlave2);
|
||||
setParameter(unitNodeObjStr + ".EngineVersion", unitNodeObj.engineVersion);
|
||||
setParameter(unitNodeObjStr + ".DbInstanceClass", unitNodeObj.dbInstanceClass);
|
||||
setParameter(unitNodeObjStr + ".VSwitchID", unitNodeObj.vSwitchID);
|
||||
setParameter(unitNodeObjStr + ".SecurityIPList", unitNodeObj.securityIPList);
|
||||
setParameter(unitNodeObjStr + ".RegionID", unitNodeObj.regionID);
|
||||
setParameter(unitNodeObjStr + ".VSwitchID", unitNodeObj.vSwitchID);
|
||||
setParameter(unitNodeObjStr + ".Engine", unitNodeObj.engine);
|
||||
setParameter(unitNodeObjStr + ".RegionID", unitNodeObj.regionID);
|
||||
setParameter(unitNodeObjStr + ".DtsInstanceClass", unitNodeObj.dtsInstanceClass);
|
||||
setParameter(unitNodeObjStr + ".VpcID", unitNodeObj.vpcID);
|
||||
setParameter(unitNodeObjStr + ".ZoneID", unitNodeObj.zoneID);
|
||||
|
||||
@@ -40,10 +40,10 @@ void CreateGadInstanceMemberResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["GadInstanceName"].isNull())
|
||||
result_.gadInstanceName = resultNode["GadInstanceName"].asString();
|
||||
if(!resultNode["CreateCount"].isNull())
|
||||
result_.createCount = resultNode["CreateCount"].asString();
|
||||
if(!resultNode["GadInstanceName"].isNull())
|
||||
result_.gadInstanceName = resultNode["GadInstanceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -114,3 +114,12 @@ void CreateMaskingRulesRequest::setRuleConfig(const CreateMaskingRulesRequest::R
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateMaskingRulesRequest::getDBName() const {
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
void CreateMaskingRulesRequest::setDBName(const std::string &dBName) {
|
||||
dBName_ = dBName;
|
||||
setParameter(std::string("DBName"), dBName);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void CreateMaskingRulesResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void CreateMigrateTaskResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBName"].isNull())
|
||||
dBName_ = value["DBName"].asString();
|
||||
if(!value["BackupMode"].isNull())
|
||||
backupMode_ = value["BackupMode"].asString();
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["DBName"].isNull())
|
||||
dBName_ = value["DBName"].asString();
|
||||
if(!value["MigrateTaskId"].isNull())
|
||||
migrateTaskId_ = value["MigrateTaskId"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
|
||||
104
rds/src/model/CreateRCDeploymentSetRequest.cc
Normal file
104
rds/src/model/CreateRCDeploymentSetRequest.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/rds/model/CreateRCDeploymentSetRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateRCDeploymentSetRequest;
|
||||
|
||||
CreateRCDeploymentSetRequest::CreateRCDeploymentSetRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "CreateRCDeploymentSet") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRCDeploymentSetRequest::~CreateRCDeploymentSetRequest() {}
|
||||
|
||||
std::string CreateRCDeploymentSetRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateRCDeploymentSetRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateRCDeploymentSetRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateRCDeploymentSetRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateRCDeploymentSetRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateRCDeploymentSetRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
long CreateRCDeploymentSetRequest::getGroupCount() const {
|
||||
return groupCount_;
|
||||
}
|
||||
|
||||
void CreateRCDeploymentSetRequest::setGroupCount(long groupCount) {
|
||||
groupCount_ = groupCount;
|
||||
setParameter(std::string("GroupCount"), std::to_string(groupCount));
|
||||
}
|
||||
|
||||
std::vector<CreateRCDeploymentSetRequest::Tag> CreateRCDeploymentSetRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateRCDeploymentSetRequest::setTag(const std::vector<CreateRCDeploymentSetRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateRCDeploymentSetRequest::getDeploymentSetName() const {
|
||||
return deploymentSetName_;
|
||||
}
|
||||
|
||||
void CreateRCDeploymentSetRequest::setDeploymentSetName(const std::string &deploymentSetName) {
|
||||
deploymentSetName_ = deploymentSetName;
|
||||
setParameter(std::string("DeploymentSetName"), deploymentSetName);
|
||||
}
|
||||
|
||||
std::string CreateRCDeploymentSetRequest::getOnUnableToRedeployFailedInstance() const {
|
||||
return onUnableToRedeployFailedInstance_;
|
||||
}
|
||||
|
||||
void CreateRCDeploymentSetRequest::setOnUnableToRedeployFailedInstance(const std::string &onUnableToRedeployFailedInstance) {
|
||||
onUnableToRedeployFailedInstance_ = onUnableToRedeployFailedInstance;
|
||||
setParameter(std::string("OnUnableToRedeployFailedInstance"), onUnableToRedeployFailedInstance);
|
||||
}
|
||||
|
||||
std::string CreateRCDeploymentSetRequest::getStrategy() const {
|
||||
return strategy_;
|
||||
}
|
||||
|
||||
void CreateRCDeploymentSetRequest::setStrategy(const std::string &strategy) {
|
||||
strategy_ = strategy;
|
||||
setParameter(std::string("Strategy"), strategy);
|
||||
}
|
||||
|
||||
51
rds/src/model/CreateRCDeploymentSetResult.cc
Normal file
51
rds/src/model/CreateRCDeploymentSetResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateRCDeploymentSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateRCDeploymentSetResult::CreateRCDeploymentSetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRCDeploymentSetResult::CreateRCDeploymentSetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRCDeploymentSetResult::~CreateRCDeploymentSetResult()
|
||||
{}
|
||||
|
||||
void CreateRCDeploymentSetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DeploymentSetId"].isNull())
|
||||
deploymentSetId_ = value["DeploymentSetId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateRCDeploymentSetResult::getDeploymentSetId()const
|
||||
{
|
||||
return deploymentSetId_;
|
||||
}
|
||||
|
||||
176
rds/src/model/CreateRCDiskRequest.cc
Normal file
176
rds/src/model/CreateRCDiskRequest.cc
Normal file
@@ -0,0 +1,176 @@
|
||||
/*
|
||||
* 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/rds/model/CreateRCDiskRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateRCDiskRequest;
|
||||
|
||||
CreateRCDiskRequest::CreateRCDiskRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "CreateRCDisk") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRCDiskRequest::~CreateRCDiskRequest() {}
|
||||
|
||||
std::string CreateRCDiskRequest::getSnapshotId() const {
|
||||
return snapshotId_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setSnapshotId(const std::string &snapshotId) {
|
||||
snapshotId_ = snapshotId;
|
||||
setParameter(std::string("SnapshotId"), snapshotId);
|
||||
}
|
||||
|
||||
std::string CreateRCDiskRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateRCDiskRequest::getDiskName() const {
|
||||
return diskName_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setDiskName(const std::string &diskName) {
|
||||
diskName_ = diskName;
|
||||
setParameter(std::string("DiskName"), diskName);
|
||||
}
|
||||
|
||||
std::string CreateRCDiskRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateRCDiskRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateRCDiskRequest::getDiskCategory() const {
|
||||
return diskCategory_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setDiskCategory(const std::string &diskCategory) {
|
||||
diskCategory_ = diskCategory;
|
||||
setParameter(std::string("DiskCategory"), diskCategory);
|
||||
}
|
||||
|
||||
std::vector<CreateRCDiskRequest::Tag> CreateRCDiskRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setTag(const std::vector<CreateRCDiskRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateRCDiskRequest::getInstanceChargeType() const {
|
||||
return instanceChargeType_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setInstanceChargeType(const std::string &instanceChargeType) {
|
||||
instanceChargeType_ = instanceChargeType;
|
||||
setParameter(std::string("InstanceChargeType"), instanceChargeType);
|
||||
}
|
||||
|
||||
int CreateRCDiskRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setPeriod(int period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), std::to_string(period));
|
||||
}
|
||||
|
||||
bool CreateRCDiskRequest::getAutoPay() const {
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setAutoPay(bool autoPay) {
|
||||
autoPay_ = autoPay;
|
||||
setParameter(std::string("AutoPay"), autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateRCDiskRequest::getPerformanceLevel() const {
|
||||
return performanceLevel_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setPerformanceLevel(const std::string &performanceLevel) {
|
||||
performanceLevel_ = performanceLevel;
|
||||
setParameter(std::string("PerformanceLevel"), performanceLevel);
|
||||
}
|
||||
|
||||
std::string CreateRCDiskRequest::getPeriodUnit() const {
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setPeriodUnit(const std::string &periodUnit) {
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter(std::string("PeriodUnit"), periodUnit);
|
||||
}
|
||||
|
||||
std::string CreateRCDiskRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
int CreateRCDiskRequest::getSize() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setSize(int size) {
|
||||
size_ = size;
|
||||
setParameter(std::string("Size"), std::to_string(size));
|
||||
}
|
||||
|
||||
bool CreateRCDiskRequest::getAutoRenew() const {
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setAutoRenew(bool autoRenew) {
|
||||
autoRenew_ = autoRenew;
|
||||
setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateRCDiskRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateRCDiskRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
58
rds/src/model/CreateRCDiskResult.cc
Normal file
58
rds/src/model/CreateRCDiskResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateRCDiskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateRCDiskResult::CreateRCDiskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRCDiskResult::CreateRCDiskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRCDiskResult::~CreateRCDiskResult()
|
||||
{}
|
||||
|
||||
void CreateRCDiskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DiskId"].isNull())
|
||||
diskId_ = value["DiskId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateRCDiskResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
std::string CreateRCDiskResult::getDiskId()const
|
||||
{
|
||||
return diskId_;
|
||||
}
|
||||
|
||||
346
rds/src/model/CreateRCNodePoolRequest.cc
Normal file
346
rds/src/model/CreateRCNodePoolRequest.cc
Normal file
@@ -0,0 +1,346 @@
|
||||
/*
|
||||
* 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/rds/model/CreateRCNodePoolRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateRCNodePoolRequest;
|
||||
|
||||
CreateRCNodePoolRequest::CreateRCNodePoolRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "CreateRCNodePool") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRCNodePoolRequest::~CreateRCNodePoolRequest() {}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getSecurityEnhancementStrategy() const {
|
||||
return securityEnhancementStrategy_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy) {
|
||||
securityEnhancementStrategy_ = securityEnhancementStrategy;
|
||||
setParameter(std::string("SecurityEnhancementStrategy"), securityEnhancementStrategy);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getKeyPairName() const {
|
||||
return keyPairName_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setKeyPairName(const std::string &keyPairName) {
|
||||
keyPairName_ = keyPairName;
|
||||
setParameter(std::string("KeyPairName"), keyPairName);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getPassword() const {
|
||||
return password_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setPassword(const std::string &password) {
|
||||
password_ = password;
|
||||
setParameter(std::string("Password"), password);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getHostName() const {
|
||||
return hostName_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setHostName(const std::string &hostName) {
|
||||
hostName_ = hostName;
|
||||
setParameter(std::string("HostName"), hostName);
|
||||
}
|
||||
|
||||
CreateRCNodePoolRequest::SystemDisk CreateRCNodePoolRequest::getSystemDisk() const {
|
||||
return systemDisk_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setSystemDisk(const CreateRCNodePoolRequest::SystemDisk &systemDisk) {
|
||||
systemDisk_ = systemDisk;
|
||||
setParameter(std::string("SystemDisk") + ".Size", std::to_string(systemDisk.size));
|
||||
setParameter(std::string("SystemDisk") + ".PerformanceLevel", systemDisk.performanceLevel);
|
||||
setParameter(std::string("SystemDisk") + ".Category", systemDisk.category);
|
||||
}
|
||||
|
||||
std::vector<CreateRCNodePoolRequest::Tag> CreateRCNodePoolRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setTag(const std::vector<CreateRCNodePoolRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
int CreateRCNodePoolRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setPeriod(int period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), std::to_string(period));
|
||||
}
|
||||
|
||||
bool CreateRCNodePoolRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getSpotStrategy() const {
|
||||
return spotStrategy_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setSpotStrategy(const std::string &spotStrategy) {
|
||||
spotStrategy_ = spotStrategy;
|
||||
setParameter(std::string("SpotStrategy"), spotStrategy);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getPeriodUnit() const {
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setPeriodUnit(const std::string &periodUnit) {
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter(std::string("PeriodUnit"), periodUnit);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getInstanceName() const {
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setInstanceName(const std::string &instanceName) {
|
||||
instanceName_ = instanceName;
|
||||
setParameter(std::string("InstanceName"), instanceName);
|
||||
}
|
||||
|
||||
bool CreateRCNodePoolRequest::getAutoRenew() const {
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setAutoRenew(bool autoRenew) {
|
||||
autoRenew_ = autoRenew;
|
||||
setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getInternetChargeType() const {
|
||||
return internetChargeType_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setInternetChargeType(const std::string &internetChargeType) {
|
||||
internetChargeType_ = internetChargeType;
|
||||
setParameter(std::string("InternetChargeType"), internetChargeType);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getCreateMode() const {
|
||||
return createMode_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setCreateMode(const std::string &createMode) {
|
||||
createMode_ = createMode;
|
||||
setParameter(std::string("CreateMode"), createMode);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getNodePoolName() const {
|
||||
return nodePoolName_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setNodePoolName(const std::string &nodePoolName) {
|
||||
nodePoolName_ = nodePoolName;
|
||||
setParameter(std::string("NodePoolName"), nodePoolName);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getImageId() const {
|
||||
return imageId_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setImageId(const std::string &imageId) {
|
||||
imageId_ = imageId;
|
||||
setParameter(std::string("ImageId"), imageId);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getIoOptimized() const {
|
||||
return ioOptimized_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setIoOptimized(const std::string &ioOptimized) {
|
||||
ioOptimized_ = ioOptimized;
|
||||
setParameter(std::string("IoOptimized"), ioOptimized);
|
||||
}
|
||||
|
||||
int CreateRCNodePoolRequest::getInternetMaxBandwidthOut() const {
|
||||
return internetMaxBandwidthOut_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) {
|
||||
internetMaxBandwidthOut_ = internetMaxBandwidthOut;
|
||||
setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut));
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getSecurityGroupId() const {
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setSecurityGroupId(const std::string &securityGroupId) {
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter(std::string("SecurityGroupId"), securityGroupId);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getSupportCase() const {
|
||||
return supportCase_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setSupportCase(const std::string &supportCase) {
|
||||
supportCase_ = supportCase;
|
||||
setParameter(std::string("SupportCase"), supportCase);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getUserData() const {
|
||||
return userData_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setUserData(const std::string &userData) {
|
||||
userData_ = userData;
|
||||
setParameter(std::string("UserData"), userData);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getInstanceType() const {
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setInstanceType(const std::string &instanceType) {
|
||||
instanceType_ = instanceType;
|
||||
setParameter(std::string("InstanceType"), instanceType);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getInstanceChargeType() const {
|
||||
return instanceChargeType_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setInstanceChargeType(const std::string &instanceChargeType) {
|
||||
instanceChargeType_ = instanceChargeType;
|
||||
setParameter(std::string("InstanceChargeType"), instanceChargeType);
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getDeploymentSetId() const {
|
||||
return deploymentSetId_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setDeploymentSetId(const std::string &deploymentSetId) {
|
||||
deploymentSetId_ = deploymentSetId;
|
||||
setParameter(std::string("DeploymentSetId"), deploymentSetId);
|
||||
}
|
||||
|
||||
int CreateRCNodePoolRequest::getAmount() const {
|
||||
return amount_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setAmount(int amount) {
|
||||
amount_ = amount;
|
||||
setParameter(std::string("Amount"), std::to_string(amount));
|
||||
}
|
||||
|
||||
bool CreateRCNodePoolRequest::getAutoPay() const {
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setAutoPay(bool autoPay) {
|
||||
autoPay_ = autoPay;
|
||||
setParameter(std::string("AutoPay"), autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::vector<CreateRCNodePoolRequest::DataDisk> CreateRCNodePoolRequest::getDataDisk() const {
|
||||
return dataDisk_;
|
||||
}
|
||||
|
||||
void CreateRCNodePoolRequest::setDataDisk(const std::vector<CreateRCNodePoolRequest::DataDisk> &dataDisk) {
|
||||
dataDisk_ = dataDisk;
|
||||
for(int dep1 = 0; dep1 != dataDisk.size(); dep1++) {
|
||||
setParameter(std::string("DataDisk") + "." + std::to_string(dep1 + 1) + ".Encrypted", dataDisk[dep1].encrypted);
|
||||
setParameter(std::string("DataDisk") + "." + std::to_string(dep1 + 1) + ".Size", std::to_string(dataDisk[dep1].size));
|
||||
setParameter(std::string("DataDisk") + "." + std::to_string(dep1 + 1) + ".PerformanceLevel", dataDisk[dep1].performanceLevel);
|
||||
setParameter(std::string("DataDisk") + "." + std::to_string(dep1 + 1) + ".Category", dataDisk[dep1].category);
|
||||
setParameter(std::string("DataDisk") + "." + std::to_string(dep1 + 1) + ".DeleteWithInstance", dataDisk[dep1].deleteWithInstance ? "true" : "false");
|
||||
}
|
||||
}
|
||||
|
||||
66
rds/src/model/CreateRCNodePoolResult.cc
Normal file
66
rds/src/model/CreateRCNodePoolResult.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/rds/model/CreateRCNodePoolResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateRCNodePoolResult::CreateRCNodePoolResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRCNodePoolResult::CreateRCNodePoolResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRCNodePoolResult::~CreateRCNodePoolResult()
|
||||
{}
|
||||
|
||||
void CreateRCNodePoolResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstanceIdSets = value["InstanceIdSets"]["InstanceIdSet"];
|
||||
for (const auto &item : allInstanceIdSets)
|
||||
instanceIdSets_.push_back(item.asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["NodePoolId"].isNull())
|
||||
nodePoolId_ = value["NodePoolId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolResult::getNodePoolId()const
|
||||
{
|
||||
return nodePoolId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateRCNodePoolResult::getInstanceIdSets()const
|
||||
{
|
||||
return instanceIdSets_;
|
||||
}
|
||||
|
||||
std::string CreateRCNodePoolResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
90
rds/src/model/CreateRCSnapshotRequest.cc
Normal file
90
rds/src/model/CreateRCSnapshotRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateRCSnapshotRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateRCSnapshotRequest;
|
||||
|
||||
CreateRCSnapshotRequest::CreateRCSnapshotRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "CreateRCSnapshot") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRCSnapshotRequest::~CreateRCSnapshotRequest() {}
|
||||
|
||||
bool CreateRCSnapshotRequest::getInstantAccess() const {
|
||||
return instantAccess_;
|
||||
}
|
||||
|
||||
void CreateRCSnapshotRequest::setInstantAccess(bool instantAccess) {
|
||||
instantAccess_ = instantAccess;
|
||||
setParameter(std::string("InstantAccess"), instantAccess ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateRCSnapshotRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateRCSnapshotRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
int CreateRCSnapshotRequest::getInstantAccessRetentionDays() const {
|
||||
return instantAccessRetentionDays_;
|
||||
}
|
||||
|
||||
void CreateRCSnapshotRequest::setInstantAccessRetentionDays(int instantAccessRetentionDays) {
|
||||
instantAccessRetentionDays_ = instantAccessRetentionDays;
|
||||
setParameter(std::string("InstantAccessRetentionDays"), std::to_string(instantAccessRetentionDays));
|
||||
}
|
||||
|
||||
std::string CreateRCSnapshotRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateRCSnapshotRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateRCSnapshotRequest::getDiskId() const {
|
||||
return diskId_;
|
||||
}
|
||||
|
||||
void CreateRCSnapshotRequest::setDiskId(const std::string &diskId) {
|
||||
diskId_ = diskId;
|
||||
setParameter(std::string("DiskId"), diskId);
|
||||
}
|
||||
|
||||
std::string CreateRCSnapshotRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateRCSnapshotRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
int CreateRCSnapshotRequest::getRetentionDays() const {
|
||||
return retentionDays_;
|
||||
}
|
||||
|
||||
void CreateRCSnapshotRequest::setRetentionDays(int retentionDays) {
|
||||
retentionDays_ = retentionDays;
|
||||
setParameter(std::string("RetentionDays"), std::to_string(retentionDays));
|
||||
}
|
||||
|
||||
51
rds/src/model/CreateRCSnapshotResult.cc
Normal file
51
rds/src/model/CreateRCSnapshotResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateRCSnapshotResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateRCSnapshotResult::CreateRCSnapshotResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRCSnapshotResult::CreateRCSnapshotResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRCSnapshotResult::~CreateRCSnapshotResult()
|
||||
{}
|
||||
|
||||
void CreateRCSnapshotResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SnapshotId"].isNull())
|
||||
snapshotId_ = value["SnapshotId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateRCSnapshotResult::getSnapshotId()const
|
||||
{
|
||||
return snapshotId_;
|
||||
}
|
||||
|
||||
@@ -178,6 +178,15 @@ void CreateReadOnlyDBInstanceRequest::setPort(const std::string &port) {
|
||||
setParameter(std::string("Port"), port);
|
||||
}
|
||||
|
||||
std::string CreateReadOnlyDBInstanceRequest::getPromotionCode() const {
|
||||
return promotionCode_;
|
||||
}
|
||||
|
||||
void CreateReadOnlyDBInstanceRequest::setPromotionCode(const std::string &promotionCode) {
|
||||
promotionCode_ = promotionCode;
|
||||
setParameter(std::string("PromotionCode"), promotionCode);
|
||||
}
|
||||
|
||||
std::string CreateReadOnlyDBInstanceRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
@@ -214,6 +223,15 @@ void CreateReadOnlyDBInstanceRequest::setInstructionSetArch(const std::string &i
|
||||
setParameter(std::string("InstructionSetArch"), instructionSetArch);
|
||||
}
|
||||
|
||||
bool CreateReadOnlyDBInstanceRequest::getAutoUseCoupon() const {
|
||||
return autoUseCoupon_;
|
||||
}
|
||||
|
||||
void CreateReadOnlyDBInstanceRequest::setAutoUseCoupon(bool autoUseCoupon) {
|
||||
autoUseCoupon_ = autoUseCoupon;
|
||||
setParameter(std::string("AutoUseCoupon"), autoUseCoupon ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateReadOnlyDBInstanceRequest::getIoAccelerationEnabled() const {
|
||||
return ioAccelerationEnabled_;
|
||||
}
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateReadOnlyDBInstanceResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
port_ = value["Port"].asString();
|
||||
if(!value["ConnectionString"].isNull())
|
||||
connectionString_ = value["ConnectionString"].asString();
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
port_ = value["Port"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
144
rds/src/model/CreateReplicationLinkRequest.cc
Normal file
144
rds/src/model/CreateReplicationLinkRequest.cc
Normal file
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateReplicationLinkRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateReplicationLinkRequest;
|
||||
|
||||
CreateReplicationLinkRequest::CreateReplicationLinkRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "CreateReplicationLink") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateReplicationLinkRequest::~CreateReplicationLinkRequest() {}
|
||||
|
||||
std::string CreateReplicationLinkRequest::getReplicatorAccount() const {
|
||||
return replicatorAccount_;
|
||||
}
|
||||
|
||||
void CreateReplicationLinkRequest::setReplicatorAccount(const std::string &replicatorAccount) {
|
||||
replicatorAccount_ = replicatorAccount;
|
||||
setParameter(std::string("ReplicatorAccount"), replicatorAccount);
|
||||
}
|
||||
|
||||
std::string CreateReplicationLinkRequest::getTaskName() const {
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void CreateReplicationLinkRequest::setTaskName(const std::string &taskName) {
|
||||
taskName_ = taskName;
|
||||
setParameter(std::string("TaskName"), taskName);
|
||||
}
|
||||
|
||||
long CreateReplicationLinkRequest::getSourcePort() const {
|
||||
return sourcePort_;
|
||||
}
|
||||
|
||||
void CreateReplicationLinkRequest::setSourcePort(long sourcePort) {
|
||||
sourcePort_ = sourcePort;
|
||||
setParameter(std::string("SourcePort"), std::to_string(sourcePort));
|
||||
}
|
||||
|
||||
std::string CreateReplicationLinkRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateReplicationLinkRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateReplicationLinkRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void CreateReplicationLinkRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
long CreateReplicationLinkRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void CreateReplicationLinkRequest::setTaskId(long taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string CreateReplicationLinkRequest::getSourceInstanceName() const {
|
||||
return sourceInstanceName_;
|
||||
}
|
||||
|
||||
void CreateReplicationLinkRequest::setSourceInstanceName(const std::string &sourceInstanceName) {
|
||||
sourceInstanceName_ = sourceInstanceName;
|
||||
setParameter(std::string("SourceInstanceName"), sourceInstanceName);
|
||||
}
|
||||
|
||||
bool CreateReplicationLinkRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void CreateReplicationLinkRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateReplicationLinkRequest::getSourceInstanceRegionId() const {
|
||||
return sourceInstanceRegionId_;
|
||||
}
|
||||
|
||||
void CreateReplicationLinkRequest::setSourceInstanceRegionId(const std::string &sourceInstanceRegionId) {
|
||||
sourceInstanceRegionId_ = sourceInstanceRegionId;
|
||||
setParameter(std::string("SourceInstanceRegionId"), sourceInstanceRegionId);
|
||||
}
|
||||
|
||||
std::string CreateReplicationLinkRequest::getTargetAddress() const {
|
||||
return targetAddress_;
|
||||
}
|
||||
|
||||
void CreateReplicationLinkRequest::setTargetAddress(const std::string &targetAddress) {
|
||||
targetAddress_ = targetAddress;
|
||||
setParameter(std::string("TargetAddress"), targetAddress);
|
||||
}
|
||||
|
||||
std::string CreateReplicationLinkRequest::getReplicatorPassword() const {
|
||||
return replicatorPassword_;
|
||||
}
|
||||
|
||||
void CreateReplicationLinkRequest::setReplicatorPassword(const std::string &replicatorPassword) {
|
||||
replicatorPassword_ = replicatorPassword;
|
||||
setParameter(std::string("ReplicatorPassword"), replicatorPassword);
|
||||
}
|
||||
|
||||
std::string CreateReplicationLinkRequest::getSourceAddress() const {
|
||||
return sourceAddress_;
|
||||
}
|
||||
|
||||
void CreateReplicationLinkRequest::setSourceAddress(const std::string &sourceAddress) {
|
||||
sourceAddress_ = sourceAddress;
|
||||
setParameter(std::string("SourceAddress"), sourceAddress);
|
||||
}
|
||||
|
||||
std::string CreateReplicationLinkRequest::getSourceCategory() const {
|
||||
return sourceCategory_;
|
||||
}
|
||||
|
||||
void CreateReplicationLinkRequest::setSourceCategory(const std::string &sourceCategory) {
|
||||
sourceCategory_ = sourceCategory;
|
||||
setParameter(std::string("SourceCategory"), sourceCategory);
|
||||
}
|
||||
|
||||
65
rds/src/model/CreateReplicationLinkResult.cc
Normal file
65
rds/src/model/CreateReplicationLinkResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/rds/model/CreateReplicationLinkResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateReplicationLinkResult::CreateReplicationLinkResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateReplicationLinkResult::CreateReplicationLinkResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateReplicationLinkResult::~CreateReplicationLinkResult()
|
||||
{}
|
||||
|
||||
void CreateReplicationLinkResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
if(!value["TaskName"].isNull())
|
||||
taskName_ = value["TaskName"].asString();
|
||||
|
||||
}
|
||||
|
||||
long CreateReplicationLinkResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string CreateReplicationLinkResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
std::string CreateReplicationLinkResult::getTaskName()const
|
||||
{
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,24 @@ void CreateYouhuiForOrderRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateYouhuiForOrderRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateYouhuiForOrderRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateYouhuiForOrderRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateYouhuiForOrderRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateYouhuiForOrderRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
@@ -61,15 +79,6 @@ void CreateYouhuiForOrderRequest::setPromotionId(long promotionId) {
|
||||
setParameter(std::string("PromotionId"), std::to_string(promotionId));
|
||||
}
|
||||
|
||||
std::string CreateYouhuiForOrderRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateYouhuiForOrderRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
long CreateYouhuiForOrderRequest::getActivityId() const {
|
||||
return activityId_;
|
||||
}
|
||||
@@ -79,12 +88,3 @@ void CreateYouhuiForOrderRequest::setActivityId(long activityId) {
|
||||
setParameter(std::string("ActivityId"), std::to_string(activityId));
|
||||
}
|
||||
|
||||
std::string CreateYouhuiForOrderRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateYouhuiForOrderRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,15 +34,6 @@ void DeleteADSettingRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteADSettingRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteADSettingRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteADSettingRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
@@ -52,15 +43,6 @@ void DeleteADSettingRequest::setClientToken(const std::string &clientToken) {
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
long DeleteADSettingRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteADSettingRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteADSettingRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -88,3 +70,21 @@ void DeleteADSettingRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteADSettingRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteADSettingRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DeleteADSettingRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteADSettingRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -61,15 +61,6 @@ void DeleteDBInstanceEndpointAddressRequest::setAccessKeyId(const std::string &a
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteDBInstanceEndpointAddressRequest::getDBInstanceEndpointId() const {
|
||||
return dBInstanceEndpointId_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceEndpointAddressRequest::setDBInstanceEndpointId(const std::string &dBInstanceEndpointId) {
|
||||
dBInstanceEndpointId_ = dBInstanceEndpointId;
|
||||
setBodyParameter(std::string("DBInstanceEndpointId"), dBInstanceEndpointId);
|
||||
}
|
||||
|
||||
std::string DeleteDBInstanceEndpointAddressRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -88,3 +79,12 @@ void DeleteDBInstanceEndpointAddressRequest::setDBInstanceId(const std::string &
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteDBInstanceEndpointAddressRequest::getDBInstanceEndpointId() const {
|
||||
return dBInstanceEndpointId_;
|
||||
}
|
||||
|
||||
void DeleteDBInstanceEndpointAddressRequest::setDBInstanceEndpointId(const std::string &dBInstanceEndpointId) {
|
||||
dBInstanceEndpointId_ = dBInstanceEndpointId;
|
||||
setBodyParameter(std::string("DBInstanceEndpointId"), dBInstanceEndpointId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ void DeleteDBInstanceEndpointAddressResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DBInstanceName"].isNull())
|
||||
data_.dBInstanceName = dataNode["DBInstanceName"].asString();
|
||||
if(!dataNode["DBInstanceEndpointId"].isNull())
|
||||
data_.dBInstanceEndpointId = dataNode["DBInstanceEndpointId"].asString();
|
||||
if(!dataNode["DBInstanceName"].isNull())
|
||||
data_.dBInstanceName = dataNode["DBInstanceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ void DeleteDBInstanceEndpointResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DBInstanceName"].isNull())
|
||||
data_.dBInstanceName = dataNode["DBInstanceName"].asString();
|
||||
if(!dataNode["DBInstanceEndpointId"].isNull())
|
||||
data_.dBInstanceEndpointId = dataNode["DBInstanceEndpointId"].asString();
|
||||
if(!dataNode["DBInstanceName"].isNull())
|
||||
data_.dBInstanceName = dataNode["DBInstanceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ void DeleteDBInstanceSecurityGroupRuleResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -70,6 +70,15 @@ void DeleteMaskingRulesRequest::setOwnerId(const std::string &ownerId) {
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
std::string DeleteMaskingRulesRequest::getDBName() const {
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
void DeleteMaskingRulesRequest::setDBName(const std::string &dBName) {
|
||||
dBName_ = dBName;
|
||||
setParameter(std::string("DBName"), dBName);
|
||||
}
|
||||
|
||||
std::string DeleteMaskingRulesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -39,12 +39,12 @@ void DeleteMaskingRulesResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
67
rds/src/model/DeleteRCClusterNodesRequest.cc
Normal file
67
rds/src/model/DeleteRCClusterNodesRequest.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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/rds/model/DeleteRCClusterNodesRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteRCClusterNodesRequest;
|
||||
|
||||
DeleteRCClusterNodesRequest::DeleteRCClusterNodesRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "DeleteRCClusterNodes") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRCClusterNodesRequest::~DeleteRCClusterNodesRequest() {}
|
||||
|
||||
std::vector<DeleteRCClusterNodesRequest::std::string> DeleteRCClusterNodesRequest::getNodes() const {
|
||||
return nodes_;
|
||||
}
|
||||
|
||||
void DeleteRCClusterNodesRequest::setNodes(const std::vector<DeleteRCClusterNodesRequest::std::string> &nodes) {
|
||||
nodes_ = nodes;
|
||||
for(int dep1 = 0; dep1 != nodes.size(); dep1++) {
|
||||
setParameter(std::string("Nodes") + "." + std::to_string(dep1 + 1), nodes[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DeleteRCClusterNodesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteRCClusterNodesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<DeleteRCClusterNodesRequest::std::string> DeleteRCClusterNodesRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void DeleteRCClusterNodesRequest::setInstanceIds(const std::vector<DeleteRCClusterNodesRequest::std::string> &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
for(int dep1 = 0; dep1 != instanceIds.size(); dep1++) {
|
||||
setParameter(std::string("InstanceIds") + "." + std::to_string(dep1 + 1), instanceIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DeleteRCClusterNodesRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void DeleteRCClusterNodesRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
51
rds/src/model/DeleteRCClusterNodesResult.cc
Normal file
51
rds/src/model/DeleteRCClusterNodesResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteRCClusterNodesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteRCClusterNodesResult::DeleteRCClusterNodesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRCClusterNodesResult::DeleteRCClusterNodesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRCClusterNodesResult::~DeleteRCClusterNodesResult()
|
||||
{}
|
||||
|
||||
void DeleteRCClusterNodesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteRCClusterNodesResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
45
rds/src/model/DeleteRCDeploymentSetRequest.cc
Normal file
45
rds/src/model/DeleteRCDeploymentSetRequest.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/rds/model/DeleteRCDeploymentSetRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteRCDeploymentSetRequest;
|
||||
|
||||
DeleteRCDeploymentSetRequest::DeleteRCDeploymentSetRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "DeleteRCDeploymentSet") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRCDeploymentSetRequest::~DeleteRCDeploymentSetRequest() {}
|
||||
|
||||
std::string DeleteRCDeploymentSetRequest::getDeploymentSetId() const {
|
||||
return deploymentSetId_;
|
||||
}
|
||||
|
||||
void DeleteRCDeploymentSetRequest::setDeploymentSetId(const std::string &deploymentSetId) {
|
||||
deploymentSetId_ = deploymentSetId;
|
||||
setParameter(std::string("DeploymentSetId"), deploymentSetId);
|
||||
}
|
||||
|
||||
std::string DeleteRCDeploymentSetRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteRCDeploymentSetRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
44
rds/src/model/DeleteRCDeploymentSetResult.cc
Normal file
44
rds/src/model/DeleteRCDeploymentSetResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteRCDeploymentSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteRCDeploymentSetResult::DeleteRCDeploymentSetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRCDeploymentSetResult::DeleteRCDeploymentSetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRCDeploymentSetResult::~DeleteRCDeploymentSetResult()
|
||||
{}
|
||||
|
||||
void DeleteRCDeploymentSetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
rds/src/model/DeleteRCDiskRequest.cc
Normal file
45
rds/src/model/DeleteRCDiskRequest.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/rds/model/DeleteRCDiskRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteRCDiskRequest;
|
||||
|
||||
DeleteRCDiskRequest::DeleteRCDiskRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "DeleteRCDisk") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRCDiskRequest::~DeleteRCDiskRequest() {}
|
||||
|
||||
std::string DeleteRCDiskRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteRCDiskRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteRCDiskRequest::getDiskId() const {
|
||||
return diskId_;
|
||||
}
|
||||
|
||||
void DeleteRCDiskRequest::setDiskId(const std::string &diskId) {
|
||||
diskId_ = diskId;
|
||||
setParameter(std::string("DiskId"), diskId);
|
||||
}
|
||||
|
||||
44
rds/src/model/DeleteRCDiskResult.cc
Normal file
44
rds/src/model/DeleteRCDiskResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteRCDiskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteRCDiskResult::DeleteRCDiskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRCDiskResult::DeleteRCDiskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRCDiskResult::~DeleteRCDiskResult()
|
||||
{}
|
||||
|
||||
void DeleteRCDiskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
rds/src/model/DeleteRCInstanceRequest.cc
Normal file
54
rds/src/model/DeleteRCInstanceRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteRCInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteRCInstanceRequest;
|
||||
|
||||
DeleteRCInstanceRequest::DeleteRCInstanceRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "DeleteRCInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRCInstanceRequest::~DeleteRCInstanceRequest() {}
|
||||
|
||||
std::string DeleteRCInstanceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteRCInstanceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteRCInstanceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteRCInstanceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
bool DeleteRCInstanceRequest::getForce() const {
|
||||
return force_;
|
||||
}
|
||||
|
||||
void DeleteRCInstanceRequest::setForce(bool force) {
|
||||
force_ = force;
|
||||
setParameter(std::string("Force"), force ? "true" : "false");
|
||||
}
|
||||
|
||||
44
rds/src/model/DeleteRCInstanceResult.cc
Normal file
44
rds/src/model/DeleteRCInstanceResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteRCInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteRCInstanceResult::DeleteRCInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRCInstanceResult::DeleteRCInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRCInstanceResult::~DeleteRCInstanceResult()
|
||||
{}
|
||||
|
||||
void DeleteRCInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
74
rds/src/model/DeleteRCInstancesRequest.cc
Normal file
74
rds/src/model/DeleteRCInstancesRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/rds/model/DeleteRCInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteRCInstancesRequest;
|
||||
|
||||
DeleteRCInstancesRequest::DeleteRCInstancesRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "DeleteRCInstances") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRCInstancesRequest::~DeleteRCInstancesRequest() {}
|
||||
|
||||
bool DeleteRCInstancesRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DeleteRCInstancesRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<DeleteRCInstancesRequest::std::string> DeleteRCInstancesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteRCInstancesRequest::setInstanceId(const std::vector<DeleteRCInstancesRequest::std::string> &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
for(int dep1 = 0; dep1 != instanceId.size(); dep1++) {
|
||||
setParameter(std::string("InstanceId") + "." + std::to_string(dep1 + 1), instanceId[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DeleteRCInstancesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteRCInstancesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
bool DeleteRCInstancesRequest::getTerminateSubscription() const {
|
||||
return terminateSubscription_;
|
||||
}
|
||||
|
||||
void DeleteRCInstancesRequest::setTerminateSubscription(bool terminateSubscription) {
|
||||
terminateSubscription_ = terminateSubscription;
|
||||
setParameter(std::string("TerminateSubscription"), terminateSubscription ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteRCInstancesRequest::getForce() const {
|
||||
return force_;
|
||||
}
|
||||
|
||||
void DeleteRCInstancesRequest::setForce(bool force) {
|
||||
force_ = force;
|
||||
setParameter(std::string("Force"), force ? "true" : "false");
|
||||
}
|
||||
|
||||
44
rds/src/model/DeleteRCInstancesResult.cc
Normal file
44
rds/src/model/DeleteRCInstancesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteRCInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteRCInstancesResult::DeleteRCInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRCInstancesResult::DeleteRCInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRCInstancesResult::~DeleteRCInstancesResult()
|
||||
{}
|
||||
|
||||
void DeleteRCInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
rds/src/model/DeleteRCNodePoolRequest.cc
Normal file
54
rds/src/model/DeleteRCNodePoolRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteRCNodePoolRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteRCNodePoolRequest;
|
||||
|
||||
DeleteRCNodePoolRequest::DeleteRCNodePoolRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "DeleteRCNodePool") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRCNodePoolRequest::~DeleteRCNodePoolRequest() {}
|
||||
|
||||
std::string DeleteRCNodePoolRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteRCNodePoolRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteRCNodePoolRequest::getNodePoolId() const {
|
||||
return nodePoolId_;
|
||||
}
|
||||
|
||||
void DeleteRCNodePoolRequest::setNodePoolId(const std::string &nodePoolId) {
|
||||
nodePoolId_ = nodePoolId;
|
||||
setParameter(std::string("NodePoolId"), nodePoolId);
|
||||
}
|
||||
|
||||
std::string DeleteRCNodePoolRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteRCNodePoolRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
44
rds/src/model/DeleteRCNodePoolResult.cc
Normal file
44
rds/src/model/DeleteRCNodePoolResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteRCNodePoolResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteRCNodePoolResult::DeleteRCNodePoolResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRCNodePoolResult::DeleteRCNodePoolResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRCNodePoolResult::~DeleteRCNodePoolResult()
|
||||
{}
|
||||
|
||||
void DeleteRCNodePoolResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
rds/src/model/DeleteRCSnapshotRequest.cc
Normal file
54
rds/src/model/DeleteRCSnapshotRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteRCSnapshotRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteRCSnapshotRequest;
|
||||
|
||||
DeleteRCSnapshotRequest::DeleteRCSnapshotRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "DeleteRCSnapshot") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRCSnapshotRequest::~DeleteRCSnapshotRequest() {}
|
||||
|
||||
std::string DeleteRCSnapshotRequest::getSnapshotId() const {
|
||||
return snapshotId_;
|
||||
}
|
||||
|
||||
void DeleteRCSnapshotRequest::setSnapshotId(const std::string &snapshotId) {
|
||||
snapshotId_ = snapshotId;
|
||||
setParameter(std::string("SnapshotId"), snapshotId);
|
||||
}
|
||||
|
||||
std::string DeleteRCSnapshotRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteRCSnapshotRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
bool DeleteRCSnapshotRequest::getForce() const {
|
||||
return force_;
|
||||
}
|
||||
|
||||
void DeleteRCSnapshotRequest::setForce(bool force) {
|
||||
force_ = force;
|
||||
setParameter(std::string("Force"), force ? "true" : "false");
|
||||
}
|
||||
|
||||
44
rds/src/model/DeleteRCSnapshotResult.cc
Normal file
44
rds/src/model/DeleteRCSnapshotResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteRCSnapshotResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteRCSnapshotResult::DeleteRCSnapshotResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRCSnapshotResult::DeleteRCSnapshotResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRCSnapshotResult::~DeleteRCSnapshotResult()
|
||||
{}
|
||||
|
||||
void DeleteRCSnapshotResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
90
rds/src/model/DeleteReplicationLinkRequest.cc
Normal file
90
rds/src/model/DeleteReplicationLinkRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteReplicationLinkRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteReplicationLinkRequest;
|
||||
|
||||
DeleteReplicationLinkRequest::DeleteReplicationLinkRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "DeleteReplicationLink") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteReplicationLinkRequest::~DeleteReplicationLinkRequest() {}
|
||||
|
||||
long DeleteReplicationLinkRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteReplicationLinkRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteReplicationLinkRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteReplicationLinkRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
bool DeleteReplicationLinkRequest::getPromoteToMaster() const {
|
||||
return promoteToMaster_;
|
||||
}
|
||||
|
||||
void DeleteReplicationLinkRequest::setPromoteToMaster(bool promoteToMaster) {
|
||||
promoteToMaster_ = promoteToMaster;
|
||||
setParameter(std::string("PromoteToMaster"), promoteToMaster ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteReplicationLinkRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteReplicationLinkRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteReplicationLinkRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteReplicationLinkRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteReplicationLinkRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteReplicationLinkRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DeleteReplicationLinkRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteReplicationLinkRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
65
rds/src/model/DeleteReplicationLinkResult.cc
Normal file
65
rds/src/model/DeleteReplicationLinkResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/rds/model/DeleteReplicationLinkResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteReplicationLinkResult::DeleteReplicationLinkResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteReplicationLinkResult::DeleteReplicationLinkResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteReplicationLinkResult::~DeleteReplicationLinkResult()
|
||||
{}
|
||||
|
||||
void DeleteReplicationLinkResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
if(!value["TaskName"].isNull())
|
||||
taskName_ = value["TaskName"].asString();
|
||||
|
||||
}
|
||||
|
||||
long DeleteReplicationLinkResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string DeleteReplicationLinkResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteReplicationLinkResult::getTaskName()const
|
||||
{
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
@@ -43,16 +43,16 @@ void DescibeImportsFromDatabaseResult::parse(const std::string &payload)
|
||||
for (auto valueItemsImportResultFromDB : allItemsNode)
|
||||
{
|
||||
ImportResultFromDB itemsObject;
|
||||
if(!valueItemsImportResultFromDB["IncrementalImportingTime"].isNull())
|
||||
itemsObject.incrementalImportingTime = valueItemsImportResultFromDB["IncrementalImportingTime"].asString();
|
||||
if(!valueItemsImportResultFromDB["ImportId"].isNull())
|
||||
itemsObject.importId = std::stoi(valueItemsImportResultFromDB["ImportId"].asString());
|
||||
if(!valueItemsImportResultFromDB["ImportDataStatus"].isNull())
|
||||
itemsObject.importDataStatus = valueItemsImportResultFromDB["ImportDataStatus"].asString();
|
||||
if(!valueItemsImportResultFromDB["ImportDataType"].isNull())
|
||||
itemsObject.importDataType = valueItemsImportResultFromDB["ImportDataType"].asString();
|
||||
if(!valueItemsImportResultFromDB["ImportDataStatusDescription"].isNull())
|
||||
itemsObject.importDataStatusDescription = valueItemsImportResultFromDB["ImportDataStatusDescription"].asString();
|
||||
if(!valueItemsImportResultFromDB["ImportDataType"].isNull())
|
||||
itemsObject.importDataType = valueItemsImportResultFromDB["ImportDataType"].asString();
|
||||
if(!valueItemsImportResultFromDB["ImportId"].isNull())
|
||||
itemsObject.importId = std::stoi(valueItemsImportResultFromDB["ImportId"].asString());
|
||||
if(!valueItemsImportResultFromDB["IncrementalImportingTime"].isNull())
|
||||
itemsObject.incrementalImportingTime = valueItemsImportResultFromDB["IncrementalImportingTime"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
|
||||
@@ -34,15 +34,6 @@ void DescribeADInfoRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeADInfoRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeADInfoRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeADInfoRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
@@ -52,15 +43,6 @@ void DescribeADInfoRequest::setClientToken(const std::string &clientToken) {
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
long DescribeADInfoRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeADInfoRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeADInfoRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -88,3 +70,21 @@ void DescribeADInfoRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeADInfoRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeADInfoRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeADInfoRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeADInfoRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void DescribeADInfoResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ADStatus"].isNull())
|
||||
aDStatus_ = value["ADStatus"].asString();
|
||||
if(!value["ADDNS"].isNull())
|
||||
aDDNS_ = value["ADDNS"].asString();
|
||||
if(!value["ADServerIpAddress"].isNull())
|
||||
aDServerIpAddress_ = value["ADServerIpAddress"].asString();
|
||||
if(!value["ADStatus"].isNull())
|
||||
aDStatus_ = value["ADStatus"].asString();
|
||||
if(!value["AbnormalReason"].isNull())
|
||||
abnormalReason_ = value["AbnormalReason"].asString();
|
||||
if(!value["UserName"].isNull())
|
||||
|
||||
@@ -61,6 +61,15 @@ void DescribeAccountMaskingPrivilegeRequest::setOwnerId(const std::string &owner
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
std::string DescribeAccountMaskingPrivilegeRequest::getDBName() const {
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
void DescribeAccountMaskingPrivilegeRequest::setDBName(const std::string &dBName) {
|
||||
dBName_ = dBName;
|
||||
setParameter(std::string("DBName"), dBName);
|
||||
}
|
||||
|
||||
std::string DescribeAccountMaskingPrivilegeRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -43,50 +43,56 @@ void DescribeAccountsResult::parse(const std::string &payload)
|
||||
for (auto valueAccountsDBInstanceAccount : allAccountsNode)
|
||||
{
|
||||
DBInstanceAccount accountsObject;
|
||||
if(!valueAccountsDBInstanceAccount["AccountStatus"].isNull())
|
||||
accountsObject.accountStatus = valueAccountsDBInstanceAccount["AccountStatus"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["AccountDescription"].isNull())
|
||||
accountsObject.accountDescription = valueAccountsDBInstanceAccount["AccountDescription"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["DBInstanceId"].isNull())
|
||||
accountsObject.dBInstanceId = valueAccountsDBInstanceAccount["DBInstanceId"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["PrivExceeded"].isNull())
|
||||
accountsObject.privExceeded = valueAccountsDBInstanceAccount["PrivExceeded"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["AccountType"].isNull())
|
||||
accountsObject.accountType = valueAccountsDBInstanceAccount["AccountType"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["AccountName"].isNull())
|
||||
accountsObject.accountName = valueAccountsDBInstanceAccount["AccountName"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["ValidUntil"].isNull())
|
||||
accountsObject.validUntil = valueAccountsDBInstanceAccount["ValidUntil"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["CreateDB"].isNull())
|
||||
accountsObject.createDB = valueAccountsDBInstanceAccount["CreateDB"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["Replication"].isNull())
|
||||
accountsObject.replication = valueAccountsDBInstanceAccount["Replication"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["CreateRole"].isNull())
|
||||
accountsObject.createRole = valueAccountsDBInstanceAccount["CreateRole"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["AccountStatus"].isNull())
|
||||
accountsObject.accountStatus = valueAccountsDBInstanceAccount["AccountStatus"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["AccountType"].isNull())
|
||||
accountsObject.accountType = valueAccountsDBInstanceAccount["AccountType"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["BypassRLS"].isNull())
|
||||
accountsObject.bypassRLS = valueAccountsDBInstanceAccount["BypassRLS"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["CheckPolicy"].isNull())
|
||||
accountsObject.checkPolicy = valueAccountsDBInstanceAccount["CheckPolicy"].asString() == "true";
|
||||
if(!valueAccountsDBInstanceAccount["CreateDB"].isNull())
|
||||
accountsObject.createDB = valueAccountsDBInstanceAccount["CreateDB"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["CreateRole"].isNull())
|
||||
accountsObject.createRole = valueAccountsDBInstanceAccount["CreateRole"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["DBInstanceId"].isNull())
|
||||
accountsObject.dBInstanceId = valueAccountsDBInstanceAccount["DBInstanceId"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["PasswordExpireTime"].isNull())
|
||||
accountsObject.passwordExpireTime = valueAccountsDBInstanceAccount["PasswordExpireTime"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["PrivExceeded"].isNull())
|
||||
accountsObject.privExceeded = valueAccountsDBInstanceAccount["PrivExceeded"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["Replication"].isNull())
|
||||
accountsObject.replication = valueAccountsDBInstanceAccount["Replication"].asString();
|
||||
if(!valueAccountsDBInstanceAccount["ValidUntil"].isNull())
|
||||
accountsObject.validUntil = valueAccountsDBInstanceAccount["ValidUntil"].asString();
|
||||
auto allDatabasePrivilegesNode = valueAccountsDBInstanceAccount["DatabasePrivileges"]["DatabasePrivilege"];
|
||||
for (auto valueAccountsDBInstanceAccountDatabasePrivilegesDatabasePrivilege : allDatabasePrivilegesNode)
|
||||
{
|
||||
DBInstanceAccount::DatabasePrivilege databasePrivilegesObject;
|
||||
if(!valueAccountsDBInstanceAccountDatabasePrivilegesDatabasePrivilege["DBName"].isNull())
|
||||
databasePrivilegesObject.dBName = valueAccountsDBInstanceAccountDatabasePrivilegesDatabasePrivilege["DBName"].asString();
|
||||
if(!valueAccountsDBInstanceAccountDatabasePrivilegesDatabasePrivilege["AccountPrivilege"].isNull())
|
||||
databasePrivilegesObject.accountPrivilege = valueAccountsDBInstanceAccountDatabasePrivilegesDatabasePrivilege["AccountPrivilege"].asString();
|
||||
if(!valueAccountsDBInstanceAccountDatabasePrivilegesDatabasePrivilege["AccountPrivilegeDetail"].isNull())
|
||||
databasePrivilegesObject.accountPrivilegeDetail = valueAccountsDBInstanceAccountDatabasePrivilegesDatabasePrivilege["AccountPrivilegeDetail"].asString();
|
||||
if(!valueAccountsDBInstanceAccountDatabasePrivilegesDatabasePrivilege["DBName"].isNull())
|
||||
databasePrivilegesObject.dBName = valueAccountsDBInstanceAccountDatabasePrivilegesDatabasePrivilege["DBName"].asString();
|
||||
accountsObject.databasePrivileges.push_back(databasePrivilegesObject);
|
||||
}
|
||||
accounts_.push_back(accountsObject);
|
||||
}
|
||||
if(!value["SystemAdminAccountStatus"].isNull())
|
||||
systemAdminAccountStatus_ = value["SystemAdminAccountStatus"].asString();
|
||||
if(!value["SystemAdminAccountFirstActivationTime"].isNull())
|
||||
systemAdminAccountFirstActivationTime_ = value["SystemAdminAccountFirstActivationTime"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["SystemAdminAccountFirstActivationTime"].isNull())
|
||||
systemAdminAccountFirstActivationTime_ = value["SystemAdminAccountFirstActivationTime"].asString();
|
||||
if(!value["SystemAdminAccountStatus"].isNull())
|
||||
systemAdminAccountStatus_ = value["SystemAdminAccountStatus"].asString();
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -95,6 +101,11 @@ int DescribeAccountsResult::getTotalRecordCount()const
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
std::string DescribeAccountsResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
int DescribeAccountsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
|
||||
@@ -43,60 +43,60 @@ void DescribeActiveOperationTasksResult::parse(const std::string &payload)
|
||||
for (auto valueItemsItemsItem : allItemsNode)
|
||||
{
|
||||
ItemsItem itemsObject;
|
||||
if(!valueItemsItemsItem["Status"].isNull())
|
||||
itemsObject.status = std::stoi(valueItemsItemsItem["Status"].asString());
|
||||
if(!valueItemsItemsItem["ChangeLevelEn"].isNull())
|
||||
itemsObject.changeLevelEn = valueItemsItemsItem["ChangeLevelEn"].asString();
|
||||
if(!valueItemsItemsItem["TaskType"].isNull())
|
||||
itemsObject.taskType = valueItemsItemsItem["TaskType"].asString();
|
||||
if(!valueItemsItemsItem["InsName"].isNull())
|
||||
itemsObject.insName = valueItemsItemsItem["InsName"].asString();
|
||||
if(!valueItemsItemsItem["Region"].isNull())
|
||||
itemsObject.region = valueItemsItemsItem["Region"].asString();
|
||||
if(!valueItemsItemsItem["ImpactZh"].isNull())
|
||||
itemsObject.impactZh = valueItemsItemsItem["ImpactZh"].asString();
|
||||
if(!valueItemsItemsItem["CreatedTime"].isNull())
|
||||
itemsObject.createdTime = valueItemsItemsItem["CreatedTime"].asString();
|
||||
if(!valueItemsItemsItem["SwitchTime"].isNull())
|
||||
itemsObject.switchTime = valueItemsItemsItem["SwitchTime"].asString();
|
||||
if(!valueItemsItemsItem["ChangeLevelZh"].isNull())
|
||||
itemsObject.changeLevelZh = valueItemsItemsItem["ChangeLevelZh"].asString();
|
||||
if(!valueItemsItemsItem["Deadline"].isNull())
|
||||
itemsObject.deadline = valueItemsItemsItem["Deadline"].asString();
|
||||
if(!valueItemsItemsItem["PrepareInterval"].isNull())
|
||||
itemsObject.prepareInterval = valueItemsItemsItem["PrepareInterval"].asString();
|
||||
if(!valueItemsItemsItem["Impact"].isNull())
|
||||
itemsObject.impact = valueItemsItemsItem["Impact"].asString();
|
||||
if(!valueItemsItemsItem["TaskTypeZh"].isNull())
|
||||
itemsObject.taskTypeZh = valueItemsItemsItem["TaskTypeZh"].asString();
|
||||
if(!valueItemsItemsItem["CurrentAVZ"].isNull())
|
||||
itemsObject.currentAVZ = valueItemsItemsItem["CurrentAVZ"].asString();
|
||||
if(!valueItemsItemsItem["AllowChange"].isNull())
|
||||
itemsObject.allowChange = valueItemsItemsItem["AllowChange"].asString();
|
||||
if(!valueItemsItemsItem["DbVersion"].isNull())
|
||||
itemsObject.dbVersion = valueItemsItemsItem["DbVersion"].asString();
|
||||
if(!valueItemsItemsItem["ImpactEn"].isNull())
|
||||
itemsObject.impactEn = valueItemsItemsItem["ImpactEn"].asString();
|
||||
if(!valueItemsItemsItem["InsComment"].isNull())
|
||||
itemsObject.insComment = valueItemsItemsItem["InsComment"].asString();
|
||||
if(!valueItemsItemsItem["StartTime"].isNull())
|
||||
itemsObject.startTime = valueItemsItemsItem["StartTime"].asString();
|
||||
if(!valueItemsItemsItem["ModifiedTime"].isNull())
|
||||
itemsObject.modifiedTime = valueItemsItemsItem["ModifiedTime"].asString();
|
||||
if(!valueItemsItemsItem["AllowCancel"].isNull())
|
||||
itemsObject.allowCancel = valueItemsItemsItem["AllowCancel"].asString();
|
||||
if(!valueItemsItemsItem["DbType"].isNull())
|
||||
itemsObject.dbType = valueItemsItemsItem["DbType"].asString();
|
||||
if(!valueItemsItemsItem["AllowChange"].isNull())
|
||||
itemsObject.allowChange = valueItemsItemsItem["AllowChange"].asString();
|
||||
if(!valueItemsItemsItem["ChangeLevel"].isNull())
|
||||
itemsObject.changeLevel = valueItemsItemsItem["ChangeLevel"].asString();
|
||||
if(!valueItemsItemsItem["TaskTypeEn"].isNull())
|
||||
itemsObject.taskTypeEn = valueItemsItemsItem["TaskTypeEn"].asString();
|
||||
if(!valueItemsItemsItem["ResultInfo"].isNull())
|
||||
itemsObject.resultInfo = valueItemsItemsItem["ResultInfo"].asString();
|
||||
if(!valueItemsItemsItem["ChangeLevelEn"].isNull())
|
||||
itemsObject.changeLevelEn = valueItemsItemsItem["ChangeLevelEn"].asString();
|
||||
if(!valueItemsItemsItem["ChangeLevelZh"].isNull())
|
||||
itemsObject.changeLevelZh = valueItemsItemsItem["ChangeLevelZh"].asString();
|
||||
if(!valueItemsItemsItem["CreatedTime"].isNull())
|
||||
itemsObject.createdTime = valueItemsItemsItem["CreatedTime"].asString();
|
||||
if(!valueItemsItemsItem["CurrentAVZ"].isNull())
|
||||
itemsObject.currentAVZ = valueItemsItemsItem["CurrentAVZ"].asString();
|
||||
if(!valueItemsItemsItem["DbType"].isNull())
|
||||
itemsObject.dbType = valueItemsItemsItem["DbType"].asString();
|
||||
if(!valueItemsItemsItem["DbVersion"].isNull())
|
||||
itemsObject.dbVersion = valueItemsItemsItem["DbVersion"].asString();
|
||||
if(!valueItemsItemsItem["Deadline"].isNull())
|
||||
itemsObject.deadline = valueItemsItemsItem["Deadline"].asString();
|
||||
if(!valueItemsItemsItem["Id"].isNull())
|
||||
itemsObject.id = std::stoi(valueItemsItemsItem["Id"].asString());
|
||||
if(!valueItemsItemsItem["Impact"].isNull())
|
||||
itemsObject.impact = valueItemsItemsItem["Impact"].asString();
|
||||
if(!valueItemsItemsItem["ImpactEn"].isNull())
|
||||
itemsObject.impactEn = valueItemsItemsItem["ImpactEn"].asString();
|
||||
if(!valueItemsItemsItem["ImpactZh"].isNull())
|
||||
itemsObject.impactZh = valueItemsItemsItem["ImpactZh"].asString();
|
||||
if(!valueItemsItemsItem["InsComment"].isNull())
|
||||
itemsObject.insComment = valueItemsItemsItem["InsComment"].asString();
|
||||
if(!valueItemsItemsItem["InsName"].isNull())
|
||||
itemsObject.insName = valueItemsItemsItem["InsName"].asString();
|
||||
if(!valueItemsItemsItem["ModifiedTime"].isNull())
|
||||
itemsObject.modifiedTime = valueItemsItemsItem["ModifiedTime"].asString();
|
||||
if(!valueItemsItemsItem["PrepareInterval"].isNull())
|
||||
itemsObject.prepareInterval = valueItemsItemsItem["PrepareInterval"].asString();
|
||||
if(!valueItemsItemsItem["Region"].isNull())
|
||||
itemsObject.region = valueItemsItemsItem["Region"].asString();
|
||||
if(!valueItemsItemsItem["ResultInfo"].isNull())
|
||||
itemsObject.resultInfo = valueItemsItemsItem["ResultInfo"].asString();
|
||||
if(!valueItemsItemsItem["StartTime"].isNull())
|
||||
itemsObject.startTime = valueItemsItemsItem["StartTime"].asString();
|
||||
if(!valueItemsItemsItem["Status"].isNull())
|
||||
itemsObject.status = std::stoi(valueItemsItemsItem["Status"].asString());
|
||||
if(!valueItemsItemsItem["SwitchTime"].isNull())
|
||||
itemsObject.switchTime = valueItemsItemsItem["SwitchTime"].asString();
|
||||
if(!valueItemsItemsItem["TaskParams"].isNull())
|
||||
itemsObject.taskParams = valueItemsItemsItem["TaskParams"].asString();
|
||||
if(!valueItemsItemsItem["TaskType"].isNull())
|
||||
itemsObject.taskType = valueItemsItemsItem["TaskType"].asString();
|
||||
if(!valueItemsItemsItem["TaskTypeEn"].isNull())
|
||||
itemsObject.taskTypeEn = valueItemsItemsItem["TaskTypeEn"].asString();
|
||||
if(!valueItemsItemsItem["TaskTypeZh"].isNull())
|
||||
itemsObject.taskTypeZh = valueItemsItemsItem["TaskTypeZh"].asString();
|
||||
auto allSubInsNames = value["SubInsNames"]["SubInsNames"];
|
||||
for (auto value : allSubInsNames)
|
||||
itemsObject.subInsNames.push_back(value.asString());
|
||||
|
||||
@@ -40,42 +40,42 @@ void DescribeAllWhitelistTemplateResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TotalRecords"].isNull())
|
||||
data_.totalRecords = std::stoi(dataNode["TotalRecords"].asString());
|
||||
if(!dataNode["MaxRecordsPerPage"].isNull())
|
||||
data_.maxRecordsPerPage = std::stoi(dataNode["MaxRecordsPerPage"].asString());
|
||||
if(!dataNode["CurrPageNumbers"].isNull())
|
||||
data_.currPageNumbers = std::stoi(dataNode["CurrPageNumbers"].asString());
|
||||
if(!dataNode["TotalPageNumbers"].isNull())
|
||||
data_.totalPageNumbers = std::stoi(dataNode["TotalPageNumbers"].asString());
|
||||
if(!dataNode["HasNext"].isNull())
|
||||
data_.hasNext = dataNode["HasNext"].asString() == "true";
|
||||
if(!dataNode["HasPrev"].isNull())
|
||||
data_.hasPrev = dataNode["HasPrev"].asString() == "true";
|
||||
if(!dataNode["MaxRecordsPerPage"].isNull())
|
||||
data_.maxRecordsPerPage = std::stoi(dataNode["MaxRecordsPerPage"].asString());
|
||||
if(!dataNode["TotalPageNumbers"].isNull())
|
||||
data_.totalPageNumbers = std::stoi(dataNode["TotalPageNumbers"].asString());
|
||||
if(!dataNode["TotalRecords"].isNull())
|
||||
data_.totalRecords = std::stoi(dataNode["TotalRecords"].asString());
|
||||
auto allTemplatesNode = dataNode["Templates"]["Template"];
|
||||
for (auto dataNodeTemplatesTemplate : allTemplatesNode)
|
||||
{
|
||||
Data::_Template _templateObject;
|
||||
if(!dataNodeTemplatesTemplate["Id"].isNull())
|
||||
_templateObject.id = std::stoi(dataNodeTemplatesTemplate["Id"].asString());
|
||||
if(!dataNodeTemplatesTemplate["UserId"].isNull())
|
||||
_templateObject.userId = std::stoi(dataNodeTemplatesTemplate["UserId"].asString());
|
||||
if(!dataNodeTemplatesTemplate["Ips"].isNull())
|
||||
_templateObject.ips = dataNodeTemplatesTemplate["Ips"].asString();
|
||||
if(!dataNodeTemplatesTemplate["TemplateId"].isNull())
|
||||
_templateObject.templateId = std::stoi(dataNodeTemplatesTemplate["TemplateId"].asString());
|
||||
if(!dataNodeTemplatesTemplate["TemplateName"].isNull())
|
||||
_templateObject.templateName = dataNodeTemplatesTemplate["TemplateName"].asString();
|
||||
if(!dataNodeTemplatesTemplate["Ips"].isNull())
|
||||
_templateObject.ips = dataNodeTemplatesTemplate["Ips"].asString();
|
||||
if(!dataNodeTemplatesTemplate["UserId"].isNull())
|
||||
_templateObject.userId = std::stoi(dataNodeTemplatesTemplate["UserId"].asString());
|
||||
data_.templates.push_back(_templateObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,17 +43,17 @@ void DescribeAvailableClassesResult::parse(const std::string &payload)
|
||||
for (auto valueDBInstanceClassesDBInstanceClass : allDBInstanceClassesNode)
|
||||
{
|
||||
DBInstanceClass dBInstanceClassesObject;
|
||||
if(!valueDBInstanceClassesDBInstanceClass["StorageRange"].isNull())
|
||||
dBInstanceClassesObject.storageRange = valueDBInstanceClassesDBInstanceClass["StorageRange"].asString();
|
||||
if(!valueDBInstanceClassesDBInstanceClass["DBInstanceClass"].isNull())
|
||||
dBInstanceClassesObject.dBInstanceClass = valueDBInstanceClassesDBInstanceClass["DBInstanceClass"].asString();
|
||||
if(!valueDBInstanceClassesDBInstanceClass["StorageRange"].isNull())
|
||||
dBInstanceClassesObject.storageRange = valueDBInstanceClassesDBInstanceClass["StorageRange"].asString();
|
||||
auto dBInstanceStorageRangeNode = value["DBInstanceStorageRange"];
|
||||
if(!dBInstanceStorageRangeNode["Step"].isNull())
|
||||
dBInstanceClassesObject.dBInstanceStorageRange.step = std::stoi(dBInstanceStorageRangeNode["Step"].asString());
|
||||
if(!dBInstanceStorageRangeNode["MinValue"].isNull())
|
||||
dBInstanceClassesObject.dBInstanceStorageRange.minValue = std::stoi(dBInstanceStorageRangeNode["MinValue"].asString());
|
||||
if(!dBInstanceStorageRangeNode["MaxValue"].isNull())
|
||||
dBInstanceClassesObject.dBInstanceStorageRange.maxValue = std::stoi(dBInstanceStorageRangeNode["MaxValue"].asString());
|
||||
if(!dBInstanceStorageRangeNode["MinValue"].isNull())
|
||||
dBInstanceClassesObject.dBInstanceStorageRange.minValue = std::stoi(dBInstanceStorageRangeNode["MinValue"].asString());
|
||||
if(!dBInstanceStorageRangeNode["Step"].isNull())
|
||||
dBInstanceClassesObject.dBInstanceStorageRange.step = std::stoi(dBInstanceStorageRangeNode["Step"].asString());
|
||||
dBInstanceClasses_.push_back(dBInstanceClassesObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,24 +43,6 @@ void DescribeAvailableMetricsRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAvailableMetricsRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAvailableMetricsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeAvailableMetricsRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableMetricsRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAvailableMetricsRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -88,3 +70,21 @@ void DescribeAvailableMetricsRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableMetricsRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAvailableMetricsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeAvailableMetricsRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableMetricsRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,32 +43,32 @@ void DescribeAvailableMetricsResult::parse(const std::string &payload)
|
||||
for (auto valueItemsMetrics : allItemsNode)
|
||||
{
|
||||
Metrics itemsObject;
|
||||
if(!valueItemsMetrics["GroupKey"].isNull())
|
||||
itemsObject.groupKey = valueItemsMetrics["GroupKey"].asString();
|
||||
if(!valueItemsMetrics["SortRule"].isNull())
|
||||
itemsObject.sortRule = std::stoi(valueItemsMetrics["SortRule"].asString());
|
||||
if(!valueItemsMetrics["Description"].isNull())
|
||||
itemsObject.description = valueItemsMetrics["Description"].asString();
|
||||
if(!valueItemsMetrics["Unit"].isNull())
|
||||
itemsObject.unit = valueItemsMetrics["Unit"].asString();
|
||||
if(!valueItemsMetrics["DbType"].isNull())
|
||||
itemsObject.dbType = valueItemsMetrics["DbType"].asString();
|
||||
if(!valueItemsMetrics["MetricsKey"].isNull())
|
||||
itemsObject.metricsKey = valueItemsMetrics["MetricsKey"].asString();
|
||||
if(!valueItemsMetrics["GroupKeyType"].isNull())
|
||||
itemsObject.groupKeyType = valueItemsMetrics["GroupKeyType"].asString();
|
||||
if(!valueItemsMetrics["MetricsKeyAlias"].isNull())
|
||||
itemsObject.metricsKeyAlias = valueItemsMetrics["MetricsKeyAlias"].asString();
|
||||
if(!valueItemsMetrics["Method"].isNull())
|
||||
itemsObject.method = valueItemsMetrics["Method"].asString();
|
||||
if(!valueItemsMetrics["Description"].isNull())
|
||||
itemsObject.description = valueItemsMetrics["Description"].asString();
|
||||
if(!valueItemsMetrics["Dimension"].isNull())
|
||||
itemsObject.dimension = valueItemsMetrics["Dimension"].asString();
|
||||
if(!valueItemsMetrics["GroupKey"].isNull())
|
||||
itemsObject.groupKey = valueItemsMetrics["GroupKey"].asString();
|
||||
if(!valueItemsMetrics["GroupKeyType"].isNull())
|
||||
itemsObject.groupKeyType = valueItemsMetrics["GroupKeyType"].asString();
|
||||
if(!valueItemsMetrics["Method"].isNull())
|
||||
itemsObject.method = valueItemsMetrics["Method"].asString();
|
||||
if(!valueItemsMetrics["MetricsKey"].isNull())
|
||||
itemsObject.metricsKey = valueItemsMetrics["MetricsKey"].asString();
|
||||
if(!valueItemsMetrics["MetricsKeyAlias"].isNull())
|
||||
itemsObject.metricsKeyAlias = valueItemsMetrics["MetricsKeyAlias"].asString();
|
||||
if(!valueItemsMetrics["SortRule"].isNull())
|
||||
itemsObject.sortRule = std::stoi(valueItemsMetrics["SortRule"].asString());
|
||||
if(!valueItemsMetrics["Unit"].isNull())
|
||||
itemsObject.unit = valueItemsMetrics["Unit"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DescribeAvailableRecoveryTimeResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RecoveryEndTime"].isNull())
|
||||
recoveryEndTime_ = value["RecoveryEndTime"].asString();
|
||||
if(!value["CrossBackupId"].isNull())
|
||||
crossBackupId_ = std::stoi(value["CrossBackupId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["RecoveryBeginTime"].isNull())
|
||||
recoveryBeginTime_ = value["RecoveryBeginTime"].asString();
|
||||
if(!value["RecoveryEndTime"].isNull())
|
||||
recoveryEndTime_ = value["RecoveryEndTime"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
|
||||
@@ -43,12 +43,12 @@ void DescribeAvailableZonesResult::parse(const std::string &payload)
|
||||
for (auto valueAvailableZonesAvailableZone : allAvailableZonesNode)
|
||||
{
|
||||
AvailableZone availableZonesObject;
|
||||
if(!valueAvailableZonesAvailableZone["ZoneId"].isNull())
|
||||
availableZonesObject.zoneId = valueAvailableZonesAvailableZone["ZoneId"].asString();
|
||||
if(!valueAvailableZonesAvailableZone["NetworkTypes"].isNull())
|
||||
availableZonesObject.networkTypes = valueAvailableZonesAvailableZone["NetworkTypes"].asString();
|
||||
if(!valueAvailableZonesAvailableZone["RegionId"].isNull())
|
||||
availableZonesObject.regionId = valueAvailableZonesAvailableZone["RegionId"].asString();
|
||||
if(!valueAvailableZonesAvailableZone["ZoneId"].isNull())
|
||||
availableZonesObject.zoneId = valueAvailableZonesAvailableZone["ZoneId"].asString();
|
||||
auto allSupportedEnginesNode = valueAvailableZonesAvailableZone["SupportedEngines"]["SupportedEngine"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
||||
{
|
||||
|
||||
@@ -34,33 +34,6 @@ void DescribeBackupDatabaseRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeBackupDatabaseRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeBackupDatabaseRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeBackupDatabaseRequest::getBackupId() const {
|
||||
return backupId_;
|
||||
}
|
||||
|
||||
void DescribeBackupDatabaseRequest::setBackupId(const std::string &backupId) {
|
||||
backupId_ = backupId;
|
||||
setParameter(std::string("BackupId"), backupId);
|
||||
}
|
||||
|
||||
long DescribeBackupDatabaseRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupDatabaseRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeBackupDatabaseRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -88,3 +61,30 @@ void DescribeBackupDatabaseRequest::setDBInstanceId(const std::string &dBInstanc
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupDatabaseRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeBackupDatabaseRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeBackupDatabaseRequest::getBackupId() const {
|
||||
return backupId_;
|
||||
}
|
||||
|
||||
void DescribeBackupDatabaseRequest::setBackupId(const std::string &backupId) {
|
||||
backupId_ = backupId;
|
||||
setParameter(std::string("BackupId"), backupId);
|
||||
}
|
||||
|
||||
long DescribeBackupDatabaseRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupDatabaseRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -47,64 +47,66 @@ void DescribeBackupPolicyResult::parse(const std::string &payload)
|
||||
duplicationLocation_.location.bucket = locationNode["Bucket"].asString();
|
||||
if(!locationNode["Endpoint"].isNull())
|
||||
duplicationLocation_.location.endpoint = locationNode["Endpoint"].asString();
|
||||
if(!value["LogBackupRetentionPeriod"].isNull())
|
||||
logBackupRetentionPeriod_ = std::stoi(value["LogBackupRetentionPeriod"].asString());
|
||||
if(!value["ArchiveBackupKeepPolicy"].isNull())
|
||||
archiveBackupKeepPolicy_ = value["ArchiveBackupKeepPolicy"].asString();
|
||||
if(!value["ArchiveBackupKeepCount"].isNull())
|
||||
archiveBackupKeepCount_ = value["ArchiveBackupKeepCount"].asString();
|
||||
if(!value["LocalLogRetentionHours"].isNull())
|
||||
localLogRetentionHours_ = std::stoi(value["LocalLogRetentionHours"].asString());
|
||||
if(!value["BackupRetentionPeriod"].isNull())
|
||||
backupRetentionPeriod_ = std::stoi(value["BackupRetentionPeriod"].asString());
|
||||
if(!value["PreferredBackupPeriod"].isNull())
|
||||
preferredBackupPeriod_ = value["PreferredBackupPeriod"].asString();
|
||||
if(!value["CompressType"].isNull())
|
||||
compressType_ = value["CompressType"].asString();
|
||||
if(!value["SupportReleasedKeep"].isNull())
|
||||
supportReleasedKeep_ = std::stoi(value["SupportReleasedKeep"].asString());
|
||||
if(!value["LocalLogRetentionSpace"].isNull())
|
||||
localLogRetentionSpace_ = value["LocalLogRetentionSpace"].asString();
|
||||
if(!value["SupportVolumeShadowCopy"].isNull())
|
||||
supportVolumeShadowCopy_ = std::stoi(value["SupportVolumeShadowCopy"].asString());
|
||||
if(!value["BackupMethod"].isNull())
|
||||
backupMethod_ = value["BackupMethod"].asString();
|
||||
if(!value["LogBackupFrequency"].isNull())
|
||||
logBackupFrequency_ = value["LogBackupFrequency"].asString();
|
||||
if(!value["PreferredNextBackupTime"].isNull())
|
||||
preferredNextBackupTime_ = value["PreferredNextBackupTime"].asString();
|
||||
if(!value["HighSpaceUsageProtection"].isNull())
|
||||
highSpaceUsageProtection_ = value["HighSpaceUsageProtection"].asString();
|
||||
if(!value["DuplicationContent"].isNull())
|
||||
duplicationContent_ = value["DuplicationContent"].asString();
|
||||
if(!value["ArchiveBackupKeepPolicy"].isNull())
|
||||
archiveBackupKeepPolicy_ = value["ArchiveBackupKeepPolicy"].asString();
|
||||
if(!value["ArchiveBackupRetentionPeriod"].isNull())
|
||||
archiveBackupRetentionPeriod_ = value["ArchiveBackupRetentionPeriod"].asString();
|
||||
if(!value["BackupInterval"].isNull())
|
||||
backupInterval_ = value["BackupInterval"].asString();
|
||||
if(!value["ReleasedKeepPolicy"].isNull())
|
||||
releasedKeepPolicy_ = value["ReleasedKeepPolicy"].asString();
|
||||
if(!value["PreferredBackupTime"].isNull())
|
||||
preferredBackupTime_ = value["PreferredBackupTime"].asString();
|
||||
if(!value["Duplication"].isNull())
|
||||
duplication_ = value["Duplication"].asString();
|
||||
if(!value["LogBackupLocalRetentionNumber"].isNull())
|
||||
logBackupLocalRetentionNumber_ = std::stoi(value["LogBackupLocalRetentionNumber"].asString());
|
||||
if(!value["Category"].isNull())
|
||||
category_ = value["Category"].asString();
|
||||
if(!value["EnableBackupLog"].isNull())
|
||||
enableBackupLog_ = value["EnableBackupLog"].asString();
|
||||
if(!value["BackupLog"].isNull())
|
||||
backupLog_ = value["BackupLog"].asString();
|
||||
if(!value["EnableIncrementDataBackup"].isNull())
|
||||
enableIncrementDataBackup_ = value["EnableIncrementDataBackup"].asString() == "true";
|
||||
if(!value["SupportModifyBackupPriority"].isNull())
|
||||
supportModifyBackupPriority_ = value["SupportModifyBackupPriority"].asString() == "true";
|
||||
if(!value["BackupMethod"].isNull())
|
||||
backupMethod_ = value["BackupMethod"].asString();
|
||||
if(!value["BackupPriority"].isNull())
|
||||
backupPriority_ = std::stoi(value["BackupPriority"].asString());
|
||||
if(!value["BackupRetentionPeriod"].isNull())
|
||||
backupRetentionPeriod_ = std::stoi(value["BackupRetentionPeriod"].asString());
|
||||
if(!value["Category"].isNull())
|
||||
category_ = value["Category"].asString();
|
||||
if(!value["CompressType"].isNull())
|
||||
compressType_ = value["CompressType"].asString();
|
||||
if(!value["Duplication"].isNull())
|
||||
duplication_ = value["Duplication"].asString();
|
||||
if(!value["DuplicationContent"].isNull())
|
||||
duplicationContent_ = value["DuplicationContent"].asString();
|
||||
if(!value["EnableBackupLog"].isNull())
|
||||
enableBackupLog_ = value["EnableBackupLog"].asString();
|
||||
if(!value["EnableIncrementDataBackup"].isNull())
|
||||
enableIncrementDataBackup_ = value["EnableIncrementDataBackup"].asString() == "true";
|
||||
if(!value["EnablePitrProtection"].isNull())
|
||||
enablePitrProtection_ = value["EnablePitrProtection"].asString() == "true";
|
||||
if(!value["HighSpaceUsageProtection"].isNull())
|
||||
highSpaceUsageProtection_ = value["HighSpaceUsageProtection"].asString();
|
||||
if(!value["LocalLogRetentionHours"].isNull())
|
||||
localLogRetentionHours_ = std::stoi(value["LocalLogRetentionHours"].asString());
|
||||
if(!value["LocalLogRetentionSpace"].isNull())
|
||||
localLogRetentionSpace_ = value["LocalLogRetentionSpace"].asString();
|
||||
if(!value["LogBackupFrequency"].isNull())
|
||||
logBackupFrequency_ = value["LogBackupFrequency"].asString();
|
||||
if(!value["LogBackupLocalRetentionNumber"].isNull())
|
||||
logBackupLocalRetentionNumber_ = std::stoi(value["LogBackupLocalRetentionNumber"].asString());
|
||||
if(!value["LogBackupRetentionPeriod"].isNull())
|
||||
logBackupRetentionPeriod_ = std::stoi(value["LogBackupRetentionPeriod"].asString());
|
||||
if(!value["PitrRetentionPeriod"].isNull())
|
||||
pitrRetentionPeriod_ = std::stoi(value["PitrRetentionPeriod"].asString());
|
||||
if(!value["PreferredBackupPeriod"].isNull())
|
||||
preferredBackupPeriod_ = value["PreferredBackupPeriod"].asString();
|
||||
if(!value["PreferredBackupTime"].isNull())
|
||||
preferredBackupTime_ = value["PreferredBackupTime"].asString();
|
||||
if(!value["PreferredNextBackupTime"].isNull())
|
||||
preferredNextBackupTime_ = value["PreferredNextBackupTime"].asString();
|
||||
if(!value["ReleasedKeepPolicy"].isNull())
|
||||
releasedKeepPolicy_ = value["ReleasedKeepPolicy"].asString();
|
||||
if(!value["SupportModifyBackupPriority"].isNull())
|
||||
supportModifyBackupPriority_ = value["SupportModifyBackupPriority"].asString() == "true";
|
||||
if(!value["SupportReleasedKeep"].isNull())
|
||||
supportReleasedKeep_ = std::stoi(value["SupportReleasedKeep"].asString());
|
||||
if(!value["SupportVolumeShadowCopy"].isNull())
|
||||
supportVolumeShadowCopy_ = std::stoi(value["SupportVolumeShadowCopy"].asString());
|
||||
if(!value["SupportsHighFrequencyBackup"].isNull())
|
||||
supportsHighFrequencyBackup_ = std::stol(value["SupportsHighFrequencyBackup"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -148,6 +150,11 @@ std::string DescribeBackupPolicyResult::getPreferredBackupPeriod()const
|
||||
return preferredBackupPeriod_;
|
||||
}
|
||||
|
||||
long DescribeBackupPolicyResult::getSupportsHighFrequencyBackup()const
|
||||
{
|
||||
return supportsHighFrequencyBackup_;
|
||||
}
|
||||
|
||||
int DescribeBackupPolicyResult::getLogBackupRetentionPeriod()const
|
||||
{
|
||||
return logBackupRetentionPeriod_;
|
||||
@@ -193,16 +200,16 @@ std::string DescribeBackupPolicyResult::getArchiveBackupKeepPolicy()const
|
||||
return archiveBackupKeepPolicy_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupPolicyResult::getPreferredBackupTime()const
|
||||
{
|
||||
return preferredBackupTime_;
|
||||
}
|
||||
|
||||
int DescribeBackupPolicyResult::getBackupPriority()const
|
||||
{
|
||||
return backupPriority_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupPolicyResult::getPreferredBackupTime()const
|
||||
{
|
||||
return preferredBackupTime_;
|
||||
}
|
||||
|
||||
int DescribeBackupPolicyResult::getLocalLogRetentionHours()const
|
||||
{
|
||||
return localLogRetentionHours_;
|
||||
|
||||
@@ -43,18 +43,18 @@ void DescribeBackupTasksResult::parse(const std::string &payload)
|
||||
for (auto valueItemsBackupJob : allItemsNode)
|
||||
{
|
||||
BackupJob itemsObject;
|
||||
if(!valueItemsBackupJob["Process"].isNull())
|
||||
itemsObject.process = valueItemsBackupJob["Process"].asString();
|
||||
if(!valueItemsBackupJob["BackupId"].isNull())
|
||||
itemsObject.backupId = valueItemsBackupJob["BackupId"].asString();
|
||||
if(!valueItemsBackupJob["BackupJobId"].isNull())
|
||||
itemsObject.backupJobId = valueItemsBackupJob["BackupJobId"].asString();
|
||||
if(!valueItemsBackupJob["BackupProgressStatus"].isNull())
|
||||
itemsObject.backupProgressStatus = valueItemsBackupJob["BackupProgressStatus"].asString();
|
||||
if(!valueItemsBackupJob["BackupStatus"].isNull())
|
||||
itemsObject.backupStatus = valueItemsBackupJob["BackupStatus"].asString();
|
||||
if(!valueItemsBackupJob["JobMode"].isNull())
|
||||
itemsObject.jobMode = valueItemsBackupJob["JobMode"].asString();
|
||||
if(!valueItemsBackupJob["BackupProgressStatus"].isNull())
|
||||
itemsObject.backupProgressStatus = valueItemsBackupJob["BackupProgressStatus"].asString();
|
||||
if(!valueItemsBackupJob["BackupId"].isNull())
|
||||
itemsObject.backupId = valueItemsBackupJob["BackupId"].asString();
|
||||
if(!valueItemsBackupJob["Process"].isNull())
|
||||
itemsObject.process = valueItemsBackupJob["Process"].asString();
|
||||
if(!valueItemsBackupJob["TaskAction"].isNull())
|
||||
itemsObject.taskAction = valueItemsBackupJob["TaskAction"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
|
||||
@@ -43,90 +43,90 @@ void DescribeBackupsResult::parse(const std::string &payload)
|
||||
for (auto valueItemsBackup : allItemsNode)
|
||||
{
|
||||
Backup itemsObject;
|
||||
if(!valueItemsBackup["StorageClass"].isNull())
|
||||
itemsObject.storageClass = valueItemsBackup["StorageClass"].asString();
|
||||
if(!valueItemsBackup["Encryption"].isNull())
|
||||
itemsObject.encryption = valueItemsBackup["Encryption"].asString();
|
||||
if(!valueItemsBackup["BackupStatus"].isNull())
|
||||
itemsObject.backupStatus = valueItemsBackup["BackupStatus"].asString();
|
||||
if(!valueItemsBackup["StoreStatus"].isNull())
|
||||
itemsObject.storeStatus = valueItemsBackup["StoreStatus"].asString();
|
||||
if(!valueItemsBackup["ConsistentTime"].isNull())
|
||||
itemsObject.consistentTime = std::stol(valueItemsBackup["ConsistentTime"].asString());
|
||||
if(!valueItemsBackup["BackupType"].isNull())
|
||||
itemsObject.backupType = valueItemsBackup["BackupType"].asString();
|
||||
if(!valueItemsBackup["CopyOnlyBackup"].isNull())
|
||||
itemsObject.copyOnlyBackup = valueItemsBackup["CopyOnlyBackup"].asString();
|
||||
if(!valueItemsBackup["BackupDBNames"].isNull())
|
||||
itemsObject.backupDBNames = valueItemsBackup["BackupDBNames"].asString();
|
||||
if(!valueItemsBackup["BackupDownloadURL"].isNull())
|
||||
itemsObject.backupDownloadURL = valueItemsBackup["BackupDownloadURL"].asString();
|
||||
if(!valueItemsBackup["BackupEndTime"].isNull())
|
||||
itemsObject.backupEndTime = valueItemsBackup["BackupEndTime"].asString();
|
||||
if(!valueItemsBackup["MetaStatus"].isNull())
|
||||
itemsObject.metaStatus = valueItemsBackup["MetaStatus"].asString();
|
||||
if(!valueItemsBackup["BackupScale"].isNull())
|
||||
itemsObject.backupScale = valueItemsBackup["BackupScale"].asString();
|
||||
if(!valueItemsBackup["BackupExtractionStatus"].isNull())
|
||||
itemsObject.backupExtractionStatus = valueItemsBackup["BackupExtractionStatus"].asString();
|
||||
if(!valueItemsBackup["BackupId"].isNull())
|
||||
itemsObject.backupId = valueItemsBackup["BackupId"].asString();
|
||||
if(!valueItemsBackup["BackupInitiator"].isNull())
|
||||
itemsObject.backupInitiator = valueItemsBackup["BackupInitiator"].asString();
|
||||
if(!valueItemsBackup["BackupIntranetDownloadURL"].isNull())
|
||||
itemsObject.backupIntranetDownloadURL = valueItemsBackup["BackupIntranetDownloadURL"].asString();
|
||||
if(!valueItemsBackup["BackupMethod"].isNull())
|
||||
itemsObject.backupMethod = valueItemsBackup["BackupMethod"].asString();
|
||||
if(!valueItemsBackup["SlaveStatus"].isNull())
|
||||
itemsObject.slaveStatus = valueItemsBackup["SlaveStatus"].asString();
|
||||
if(!valueItemsBackup["BackupStartTime"].isNull())
|
||||
itemsObject.backupStartTime = valueItemsBackup["BackupStartTime"].asString();
|
||||
if(!valueItemsBackup["BackupLocation"].isNull())
|
||||
itemsObject.backupLocation = valueItemsBackup["BackupLocation"].asString();
|
||||
if(!valueItemsBackup["TotalBackupSize"].isNull())
|
||||
itemsObject.totalBackupSize = std::stol(valueItemsBackup["TotalBackupSize"].asString());
|
||||
if(!valueItemsBackup["BackupDownloadURL"].isNull())
|
||||
itemsObject.backupDownloadURL = valueItemsBackup["BackupDownloadURL"].asString();
|
||||
if(!valueItemsBackup["IsAvail"].isNull())
|
||||
itemsObject.isAvail = std::stoi(valueItemsBackup["IsAvail"].asString());
|
||||
if(!valueItemsBackup["BackupId"].isNull())
|
||||
itemsObject.backupId = valueItemsBackup["BackupId"].asString();
|
||||
if(!valueItemsBackup["BackupDBNames"].isNull())
|
||||
itemsObject.backupDBNames = valueItemsBackup["BackupDBNames"].asString();
|
||||
if(!valueItemsBackup["HostInstanceID"].isNull())
|
||||
itemsObject.hostInstanceID = valueItemsBackup["HostInstanceID"].asString();
|
||||
if(!valueItemsBackup["BackupSize"].isNull())
|
||||
itemsObject.backupSize = std::stol(valueItemsBackup["BackupSize"].asString());
|
||||
if(!valueItemsBackup["BackupMethod"].isNull())
|
||||
itemsObject.backupMethod = valueItemsBackup["BackupMethod"].asString();
|
||||
if(!valueItemsBackup["BackupMode"].isNull())
|
||||
itemsObject.backupMode = valueItemsBackup["BackupMode"].asString();
|
||||
if(!valueItemsBackup["DBInstanceId"].isNull())
|
||||
itemsObject.dBInstanceId = valueItemsBackup["DBInstanceId"].asString();
|
||||
if(!valueItemsBackup["BackupExtractionStatus"].isNull())
|
||||
itemsObject.backupExtractionStatus = valueItemsBackup["BackupExtractionStatus"].asString();
|
||||
if(!valueItemsBackup["BackupScale"].isNull())
|
||||
itemsObject.backupScale = valueItemsBackup["BackupScale"].asString();
|
||||
if(!valueItemsBackup["BackupSize"].isNull())
|
||||
itemsObject.backupSize = std::stol(valueItemsBackup["BackupSize"].asString());
|
||||
if(!valueItemsBackup["BackupStartTime"].isNull())
|
||||
itemsObject.backupStartTime = valueItemsBackup["BackupStartTime"].asString();
|
||||
if(!valueItemsBackup["BackupStatus"].isNull())
|
||||
itemsObject.backupStatus = valueItemsBackup["BackupStatus"].asString();
|
||||
if(!valueItemsBackup["BackupType"].isNull())
|
||||
itemsObject.backupType = valueItemsBackup["BackupType"].asString();
|
||||
if(!valueItemsBackup["Checksum"].isNull())
|
||||
itemsObject.checksum = valueItemsBackup["Checksum"].asString();
|
||||
if(!valueItemsBackup["ResourceGroupId"].isNull())
|
||||
itemsObject.resourceGroupId = valueItemsBackup["ResourceGroupId"].asString();
|
||||
if(!valueItemsBackup["ConsistentTime"].isNull())
|
||||
itemsObject.consistentTime = std::stol(valueItemsBackup["ConsistentTime"].asString());
|
||||
if(!valueItemsBackup["CopyOnlyBackup"].isNull())
|
||||
itemsObject.copyOnlyBackup = valueItemsBackup["CopyOnlyBackup"].asString();
|
||||
if(!valueItemsBackup["DBInstanceId"].isNull())
|
||||
itemsObject.dBInstanceId = valueItemsBackup["DBInstanceId"].asString();
|
||||
if(!valueItemsBackup["Encryption"].isNull())
|
||||
itemsObject.encryption = valueItemsBackup["Encryption"].asString();
|
||||
if(!valueItemsBackup["Engine"].isNull())
|
||||
itemsObject.engine = valueItemsBackup["Engine"].asString();
|
||||
if(!valueItemsBackup["EngineVersion"].isNull())
|
||||
itemsObject.engineVersion = valueItemsBackup["EngineVersion"].asString();
|
||||
if(!valueItemsBackup["HostInstanceID"].isNull())
|
||||
itemsObject.hostInstanceID = valueItemsBackup["HostInstanceID"].asString();
|
||||
if(!valueItemsBackup["IsAvail"].isNull())
|
||||
itemsObject.isAvail = std::stoi(valueItemsBackup["IsAvail"].asString());
|
||||
if(!valueItemsBackup["MetaStatus"].isNull())
|
||||
itemsObject.metaStatus = valueItemsBackup["MetaStatus"].asString();
|
||||
if(!valueItemsBackup["ResourceGroupId"].isNull())
|
||||
itemsObject.resourceGroupId = valueItemsBackup["ResourceGroupId"].asString();
|
||||
if(!valueItemsBackup["SlaveStatus"].isNull())
|
||||
itemsObject.slaveStatus = valueItemsBackup["SlaveStatus"].asString();
|
||||
if(!valueItemsBackup["StorageClass"].isNull())
|
||||
itemsObject.storageClass = valueItemsBackup["StorageClass"].asString();
|
||||
if(!valueItemsBackup["StoreStatus"].isNull())
|
||||
itemsObject.storeStatus = valueItemsBackup["StoreStatus"].asString();
|
||||
if(!valueItemsBackup["TotalBackupSize"].isNull())
|
||||
itemsObject.totalBackupSize = std::stol(valueItemsBackup["TotalBackupSize"].asString());
|
||||
auto allBackupDownloadLinkByDBNode = valueItemsBackup["BackupDownloadLinkByDB"]["BackupDownloadLinkByDBItem"];
|
||||
for (auto valueItemsBackupBackupDownloadLinkByDBBackupDownloadLinkByDBItem : allBackupDownloadLinkByDBNode)
|
||||
{
|
||||
Backup::BackupDownloadLinkByDBItem backupDownloadLinkByDBObject;
|
||||
if(!valueItemsBackupBackupDownloadLinkByDBBackupDownloadLinkByDBItem["IntranetDownloadLink"].isNull())
|
||||
backupDownloadLinkByDBObject.intranetDownloadLink = valueItemsBackupBackupDownloadLinkByDBBackupDownloadLinkByDBItem["IntranetDownloadLink"].asString();
|
||||
if(!valueItemsBackupBackupDownloadLinkByDBBackupDownloadLinkByDBItem["DataBase"].isNull())
|
||||
backupDownloadLinkByDBObject.dataBase = valueItemsBackupBackupDownloadLinkByDBBackupDownloadLinkByDBItem["DataBase"].asString();
|
||||
if(!valueItemsBackupBackupDownloadLinkByDBBackupDownloadLinkByDBItem["DownloadLink"].isNull())
|
||||
backupDownloadLinkByDBObject.downloadLink = valueItemsBackupBackupDownloadLinkByDBBackupDownloadLinkByDBItem["DownloadLink"].asString();
|
||||
if(!valueItemsBackupBackupDownloadLinkByDBBackupDownloadLinkByDBItem["IntranetDownloadLink"].isNull())
|
||||
backupDownloadLinkByDBObject.intranetDownloadLink = valueItemsBackupBackupDownloadLinkByDBBackupDownloadLinkByDBItem["IntranetDownloadLink"].asString();
|
||||
itemsObject.backupDownloadLinkByDB.push_back(backupDownloadLinkByDBObject);
|
||||
}
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalEcsSnapshotSize"].isNull())
|
||||
totalEcsSnapshotSize_ = std::stol(value["TotalEcsSnapshotSize"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = value["PageRecordCount"].asString();
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = value["TotalRecordCount"].asString();
|
||||
if(!value["TotalBackupSize"].isNull())
|
||||
totalBackupSize_ = std::stol(value["TotalBackupSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = value["PageRecordCount"].asString();
|
||||
if(!value["TotalBackupSize"].isNull())
|
||||
totalBackupSize_ = std::stol(value["TotalBackupSize"].asString());
|
||||
if(!value["TotalEcsSnapshotSize"].isNull())
|
||||
totalEcsSnapshotSize_ = std::stol(value["TotalEcsSnapshotSize"].asString());
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = value["TotalRecordCount"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -135,16 +135,16 @@ std::string DescribeBackupsResult::getTotalRecordCount()const
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
long DescribeBackupsResult::getTotalEcsSnapshotSize()const
|
||||
{
|
||||
return totalEcsSnapshotSize_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupsResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
long DescribeBackupsResult::getTotalEcsSnapshotSize()const
|
||||
{
|
||||
return totalEcsSnapshotSize_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
|
||||
@@ -43,34 +43,34 @@ void DescribeBinlogFilesResult::parse(const std::string &payload)
|
||||
for (auto valueItemsBinLogFile : allItemsNode)
|
||||
{
|
||||
BinLogFile itemsObject;
|
||||
if(!valueItemsBinLogFile["RemoteStatus"].isNull())
|
||||
itemsObject.remoteStatus = valueItemsBinLogFile["RemoteStatus"].asString();
|
||||
if(!valueItemsBinLogFile["IntranetDownloadLink"].isNull())
|
||||
itemsObject.intranetDownloadLink = valueItemsBinLogFile["IntranetDownloadLink"].asString();
|
||||
if(!valueItemsBinLogFile["LogBeginTime"].isNull())
|
||||
itemsObject.logBeginTime = valueItemsBinLogFile["LogBeginTime"].asString();
|
||||
if(!valueItemsBinLogFile["LinkExpiredTime"].isNull())
|
||||
itemsObject.linkExpiredTime = valueItemsBinLogFile["LinkExpiredTime"].asString();
|
||||
if(!valueItemsBinLogFile["DownloadLink"].isNull())
|
||||
itemsObject.downloadLink = valueItemsBinLogFile["DownloadLink"].asString();
|
||||
if(!valueItemsBinLogFile["LogFileName"].isNull())
|
||||
itemsObject.logFileName = valueItemsBinLogFile["LogFileName"].asString();
|
||||
if(!valueItemsBinLogFile["Checksum"].isNull())
|
||||
itemsObject.checksum = valueItemsBinLogFile["Checksum"].asString();
|
||||
if(!valueItemsBinLogFile["LogEndTime"].isNull())
|
||||
itemsObject.logEndTime = valueItemsBinLogFile["LogEndTime"].asString();
|
||||
if(!valueItemsBinLogFile["HostInstanceID"].isNull())
|
||||
itemsObject.hostInstanceID = valueItemsBinLogFile["HostInstanceID"].asString();
|
||||
if(!valueItemsBinLogFile["DownloadLink"].isNull())
|
||||
itemsObject.downloadLink = valueItemsBinLogFile["DownloadLink"].asString();
|
||||
if(!valueItemsBinLogFile["FileSize"].isNull())
|
||||
itemsObject.fileSize = std::stol(valueItemsBinLogFile["FileSize"].asString());
|
||||
if(!valueItemsBinLogFile["HostInstanceID"].isNull())
|
||||
itemsObject.hostInstanceID = valueItemsBinLogFile["HostInstanceID"].asString();
|
||||
if(!valueItemsBinLogFile["IntranetDownloadLink"].isNull())
|
||||
itemsObject.intranetDownloadLink = valueItemsBinLogFile["IntranetDownloadLink"].asString();
|
||||
if(!valueItemsBinLogFile["LinkExpiredTime"].isNull())
|
||||
itemsObject.linkExpiredTime = valueItemsBinLogFile["LinkExpiredTime"].asString();
|
||||
if(!valueItemsBinLogFile["LogBeginTime"].isNull())
|
||||
itemsObject.logBeginTime = valueItemsBinLogFile["LogBeginTime"].asString();
|
||||
if(!valueItemsBinLogFile["LogEndTime"].isNull())
|
||||
itemsObject.logEndTime = valueItemsBinLogFile["LogEndTime"].asString();
|
||||
if(!valueItemsBinLogFile["LogFileName"].isNull())
|
||||
itemsObject.logFileName = valueItemsBinLogFile["LogFileName"].asString();
|
||||
if(!valueItemsBinLogFile["RemoteStatus"].isNull())
|
||||
itemsObject.remoteStatus = valueItemsBinLogFile["RemoteStatus"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalFileSize"].isNull())
|
||||
totalFileSize_ = std::stol(value["TotalFileSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["TotalFileSize"].isNull())
|
||||
totalFileSize_ = std::stol(value["TotalFileSize"].asString());
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
|
||||
|
||||
@@ -39,28 +39,28 @@ void DescribeClassDetailsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Category"].isNull())
|
||||
category_ = value["Category"].asString();
|
||||
if(!value["ClassCode"].isNull())
|
||||
classCode_ = value["ClassCode"].asString();
|
||||
if(!value["MaxIOMBPS"].isNull())
|
||||
maxIOMBPS_ = value["MaxIOMBPS"].asString();
|
||||
if(!value["MaxConnections"].isNull())
|
||||
maxConnections_ = value["MaxConnections"].asString();
|
||||
if(!value["ClassGroup"].isNull())
|
||||
classGroup_ = value["ClassGroup"].asString();
|
||||
if(!value["Cpu"].isNull())
|
||||
cpu_ = value["Cpu"].asString();
|
||||
if(!value["InstructionSetArch"].isNull())
|
||||
instructionSetArch_ = value["InstructionSetArch"].asString();
|
||||
if(!value["MemoryClass"].isNull())
|
||||
memoryClass_ = value["MemoryClass"].asString();
|
||||
if(!value["MaxIOPS"].isNull())
|
||||
maxIOPS_ = value["MaxIOPS"].asString();
|
||||
if(!value["ReferencePrice"].isNull())
|
||||
referencePrice_ = value["ReferencePrice"].asString();
|
||||
if(!value["Category"].isNull())
|
||||
category_ = value["Category"].asString();
|
||||
if(!value["DBInstanceStorageType"].isNull())
|
||||
dBInstanceStorageType_ = value["DBInstanceStorageType"].asString();
|
||||
if(!value["InstructionSetArch"].isNull())
|
||||
instructionSetArch_ = value["InstructionSetArch"].asString();
|
||||
if(!value["MaxConnections"].isNull())
|
||||
maxConnections_ = value["MaxConnections"].asString();
|
||||
if(!value["MaxIOMBPS"].isNull())
|
||||
maxIOMBPS_ = value["MaxIOMBPS"].asString();
|
||||
if(!value["MaxIOPS"].isNull())
|
||||
maxIOPS_ = value["MaxIOPS"].asString();
|
||||
if(!value["MemoryClass"].isNull())
|
||||
memoryClass_ = value["MemoryClass"].asString();
|
||||
if(!value["ReferencePrice"].isNull())
|
||||
referencePrice_ = value["ReferencePrice"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -69,16 +69,16 @@ std::string DescribeClassDetailsResult::getMaxIOMBPS()const
|
||||
return maxIOMBPS_;
|
||||
}
|
||||
|
||||
std::string DescribeClassDetailsResult::getClassCode()const
|
||||
{
|
||||
return classCode_;
|
||||
}
|
||||
|
||||
std::string DescribeClassDetailsResult::getCategory()const
|
||||
{
|
||||
return category_;
|
||||
}
|
||||
|
||||
std::string DescribeClassDetailsResult::getClassCode()const
|
||||
{
|
||||
return classCode_;
|
||||
}
|
||||
|
||||
std::string DescribeClassDetailsResult::getMaxConnections()const
|
||||
{
|
||||
return maxConnections_;
|
||||
|
||||
@@ -43,40 +43,40 @@ void DescribeCloudMigrationPrecheckResultResult::parse(const std::string &payloa
|
||||
for (auto valueItemsmigrateCloudTaskList : allItemsNode)
|
||||
{
|
||||
MigrateCloudTaskList itemsObject;
|
||||
if(!valueItemsmigrateCloudTaskList["Detail"].isNull())
|
||||
itemsObject.detail = valueItemsmigrateCloudTaskList["Detail"].asString();
|
||||
if(!valueItemsmigrateCloudTaskList["GmtCreated"].isNull())
|
||||
itemsObject.gmtCreated = valueItemsmigrateCloudTaskList["GmtCreated"].asString();
|
||||
if(!valueItemsmigrateCloudTaskList["GmtModified"].isNull())
|
||||
itemsObject.gmtModified = valueItemsmigrateCloudTaskList["GmtModified"].asString();
|
||||
if(!valueItemsmigrateCloudTaskList["TaskId"].isNull())
|
||||
itemsObject.taskId = std::stol(valueItemsmigrateCloudTaskList["TaskId"].asString());
|
||||
if(!valueItemsmigrateCloudTaskList["TaskName"].isNull())
|
||||
itemsObject.taskName = valueItemsmigrateCloudTaskList["TaskName"].asString();
|
||||
if(!valueItemsmigrateCloudTaskList["Status"].isNull())
|
||||
itemsObject.status = valueItemsmigrateCloudTaskList["Status"].asString();
|
||||
if(!valueItemsmigrateCloudTaskList["SourceAccount"].isNull())
|
||||
itemsObject.sourceAccount = valueItemsmigrateCloudTaskList["SourceAccount"].asString();
|
||||
if(!valueItemsmigrateCloudTaskList["SourceCategory"].isNull())
|
||||
itemsObject.sourceCategory = valueItemsmigrateCloudTaskList["SourceCategory"].asString();
|
||||
if(!valueItemsmigrateCloudTaskList["SourceIpAddress"].isNull())
|
||||
itemsObject.sourceIpAddress = valueItemsmigrateCloudTaskList["SourceIpAddress"].asString();
|
||||
if(!valueItemsmigrateCloudTaskList["SourcePort"].isNull())
|
||||
itemsObject.sourcePort = std::stol(valueItemsmigrateCloudTaskList["SourcePort"].asString());
|
||||
if(!valueItemsmigrateCloudTaskList["SourceAccount"].isNull())
|
||||
itemsObject.sourceAccount = valueItemsmigrateCloudTaskList["SourceAccount"].asString();
|
||||
if(!valueItemsmigrateCloudTaskList["SourcePassword"].isNull())
|
||||
itemsObject.sourcePassword = valueItemsmigrateCloudTaskList["SourcePassword"].asString();
|
||||
if(!valueItemsmigrateCloudTaskList["SourcePort"].isNull())
|
||||
itemsObject.sourcePort = std::stol(valueItemsmigrateCloudTaskList["SourcePort"].asString());
|
||||
if(!valueItemsmigrateCloudTaskList["Status"].isNull())
|
||||
itemsObject.status = valueItemsmigrateCloudTaskList["Status"].asString();
|
||||
if(!valueItemsmigrateCloudTaskList["TargetEip"].isNull())
|
||||
itemsObject.targetEip = valueItemsmigrateCloudTaskList["TargetEip"].asString();
|
||||
if(!valueItemsmigrateCloudTaskList["TargetInstanceName"].isNull())
|
||||
itemsObject.targetInstanceName = valueItemsmigrateCloudTaskList["TargetInstanceName"].asString();
|
||||
if(!valueItemsmigrateCloudTaskList["Detail"].isNull())
|
||||
itemsObject.detail = valueItemsmigrateCloudTaskList["Detail"].asString();
|
||||
if(!valueItemsmigrateCloudTaskList["TaskId"].isNull())
|
||||
itemsObject.taskId = std::stol(valueItemsmigrateCloudTaskList["TaskId"].asString());
|
||||
if(!valueItemsmigrateCloudTaskList["TaskName"].isNull())
|
||||
itemsObject.taskName = valueItemsmigrateCloudTaskList["TaskName"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalSize"].isNull())
|
||||
totalSize_ = std::stoi(value["TotalSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalSize"].isNull())
|
||||
totalSize_ = std::stoi(value["TotalSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,48 +43,48 @@ void DescribeCloudMigrationResultResult::parse(const std::string &payload)
|
||||
for (auto valueItemsTasks : allItemsNode)
|
||||
{
|
||||
Tasks itemsObject;
|
||||
if(!valueItemsTasks["Detail"].isNull())
|
||||
itemsObject.detail = valueItemsTasks["Detail"].asString();
|
||||
if(!valueItemsTasks["GmtCreated"].isNull())
|
||||
itemsObject.gmtCreated = valueItemsTasks["GmtCreated"].asString();
|
||||
if(!valueItemsTasks["GmtModified"].isNull())
|
||||
itemsObject.gmtModified = valueItemsTasks["GmtModified"].asString();
|
||||
if(!valueItemsTasks["TaskId"].isNull())
|
||||
itemsObject.taskId = std::stol(valueItemsTasks["TaskId"].asString());
|
||||
if(!valueItemsTasks["TaskName"].isNull())
|
||||
itemsObject.taskName = valueItemsTasks["TaskName"].asString();
|
||||
if(!valueItemsTasks["Status"].isNull())
|
||||
itemsObject.status = valueItemsTasks["Status"].asString();
|
||||
if(!valueItemsTasks["MigrateStage"].isNull())
|
||||
itemsObject.migrateStage = valueItemsTasks["MigrateStage"].asString();
|
||||
if(!valueItemsTasks["ReplicationInfo"].isNull())
|
||||
itemsObject.replicationInfo = valueItemsTasks["ReplicationInfo"].asString();
|
||||
if(!valueItemsTasks["ReplicationState"].isNull())
|
||||
itemsObject.replicationState = valueItemsTasks["ReplicationState"].asString();
|
||||
if(!valueItemsTasks["SourceAccount"].isNull())
|
||||
itemsObject.sourceAccount = valueItemsTasks["SourceAccount"].asString();
|
||||
if(!valueItemsTasks["SourceCategory"].isNull())
|
||||
itemsObject.sourceCategory = valueItemsTasks["SourceCategory"].asString();
|
||||
if(!valueItemsTasks["SourceIpAddress"].isNull())
|
||||
itemsObject.sourceIpAddress = valueItemsTasks["SourceIpAddress"].asString();
|
||||
if(!valueItemsTasks["SourcePort"].isNull())
|
||||
itemsObject.sourcePort = std::stol(valueItemsTasks["SourcePort"].asString());
|
||||
if(!valueItemsTasks["SourceAccount"].isNull())
|
||||
itemsObject.sourceAccount = valueItemsTasks["SourceAccount"].asString();
|
||||
if(!valueItemsTasks["SourcePassword"].isNull())
|
||||
itemsObject.sourcePassword = valueItemsTasks["SourcePassword"].asString();
|
||||
if(!valueItemsTasks["SourcePort"].isNull())
|
||||
itemsObject.sourcePort = std::stol(valueItemsTasks["SourcePort"].asString());
|
||||
if(!valueItemsTasks["Status"].isNull())
|
||||
itemsObject.status = valueItemsTasks["Status"].asString();
|
||||
if(!valueItemsTasks["SwitchTime"].isNull())
|
||||
itemsObject.switchTime = valueItemsTasks["SwitchTime"].asString();
|
||||
if(!valueItemsTasks["TargetEip"].isNull())
|
||||
itemsObject.targetEip = valueItemsTasks["TargetEip"].asString();
|
||||
if(!valueItemsTasks["TargetInstanceName"].isNull())
|
||||
itemsObject.targetInstanceName = valueItemsTasks["TargetInstanceName"].asString();
|
||||
if(!valueItemsTasks["ReplicationState"].isNull())
|
||||
itemsObject.replicationState = valueItemsTasks["ReplicationState"].asString();
|
||||
if(!valueItemsTasks["ReplicationInfo"].isNull())
|
||||
itemsObject.replicationInfo = valueItemsTasks["ReplicationInfo"].asString();
|
||||
if(!valueItemsTasks["Detail"].isNull())
|
||||
itemsObject.detail = valueItemsTasks["Detail"].asString();
|
||||
if(!valueItemsTasks["SwitchTime"].isNull())
|
||||
itemsObject.switchTime = valueItemsTasks["SwitchTime"].asString();
|
||||
if(!valueItemsTasks["TaskId"].isNull())
|
||||
itemsObject.taskId = std::stol(valueItemsTasks["TaskId"].asString());
|
||||
if(!valueItemsTasks["TaskName"].isNull())
|
||||
itemsObject.taskName = valueItemsTasks["TaskName"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalSize"].isNull())
|
||||
totalSize_ = std::stoi(value["TotalSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalSize"].isNull())
|
||||
totalSize_ = std::stoi(value["TotalSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,12 +43,12 @@ void DescribeCollationTimeZonesResult::parse(const std::string &payload)
|
||||
for (auto valueCollationTimeZonesCollationTimeZone : allCollationTimeZonesNode)
|
||||
{
|
||||
CollationTimeZone collationTimeZonesObject;
|
||||
if(!valueCollationTimeZonesCollationTimeZone["TimeZone"].isNull())
|
||||
collationTimeZonesObject.timeZone = valueCollationTimeZonesCollationTimeZone["TimeZone"].asString();
|
||||
if(!valueCollationTimeZonesCollationTimeZone["StandardTimeOffset"].isNull())
|
||||
collationTimeZonesObject.standardTimeOffset = valueCollationTimeZonesCollationTimeZone["StandardTimeOffset"].asString();
|
||||
if(!valueCollationTimeZonesCollationTimeZone["Description"].isNull())
|
||||
collationTimeZonesObject.description = valueCollationTimeZonesCollationTimeZone["Description"].asString();
|
||||
if(!valueCollationTimeZonesCollationTimeZone["StandardTimeOffset"].isNull())
|
||||
collationTimeZonesObject.standardTimeOffset = valueCollationTimeZonesCollationTimeZone["StandardTimeOffset"].asString();
|
||||
if(!valueCollationTimeZonesCollationTimeZone["TimeZone"].isNull())
|
||||
collationTimeZonesObject.timeZone = valueCollationTimeZonesCollationTimeZone["TimeZone"].asString();
|
||||
collationTimeZones_.push_back(collationTimeZonesObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,24 +43,24 @@ void DescribeCrossBackupMetaListResult::parse(const std::string &payload)
|
||||
for (auto valueItemsMeta : allItemsNode)
|
||||
{
|
||||
Meta itemsObject;
|
||||
if(!valueItemsMeta["Tables"].isNull())
|
||||
itemsObject.tables = valueItemsMeta["Tables"].asString();
|
||||
if(!valueItemsMeta["Database"].isNull())
|
||||
itemsObject.database = valueItemsMeta["Database"].asString();
|
||||
if(!valueItemsMeta["Size"].isNull())
|
||||
itemsObject.size = valueItemsMeta["Size"].asString();
|
||||
if(!valueItemsMeta["Tables"].isNull())
|
||||
itemsObject.tables = valueItemsMeta["Tables"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
if(!value["TotalPageCount"].isNull())
|
||||
totalPageCount_ = std::stoi(value["TotalPageCount"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].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());
|
||||
if(!value["TotalPageCount"].isNull())
|
||||
totalPageCount_ = std::stoi(value["TotalPageCount"].asString());
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,52 +43,52 @@ void DescribeCrossRegionBackupDBInstanceResult::parse(const std::string &payload
|
||||
for (auto valueItemsItem : allItemsNode)
|
||||
{
|
||||
Item itemsObject;
|
||||
if(!valueItemsItem["RelServiceId"].isNull())
|
||||
itemsObject.relServiceId = valueItemsItem["RelServiceId"].asString();
|
||||
if(!valueItemsItem["LogBackupEnabledTime"].isNull())
|
||||
itemsObject.logBackupEnabledTime = valueItemsItem["LogBackupEnabledTime"].asString();
|
||||
if(!valueItemsItem["DBInstanceStatusDesc"].isNull())
|
||||
itemsObject.dBInstanceStatusDesc = valueItemsItem["DBInstanceStatusDesc"].asString();
|
||||
if(!valueItemsItem["RelService"].isNull())
|
||||
itemsObject.relService = valueItemsItem["RelService"].asString();
|
||||
if(!valueItemsItem["BackupEnabled"].isNull())
|
||||
itemsObject.backupEnabled = valueItemsItem["BackupEnabled"].asString();
|
||||
if(!valueItemsItem["BackupEnabledTime"].isNull())
|
||||
itemsObject.backupEnabledTime = valueItemsItem["BackupEnabledTime"].asString();
|
||||
if(!valueItemsItem["CrossBackupRegion"].isNull())
|
||||
itemsObject.crossBackupRegion = valueItemsItem["CrossBackupRegion"].asString();
|
||||
if(!valueItemsItem["CrossBackupType"].isNull())
|
||||
itemsObject.crossBackupType = valueItemsItem["CrossBackupType"].asString();
|
||||
if(!valueItemsItem["DBInstanceDescription"].isNull())
|
||||
itemsObject.dBInstanceDescription = valueItemsItem["DBInstanceDescription"].asString();
|
||||
if(!valueItemsItem["DBInstanceId"].isNull())
|
||||
itemsObject.dBInstanceId = valueItemsItem["DBInstanceId"].asString();
|
||||
if(!valueItemsItem["DBInstanceStatus"].isNull())
|
||||
itemsObject.dBInstanceStatus = valueItemsItem["DBInstanceStatus"].asString();
|
||||
if(!valueItemsItem["LockMode"].isNull())
|
||||
itemsObject.lockMode = valueItemsItem["LockMode"].asString();
|
||||
if(!valueItemsItem["DBInstanceStatusDesc"].isNull())
|
||||
itemsObject.dBInstanceStatusDesc = valueItemsItem["DBInstanceStatusDesc"].asString();
|
||||
if(!valueItemsItem["Engine"].isNull())
|
||||
itemsObject.engine = valueItemsItem["Engine"].asString();
|
||||
if(!valueItemsItem["EngineVersion"].isNull())
|
||||
itemsObject.engineVersion = valueItemsItem["EngineVersion"].asString();
|
||||
if(!valueItemsItem["LockMode"].isNull())
|
||||
itemsObject.lockMode = valueItemsItem["LockMode"].asString();
|
||||
if(!valueItemsItem["LogBackupEnabled"].isNull())
|
||||
itemsObject.logBackupEnabled = valueItemsItem["LogBackupEnabled"].asString();
|
||||
if(!valueItemsItem["LogBackupEnabledTime"].isNull())
|
||||
itemsObject.logBackupEnabledTime = valueItemsItem["LogBackupEnabledTime"].asString();
|
||||
if(!valueItemsItem["RelService"].isNull())
|
||||
itemsObject.relService = valueItemsItem["RelService"].asString();
|
||||
if(!valueItemsItem["RelServiceId"].isNull())
|
||||
itemsObject.relServiceId = valueItemsItem["RelServiceId"].asString();
|
||||
if(!valueItemsItem["RetentType"].isNull())
|
||||
itemsObject.retentType = std::stoi(valueItemsItem["RetentType"].asString());
|
||||
if(!valueItemsItem["Retention"].isNull())
|
||||
itemsObject.retention = std::stoi(valueItemsItem["Retention"].asString());
|
||||
if(!valueItemsItem["CrossBackupType"].isNull())
|
||||
itemsObject.crossBackupType = valueItemsItem["CrossBackupType"].asString();
|
||||
if(!valueItemsItem["CrossBackupRegion"].isNull())
|
||||
itemsObject.crossBackupRegion = valueItemsItem["CrossBackupRegion"].asString();
|
||||
if(!valueItemsItem["DBInstanceId"].isNull())
|
||||
itemsObject.dBInstanceId = valueItemsItem["DBInstanceId"].asString();
|
||||
if(!valueItemsItem["Engine"].isNull())
|
||||
itemsObject.engine = valueItemsItem["Engine"].asString();
|
||||
if(!valueItemsItem["BackupEnabledTime"].isNull())
|
||||
itemsObject.backupEnabledTime = valueItemsItem["BackupEnabledTime"].asString();
|
||||
if(!valueItemsItem["DBInstanceDescription"].isNull())
|
||||
itemsObject.dBInstanceDescription = valueItemsItem["DBInstanceDescription"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalRecords"].isNull())
|
||||
totalRecords_ = std::stoi(value["TotalRecords"].asString());
|
||||
if(!value["ItemsNumbers"].isNull())
|
||||
itemsNumbers_ = std::stoi(value["ItemsNumbers"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["TotalRecords"].isNull())
|
||||
totalRecords_ = std::stoi(value["TotalRecords"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,44 +43,44 @@ void DescribeCrossRegionBackupsResult::parse(const std::string &payload)
|
||||
for (auto valueItemsItem : allItemsNode)
|
||||
{
|
||||
Item itemsObject;
|
||||
if(!valueItemsItem["ConsistentTime"].isNull())
|
||||
itemsObject.consistentTime = valueItemsItem["ConsistentTime"].asString();
|
||||
if(!valueItemsItem["DBInstanceStorageType"].isNull())
|
||||
itemsObject.dBInstanceStorageType = valueItemsItem["DBInstanceStorageType"].asString();
|
||||
if(!valueItemsItem["CrossBackupId"].isNull())
|
||||
itemsObject.crossBackupId = std::stoi(valueItemsItem["CrossBackupId"].asString());
|
||||
if(!valueItemsItem["BackupType"].isNull())
|
||||
itemsObject.backupType = valueItemsItem["BackupType"].asString();
|
||||
if(!valueItemsItem["BackupStartTime"].isNull())
|
||||
itemsObject.backupStartTime = valueItemsItem["BackupStartTime"].asString();
|
||||
if(!valueItemsItem["CrossBackupSetLocation"].isNull())
|
||||
itemsObject.crossBackupSetLocation = valueItemsItem["CrossBackupSetLocation"].asString();
|
||||
if(!valueItemsItem["InstanceId"].isNull())
|
||||
itemsObject.instanceId = std::stoi(valueItemsItem["InstanceId"].asString());
|
||||
if(!valueItemsItem["CrossBackupDownloadLink"].isNull())
|
||||
itemsObject.crossBackupDownloadLink = valueItemsItem["CrossBackupDownloadLink"].asString();
|
||||
if(!valueItemsItem["BackupEndTime"].isNull())
|
||||
itemsObject.backupEndTime = valueItemsItem["BackupEndTime"].asString();
|
||||
if(!valueItemsItem["EngineVersion"].isNull())
|
||||
itemsObject.engineVersion = valueItemsItem["EngineVersion"].asString();
|
||||
if(!valueItemsItem["BackupSetStatus"].isNull())
|
||||
itemsObject.backupSetStatus = std::stoi(valueItemsItem["BackupSetStatus"].asString());
|
||||
if(!valueItemsItem["CrossBackupSetFile"].isNull())
|
||||
itemsObject.crossBackupSetFile = valueItemsItem["CrossBackupSetFile"].asString();
|
||||
if(!valueItemsItem["BackupSetScale"].isNull())
|
||||
itemsObject.backupSetScale = std::stoi(valueItemsItem["BackupSetScale"].asString());
|
||||
if(!valueItemsItem["CrossBackupSetSize"].isNull())
|
||||
itemsObject.crossBackupSetSize = std::stol(valueItemsItem["CrossBackupSetSize"].asString());
|
||||
if(!valueItemsItem["HasBackupTableMeta"].isNull())
|
||||
itemsObject.hasBackupTableMeta = valueItemsItem["HasBackupTableMeta"].asString();
|
||||
if(!valueItemsItem["CrossBackupRegion"].isNull())
|
||||
itemsObject.crossBackupRegion = valueItemsItem["CrossBackupRegion"].asString();
|
||||
if(!valueItemsItem["Category"].isNull())
|
||||
itemsObject.category = valueItemsItem["Category"].asString();
|
||||
if(!valueItemsItem["Engine"].isNull())
|
||||
itemsObject.engine = valueItemsItem["Engine"].asString();
|
||||
if(!valueItemsItem["BackupMethod"].isNull())
|
||||
itemsObject.backupMethod = valueItemsItem["BackupMethod"].asString();
|
||||
if(!valueItemsItem["BackupSetScale"].isNull())
|
||||
itemsObject.backupSetScale = std::stoi(valueItemsItem["BackupSetScale"].asString());
|
||||
if(!valueItemsItem["BackupSetStatus"].isNull())
|
||||
itemsObject.backupSetStatus = std::stoi(valueItemsItem["BackupSetStatus"].asString());
|
||||
if(!valueItemsItem["BackupStartTime"].isNull())
|
||||
itemsObject.backupStartTime = valueItemsItem["BackupStartTime"].asString();
|
||||
if(!valueItemsItem["BackupType"].isNull())
|
||||
itemsObject.backupType = valueItemsItem["BackupType"].asString();
|
||||
if(!valueItemsItem["Category"].isNull())
|
||||
itemsObject.category = valueItemsItem["Category"].asString();
|
||||
if(!valueItemsItem["ConsistentTime"].isNull())
|
||||
itemsObject.consistentTime = valueItemsItem["ConsistentTime"].asString();
|
||||
if(!valueItemsItem["CrossBackupDownloadLink"].isNull())
|
||||
itemsObject.crossBackupDownloadLink = valueItemsItem["CrossBackupDownloadLink"].asString();
|
||||
if(!valueItemsItem["CrossBackupId"].isNull())
|
||||
itemsObject.crossBackupId = std::stoi(valueItemsItem["CrossBackupId"].asString());
|
||||
if(!valueItemsItem["CrossBackupRegion"].isNull())
|
||||
itemsObject.crossBackupRegion = valueItemsItem["CrossBackupRegion"].asString();
|
||||
if(!valueItemsItem["CrossBackupSetFile"].isNull())
|
||||
itemsObject.crossBackupSetFile = valueItemsItem["CrossBackupSetFile"].asString();
|
||||
if(!valueItemsItem["CrossBackupSetLocation"].isNull())
|
||||
itemsObject.crossBackupSetLocation = valueItemsItem["CrossBackupSetLocation"].asString();
|
||||
if(!valueItemsItem["CrossBackupSetSize"].isNull())
|
||||
itemsObject.crossBackupSetSize = std::stol(valueItemsItem["CrossBackupSetSize"].asString());
|
||||
if(!valueItemsItem["DBInstanceStorageType"].isNull())
|
||||
itemsObject.dBInstanceStorageType = valueItemsItem["DBInstanceStorageType"].asString();
|
||||
if(!valueItemsItem["Engine"].isNull())
|
||||
itemsObject.engine = valueItemsItem["Engine"].asString();
|
||||
if(!valueItemsItem["EngineVersion"].isNull())
|
||||
itemsObject.engineVersion = valueItemsItem["EngineVersion"].asString();
|
||||
if(!valueItemsItem["HasBackupTableMeta"].isNull())
|
||||
itemsObject.hasBackupTableMeta = valueItemsItem["HasBackupTableMeta"].asString();
|
||||
if(!valueItemsItem["InstanceId"].isNull())
|
||||
itemsObject.instanceId = std::stoi(valueItemsItem["InstanceId"].asString());
|
||||
auto allRestoreRegions = value["RestoreRegions"]["RestoreRegion"];
|
||||
for (auto value : allRestoreRegions)
|
||||
itemsObject.restoreRegions.push_back(value.asString());
|
||||
@@ -88,16 +88,16 @@ void DescribeCrossRegionBackupsResult::parse(const std::string &payload)
|
||||
}
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].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());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user