10760
rds/src/RdsClient.cc
10760
rds/src/RdsClient.cc
File diff suppressed because it is too large
Load Diff
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AddTagsToResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::AddTagsToResourceRequest;
|
||||
|
||||
AddTagsToResourceRequest::AddTagsToResourceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "AddTagsToResource")
|
||||
{}
|
||||
|
||||
AddTagsToResourceRequest::~AddTagsToResourceRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AddTagsToResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::AddTagsToResourceRequest;
|
||||
|
||||
AddTagsToResourceRequest::AddTagsToResourceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "AddTagsToResource")
|
||||
{}
|
||||
|
||||
AddTagsToResourceRequest::~AddTagsToResourceRequest()
|
||||
{}
|
||||
|
||||
std::string AddTagsToResourceRequest::getTag4value()const
|
||||
{
|
||||
return tag4value_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AddTagsToResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
AddTagsToResourceResult::AddTagsToResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddTagsToResourceResult::AddTagsToResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddTagsToResourceResult::~AddTagsToResourceResult()
|
||||
{}
|
||||
|
||||
void AddTagsToResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AddTagsToResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
AddTagsToResourceResult::AddTagsToResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddTagsToResourceResult::AddTagsToResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddTagsToResourceResult::~AddTagsToResourceResult()
|
||||
{}
|
||||
|
||||
void AddTagsToResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateInstancePrivateConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::AllocateInstancePrivateConnectionRequest;
|
||||
|
||||
AllocateInstancePrivateConnectionRequest::AllocateInstancePrivateConnectionRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "AllocateInstancePrivateConnection")
|
||||
{}
|
||||
|
||||
AllocateInstancePrivateConnectionRequest::~AllocateInstancePrivateConnectionRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateInstancePrivateConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::AllocateInstancePrivateConnectionRequest;
|
||||
|
||||
AllocateInstancePrivateConnectionRequest::AllocateInstancePrivateConnectionRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "AllocateInstancePrivateConnection")
|
||||
{}
|
||||
|
||||
AllocateInstancePrivateConnectionRequest::~AllocateInstancePrivateConnectionRequest()
|
||||
{}
|
||||
|
||||
long AllocateInstancePrivateConnectionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateInstancePrivateConnectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
AllocateInstancePrivateConnectionResult::AllocateInstancePrivateConnectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AllocateInstancePrivateConnectionResult::AllocateInstancePrivateConnectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AllocateInstancePrivateConnectionResult::~AllocateInstancePrivateConnectionResult()
|
||||
{}
|
||||
|
||||
void AllocateInstancePrivateConnectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateInstancePrivateConnectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
AllocateInstancePrivateConnectionResult::AllocateInstancePrivateConnectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AllocateInstancePrivateConnectionResult::AllocateInstancePrivateConnectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AllocateInstancePrivateConnectionResult::~AllocateInstancePrivateConnectionResult()
|
||||
{}
|
||||
|
||||
void AllocateInstancePrivateConnectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateInstancePublicConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::AllocateInstancePublicConnectionRequest;
|
||||
|
||||
AllocateInstancePublicConnectionRequest::AllocateInstancePublicConnectionRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "AllocateInstancePublicConnection")
|
||||
{}
|
||||
|
||||
AllocateInstancePublicConnectionRequest::~AllocateInstancePublicConnectionRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateInstancePublicConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::AllocateInstancePublicConnectionRequest;
|
||||
|
||||
AllocateInstancePublicConnectionRequest::AllocateInstancePublicConnectionRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "AllocateInstancePublicConnection")
|
||||
{}
|
||||
|
||||
AllocateInstancePublicConnectionRequest::~AllocateInstancePublicConnectionRequest()
|
||||
{}
|
||||
|
||||
long AllocateInstancePublicConnectionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateInstancePublicConnectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
AllocateInstancePublicConnectionResult::AllocateInstancePublicConnectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AllocateInstancePublicConnectionResult::AllocateInstancePublicConnectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AllocateInstancePublicConnectionResult::~AllocateInstancePublicConnectionResult()
|
||||
{}
|
||||
|
||||
void AllocateInstancePublicConnectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateInstancePublicConnectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
AllocateInstancePublicConnectionResult::AllocateInstancePublicConnectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AllocateInstancePublicConnectionResult::AllocateInstancePublicConnectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AllocateInstancePublicConnectionResult::~AllocateInstancePublicConnectionResult()
|
||||
{}
|
||||
|
||||
void AllocateInstancePublicConnectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateInstanceVpcNetworkTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::AllocateInstanceVpcNetworkTypeRequest;
|
||||
|
||||
AllocateInstanceVpcNetworkTypeRequest::AllocateInstanceVpcNetworkTypeRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "AllocateInstanceVpcNetworkType")
|
||||
{}
|
||||
|
||||
AllocateInstanceVpcNetworkTypeRequest::~AllocateInstanceVpcNetworkTypeRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateInstanceVpcNetworkTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::AllocateInstanceVpcNetworkTypeRequest;
|
||||
|
||||
AllocateInstanceVpcNetworkTypeRequest::AllocateInstanceVpcNetworkTypeRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "AllocateInstanceVpcNetworkType")
|
||||
{}
|
||||
|
||||
AllocateInstanceVpcNetworkTypeRequest::~AllocateInstanceVpcNetworkTypeRequest()
|
||||
{}
|
||||
|
||||
std::string AllocateInstanceVpcNetworkTypeRequest::getTargetVpcId()const
|
||||
{
|
||||
return targetVpcId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateInstanceVpcNetworkTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
AllocateInstanceVpcNetworkTypeResult::AllocateInstanceVpcNetworkTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AllocateInstanceVpcNetworkTypeResult::AllocateInstanceVpcNetworkTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AllocateInstanceVpcNetworkTypeResult::~AllocateInstanceVpcNetworkTypeResult()
|
||||
{}
|
||||
|
||||
void AllocateInstanceVpcNetworkTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateInstanceVpcNetworkTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
AllocateInstanceVpcNetworkTypeResult::AllocateInstanceVpcNetworkTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AllocateInstanceVpcNetworkTypeResult::AllocateInstanceVpcNetworkTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AllocateInstanceVpcNetworkTypeResult::~AllocateInstanceVpcNetworkTypeResult()
|
||||
{}
|
||||
|
||||
void AllocateInstanceVpcNetworkTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateReadWriteSplittingConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::AllocateReadWriteSplittingConnectionRequest;
|
||||
|
||||
AllocateReadWriteSplittingConnectionRequest::AllocateReadWriteSplittingConnectionRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "AllocateReadWriteSplittingConnection")
|
||||
{}
|
||||
|
||||
AllocateReadWriteSplittingConnectionRequest::~AllocateReadWriteSplittingConnectionRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateReadWriteSplittingConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::AllocateReadWriteSplittingConnectionRequest;
|
||||
|
||||
AllocateReadWriteSplittingConnectionRequest::AllocateReadWriteSplittingConnectionRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "AllocateReadWriteSplittingConnection")
|
||||
{}
|
||||
|
||||
AllocateReadWriteSplittingConnectionRequest::~AllocateReadWriteSplittingConnectionRequest()
|
||||
{}
|
||||
|
||||
long AllocateReadWriteSplittingConnectionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateReadWriteSplittingConnectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
AllocateReadWriteSplittingConnectionResult::AllocateReadWriteSplittingConnectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AllocateReadWriteSplittingConnectionResult::AllocateReadWriteSplittingConnectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AllocateReadWriteSplittingConnectionResult::~AllocateReadWriteSplittingConnectionResult()
|
||||
{}
|
||||
|
||||
void AllocateReadWriteSplittingConnectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AllocateReadWriteSplittingConnectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
AllocateReadWriteSplittingConnectionResult::AllocateReadWriteSplittingConnectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AllocateReadWriteSplittingConnectionResult::AllocateReadWriteSplittingConnectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AllocateReadWriteSplittingConnectionResult::~AllocateReadWriteSplittingConnectionResult()
|
||||
{}
|
||||
|
||||
void AllocateReadWriteSplittingConnectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CalculateDBInstanceWeightRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CalculateDBInstanceWeightRequest;
|
||||
|
||||
CalculateDBInstanceWeightRequest::CalculateDBInstanceWeightRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CalculateDBInstanceWeight")
|
||||
{}
|
||||
|
||||
CalculateDBInstanceWeightRequest::~CalculateDBInstanceWeightRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CalculateDBInstanceWeightRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CalculateDBInstanceWeightRequest;
|
||||
|
||||
CalculateDBInstanceWeightRequest::CalculateDBInstanceWeightRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CalculateDBInstanceWeight")
|
||||
{}
|
||||
|
||||
CalculateDBInstanceWeightRequest::~CalculateDBInstanceWeightRequest()
|
||||
{}
|
||||
|
||||
long CalculateDBInstanceWeightRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CalculateDBInstanceWeightResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CalculateDBInstanceWeightResult::CalculateDBInstanceWeightResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CalculateDBInstanceWeightResult::CalculateDBInstanceWeightResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CalculateDBInstanceWeightResult::~CalculateDBInstanceWeightResult()
|
||||
{}
|
||||
|
||||
void CalculateDBInstanceWeightResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CalculateDBInstanceWeightResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CalculateDBInstanceWeightResult::CalculateDBInstanceWeightResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CalculateDBInstanceWeightResult::CalculateDBInstanceWeightResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CalculateDBInstanceWeightResult::~CalculateDBInstanceWeightResult()
|
||||
{}
|
||||
|
||||
void CalculateDBInstanceWeightResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["DBInstanceWeight"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -56,9 +59,9 @@ void CalculateDBInstanceWeightResult::parse(const std::string &payload)
|
||||
itemsObject.weight = value["Weight"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::vector<CalculateDBInstanceWeightResult::DBInstanceWeight> CalculateDBInstanceWeightResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CancelImportRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CancelImportRequest;
|
||||
|
||||
CancelImportRequest::CancelImportRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CancelImport")
|
||||
{}
|
||||
|
||||
CancelImportRequest::~CancelImportRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CancelImportRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CancelImportRequest;
|
||||
|
||||
CancelImportRequest::CancelImportRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CancelImport")
|
||||
{}
|
||||
|
||||
CancelImportRequest::~CancelImportRequest()
|
||||
{}
|
||||
|
||||
long CancelImportRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CancelImportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CancelImportResult::CancelImportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelImportResult::CancelImportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelImportResult::~CancelImportResult()
|
||||
{}
|
||||
|
||||
void CancelImportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CancelImportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CancelImportResult::CancelImportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelImportResult::CancelImportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelImportResult::~CancelImportResult()
|
||||
{}
|
||||
|
||||
void CancelImportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckAccountNameAvailableRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CheckAccountNameAvailableRequest;
|
||||
|
||||
CheckAccountNameAvailableRequest::CheckAccountNameAvailableRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CheckAccountNameAvailable")
|
||||
{}
|
||||
|
||||
CheckAccountNameAvailableRequest::~CheckAccountNameAvailableRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckAccountNameAvailableRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CheckAccountNameAvailableRequest;
|
||||
|
||||
CheckAccountNameAvailableRequest::CheckAccountNameAvailableRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CheckAccountNameAvailable")
|
||||
{}
|
||||
|
||||
CheckAccountNameAvailableRequest::~CheckAccountNameAvailableRequest()
|
||||
{}
|
||||
|
||||
long CheckAccountNameAvailableRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckAccountNameAvailableResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CheckAccountNameAvailableResult::CheckAccountNameAvailableResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckAccountNameAvailableResult::CheckAccountNameAvailableResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckAccountNameAvailableResult::~CheckAccountNameAvailableResult()
|
||||
{}
|
||||
|
||||
void CheckAccountNameAvailableResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckAccountNameAvailableResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CheckAccountNameAvailableResult::CheckAccountNameAvailableResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckAccountNameAvailableResult::CheckAccountNameAvailableResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckAccountNameAvailableResult::~CheckAccountNameAvailableResult()
|
||||
{}
|
||||
|
||||
void CheckAccountNameAvailableResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
236
rds/src/model/CheckCreateDdrDBInstanceRequest.cc
Normal file
236
rds/src/model/CheckCreateDdrDBInstanceRequest.cc
Normal file
@@ -0,0 +1,236 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckCreateDdrDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CheckCreateDdrDBInstanceRequest;
|
||||
|
||||
CheckCreateDdrDBInstanceRequest::CheckCreateDdrDBInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CheckCreateDdrDBInstance")
|
||||
{}
|
||||
|
||||
CheckCreateDdrDBInstanceRequest::~CheckCreateDdrDBInstanceRequest()
|
||||
{}
|
||||
|
||||
long CheckCreateDdrDBInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getRestoreTime()const
|
||||
{
|
||||
return restoreTime_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setRestoreTime(const std::string& restoreTime)
|
||||
{
|
||||
restoreTime_ = restoreTime;
|
||||
setCoreParameter("RestoreTime", restoreTime);
|
||||
}
|
||||
|
||||
int CheckCreateDdrDBInstanceRequest::getDBInstanceStorage()const
|
||||
{
|
||||
return dBInstanceStorage_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setDBInstanceStorage(int dBInstanceStorage)
|
||||
{
|
||||
dBInstanceStorage_ = dBInstanceStorage;
|
||||
setCoreParameter("DBInstanceStorage", std::to_string(dBInstanceStorage));
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getSourceDBInstanceName()const
|
||||
{
|
||||
return sourceDBInstanceName_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setSourceDBInstanceName(const std::string& sourceDBInstanceName)
|
||||
{
|
||||
sourceDBInstanceName_ = sourceDBInstanceName;
|
||||
setCoreParameter("SourceDBInstanceName", sourceDBInstanceName);
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getBakSetName()const
|
||||
{
|
||||
return bakSetName_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setBakSetName(const std::string& bakSetName)
|
||||
{
|
||||
bakSetName_ = bakSetName;
|
||||
setCoreParameter("BakSetName", bakSetName);
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getHostType()const
|
||||
{
|
||||
return hostType_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setHostType(const std::string& hostType)
|
||||
{
|
||||
hostType_ = hostType;
|
||||
setCoreParameter("HostType", hostType);
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getBackupSetId()const
|
||||
{
|
||||
return backupSetId_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setBackupSetId(const std::string& backupSetId)
|
||||
{
|
||||
backupSetId_ = backupSetId;
|
||||
setCoreParameter("BackupSetId", backupSetId);
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setEngineVersion(const std::string& engineVersion)
|
||||
{
|
||||
engineVersion_ = engineVersion;
|
||||
setCoreParameter("EngineVersion", engineVersion);
|
||||
}
|
||||
|
||||
long CheckCreateDdrDBInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getUserBakSetURL()const
|
||||
{
|
||||
return userBakSetURL_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setUserBakSetURL(const std::string& userBakSetURL)
|
||||
{
|
||||
userBakSetURL_ = userBakSetURL;
|
||||
setCoreParameter("UserBakSetURL", userBakSetURL);
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getDBInstanceClass()const
|
||||
{
|
||||
return dBInstanceClass_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setDBInstanceClass(const std::string& dBInstanceClass)
|
||||
{
|
||||
dBInstanceClass_ = dBInstanceClass;
|
||||
setCoreParameter("DBInstanceClass", dBInstanceClass);
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getRestoreType()const
|
||||
{
|
||||
return restoreType_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setRestoreType(const std::string& restoreType)
|
||||
{
|
||||
restoreType_ = restoreType;
|
||||
setCoreParameter("RestoreType", restoreType);
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setCoreParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getSourceRegion()const
|
||||
{
|
||||
return sourceRegion_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setSourceRegion(const std::string& sourceRegion)
|
||||
{
|
||||
sourceRegion_ = sourceRegion;
|
||||
setCoreParameter("SourceRegion", sourceRegion);
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getBackupSetRegion()const
|
||||
{
|
||||
return backupSetRegion_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setBackupSetRegion(const std::string& backupSetRegion)
|
||||
{
|
||||
backupSetRegion_ = backupSetRegion;
|
||||
setCoreParameter("BackupSetRegion", backupSetRegion);
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceRequest::getBackupSetType()const
|
||||
{
|
||||
return backupSetType_;
|
||||
}
|
||||
|
||||
void CheckCreateDdrDBInstanceRequest::setBackupSetType(const std::string& backupSetType)
|
||||
{
|
||||
backupSetType_ = backupSetType;
|
||||
setCoreParameter("BackupSetType", backupSetType);
|
||||
}
|
||||
|
||||
55
rds/src/model/CheckCreateDdrDBInstanceResult.cc
Normal file
55
rds/src/model/CheckCreateDdrDBInstanceResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckCreateDdrDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CheckCreateDdrDBInstanceResult::CheckCreateDdrDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckCreateDdrDBInstanceResult::CheckCreateDdrDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckCreateDdrDBInstanceResult::~CheckCreateDdrDBInstanceResult()
|
||||
{}
|
||||
|
||||
void CheckCreateDdrDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsValid"].isNull())
|
||||
isValid_ = value["IsValid"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CheckCreateDdrDBInstanceResult::getIsValid()const
|
||||
{
|
||||
return isValid_;
|
||||
}
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckInstanceExistRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CheckInstanceExistRequest;
|
||||
|
||||
CheckInstanceExistRequest::CheckInstanceExistRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CheckInstanceExist")
|
||||
{}
|
||||
|
||||
CheckInstanceExistRequest::~CheckInstanceExistRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckInstanceExistRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CheckInstanceExistRequest;
|
||||
|
||||
CheckInstanceExistRequest::CheckInstanceExistRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CheckInstanceExist")
|
||||
{}
|
||||
|
||||
CheckInstanceExistRequest::~CheckInstanceExistRequest()
|
||||
{}
|
||||
|
||||
long CheckInstanceExistRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,50 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CheckInstanceExistResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CheckInstanceExistResult::CheckInstanceExistResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckInstanceExistResult::CheckInstanceExistResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckInstanceExistResult::~CheckInstanceExistResult()
|
||||
{}
|
||||
|
||||
void CheckInstanceExistResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckInstanceExistResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CheckInstanceExistResult::CheckInstanceExistResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckInstanceExistResult::CheckInstanceExistResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckInstanceExistResult::~CheckInstanceExistResult()
|
||||
{}
|
||||
|
||||
void CheckInstanceExistResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsExistInstance"].isNull())
|
||||
isExistInstance_ = value["IsExistInstance"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
bool CheckInstanceExistResult::getIsExistInstance()const
|
||||
{
|
||||
return isExistInstance_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckRecoveryConditionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CheckRecoveryConditionsRequest;
|
||||
|
||||
CheckRecoveryConditionsRequest::CheckRecoveryConditionsRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CheckRecoveryConditions")
|
||||
{}
|
||||
|
||||
CheckRecoveryConditionsRequest::~CheckRecoveryConditionsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckRecoveryConditionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CheckRecoveryConditionsRequest;
|
||||
|
||||
CheckRecoveryConditionsRequest::CheckRecoveryConditionsRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CheckRecoveryConditions")
|
||||
{}
|
||||
|
||||
CheckRecoveryConditionsRequest::~CheckRecoveryConditionsRequest()
|
||||
{}
|
||||
|
||||
long CheckRecoveryConditionsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,52 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckRecoveryConditionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CheckRecoveryConditionsResult::CheckRecoveryConditionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckRecoveryConditionsResult::CheckRecoveryConditionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckRecoveryConditionsResult::~CheckRecoveryConditionsResult()
|
||||
{}
|
||||
|
||||
void CheckRecoveryConditionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckRecoveryConditionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CheckRecoveryConditionsResult::CheckRecoveryConditionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckRecoveryConditionsResult::CheckRecoveryConditionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckRecoveryConditionsResult::~CheckRecoveryConditionsResult()
|
||||
{}
|
||||
|
||||
void CheckRecoveryConditionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["RecoveryStatus"].isNull())
|
||||
recoveryStatus_ = value["RecoveryStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CheckRecoveryConditionsResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CheckResourceRequest;
|
||||
|
||||
CheckResourceRequest::CheckResourceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CheckResource")
|
||||
{}
|
||||
|
||||
CheckResourceRequest::~CheckResourceRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CheckResourceRequest;
|
||||
|
||||
CheckResourceRequest::CheckResourceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CheckResource")
|
||||
{}
|
||||
|
||||
CheckResourceRequest::~CheckResourceRequest()
|
||||
{}
|
||||
|
||||
long CheckResourceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CheckResourceResult::CheckResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckResourceResult::CheckResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckResourceResult::~CheckResourceResult()
|
||||
{}
|
||||
|
||||
void CheckResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CheckResourceResult::CheckResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckResourceResult::CheckResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckResourceResult::~CheckResourceResult()
|
||||
{}
|
||||
|
||||
void CheckResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResources = value["Resources"]["Resource"];
|
||||
for (auto value : allResources)
|
||||
{
|
||||
@@ -54,9 +57,9 @@ void CheckResourceResult::parse(const std::string &payload)
|
||||
}
|
||||
if(!value["SpecifyCount"].isNull())
|
||||
specifyCount_ = value["SpecifyCount"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CheckResourceResult::getSpecifyCount()const
|
||||
{
|
||||
return specifyCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CloneDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CloneDBInstanceRequest;
|
||||
|
||||
CloneDBInstanceRequest::CloneDBInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CloneDBInstance")
|
||||
{}
|
||||
|
||||
CloneDBInstanceRequest::~CloneDBInstanceRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CloneDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CloneDBInstanceRequest;
|
||||
|
||||
CloneDBInstanceRequest::CloneDBInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CloneDBInstance")
|
||||
{}
|
||||
|
||||
CloneDBInstanceRequest::~CloneDBInstanceRequest()
|
||||
{}
|
||||
|
||||
long CloneDBInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
@@ -36,6 +36,127 @@ void CloneDBInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CloneDBInstanceRequest::getDBInstanceStorage()const
|
||||
{
|
||||
return dBInstanceStorage_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setDBInstanceStorage(int dBInstanceStorage)
|
||||
{
|
||||
dBInstanceStorage_ = dBInstanceStorage;
|
||||
setCoreParameter("DBInstanceStorage", std::to_string(dBInstanceStorage));
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getZoneIdSlave1()const
|
||||
{
|
||||
return zoneIdSlave1_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setZoneIdSlave1(const std::string& zoneIdSlave1)
|
||||
{
|
||||
zoneIdSlave1_ = zoneIdSlave1;
|
||||
setCoreParameter("ZoneIdSlave1", zoneIdSlave1);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getZoneIdSlave2()const
|
||||
{
|
||||
return zoneIdSlave2_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setZoneIdSlave2(const std::string& zoneIdSlave2)
|
||||
{
|
||||
zoneIdSlave2_ = zoneIdSlave2;
|
||||
setCoreParameter("ZoneIdSlave2", zoneIdSlave2);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setCoreParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getTableMeta()const
|
||||
{
|
||||
return tableMeta_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setTableMeta(const std::string& tableMeta)
|
||||
{
|
||||
tableMeta_ = tableMeta;
|
||||
setCoreParameter("TableMeta", tableMeta);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getDBInstanceDescription()const
|
||||
{
|
||||
return dBInstanceDescription_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription)
|
||||
{
|
||||
dBInstanceDescription_ = dBInstanceDescription;
|
||||
setCoreParameter("DBInstanceDescription", dBInstanceDescription);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getDBInstanceStorageType()const
|
||||
{
|
||||
return dBInstanceStorageType_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setDBInstanceStorageType(const std::string& dBInstanceStorageType)
|
||||
{
|
||||
dBInstanceStorageType_ = dBInstanceStorageType;
|
||||
setCoreParameter("DBInstanceStorageType", dBInstanceStorageType);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getRestoreTime()const
|
||||
{
|
||||
return restoreTime_;
|
||||
@@ -58,17 +179,6 @@ void CloneDBInstanceRequest::setPeriod(const std::string& period)
|
||||
setCoreParameter("Period", period);
|
||||
}
|
||||
|
||||
int CloneDBInstanceRequest::getDBInstanceStorage()const
|
||||
{
|
||||
return dBInstanceStorage_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setDBInstanceStorage(int dBInstanceStorage)
|
||||
{
|
||||
dBInstanceStorage_ = dBInstanceStorage;
|
||||
setCoreParameter("DBInstanceStorage", std::to_string(dBInstanceStorage));
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -80,17 +190,6 @@ void CloneDBInstanceRequest::setResourceOwnerAccount(const std::string& resource
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getBackupId()const
|
||||
{
|
||||
return backupId_;
|
||||
@@ -113,6 +212,17 @@ void CloneDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getRestoreTable()const
|
||||
{
|
||||
return restoreTable_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setRestoreTable(const std::string& restoreTable)
|
||||
{
|
||||
restoreTable_ = restoreTable;
|
||||
setCoreParameter("RestoreTable", restoreTable);
|
||||
}
|
||||
|
||||
long CloneDBInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -135,17 +245,6 @@ void CloneDBInstanceRequest::setUsedTime(const std::string& usedTime)
|
||||
setCoreParameter("UsedTime", usedTime);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getDBInstanceClass()const
|
||||
{
|
||||
return dBInstanceClass_;
|
||||
@@ -190,28 +289,6 @@ void CloneDBInstanceRequest::setPrivateIpAddress(const std::string& privateIpAdd
|
||||
setCoreParameter("PrivateIpAddress", privateIpAddress);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setCoreParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getVPCId()const
|
||||
{
|
||||
return vPCId_;
|
||||
@@ -234,26 +311,15 @@ void CloneDBInstanceRequest::setZoneId(const std::string& zoneId)
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getDBInstanceDescription()const
|
||||
std::string CloneDBInstanceRequest::getCategory()const
|
||||
{
|
||||
return dBInstanceDescription_;
|
||||
return category_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription)
|
||||
void CloneDBInstanceRequest::setCategory(const std::string& category)
|
||||
{
|
||||
dBInstanceDescription_ = dBInstanceDescription;
|
||||
setCoreParameter("DBInstanceDescription", dBInstanceDescription);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void CloneDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
category_ = category;
|
||||
setCoreParameter("Category", category);
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceRequest::getPayType()const
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CloneDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CloneDBInstanceResult::CloneDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CloneDBInstanceResult::CloneDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CloneDBInstanceResult::~CloneDBInstanceResult()
|
||||
{}
|
||||
|
||||
void CloneDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CloneDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CloneDBInstanceResult::CloneDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CloneDBInstanceResult::CloneDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CloneDBInstanceResult::~CloneDBInstanceResult()
|
||||
{}
|
||||
|
||||
void CloneDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
@@ -48,9 +51,9 @@ void CloneDBInstanceResult::parse(const std::string &payload)
|
||||
connectionString_ = value["ConnectionString"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
port_ = value["Port"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CloneDBInstanceResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CopyDatabaseBetweenInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CopyDatabaseBetweenInstancesRequest;
|
||||
|
||||
CopyDatabaseBetweenInstancesRequest::CopyDatabaseBetweenInstancesRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CopyDatabaseBetweenInstances")
|
||||
{}
|
||||
|
||||
CopyDatabaseBetweenInstancesRequest::~CopyDatabaseBetweenInstancesRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CopyDatabaseBetweenInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CopyDatabaseBetweenInstancesRequest;
|
||||
|
||||
CopyDatabaseBetweenInstancesRequest::CopyDatabaseBetweenInstancesRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CopyDatabaseBetweenInstances")
|
||||
{}
|
||||
|
||||
CopyDatabaseBetweenInstancesRequest::~CopyDatabaseBetweenInstancesRequest()
|
||||
{}
|
||||
|
||||
long CopyDatabaseBetweenInstancesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,50 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CopyDatabaseBetweenInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CopyDatabaseBetweenInstancesResult::CopyDatabaseBetweenInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CopyDatabaseBetweenInstancesResult::CopyDatabaseBetweenInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CopyDatabaseBetweenInstancesResult::~CopyDatabaseBetweenInstancesResult()
|
||||
{}
|
||||
|
||||
void CopyDatabaseBetweenInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CopyDatabaseBetweenInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CopyDatabaseBetweenInstancesResult::CopyDatabaseBetweenInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CopyDatabaseBetweenInstancesResult::CopyDatabaseBetweenInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CopyDatabaseBetweenInstancesResult::~CopyDatabaseBetweenInstancesResult()
|
||||
{}
|
||||
|
||||
void CopyDatabaseBetweenInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CopyDatabaseBetweenInstancesResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CopyDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CopyDatabaseRequest;
|
||||
|
||||
CopyDatabaseRequest::CopyDatabaseRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CopyDatabase")
|
||||
{}
|
||||
|
||||
CopyDatabaseRequest::~CopyDatabaseRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CopyDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CopyDatabaseRequest;
|
||||
|
||||
CopyDatabaseRequest::CopyDatabaseRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CopyDatabase")
|
||||
{}
|
||||
|
||||
CopyDatabaseRequest::~CopyDatabaseRequest()
|
||||
{}
|
||||
|
||||
long CopyDatabaseRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,54 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CopyDatabaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CopyDatabaseResult::CopyDatabaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CopyDatabaseResult::CopyDatabaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CopyDatabaseResult::~CopyDatabaseResult()
|
||||
{}
|
||||
|
||||
void CopyDatabaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CopyDatabaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CopyDatabaseResult::CopyDatabaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CopyDatabaseResult::CopyDatabaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CopyDatabaseResult::~CopyDatabaseResult()
|
||||
{}
|
||||
|
||||
void CopyDatabaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBName"].isNull())
|
||||
dBName_ = value["DBName"].asString();
|
||||
if(!value["DBStatus"].isNull())
|
||||
dBStatus_ = value["DBStatus"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CopyDatabaseResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateAccountRequest;
|
||||
|
||||
CreateAccountRequest::CreateAccountRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateAccount")
|
||||
{}
|
||||
|
||||
CreateAccountRequest::~CreateAccountRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateAccountRequest;
|
||||
|
||||
CreateAccountRequest::CreateAccountRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateAccount")
|
||||
{}
|
||||
|
||||
CreateAccountRequest::~CreateAccountRequest()
|
||||
{}
|
||||
|
||||
long CreateAccountRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateAccountResult::CreateAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAccountResult::CreateAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAccountResult::~CreateAccountResult()
|
||||
{}
|
||||
|
||||
void CreateAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateAccountResult::CreateAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAccountResult::CreateAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAccountResult::~CreateAccountResult()
|
||||
{}
|
||||
|
||||
void CreateAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateBackupRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateBackupRequest;
|
||||
|
||||
CreateBackupRequest::CreateBackupRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateBackup")
|
||||
{}
|
||||
|
||||
CreateBackupRequest::~CreateBackupRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateBackupRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateBackupRequest;
|
||||
|
||||
CreateBackupRequest::CreateBackupRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateBackup")
|
||||
{}
|
||||
|
||||
CreateBackupRequest::~CreateBackupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBackupRequest::getBackupMethod()const
|
||||
{
|
||||
return backupMethod_;
|
||||
|
||||
@@ -1,50 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateBackupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateBackupResult::CreateBackupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBackupResult::CreateBackupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBackupResult::~CreateBackupResult()
|
||||
{}
|
||||
|
||||
void CreateBackupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateBackupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateBackupResult::CreateBackupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBackupResult::CreateBackupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBackupResult::~CreateBackupResult()
|
||||
{}
|
||||
|
||||
void CreateBackupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BackupJobId"].isNull())
|
||||
backupJobId_ = value["BackupJobId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBackupResult::getBackupJobId()const
|
||||
{
|
||||
return backupJobId_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDBInstanceReplicaRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateDBInstanceReplicaRequest;
|
||||
|
||||
CreateDBInstanceReplicaRequest::CreateDBInstanceReplicaRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateDBInstanceReplica")
|
||||
{}
|
||||
|
||||
CreateDBInstanceReplicaRequest::~CreateDBInstanceReplicaRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDBInstanceReplicaRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateDBInstanceReplicaRequest;
|
||||
|
||||
CreateDBInstanceReplicaRequest::CreateDBInstanceReplicaRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateDBInstanceReplica")
|
||||
{}
|
||||
|
||||
CreateDBInstanceReplicaRequest::~CreateDBInstanceReplicaRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDBInstanceReplicaRequest::getConnectionMode()const
|
||||
{
|
||||
return connectionMode_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDBInstanceReplicaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateDBInstanceReplicaResult::CreateDBInstanceReplicaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDBInstanceReplicaResult::CreateDBInstanceReplicaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDBInstanceReplicaResult::~CreateDBInstanceReplicaResult()
|
||||
{}
|
||||
|
||||
void CreateDBInstanceReplicaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDBInstanceReplicaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateDBInstanceReplicaResult::CreateDBInstanceReplicaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDBInstanceReplicaResult::CreateDBInstanceReplicaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDBInstanceReplicaResult::~CreateDBInstanceReplicaResult()
|
||||
{}
|
||||
|
||||
void CreateDBInstanceReplicaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
@@ -48,9 +51,9 @@ void CreateDBInstanceReplicaResult::parse(const std::string &payload)
|
||||
replicaId_ = value["ReplicaId"].asString();
|
||||
if(!value["WorkflowId"].isNull())
|
||||
workflowId_ = value["WorkflowId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceReplicaResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateDBInstanceRequest;
|
||||
|
||||
CreateDBInstanceRequest::CreateDBInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateDBInstance")
|
||||
{}
|
||||
|
||||
CreateDBInstanceRequest::~CreateDBInstanceRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateDBInstanceRequest;
|
||||
|
||||
CreateDBInstanceRequest::CreateDBInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateDBInstance")
|
||||
{}
|
||||
|
||||
CreateDBInstanceRequest::~CreateDBInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDBInstanceRequest::getConnectionMode()const
|
||||
{
|
||||
return connectionMode_;
|
||||
@@ -80,6 +80,28 @@ void CreateDBInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getZoneIdSlave1()const
|
||||
{
|
||||
return zoneIdSlave1_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setZoneIdSlave1(const std::string& zoneIdSlave1)
|
||||
{
|
||||
zoneIdSlave1_ = zoneIdSlave1;
|
||||
setCoreParameter("ZoneIdSlave1", zoneIdSlave1);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getZoneIdSlave2()const
|
||||
{
|
||||
return zoneIdSlave2_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setZoneIdSlave2(const std::string& zoneIdSlave2)
|
||||
{
|
||||
zoneIdSlave2_ = zoneIdSlave2;
|
||||
setCoreParameter("ZoneIdSlave2", zoneIdSlave2);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
@@ -344,6 +366,17 @@ void CreateDBInstanceRequest::setZoneId(const std::string& zoneId)
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getCategory()const
|
||||
{
|
||||
return category_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setCategory(const std::string& category)
|
||||
{
|
||||
category_ = category;
|
||||
setCoreParameter("Category", category);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateDBInstanceResult::CreateDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDBInstanceResult::CreateDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDBInstanceResult::~CreateDBInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateDBInstanceResult::CreateDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDBInstanceResult::CreateDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDBInstanceResult::~CreateDBInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
@@ -48,9 +51,9 @@ void CreateDBInstanceResult::parse(const std::string &payload)
|
||||
connectionString_ = value["ConnectionString"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
port_ = value["Port"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateDatabaseRequest;
|
||||
|
||||
CreateDatabaseRequest::CreateDatabaseRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateDatabase")
|
||||
{}
|
||||
|
||||
CreateDatabaseRequest::~CreateDatabaseRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateDatabaseRequest;
|
||||
|
||||
CreateDatabaseRequest::CreateDatabaseRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateDatabase")
|
||||
{}
|
||||
|
||||
CreateDatabaseRequest::~CreateDatabaseRequest()
|
||||
{}
|
||||
|
||||
long CreateDatabaseRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDatabaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateDatabaseResult::CreateDatabaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDatabaseResult::CreateDatabaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDatabaseResult::~CreateDatabaseResult()
|
||||
{}
|
||||
|
||||
void CreateDatabaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDatabaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateDatabaseResult::CreateDatabaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDatabaseResult::CreateDatabaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDatabaseResult::~CreateDatabaseResult()
|
||||
{}
|
||||
|
||||
void CreateDatabaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
434
rds/src/model/CreateDdrInstanceRequest.cc
Normal file
434
rds/src/model/CreateDdrInstanceRequest.cc
Normal file
@@ -0,0 +1,434 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDdrInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateDdrInstanceRequest;
|
||||
|
||||
CreateDdrInstanceRequest::CreateDdrInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateDdrInstance")
|
||||
{}
|
||||
|
||||
CreateDdrInstanceRequest::~CreateDdrInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getConnectionMode()const
|
||||
{
|
||||
return connectionMode_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setConnectionMode(const std::string& connectionMode)
|
||||
{
|
||||
connectionMode_ = connectionMode;
|
||||
setCoreParameter("ConnectionMode", connectionMode);
|
||||
}
|
||||
|
||||
long CreateDdrInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CreateDdrInstanceRequest::getDBInstanceStorage()const
|
||||
{
|
||||
return dBInstanceStorage_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setDBInstanceStorage(int dBInstanceStorage)
|
||||
{
|
||||
dBInstanceStorage_ = dBInstanceStorage;
|
||||
setCoreParameter("DBInstanceStorage", std::to_string(dBInstanceStorage));
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getSystemDBCharset()const
|
||||
{
|
||||
return systemDBCharset_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setSystemDBCharset(const std::string& systemDBCharset)
|
||||
{
|
||||
systemDBCharset_ = systemDBCharset;
|
||||
setCoreParameter("SystemDBCharset", systemDBCharset);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getSourceDBInstanceName()const
|
||||
{
|
||||
return sourceDBInstanceName_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setSourceDBInstanceName(const std::string& sourceDBInstanceName)
|
||||
{
|
||||
sourceDBInstanceName_ = sourceDBInstanceName;
|
||||
setCoreParameter("SourceDBInstanceName", sourceDBInstanceName);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getHostType()const
|
||||
{
|
||||
return hostType_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setHostType(const std::string& hostType)
|
||||
{
|
||||
hostType_ = hostType;
|
||||
setCoreParameter("HostType", hostType);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setEngineVersion(const std::string& engineVersion)
|
||||
{
|
||||
engineVersion_ = engineVersion;
|
||||
setCoreParameter("EngineVersion", engineVersion);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getUserBakSetURL()const
|
||||
{
|
||||
return userBakSetURL_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setUserBakSetURL(const std::string& userBakSetURL)
|
||||
{
|
||||
userBakSetURL_ = userBakSetURL;
|
||||
setCoreParameter("UserBakSetURL", userBakSetURL);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setCoreParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setCoreParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getDBInstanceDescription()const
|
||||
{
|
||||
return dBInstanceDescription_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription)
|
||||
{
|
||||
dBInstanceDescription_ = dBInstanceDescription;
|
||||
setCoreParameter("DBInstanceDescription", dBInstanceDescription);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getDBInstanceStorageType()const
|
||||
{
|
||||
return dBInstanceStorageType_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setDBInstanceStorageType(const std::string& dBInstanceStorageType)
|
||||
{
|
||||
dBInstanceStorageType_ = dBInstanceStorageType;
|
||||
setCoreParameter("DBInstanceStorageType", dBInstanceStorageType);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getBackupSetRegion()const
|
||||
{
|
||||
return backupSetRegion_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setBackupSetRegion(const std::string& backupSetRegion)
|
||||
{
|
||||
backupSetRegion_ = backupSetRegion;
|
||||
setCoreParameter("BackupSetRegion", backupSetRegion);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getDBInstanceNetType()const
|
||||
{
|
||||
return dBInstanceNetType_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setDBInstanceNetType(const std::string& dBInstanceNetType)
|
||||
{
|
||||
dBInstanceNetType_ = dBInstanceNetType;
|
||||
setCoreParameter("DBInstanceNetType", dBInstanceNetType);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getBackupSetType()const
|
||||
{
|
||||
return backupSetType_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setBackupSetType(const std::string& backupSetType)
|
||||
{
|
||||
backupSetType_ = backupSetType;
|
||||
setCoreParameter("BackupSetType", backupSetType);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setPeriod(const std::string& period)
|
||||
{
|
||||
period_ = period;
|
||||
setCoreParameter("Period", period);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getRestoreTime()const
|
||||
{
|
||||
return restoreTime_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setRestoreTime(const std::string& restoreTime)
|
||||
{
|
||||
restoreTime_ = restoreTime;
|
||||
setCoreParameter("RestoreTime", restoreTime);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getBakSetName()const
|
||||
{
|
||||
return bakSetName_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setBakSetName(const std::string& bakSetName)
|
||||
{
|
||||
bakSetName_ = bakSetName;
|
||||
setCoreParameter("BakSetName", bakSetName);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getBackupSetId()const
|
||||
{
|
||||
return backupSetId_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setBackupSetId(const std::string& backupSetId)
|
||||
{
|
||||
backupSetId_ = backupSetId;
|
||||
setCoreParameter("BackupSetId", backupSetId);
|
||||
}
|
||||
|
||||
long CreateDdrInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getUsedTime()const
|
||||
{
|
||||
return usedTime_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setUsedTime(const std::string& usedTime)
|
||||
{
|
||||
usedTime_ = usedTime;
|
||||
setCoreParameter("UsedTime", usedTime);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getDBInstanceClass()const
|
||||
{
|
||||
return dBInstanceClass_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setDBInstanceClass(const std::string& dBInstanceClass)
|
||||
{
|
||||
dBInstanceClass_ = dBInstanceClass;
|
||||
setCoreParameter("DBInstanceClass", dBInstanceClass);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getSecurityIPList()const
|
||||
{
|
||||
return securityIPList_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setSecurityIPList(const std::string& securityIPList)
|
||||
{
|
||||
securityIPList_ = securityIPList;
|
||||
setCoreParameter("SecurityIPList", securityIPList);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getPrivateIpAddress()const
|
||||
{
|
||||
return privateIpAddress_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setPrivateIpAddress(const std::string& privateIpAddress)
|
||||
{
|
||||
privateIpAddress_ = privateIpAddress;
|
||||
setCoreParameter("PrivateIpAddress", privateIpAddress);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getRestoreType()const
|
||||
{
|
||||
return restoreType_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setRestoreType(const std::string& restoreType)
|
||||
{
|
||||
restoreType_ = restoreType;
|
||||
setCoreParameter("RestoreType", restoreType);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getVPCId()const
|
||||
{
|
||||
return vPCId_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setVPCId(const std::string& vPCId)
|
||||
{
|
||||
vPCId_ = vPCId;
|
||||
setCoreParameter("VPCId", vPCId);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getTunnelId()const
|
||||
{
|
||||
return tunnelId_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setTunnelId(const std::string& tunnelId)
|
||||
{
|
||||
tunnelId_ = tunnelId;
|
||||
setCoreParameter("TunnelId", tunnelId);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setCoreParameter("PayType", payType);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getSourceRegion()const
|
||||
{
|
||||
return sourceRegion_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setSourceRegion(const std::string& sourceRegion)
|
||||
{
|
||||
sourceRegion_ = sourceRegion;
|
||||
setCoreParameter("SourceRegion", sourceRegion);
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceRequest::getInstanceNetworkType()const
|
||||
{
|
||||
return instanceNetworkType_;
|
||||
}
|
||||
|
||||
void CreateDdrInstanceRequest::setInstanceNetworkType(const std::string& instanceNetworkType)
|
||||
{
|
||||
instanceNetworkType_ = instanceNetworkType;
|
||||
setCoreParameter("InstanceNetworkType", instanceNetworkType);
|
||||
}
|
||||
|
||||
76
rds/src/model/CreateDdrInstanceResult.cc
Normal file
76
rds/src/model/CreateDdrInstanceResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDdrInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateDdrInstanceResult::CreateDdrInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDdrInstanceResult::CreateDdrInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDdrInstanceResult::~CreateDdrInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateDdrInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["ConnectionString"].isNull())
|
||||
connectionString_ = value["ConnectionString"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
port_ = value["Port"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceResult::getPort()const
|
||||
{
|
||||
return port_;
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
std::string CreateDdrInstanceResult::getConnectionString()const
|
||||
{
|
||||
return connectionString_;
|
||||
}
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDiagnosticReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateDiagnosticReportRequest;
|
||||
|
||||
CreateDiagnosticReportRequest::CreateDiagnosticReportRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateDiagnosticReport")
|
||||
{}
|
||||
|
||||
CreateDiagnosticReportRequest::~CreateDiagnosticReportRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDiagnosticReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateDiagnosticReportRequest;
|
||||
|
||||
CreateDiagnosticReportRequest::CreateDiagnosticReportRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateDiagnosticReport")
|
||||
{}
|
||||
|
||||
CreateDiagnosticReportRequest::~CreateDiagnosticReportRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDiagnosticReportRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
|
||||
@@ -1,50 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateDiagnosticReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateDiagnosticReportResult::CreateDiagnosticReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDiagnosticReportResult::CreateDiagnosticReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDiagnosticReportResult::~CreateDiagnosticReportResult()
|
||||
{}
|
||||
|
||||
void CreateDiagnosticReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDiagnosticReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateDiagnosticReportResult::CreateDiagnosticReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDiagnosticReportResult::CreateDiagnosticReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDiagnosticReportResult::~CreateDiagnosticReportResult()
|
||||
{}
|
||||
|
||||
void CreateDiagnosticReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ReportId"].isNull())
|
||||
reportId_ = value["ReportId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDiagnosticReportResult::getReportId()const
|
||||
{
|
||||
return reportId_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateMigrateTaskForSQLServerRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateMigrateTaskForSQLServerRequest;
|
||||
|
||||
CreateMigrateTaskForSQLServerRequest::CreateMigrateTaskForSQLServerRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateMigrateTaskForSQLServer")
|
||||
{}
|
||||
|
||||
CreateMigrateTaskForSQLServerRequest::~CreateMigrateTaskForSQLServerRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateMigrateTaskForSQLServerRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateMigrateTaskForSQLServerRequest;
|
||||
|
||||
CreateMigrateTaskForSQLServerRequest::CreateMigrateTaskForSQLServerRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateMigrateTaskForSQLServer")
|
||||
{}
|
||||
|
||||
CreateMigrateTaskForSQLServerRequest::~CreateMigrateTaskForSQLServerRequest()
|
||||
{}
|
||||
|
||||
long CreateMigrateTaskForSQLServerRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateMigrateTaskForSQLServerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateMigrateTaskForSQLServerResult::CreateMigrateTaskForSQLServerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMigrateTaskForSQLServerResult::CreateMigrateTaskForSQLServerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMigrateTaskForSQLServerResult::~CreateMigrateTaskForSQLServerResult()
|
||||
{}
|
||||
|
||||
void CreateMigrateTaskForSQLServerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateMigrateTaskForSQLServerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateMigrateTaskForSQLServerResult::CreateMigrateTaskForSQLServerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMigrateTaskForSQLServerResult::CreateMigrateTaskForSQLServerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMigrateTaskForSQLServerResult::~CreateMigrateTaskForSQLServerResult()
|
||||
{}
|
||||
|
||||
void CreateMigrateTaskForSQLServerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
@@ -52,9 +55,9 @@ void CreateMigrateTaskForSQLServerResult::parse(const std::string &payload)
|
||||
migrateIaskId_ = value["MigrateIaskId"].asString();
|
||||
if(!value["TaskType"].isNull())
|
||||
taskType_ = value["TaskType"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMigrateTaskForSQLServerResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateMigrateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateMigrateTaskRequest;
|
||||
|
||||
CreateMigrateTaskRequest::CreateMigrateTaskRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateMigrateTask")
|
||||
{}
|
||||
|
||||
CreateMigrateTaskRequest::~CreateMigrateTaskRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateMigrateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateMigrateTaskRequest;
|
||||
|
||||
CreateMigrateTaskRequest::CreateMigrateTaskRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateMigrateTask")
|
||||
{}
|
||||
|
||||
CreateMigrateTaskRequest::~CreateMigrateTaskRequest()
|
||||
{}
|
||||
|
||||
long CreateMigrateTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateMigrateTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateMigrateTaskResult::CreateMigrateTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMigrateTaskResult::CreateMigrateTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMigrateTaskResult::~CreateMigrateTaskResult()
|
||||
{}
|
||||
|
||||
void CreateMigrateTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateMigrateTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateMigrateTaskResult::CreateMigrateTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMigrateTaskResult::CreateMigrateTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMigrateTaskResult::~CreateMigrateTaskResult()
|
||||
{}
|
||||
|
||||
void CreateMigrateTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
@@ -50,9 +53,9 @@ void CreateMigrateTaskResult::parse(const std::string &payload)
|
||||
migrateTaskId_ = value["MigrateTaskId"].asString();
|
||||
if(!value["BackupMode"].isNull())
|
||||
backupMode_ = value["BackupMode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMigrateTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOnlineDatabaseTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateOnlineDatabaseTaskRequest;
|
||||
|
||||
CreateOnlineDatabaseTaskRequest::CreateOnlineDatabaseTaskRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateOnlineDatabaseTask")
|
||||
{}
|
||||
|
||||
CreateOnlineDatabaseTaskRequest::~CreateOnlineDatabaseTaskRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOnlineDatabaseTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateOnlineDatabaseTaskRequest;
|
||||
|
||||
CreateOnlineDatabaseTaskRequest::CreateOnlineDatabaseTaskRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateOnlineDatabaseTask")
|
||||
{}
|
||||
|
||||
CreateOnlineDatabaseTaskRequest::~CreateOnlineDatabaseTaskRequest()
|
||||
{}
|
||||
|
||||
long CreateOnlineDatabaseTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOnlineDatabaseTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateOnlineDatabaseTaskResult::CreateOnlineDatabaseTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOnlineDatabaseTaskResult::CreateOnlineDatabaseTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOnlineDatabaseTaskResult::~CreateOnlineDatabaseTaskResult()
|
||||
{}
|
||||
|
||||
void CreateOnlineDatabaseTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOnlineDatabaseTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateOnlineDatabaseTaskResult::CreateOnlineDatabaseTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOnlineDatabaseTaskResult::CreateOnlineDatabaseTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOnlineDatabaseTaskResult::~CreateOnlineDatabaseTaskResult()
|
||||
{}
|
||||
|
||||
void CreateOnlineDatabaseTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateReadOnlyDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateReadOnlyDBInstanceRequest;
|
||||
|
||||
CreateReadOnlyDBInstanceRequest::CreateReadOnlyDBInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateReadOnlyDBInstance")
|
||||
{}
|
||||
|
||||
CreateReadOnlyDBInstanceRequest::~CreateReadOnlyDBInstanceRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateReadOnlyDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateReadOnlyDBInstanceRequest;
|
||||
|
||||
CreateReadOnlyDBInstanceRequest::CreateReadOnlyDBInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateReadOnlyDBInstance")
|
||||
{}
|
||||
|
||||
CreateReadOnlyDBInstanceRequest::~CreateReadOnlyDBInstanceRequest()
|
||||
{}
|
||||
|
||||
long CreateReadOnlyDBInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateReadOnlyDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateReadOnlyDBInstanceResult::CreateReadOnlyDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateReadOnlyDBInstanceResult::CreateReadOnlyDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateReadOnlyDBInstanceResult::~CreateReadOnlyDBInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateReadOnlyDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateReadOnlyDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateReadOnlyDBInstanceResult::CreateReadOnlyDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateReadOnlyDBInstanceResult::CreateReadOnlyDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateReadOnlyDBInstanceResult::~CreateReadOnlyDBInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateReadOnlyDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
@@ -48,9 +51,9 @@ void CreateReadOnlyDBInstanceResult::parse(const std::string &payload)
|
||||
connectionString_ = value["ConnectionString"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
port_ = value["Port"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CreateReadOnlyDBInstanceResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateTempDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateTempDBInstanceRequest;
|
||||
|
||||
CreateTempDBInstanceRequest::CreateTempDBInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateTempDBInstance")
|
||||
{}
|
||||
|
||||
CreateTempDBInstanceRequest::~CreateTempDBInstanceRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateTempDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateTempDBInstanceRequest;
|
||||
|
||||
CreateTempDBInstanceRequest::CreateTempDBInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateTempDBInstance")
|
||||
{}
|
||||
|
||||
CreateTempDBInstanceRequest::~CreateTempDBInstanceRequest()
|
||||
{}
|
||||
|
||||
long CreateTempDBInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,50 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateTempDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateTempDBInstanceResult::CreateTempDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTempDBInstanceResult::CreateTempDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTempDBInstanceResult::~CreateTempDBInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateTempDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateTempDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateTempDBInstanceResult::CreateTempDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTempDBInstanceResult::CreateTempDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTempDBInstanceResult::~CreateTempDBInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateTempDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TempDBInstanceId"].isNull())
|
||||
tempDBInstanceId_ = value["TempDBInstanceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CreateTempDBInstanceResult::getTempDBInstanceId()const
|
||||
{
|
||||
return tempDBInstanceId_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteAccountRequest;
|
||||
|
||||
DeleteAccountRequest::DeleteAccountRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DeleteAccount")
|
||||
{}
|
||||
|
||||
DeleteAccountRequest::~DeleteAccountRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteAccountRequest;
|
||||
|
||||
DeleteAccountRequest::DeleteAccountRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DeleteAccount")
|
||||
{}
|
||||
|
||||
DeleteAccountRequest::~DeleteAccountRequest()
|
||||
{}
|
||||
|
||||
long DeleteAccountRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteAccountResult::DeleteAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAccountResult::DeleteAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAccountResult::~DeleteAccountResult()
|
||||
{}
|
||||
|
||||
void DeleteAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteAccountResult::DeleteAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAccountResult::DeleteAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAccountResult::~DeleteAccountResult()
|
||||
{}
|
||||
|
||||
void DeleteAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteBackupRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteBackupRequest;
|
||||
|
||||
DeleteBackupRequest::DeleteBackupRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DeleteBackup")
|
||||
{}
|
||||
|
||||
DeleteBackupRequest::~DeleteBackupRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteBackupRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteBackupRequest;
|
||||
|
||||
DeleteBackupRequest::DeleteBackupRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DeleteBackup")
|
||||
{}
|
||||
|
||||
DeleteBackupRequest::~DeleteBackupRequest()
|
||||
{}
|
||||
|
||||
long DeleteBackupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteBackupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteBackupResult::DeleteBackupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteBackupResult::DeleteBackupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteBackupResult::~DeleteBackupResult()
|
||||
{}
|
||||
|
||||
void DeleteBackupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteBackupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteBackupResult::DeleteBackupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteBackupResult::DeleteBackupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteBackupResult::~DeleteBackupResult()
|
||||
{}
|
||||
|
||||
void DeleteBackupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteDBInstanceRequest;
|
||||
|
||||
DeleteDBInstanceRequest::DeleteDBInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DeleteDBInstance")
|
||||
{}
|
||||
|
||||
DeleteDBInstanceRequest::~DeleteDBInstanceRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteDBInstanceRequest;
|
||||
|
||||
DeleteDBInstanceRequest::DeleteDBInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DeleteDBInstance")
|
||||
{}
|
||||
|
||||
DeleteDBInstanceRequest::~DeleteDBInstanceRequest()
|
||||
{}
|
||||
|
||||
long DeleteDBInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteDBInstanceResult::DeleteDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDBInstanceResult::DeleteDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDBInstanceResult::~DeleteDBInstanceResult()
|
||||
{}
|
||||
|
||||
void DeleteDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteDBInstanceResult::DeleteDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDBInstanceResult::DeleteDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDBInstanceResult::~DeleteDBInstanceResult()
|
||||
{}
|
||||
|
||||
void DeleteDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteDatabaseRequest;
|
||||
|
||||
DeleteDatabaseRequest::DeleteDatabaseRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DeleteDatabase")
|
||||
{}
|
||||
|
||||
DeleteDatabaseRequest::~DeleteDatabaseRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteDatabaseRequest;
|
||||
|
||||
DeleteDatabaseRequest::DeleteDatabaseRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DeleteDatabase")
|
||||
{}
|
||||
|
||||
DeleteDatabaseRequest::~DeleteDatabaseRequest()
|
||||
{}
|
||||
|
||||
long DeleteDatabaseRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteDatabaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteDatabaseResult::DeleteDatabaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDatabaseResult::DeleteDatabaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDatabaseResult::~DeleteDatabaseResult()
|
||||
{}
|
||||
|
||||
void DeleteDatabaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteDatabaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteDatabaseResult::DeleteDatabaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDatabaseResult::DeleteDatabaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDatabaseResult::~DeleteDatabaseResult()
|
||||
{}
|
||||
|
||||
void DeleteDatabaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescibeImportsFromDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescibeImportsFromDatabaseRequest;
|
||||
|
||||
DescibeImportsFromDatabaseRequest::DescibeImportsFromDatabaseRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescibeImportsFromDatabase")
|
||||
{}
|
||||
|
||||
DescibeImportsFromDatabaseRequest::~DescibeImportsFromDatabaseRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescibeImportsFromDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescibeImportsFromDatabaseRequest;
|
||||
|
||||
DescibeImportsFromDatabaseRequest::DescibeImportsFromDatabaseRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescibeImportsFromDatabase")
|
||||
{}
|
||||
|
||||
DescibeImportsFromDatabaseRequest::~DescibeImportsFromDatabaseRequest()
|
||||
{}
|
||||
|
||||
long DescibeImportsFromDatabaseRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescibeImportsFromDatabaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescibeImportsFromDatabaseResult::DescibeImportsFromDatabaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescibeImportsFromDatabaseResult::DescibeImportsFromDatabaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescibeImportsFromDatabaseResult::~DescibeImportsFromDatabaseResult()
|
||||
{}
|
||||
|
||||
void DescibeImportsFromDatabaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescibeImportsFromDatabaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescibeImportsFromDatabaseResult::DescibeImportsFromDatabaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescibeImportsFromDatabaseResult::DescibeImportsFromDatabaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescibeImportsFromDatabaseResult::~DescibeImportsFromDatabaseResult()
|
||||
{}
|
||||
|
||||
void DescibeImportsFromDatabaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["ImportResultFromDB"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -62,9 +65,9 @@ void DescibeImportsFromDatabaseResult::parse(const std::string &payload)
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescibeImportsFromDatabaseResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeAccountsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeAccountsRequest;
|
||||
|
||||
DescribeAccountsRequest::DescribeAccountsRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeAccounts")
|
||||
{}
|
||||
|
||||
DescribeAccountsRequest::~DescribeAccountsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeAccountsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeAccountsRequest;
|
||||
|
||||
DescribeAccountsRequest::DescribeAccountsRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeAccounts")
|
||||
{}
|
||||
|
||||
DescribeAccountsRequest::~DescribeAccountsRequest()
|
||||
{}
|
||||
|
||||
long DescribeAccountsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeAccountsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeAccountsResult::DescribeAccountsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAccountsResult::~DescribeAccountsResult()
|
||||
{}
|
||||
|
||||
void DescribeAccountsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeAccountsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeAccountsResult::DescribeAccountsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAccountsResult::~DescribeAccountsResult()
|
||||
{}
|
||||
|
||||
void DescribeAccountsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAccounts = value["Accounts"]["DBInstanceAccount"];
|
||||
for (auto value : allAccounts)
|
||||
{
|
||||
@@ -70,9 +73,9 @@ void DescribeAccountsResult::parse(const std::string &payload)
|
||||
}
|
||||
accounts_.push_back(accountsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAccountsResult::DBInstanceAccount> DescribeAccountsResult::getAccounts()const
|
||||
{
|
||||
return accounts_;
|
||||
|
||||
82
rds/src/model/DescribeAvailableCrossRegionRequest.cc
Normal file
82
rds/src/model/DescribeAvailableCrossRegionRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeAvailableCrossRegionRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeAvailableCrossRegionRequest;
|
||||
|
||||
DescribeAvailableCrossRegionRequest::DescribeAvailableCrossRegionRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeAvailableCrossRegion")
|
||||
{}
|
||||
|
||||
DescribeAvailableCrossRegionRequest::~DescribeAvailableCrossRegionRequest()
|
||||
{}
|
||||
|
||||
long DescribeAvailableCrossRegionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableCrossRegionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAvailableCrossRegionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAvailableCrossRegionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableCrossRegionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableCrossRegionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long DescribeAvailableCrossRegionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableCrossRegionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAvailableCrossRegionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableCrossRegionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
56
rds/src/model/DescribeAvailableCrossRegionResult.cc
Normal file
56
rds/src/model/DescribeAvailableCrossRegionResult.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeAvailableCrossRegionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeAvailableCrossRegionResult::DescribeAvailableCrossRegionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAvailableCrossRegionResult::DescribeAvailableCrossRegionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAvailableCrossRegionResult::~DescribeAvailableCrossRegionResult()
|
||||
{}
|
||||
|
||||
void DescribeAvailableCrossRegionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegions = value["Regions"]["Region"];
|
||||
for (const auto &item : allRegions)
|
||||
regions_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeAvailableCrossRegionResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeAvailableInstanceClassRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeAvailableInstanceClassRequest;
|
||||
|
||||
DescribeAvailableInstanceClassRequest::DescribeAvailableInstanceClassRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeAvailableInstanceClass")
|
||||
{}
|
||||
|
||||
DescribeAvailableInstanceClassRequest::~DescribeAvailableInstanceClassRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeAvailableInstanceClassRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeAvailableInstanceClassRequest;
|
||||
|
||||
DescribeAvailableInstanceClassRequest::DescribeAvailableInstanceClassRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeAvailableInstanceClass")
|
||||
{}
|
||||
|
||||
DescribeAvailableInstanceClassRequest::~DescribeAvailableInstanceClassRequest()
|
||||
{}
|
||||
|
||||
long DescribeAvailableInstanceClassRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeAvailableInstanceClassResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeAvailableInstanceClassResult::DescribeAvailableInstanceClassResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAvailableInstanceClassResult::DescribeAvailableInstanceClassResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAvailableInstanceClassResult::~DescribeAvailableInstanceClassResult()
|
||||
{}
|
||||
|
||||
void DescribeAvailableInstanceClassResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeAvailableInstanceClassResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeAvailableInstanceClassResult::DescribeAvailableInstanceClassResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAvailableInstanceClassResult::DescribeAvailableInstanceClassResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAvailableInstanceClassResult::~DescribeAvailableInstanceClassResult()
|
||||
{}
|
||||
|
||||
void DescribeAvailableInstanceClassResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAvailableZones = value["AvailableZones"]["AvailableZone"];
|
||||
for (auto value : allAvailableZones)
|
||||
{
|
||||
@@ -96,9 +99,9 @@ void DescribeAvailableInstanceClassResult::parse(const std::string &payload)
|
||||
}
|
||||
availableZones_.push_back(availableZonesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAvailableInstanceClassResult::AvailableZone> DescribeAvailableInstanceClassResult::getAvailableZones()const
|
||||
{
|
||||
return availableZones_;
|
||||
|
||||
93
rds/src/model/DescribeAvailableRecoveryTimeRequest.cc
Normal file
93
rds/src/model/DescribeAvailableRecoveryTimeRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeAvailableRecoveryTimeRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeAvailableRecoveryTimeRequest;
|
||||
|
||||
DescribeAvailableRecoveryTimeRequest::DescribeAvailableRecoveryTimeRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeAvailableRecoveryTime")
|
||||
{}
|
||||
|
||||
DescribeAvailableRecoveryTimeRequest::~DescribeAvailableRecoveryTimeRequest()
|
||||
{}
|
||||
|
||||
long DescribeAvailableRecoveryTimeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableRecoveryTimeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAvailableRecoveryTimeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAvailableRecoveryTimeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableRecoveryTimeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableRecoveryTimeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeAvailableRecoveryTimeRequest::getCrossBackupId()const
|
||||
{
|
||||
return crossBackupId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableRecoveryTimeRequest::setCrossBackupId(int crossBackupId)
|
||||
{
|
||||
crossBackupId_ = crossBackupId;
|
||||
setCoreParameter("CrossBackupId", std::to_string(crossBackupId));
|
||||
}
|
||||
|
||||
long DescribeAvailableRecoveryTimeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableRecoveryTimeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAvailableRecoveryTimeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableRecoveryTimeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
83
rds/src/model/DescribeAvailableRecoveryTimeResult.cc
Normal file
83
rds/src/model/DescribeAvailableRecoveryTimeResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeAvailableRecoveryTimeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeAvailableRecoveryTimeResult::DescribeAvailableRecoveryTimeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAvailableRecoveryTimeResult::DescribeAvailableRecoveryTimeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAvailableRecoveryTimeResult::~DescribeAvailableRecoveryTimeResult()
|
||||
{}
|
||||
|
||||
void DescribeAvailableRecoveryTimeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RecoveryBeginTime"].isNull())
|
||||
recoveryBeginTime_ = value["RecoveryBeginTime"].asString();
|
||||
if(!value["RecoveryEndTime"].isNull())
|
||||
recoveryEndTime_ = value["RecoveryEndTime"].asString();
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["CrossBackupId"].isNull())
|
||||
crossBackupId_ = std::stoi(value["CrossBackupId"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeAvailableRecoveryTimeResult::getRecoveryEndTime()const
|
||||
{
|
||||
return recoveryEndTime_;
|
||||
}
|
||||
|
||||
std::string DescribeAvailableRecoveryTimeResult::getRecoveryBeginTime()const
|
||||
{
|
||||
return recoveryBeginTime_;
|
||||
}
|
||||
|
||||
std::string DescribeAvailableRecoveryTimeResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeAvailableRecoveryTimeResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
int DescribeAvailableRecoveryTimeResult::getCrossBackupId()const
|
||||
{
|
||||
return crossBackupId_;
|
||||
}
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeAvailableResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeAvailableResourceRequest;
|
||||
|
||||
DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeAvailableResource")
|
||||
{}
|
||||
|
||||
DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeAvailableResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeAvailableResourceRequest;
|
||||
|
||||
DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeAvailableResource")
|
||||
{}
|
||||
|
||||
DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest()
|
||||
{}
|
||||
|
||||
long DescribeAvailableResourceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
@@ -91,6 +91,17 @@ void DescribeAvailableResourceRequest::setAccessKeyId(const std::string& accessK
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableResourceRequest::getDBInstanceClass()const
|
||||
{
|
||||
return dBInstanceClass_;
|
||||
}
|
||||
|
||||
void DescribeAvailableResourceRequest::setDBInstanceClass(const std::string& dBInstanceClass)
|
||||
{
|
||||
dBInstanceClass_ = dBInstanceClass;
|
||||
setCoreParameter("DBInstanceClass", dBInstanceClass);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableResourceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeAvailableResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeAvailableResourceResult::DescribeAvailableResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAvailableResourceResult::DescribeAvailableResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAvailableResourceResult::~DescribeAvailableResourceResult()
|
||||
{}
|
||||
|
||||
void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeAvailableResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeAvailableResourceResult::DescribeAvailableResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAvailableResourceResult::DescribeAvailableResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAvailableResourceResult::~DescribeAvailableResourceResult()
|
||||
{}
|
||||
|
||||
void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAvailableZones = value["AvailableZones"]["AvailableZone"];
|
||||
for (auto value : allAvailableZones)
|
||||
{
|
||||
@@ -52,53 +55,60 @@ void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
availableZonesObject.status = value["Status"].asString();
|
||||
if(!value["NetworkTypes"].isNull())
|
||||
availableZonesObject.networkTypes = value["NetworkTypes"].asString();
|
||||
auto allSupportedEngine = value["SupportedEngine"]["SupportedEngines"];
|
||||
for (auto value : allSupportedEngine)
|
||||
auto allSupportedEngines = value["SupportedEngines"]["SupportedEngine"];
|
||||
for (auto value : allSupportedEngines)
|
||||
{
|
||||
AvailableZone::SupportedEngines supportedEngineObject;
|
||||
AvailableZone::SupportedEngine supportedEnginesObject;
|
||||
if(!value["Engine"].isNull())
|
||||
supportedEngineObject.engine = value["Engine"].asString();
|
||||
auto allSupportedEngineVersion = value["SupportedEngineVersion"]["SupportedEngineVersions"];
|
||||
for (auto value : allSupportedEngineVersion)
|
||||
supportedEnginesObject.engine = value["Engine"].asString();
|
||||
auto allSupportedEngineVersions = value["SupportedEngineVersions"]["SupportedEngineVersion"];
|
||||
for (auto value : allSupportedEngineVersions)
|
||||
{
|
||||
AvailableZone::SupportedEngines::SupportedEngineVersions supportedEngineVersionObject;
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion supportedEngineVersionsObject;
|
||||
if(!value["Version"].isNull())
|
||||
supportedEngineVersionObject.version = value["Version"].asString();
|
||||
auto allSupportedCategory = value["SupportedCategory"]["SupportedCategorys"];
|
||||
for (auto value : allSupportedCategory)
|
||||
supportedEngineVersionsObject.version = value["Version"].asString();
|
||||
auto allSupportedCategorys = value["SupportedCategorys"]["SupportedCategory"];
|
||||
for (auto value : allSupportedCategorys)
|
||||
{
|
||||
AvailableZone::SupportedEngines::SupportedEngineVersions::SupportedCategorys supportedCategoryObject;
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategory supportedCategorysObject;
|
||||
if(!value["Category"].isNull())
|
||||
supportedCategoryObject.category = value["Category"].asString();
|
||||
auto allSupportedStorageType = value["SupportedStorageType"]["SupportedStorageTypes"];
|
||||
for (auto value : allSupportedStorageType)
|
||||
supportedCategorysObject.category = value["Category"].asString();
|
||||
auto allSupportedStorageTypes = value["SupportedStorageTypes"]["SupportedStorageType"];
|
||||
for (auto value : allSupportedStorageTypes)
|
||||
{
|
||||
AvailableZone::SupportedEngines::SupportedEngineVersions::SupportedCategorys::SupportedStorageTypes supportedStorageTypeObject;
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategory::SupportedStorageType supportedStorageTypesObject;
|
||||
if(!value["StorageType"].isNull())
|
||||
supportedStorageTypeObject.storageType = value["StorageType"].asString();
|
||||
auto allAvailableResource = value["AvailableResource"]["AvailableResources"];
|
||||
for (auto value : allAvailableResource)
|
||||
supportedStorageTypesObject.storageType = value["StorageType"].asString();
|
||||
auto allAvailableResources = value["AvailableResources"]["AvailableResource"];
|
||||
for (auto value : allAvailableResources)
|
||||
{
|
||||
AvailableZone::SupportedEngines::SupportedEngineVersions::SupportedCategorys::SupportedStorageTypes::AvailableResources availableResourceObject;
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategory::SupportedStorageType::AvailableResource availableResourcesObject;
|
||||
if(!value["DBInstanceClass"].isNull())
|
||||
availableResourceObject.dBInstanceClass = value["DBInstanceClass"].asString();
|
||||
availableResourcesObject.dBInstanceClass = value["DBInstanceClass"].asString();
|
||||
if(!value["StorageRange"].isNull())
|
||||
availableResourceObject.storageRange = value["StorageRange"].asString();
|
||||
supportedStorageTypeObject.availableResource.push_back(availableResourceObject);
|
||||
availableResourcesObject.storageRange = value["StorageRange"].asString();
|
||||
auto dBInstanceStorageRangeNode = value["DBInstanceStorageRange"];
|
||||
if(!dBInstanceStorageRangeNode["Max"].isNull())
|
||||
availableResourcesObject.dBInstanceStorageRange.max = std::stoi(dBInstanceStorageRangeNode["Max"].asString());
|
||||
if(!dBInstanceStorageRangeNode["Min"].isNull())
|
||||
availableResourcesObject.dBInstanceStorageRange.min = std::stoi(dBInstanceStorageRangeNode["Min"].asString());
|
||||
if(!dBInstanceStorageRangeNode["Step"].isNull())
|
||||
availableResourcesObject.dBInstanceStorageRange.step = std::stoi(dBInstanceStorageRangeNode["Step"].asString());
|
||||
supportedStorageTypesObject.availableResources.push_back(availableResourcesObject);
|
||||
}
|
||||
supportedCategoryObject.supportedStorageType.push_back(supportedStorageTypeObject);
|
||||
supportedCategorysObject.supportedStorageTypes.push_back(supportedStorageTypesObject);
|
||||
}
|
||||
supportedEngineVersionObject.supportedCategory.push_back(supportedCategoryObject);
|
||||
supportedEngineVersionsObject.supportedCategorys.push_back(supportedCategorysObject);
|
||||
}
|
||||
supportedEngineObject.supportedEngineVersion.push_back(supportedEngineVersionObject);
|
||||
supportedEnginesObject.supportedEngineVersions.push_back(supportedEngineVersionsObject);
|
||||
}
|
||||
availableZonesObject.supportedEngine.push_back(supportedEngineObject);
|
||||
availableZonesObject.supportedEngines.push_back(supportedEnginesObject);
|
||||
}
|
||||
availableZones_.push_back(availableZonesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAvailableResourceResult::AvailableZone> DescribeAvailableResourceResult::getAvailableZones()const
|
||||
{
|
||||
return availableZones_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBackupDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeBackupDatabaseRequest;
|
||||
|
||||
DescribeBackupDatabaseRequest::DescribeBackupDatabaseRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeBackupDatabase")
|
||||
{}
|
||||
|
||||
DescribeBackupDatabaseRequest::~DescribeBackupDatabaseRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBackupDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeBackupDatabaseRequest;
|
||||
|
||||
DescribeBackupDatabaseRequest::DescribeBackupDatabaseRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeBackupDatabase")
|
||||
{}
|
||||
|
||||
DescribeBackupDatabaseRequest::~DescribeBackupDatabaseRequest()
|
||||
{}
|
||||
|
||||
long DescribeBackupDatabaseRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,50 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeBackupDatabaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeBackupDatabaseResult::DescribeBackupDatabaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupDatabaseResult::DescribeBackupDatabaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupDatabaseResult::~DescribeBackupDatabaseResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupDatabaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBackupDatabaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeBackupDatabaseResult::DescribeBackupDatabaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupDatabaseResult::DescribeBackupDatabaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupDatabaseResult::~DescribeBackupDatabaseResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupDatabaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DatabaseNames"].isNull())
|
||||
databaseNames_ = value["DatabaseNames"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeBackupDatabaseResult::getDatabaseNames()const
|
||||
{
|
||||
return databaseNames_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBackupPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeBackupPolicyRequest;
|
||||
|
||||
DescribeBackupPolicyRequest::DescribeBackupPolicyRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeBackupPolicy")
|
||||
{}
|
||||
|
||||
DescribeBackupPolicyRequest::~DescribeBackupPolicyRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBackupPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeBackupPolicyRequest;
|
||||
|
||||
DescribeBackupPolicyRequest::DescribeBackupPolicyRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeBackupPolicy")
|
||||
{}
|
||||
|
||||
DescribeBackupPolicyRequest::~DescribeBackupPolicyRequest()
|
||||
{}
|
||||
|
||||
long DescribeBackupPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBackupPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeBackupPolicyResult::DescribeBackupPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupPolicyResult::DescribeBackupPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupPolicyResult::~DescribeBackupPolicyResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBackupPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeBackupPolicyResult::DescribeBackupPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupPolicyResult::DescribeBackupPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupPolicyResult::~DescribeBackupPolicyResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto duplicationLocationNode = value["DuplicationLocation"];
|
||||
if(!duplicationLocationNode["Sotrage"].isNull())
|
||||
duplicationLocation_.sotrage = duplicationLocationNode["Sotrage"].asString();
|
||||
@@ -76,9 +79,9 @@ void DescribeBackupPolicyResult::parse(const std::string &payload)
|
||||
logBackupFrequency_ = value["LogBackupFrequency"].asString();
|
||||
if(!value["CompressType"].isNull())
|
||||
compressType_ = value["CompressType"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeBackupPolicyResult::getDuplication()const
|
||||
{
|
||||
return duplication_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBackupTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeBackupTasksRequest;
|
||||
|
||||
DescribeBackupTasksRequest::DescribeBackupTasksRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeBackupTasks")
|
||||
{}
|
||||
|
||||
DescribeBackupTasksRequest::~DescribeBackupTasksRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBackupTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeBackupTasksRequest;
|
||||
|
||||
DescribeBackupTasksRequest::DescribeBackupTasksRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeBackupTasks")
|
||||
{}
|
||||
|
||||
DescribeBackupTasksRequest::~DescribeBackupTasksRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupTasksRequest::getBackupJobId()const
|
||||
{
|
||||
return backupJobId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBackupTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeBackupTasksResult::DescribeBackupTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupTasksResult::DescribeBackupTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupTasksResult::~DescribeBackupTasksResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBackupTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeBackupTasksResult::DescribeBackupTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupTasksResult::DescribeBackupTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupTasksResult::~DescribeBackupTasksResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["BackupJob"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -60,9 +63,9 @@ void DescribeBackupTasksResult::parse(const std::string &payload)
|
||||
itemsObject.backupId = value["BackupId"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeBackupTasksResult::BackupJob> DescribeBackupTasksResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBackupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeBackupsRequest;
|
||||
|
||||
DescribeBackupsRequest::DescribeBackupsRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeBackups")
|
||||
{}
|
||||
|
||||
DescribeBackupsRequest::~DescribeBackupsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBackupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeBackupsRequest;
|
||||
|
||||
DescribeBackupsRequest::DescribeBackupsRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeBackups")
|
||||
{}
|
||||
|
||||
DescribeBackupsRequest::~DescribeBackupsRequest()
|
||||
{}
|
||||
|
||||
long DescribeBackupsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBackupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeBackupsResult::DescribeBackupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupsResult::DescribeBackupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupsResult::~DescribeBackupsResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBackupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeBackupsResult::DescribeBackupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupsResult::DescribeBackupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupsResult::~DescribeBackupsResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Backup"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -94,9 +97,9 @@ void DescribeBackupsResult::parse(const std::string &payload)
|
||||
pageRecordCount_ = value["PageRecordCount"].asString();
|
||||
if(!value["TotalBackupSize"].isNull())
|
||||
totalBackupSize_ = std::stol(value["TotalBackupSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeBackupsResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBinlogFilesRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeBinlogFilesRequest;
|
||||
|
||||
DescribeBinlogFilesRequest::DescribeBinlogFilesRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeBinlogFiles")
|
||||
{}
|
||||
|
||||
DescribeBinlogFilesRequest::~DescribeBinlogFilesRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBinlogFilesRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeBinlogFilesRequest;
|
||||
|
||||
DescribeBinlogFilesRequest::DescribeBinlogFilesRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeBinlogFiles")
|
||||
{}
|
||||
|
||||
DescribeBinlogFilesRequest::~DescribeBinlogFilesRequest()
|
||||
{}
|
||||
|
||||
long DescribeBinlogFilesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBinlogFilesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeBinlogFilesResult::DescribeBinlogFilesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBinlogFilesResult::DescribeBinlogFilesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBinlogFilesResult::~DescribeBinlogFilesResult()
|
||||
{}
|
||||
|
||||
void DescribeBinlogFilesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeBinlogFilesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeBinlogFilesResult::DescribeBinlogFilesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBinlogFilesResult::DescribeBinlogFilesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBinlogFilesResult::~DescribeBinlogFilesResult()
|
||||
{}
|
||||
|
||||
void DescribeBinlogFilesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["BinLogFile"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -72,9 +75,9 @@ void DescribeBinlogFilesResult::parse(const std::string &payload)
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["TotalFileSize"].isNull())
|
||||
totalFileSize_ = std::stol(value["TotalFileSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribeBinlogFilesResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeCharacterSetNameRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeCharacterSetNameRequest;
|
||||
|
||||
DescribeCharacterSetNameRequest::DescribeCharacterSetNameRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeCharacterSetName")
|
||||
{}
|
||||
|
||||
DescribeCharacterSetNameRequest::~DescribeCharacterSetNameRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeCharacterSetNameRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeCharacterSetNameRequest;
|
||||
|
||||
DescribeCharacterSetNameRequest::DescribeCharacterSetNameRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeCharacterSetName")
|
||||
{}
|
||||
|
||||
DescribeCharacterSetNameRequest::~DescribeCharacterSetNameRequest()
|
||||
{}
|
||||
|
||||
long DescribeCharacterSetNameRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,53 +1,56 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeCharacterSetNameResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeCharacterSetNameResult::DescribeCharacterSetNameResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCharacterSetNameResult::DescribeCharacterSetNameResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCharacterSetNameResult::~DescribeCharacterSetNameResult()
|
||||
{}
|
||||
|
||||
void DescribeCharacterSetNameResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeCharacterSetNameResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeCharacterSetNameResult::DescribeCharacterSetNameResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCharacterSetNameResult::DescribeCharacterSetNameResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCharacterSetNameResult::~DescribeCharacterSetNameResult()
|
||||
{}
|
||||
|
||||
void DescribeCharacterSetNameResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCharacterSetNameItems = value["CharacterSetNameItems"]["CharacterSetName"];
|
||||
for (const auto &item : allCharacterSetNameItems)
|
||||
characterSetNameItems_.push_back(item.asString());
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeCharacterSetNameResult::getCharacterSetNameItems()const
|
||||
{
|
||||
return characterSetNameItems_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeCloudDbExpertServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeCloudDbExpertServiceRequest;
|
||||
|
||||
DescribeCloudDbExpertServiceRequest::DescribeCloudDbExpertServiceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeCloudDbExpertService")
|
||||
{}
|
||||
|
||||
DescribeCloudDbExpertServiceRequest::~DescribeCloudDbExpertServiceRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeCloudDbExpertServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeCloudDbExpertServiceRequest;
|
||||
|
||||
DescribeCloudDbExpertServiceRequest::DescribeCloudDbExpertServiceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeCloudDbExpertService")
|
||||
{}
|
||||
|
||||
DescribeCloudDbExpertServiceRequest::~DescribeCloudDbExpertServiceRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCloudDbExpertServiceRequest::getServiceRequestParam()const
|
||||
{
|
||||
return serviceRequestParam_;
|
||||
|
||||
@@ -1,54 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeCloudDbExpertServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeCloudDbExpertServiceResult::DescribeCloudDbExpertServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCloudDbExpertServiceResult::DescribeCloudDbExpertServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCloudDbExpertServiceResult::~DescribeCloudDbExpertServiceResult()
|
||||
{}
|
||||
|
||||
void DescribeCloudDbExpertServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeCloudDbExpertServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeCloudDbExpertServiceResult::DescribeCloudDbExpertServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCloudDbExpertServiceResult::DescribeCloudDbExpertServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCloudDbExpertServiceResult::~DescribeCloudDbExpertServiceResult()
|
||||
{}
|
||||
|
||||
void DescribeCloudDbExpertServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeCloudDbExpertServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeCollationTimeZonesRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeCollationTimeZonesRequest;
|
||||
|
||||
DescribeCollationTimeZonesRequest::DescribeCollationTimeZonesRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeCollationTimeZones")
|
||||
{}
|
||||
|
||||
DescribeCollationTimeZonesRequest::~DescribeCollationTimeZonesRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeCollationTimeZonesRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeCollationTimeZonesRequest;
|
||||
|
||||
DescribeCollationTimeZonesRequest::DescribeCollationTimeZonesRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeCollationTimeZones")
|
||||
{}
|
||||
|
||||
DescribeCollationTimeZonesRequest::~DescribeCollationTimeZonesRequest()
|
||||
{}
|
||||
|
||||
long DescribeCollationTimeZonesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeCollationTimeZonesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeCollationTimeZonesResult::DescribeCollationTimeZonesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCollationTimeZonesResult::DescribeCollationTimeZonesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCollationTimeZonesResult::~DescribeCollationTimeZonesResult()
|
||||
{}
|
||||
|
||||
void DescribeCollationTimeZonesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeCollationTimeZonesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeCollationTimeZonesResult::DescribeCollationTimeZonesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCollationTimeZonesResult::DescribeCollationTimeZonesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCollationTimeZonesResult::~DescribeCollationTimeZonesResult()
|
||||
{}
|
||||
|
||||
void DescribeCollationTimeZonesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCollationTimeZones = value["CollationTimeZones"]["CollationTimeZone"];
|
||||
for (auto value : allCollationTimeZones)
|
||||
{
|
||||
@@ -52,9 +55,9 @@ void DescribeCollationTimeZonesResult::parse(const std::string &payload)
|
||||
collationTimeZonesObject.description = value["Description"].asString();
|
||||
collationTimeZones_.push_back(collationTimeZonesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCollationTimeZonesResult::CollationTimeZone> DescribeCollationTimeZonesResult::getCollationTimeZones()const
|
||||
{
|
||||
return collationTimeZones_;
|
||||
|
||||
115
rds/src/model/DescribeCrossRegionBackupDBInstanceRequest.cc
Normal file
115
rds/src/model/DescribeCrossRegionBackupDBInstanceRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeCrossRegionBackupDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeCrossRegionBackupDBInstanceRequest;
|
||||
|
||||
DescribeCrossRegionBackupDBInstanceRequest::DescribeCrossRegionBackupDBInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeCrossRegionBackupDBInstance")
|
||||
{}
|
||||
|
||||
DescribeCrossRegionBackupDBInstanceRequest::~DescribeCrossRegionBackupDBInstanceRequest()
|
||||
{}
|
||||
|
||||
long DescribeCrossRegionBackupDBInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupDBInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupDBInstanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupDBInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupDBInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeCrossRegionBackupDBInstanceRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupDBInstanceRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupDBInstanceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
long DescribeCrossRegionBackupDBInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupDBInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeCrossRegionBackupDBInstanceRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupDBInstanceRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupDBInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
128
rds/src/model/DescribeCrossRegionBackupDBInstanceResult.cc
Normal file
128
rds/src/model/DescribeCrossRegionBackupDBInstanceResult.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeCrossRegionBackupDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeCrossRegionBackupDBInstanceResult::DescribeCrossRegionBackupDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCrossRegionBackupDBInstanceResult::DescribeCrossRegionBackupDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCrossRegionBackupDBInstanceResult::~DescribeCrossRegionBackupDBInstanceResult()
|
||||
{}
|
||||
|
||||
void DescribeCrossRegionBackupDBInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Item"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
Item itemsObject;
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
itemsObject.dBInstanceId = value["DBInstanceId"].asString();
|
||||
if(!value["DBInstanceDescription"].isNull())
|
||||
itemsObject.dBInstanceDescription = value["DBInstanceDescription"].asString();
|
||||
if(!value["DBInstanceStatus"].isNull())
|
||||
itemsObject.dBInstanceStatus = value["DBInstanceStatus"].asString();
|
||||
if(!value["DBInstanceStatusDesc"].isNull())
|
||||
itemsObject.dBInstanceStatusDesc = value["DBInstanceStatusDesc"].asString();
|
||||
if(!value["Engine"].isNull())
|
||||
itemsObject.engine = value["Engine"].asString();
|
||||
if(!value["EngineVersion"].isNull())
|
||||
itemsObject.engineVersion = value["EngineVersion"].asString();
|
||||
if(!value["CrossBackupRegion"].isNull())
|
||||
itemsObject.crossBackupRegion = value["CrossBackupRegion"].asString();
|
||||
if(!value["CrossBackupType"].isNull())
|
||||
itemsObject.crossBackupType = value["CrossBackupType"].asString();
|
||||
if(!value["BackupEnabled"].isNull())
|
||||
itemsObject.backupEnabled = value["BackupEnabled"].asString();
|
||||
if(!value["LogBackupEnabled"].isNull())
|
||||
itemsObject.logBackupEnabled = value["LogBackupEnabled"].asString();
|
||||
if(!value["LogBackupEnabledTime"].isNull())
|
||||
itemsObject.logBackupEnabledTime = value["LogBackupEnabledTime"].asString();
|
||||
if(!value["BackupEnabledTime"].isNull())
|
||||
itemsObject.backupEnabledTime = value["BackupEnabledTime"].asString();
|
||||
if(!value["RetentType"].isNull())
|
||||
itemsObject.retentType = std::stoi(value["RetentType"].asString());
|
||||
if(!value["Retention"].isNull())
|
||||
itemsObject.retention = std::stoi(value["Retention"].asString());
|
||||
if(!value["LockMode"].isNull())
|
||||
itemsObject.lockMode = value["LockMode"].asString();
|
||||
if(!value["RelService"].isNull())
|
||||
itemsObject.relService = value["RelService"].asString();
|
||||
if(!value["RelServiceId"].isNull())
|
||||
itemsObject.relServiceId = value["RelServiceId"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["TotalRecords"].isNull())
|
||||
totalRecords_ = std::stoi(value["TotalRecords"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["ItemsNumbers"].isNull())
|
||||
itemsNumbers_ = std::stoi(value["ItemsNumbers"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCrossRegionBackupDBInstanceResult::getItemsNumbers()const
|
||||
{
|
||||
return itemsNumbers_;
|
||||
}
|
||||
|
||||
int DescribeCrossRegionBackupDBInstanceResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCrossRegionBackupDBInstanceResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeCrossRegionBackupDBInstanceResult::getTotalRecords()const
|
||||
{
|
||||
return totalRecords_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCrossRegionBackupDBInstanceResult::Item> DescribeCrossRegionBackupDBInstanceResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupDBInstanceResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
159
rds/src/model/DescribeCrossRegionBackupsRequest.cc
Normal file
159
rds/src/model/DescribeCrossRegionBackupsRequest.cc
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeCrossRegionBackupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeCrossRegionBackupsRequest;
|
||||
|
||||
DescribeCrossRegionBackupsRequest::DescribeCrossRegionBackupsRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeCrossRegionBackups")
|
||||
{}
|
||||
|
||||
DescribeCrossRegionBackupsRequest::~DescribeCrossRegionBackupsRequest()
|
||||
{}
|
||||
|
||||
long DescribeCrossRegionBackupsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long DescribeCrossRegionBackupsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupsRequest::getCrossBackupRegion()const
|
||||
{
|
||||
return crossBackupRegion_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupsRequest::setCrossBackupRegion(const std::string& crossBackupRegion)
|
||||
{
|
||||
crossBackupRegion_ = crossBackupRegion;
|
||||
setCoreParameter("CrossBackupRegion", crossBackupRegion);
|
||||
}
|
||||
|
||||
int DescribeCrossRegionBackupsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeCrossRegionBackupsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupsRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupsRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
int DescribeCrossRegionBackupsRequest::getCrossBackupId()const
|
||||
{
|
||||
return crossBackupId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupsRequest::setCrossBackupId(int crossBackupId)
|
||||
{
|
||||
crossBackupId_ = crossBackupId;
|
||||
setCoreParameter("CrossBackupId", std::to_string(crossBackupId));
|
||||
}
|
||||
|
||||
140
rds/src/model/DescribeCrossRegionBackupsResult.cc
Normal file
140
rds/src/model/DescribeCrossRegionBackupsResult.cc
Normal file
@@ -0,0 +1,140 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeCrossRegionBackupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeCrossRegionBackupsResult::DescribeCrossRegionBackupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCrossRegionBackupsResult::DescribeCrossRegionBackupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCrossRegionBackupsResult::~DescribeCrossRegionBackupsResult()
|
||||
{}
|
||||
|
||||
void DescribeCrossRegionBackupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Item"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
Item itemsObject;
|
||||
if(!value["CrossBackupId"].isNull())
|
||||
itemsObject.crossBackupId = std::stoi(value["CrossBackupId"].asString());
|
||||
if(!value["CrossBackupRegion"].isNull())
|
||||
itemsObject.crossBackupRegion = value["CrossBackupRegion"].asString();
|
||||
if(!value["BackupSetStatus"].isNull())
|
||||
itemsObject.backupSetStatus = std::stoi(value["BackupSetStatus"].asString());
|
||||
if(!value["BackupStartTime"].isNull())
|
||||
itemsObject.backupStartTime = value["BackupStartTime"].asString();
|
||||
if(!value["BackupEndTime"].isNull())
|
||||
itemsObject.backupEndTime = value["BackupEndTime"].asString();
|
||||
if(!value["BackupType"].isNull())
|
||||
itemsObject.backupType = value["BackupType"].asString();
|
||||
if(!value["BackupMethod"].isNull())
|
||||
itemsObject.backupMethod = value["BackupMethod"].asString();
|
||||
if(!value["CrossBackupSetSize"].isNull())
|
||||
itemsObject.crossBackupSetSize = std::stol(value["CrossBackupSetSize"].asString());
|
||||
if(!value["CrossBackupSetFile"].isNull())
|
||||
itemsObject.crossBackupSetFile = value["CrossBackupSetFile"].asString();
|
||||
if(!value["CrossBackupDownloadLink"].isNull())
|
||||
itemsObject.crossBackupDownloadLink = value["CrossBackupDownloadLink"].asString();
|
||||
if(!value["Engine"].isNull())
|
||||
itemsObject.engine = value["Engine"].asString();
|
||||
if(!value["EngineVersion"].isNull())
|
||||
itemsObject.engineVersion = value["EngineVersion"].asString();
|
||||
if(!value["CrossBackupSetLocation"].isNull())
|
||||
itemsObject.crossBackupSetLocation = value["CrossBackupSetLocation"].asString();
|
||||
if(!value["BackupSetScale"].isNull())
|
||||
itemsObject.backupSetScale = std::stoi(value["BackupSetScale"].asString());
|
||||
if(!value["InstanceId"].isNull())
|
||||
itemsObject.instanceId = std::stoi(value["InstanceId"].asString());
|
||||
if(!value["DBInstanceStorageType"].isNull())
|
||||
itemsObject.dBInstanceStorageType = value["DBInstanceStorageType"].asString();
|
||||
if(!value["Category"].isNull())
|
||||
itemsObject.category = value["Category"].asString();
|
||||
if(!value["ConsistentTime"].isNull())
|
||||
itemsObject.consistentTime = value["ConsistentTime"].asString();
|
||||
auto allRestoreRegions = value["RestoreRegions"]["RestoreRegion"];
|
||||
for (auto value : allRestoreRegions)
|
||||
itemsObject.restoreRegions.push_back(value.asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCrossRegionBackupsResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeCrossRegionBackupsResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupsResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
int DescribeCrossRegionBackupsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupsResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCrossRegionBackupsResult::Item> DescribeCrossRegionBackupsResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupsResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
148
rds/src/model/DescribeCrossRegionLogBackupFilesRequest.cc
Normal file
148
rds/src/model/DescribeCrossRegionLogBackupFilesRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeCrossRegionLogBackupFilesRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeCrossRegionLogBackupFilesRequest;
|
||||
|
||||
DescribeCrossRegionLogBackupFilesRequest::DescribeCrossRegionLogBackupFilesRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeCrossRegionLogBackupFiles")
|
||||
{}
|
||||
|
||||
DescribeCrossRegionLogBackupFilesRequest::~DescribeCrossRegionLogBackupFilesRequest()
|
||||
{}
|
||||
|
||||
long DescribeCrossRegionLogBackupFilesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionLogBackupFilesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionLogBackupFilesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionLogBackupFilesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionLogBackupFilesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionLogBackupFilesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeCrossRegionLogBackupFilesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionLogBackupFilesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionLogBackupFilesRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionLogBackupFilesRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionLogBackupFilesRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionLogBackupFilesRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionLogBackupFilesRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionLogBackupFilesRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long DescribeCrossRegionLogBackupFilesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionLogBackupFilesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionLogBackupFilesRequest::getCrossBackupRegion()const
|
||||
{
|
||||
return crossBackupRegion_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionLogBackupFilesRequest::setCrossBackupRegion(const std::string& crossBackupRegion)
|
||||
{
|
||||
crossBackupRegion_ = crossBackupRegion;
|
||||
setCoreParameter("CrossBackupRegion", crossBackupRegion);
|
||||
}
|
||||
|
||||
int DescribeCrossRegionLogBackupFilesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionLogBackupFilesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionLogBackupFilesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionLogBackupFilesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
128
rds/src/model/DescribeCrossRegionLogBackupFilesResult.cc
Normal file
128
rds/src/model/DescribeCrossRegionLogBackupFilesResult.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeCrossRegionLogBackupFilesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeCrossRegionLogBackupFilesResult::DescribeCrossRegionLogBackupFilesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCrossRegionLogBackupFilesResult::DescribeCrossRegionLogBackupFilesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCrossRegionLogBackupFilesResult::~DescribeCrossRegionLogBackupFilesResult()
|
||||
{}
|
||||
|
||||
void DescribeCrossRegionLogBackupFilesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Item"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
Item itemsObject;
|
||||
if(!value["CrossLogBackupId"].isNull())
|
||||
itemsObject.crossLogBackupId = std::stoi(value["CrossLogBackupId"].asString());
|
||||
if(!value["CrossBackupRegion"].isNull())
|
||||
itemsObject.crossBackupRegion = value["CrossBackupRegion"].asString();
|
||||
if(!value["CrossLogBackupSize"].isNull())
|
||||
itemsObject.crossLogBackupSize = std::stol(value["CrossLogBackupSize"].asString());
|
||||
if(!value["LogBeginTime"].isNull())
|
||||
itemsObject.logBeginTime = value["LogBeginTime"].asString();
|
||||
if(!value["LogEndTime"].isNull())
|
||||
itemsObject.logEndTime = value["LogEndTime"].asString();
|
||||
if(!value["CrossDownloadLink"].isNull())
|
||||
itemsObject.crossDownloadLink = value["CrossDownloadLink"].asString();
|
||||
if(!value["CrossIntranetDownloadLink"].isNull())
|
||||
itemsObject.crossIntranetDownloadLink = value["CrossIntranetDownloadLink"].asString();
|
||||
if(!value["LinkExpiredTime"].isNull())
|
||||
itemsObject.linkExpiredTime = value["LinkExpiredTime"].asString();
|
||||
if(!value["LogFileName"].isNull())
|
||||
itemsObject.logFileName = value["LogFileName"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
itemsObject.instanceId = std::stoi(value["InstanceId"].asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCrossRegionLogBackupFilesResult::getTotalRecordCount()const
|
||||
{
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
int DescribeCrossRegionLogBackupFilesResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionLogBackupFilesResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionLogBackupFilesResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
int DescribeCrossRegionLogBackupFilesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionLogBackupFilesResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCrossRegionLogBackupFilesResult::Item> DescribeCrossRegionLogBackupFilesResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionLogBackupFilesResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeDBInstanceAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeDBInstanceAttributeRequest;
|
||||
|
||||
DescribeDBInstanceAttributeRequest::DescribeDBInstanceAttributeRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceAttribute")
|
||||
{}
|
||||
|
||||
DescribeDBInstanceAttributeRequest::~DescribeDBInstanceAttributeRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeDBInstanceAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeDBInstanceAttributeRequest;
|
||||
|
||||
DescribeDBInstanceAttributeRequest::DescribeDBInstanceAttributeRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceAttribute")
|
||||
{}
|
||||
|
||||
DescribeDBInstanceAttributeRequest::~DescribeDBInstanceAttributeRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDBInstanceAttributeRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeDBInstanceAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeDBInstanceAttributeResult::DescribeDBInstanceAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBInstanceAttributeResult::DescribeDBInstanceAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBInstanceAttributeResult::~DescribeDBInstanceAttributeResult()
|
||||
{}
|
||||
|
||||
void DescribeDBInstanceAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeDBInstanceAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeDBInstanceAttributeResult::DescribeDBInstanceAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBInstanceAttributeResult::DescribeDBInstanceAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBInstanceAttributeResult::~DescribeDBInstanceAttributeResult()
|
||||
{}
|
||||
|
||||
void DescribeDBInstanceAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["DBInstanceAttribute"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -178,6 +181,8 @@ void DescribeDBInstanceAttributeResult::parse(const std::string &payload)
|
||||
itemsObject.dispenseMode = value["DispenseMode"].asString();
|
||||
if(!value["MasterZone"].isNull())
|
||||
itemsObject.masterZone = value["MasterZone"].asString();
|
||||
if(!value["AutoUpgradeMinorVersion"].isNull())
|
||||
itemsObject.autoUpgradeMinorVersion = value["AutoUpgradeMinorVersion"].asString();
|
||||
auto allSlaveZones = value["SlaveZones"]["SlaveZone"];
|
||||
for (auto value : allSlaveZones)
|
||||
{
|
||||
@@ -206,9 +211,9 @@ void DescribeDBInstanceAttributeResult::parse(const std::string &payload)
|
||||
itemsObject.extra.dBInstanceId.push_back(value.asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstanceAttributeResult::DBInstanceAttribute> DescribeDBInstanceAttributeResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeDBInstanceByTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeDBInstanceByTagsRequest;
|
||||
|
||||
DescribeDBInstanceByTagsRequest::DescribeDBInstanceByTagsRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceByTags")
|
||||
{}
|
||||
|
||||
DescribeDBInstanceByTagsRequest::~DescribeDBInstanceByTagsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeDBInstanceByTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeDBInstanceByTagsRequest;
|
||||
|
||||
DescribeDBInstanceByTagsRequest::DescribeDBInstanceByTagsRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceByTags")
|
||||
{}
|
||||
|
||||
DescribeDBInstanceByTagsRequest::~DescribeDBInstanceByTagsRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBInstanceByTagsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user