DBS SDK Auto Released By wanxin,Version:1.35.6

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-04-08 17:05:17 +08:00
parent d1cf7d3344
commit 861713f586
39 changed files with 3376 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
2019-04-08 Version: 1.35.6
1, Add StopBackupPlan DBS interface.
2, Add DescribeBackupPlanList DBS interface.
3, Add DescribeFullBackupList DBS interface.
4, Add DescribeIncrementBackupList DBS interface.
5, Add DescribeBackupGatewayList DBS interface.
2019-04-04 Version: 1.35.5
1, ScalingConf systemDisk add DiskName and Description parameters.
2, ScalingConf dataDisk add DiskName & Description & Encrypted & KMSKeyId parameters.

View File

@@ -118,3 +118,5 @@ add_subdirectory(imm)
add_subdirectory(bssopenapi)
add_subdirectory(sas)
add_subdirectory(dbs)

View File

@@ -1 +1 @@
1.35.5
1.35.6

114
dbs/CMakeLists.txt Normal file
View File

@@ -0,0 +1,114 @@
#
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(dbs_public_header
include/alibabacloud/dbs/DbsClient.h
include/alibabacloud/dbs/DbsExport.h )
set(dbs_public_header_model
include/alibabacloud/dbs/model/DescribeBackupPlanListRequest.h
include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h
include/alibabacloud/dbs/model/StopBackupPlanRequest.h
include/alibabacloud/dbs/model/StopBackupPlanResult.h
include/alibabacloud/dbs/model/CreateBackupPlanRequest.h
include/alibabacloud/dbs/model/CreateBackupPlanResult.h
include/alibabacloud/dbs/model/StartBackupPlanRequest.h
include/alibabacloud/dbs/model/StartBackupPlanResult.h
include/alibabacloud/dbs/model/DescribeBackupGatewayListRequest.h
include/alibabacloud/dbs/model/DescribeBackupGatewayListResult.h
include/alibabacloud/dbs/model/DescribeIncrementBackupListRequest.h
include/alibabacloud/dbs/model/DescribeIncrementBackupListResult.h
include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h
include/alibabacloud/dbs/model/ConfigureBackupPlanResult.h
include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h
include/alibabacloud/dbs/model/DescribeFullBackupListResult.h )
set(dbs_src
src/DbsClient.cc
src/model/DescribeBackupPlanListRequest.cc
src/model/DescribeBackupPlanListResult.cc
src/model/StopBackupPlanRequest.cc
src/model/StopBackupPlanResult.cc
src/model/CreateBackupPlanRequest.cc
src/model/CreateBackupPlanResult.cc
src/model/StartBackupPlanRequest.cc
src/model/StartBackupPlanResult.cc
src/model/DescribeBackupGatewayListRequest.cc
src/model/DescribeBackupGatewayListResult.cc
src/model/DescribeIncrementBackupListRequest.cc
src/model/DescribeIncrementBackupListResult.cc
src/model/ConfigureBackupPlanRequest.cc
src/model/ConfigureBackupPlanResult.cc
src/model/DescribeFullBackupListRequest.cc
src/model/DescribeFullBackupListResult.cc )
add_library(dbs ${LIB_TYPE}
${dbs_public_header}
${dbs_public_header_model}
${dbs_src})
set_target_properties(dbs
PROPERTIES
LINKER_LANGUAGE CXX
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}dbs
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(dbs
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_DBS_LIBRARY)
endif()
target_include_directories(dbs
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(dbs
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(dbs
jsoncpp)
target_include_directories(dbs
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(dbs
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(dbs
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(dbs
PRIVATE /usr/include/jsoncpp)
target_link_libraries(dbs
jsoncpp)
endif()
install(FILES ${dbs_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dbs)
install(FILES ${dbs_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dbs/model)
install(TARGETS dbs
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -0,0 +1,110 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_DBSCLIENT_H_
#define ALIBABACLOUD_DBS_DBSCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "DbsExport.h"
#include "model/DescribeBackupPlanListRequest.h"
#include "model/DescribeBackupPlanListResult.h"
#include "model/StopBackupPlanRequest.h"
#include "model/StopBackupPlanResult.h"
#include "model/CreateBackupPlanRequest.h"
#include "model/CreateBackupPlanResult.h"
#include "model/StartBackupPlanRequest.h"
#include "model/StartBackupPlanResult.h"
#include "model/DescribeBackupGatewayListRequest.h"
#include "model/DescribeBackupGatewayListResult.h"
#include "model/DescribeIncrementBackupListRequest.h"
#include "model/DescribeIncrementBackupListResult.h"
#include "model/ConfigureBackupPlanRequest.h"
#include "model/ConfigureBackupPlanResult.h"
#include "model/DescribeFullBackupListRequest.h"
#include "model/DescribeFullBackupListResult.h"
namespace AlibabaCloud
{
namespace Dbs
{
class ALIBABACLOUD_DBS_EXPORT DbsClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::DescribeBackupPlanListResult> DescribeBackupPlanListOutcome;
typedef std::future<DescribeBackupPlanListOutcome> DescribeBackupPlanListOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeBackupPlanListRequest&, const DescribeBackupPlanListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupPlanListAsyncHandler;
typedef Outcome<Error, Model::StopBackupPlanResult> StopBackupPlanOutcome;
typedef std::future<StopBackupPlanOutcome> StopBackupPlanOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::StopBackupPlanRequest&, const StopBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopBackupPlanAsyncHandler;
typedef Outcome<Error, Model::CreateBackupPlanResult> CreateBackupPlanOutcome;
typedef std::future<CreateBackupPlanOutcome> CreateBackupPlanOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::CreateBackupPlanRequest&, const CreateBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBackupPlanAsyncHandler;
typedef Outcome<Error, Model::StartBackupPlanResult> StartBackupPlanOutcome;
typedef std::future<StartBackupPlanOutcome> StartBackupPlanOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::StartBackupPlanRequest&, const StartBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartBackupPlanAsyncHandler;
typedef Outcome<Error, Model::DescribeBackupGatewayListResult> DescribeBackupGatewayListOutcome;
typedef std::future<DescribeBackupGatewayListOutcome> DescribeBackupGatewayListOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeBackupGatewayListRequest&, const DescribeBackupGatewayListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupGatewayListAsyncHandler;
typedef Outcome<Error, Model::DescribeIncrementBackupListResult> DescribeIncrementBackupListOutcome;
typedef std::future<DescribeIncrementBackupListOutcome> DescribeIncrementBackupListOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeIncrementBackupListRequest&, const DescribeIncrementBackupListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIncrementBackupListAsyncHandler;
typedef Outcome<Error, Model::ConfigureBackupPlanResult> ConfigureBackupPlanOutcome;
typedef std::future<ConfigureBackupPlanOutcome> ConfigureBackupPlanOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::ConfigureBackupPlanRequest&, const ConfigureBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConfigureBackupPlanAsyncHandler;
typedef Outcome<Error, Model::DescribeFullBackupListResult> DescribeFullBackupListOutcome;
typedef std::future<DescribeFullBackupListOutcome> DescribeFullBackupListOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeFullBackupListRequest&, const DescribeFullBackupListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFullBackupListAsyncHandler;
DbsClient(const Credentials &credentials, const ClientConfiguration &configuration);
DbsClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
DbsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~DbsClient();
DescribeBackupPlanListOutcome describeBackupPlanList(const Model::DescribeBackupPlanListRequest &request)const;
void describeBackupPlanListAsync(const Model::DescribeBackupPlanListRequest& request, const DescribeBackupPlanListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeBackupPlanListOutcomeCallable describeBackupPlanListCallable(const Model::DescribeBackupPlanListRequest& request) const;
StopBackupPlanOutcome stopBackupPlan(const Model::StopBackupPlanRequest &request)const;
void stopBackupPlanAsync(const Model::StopBackupPlanRequest& request, const StopBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopBackupPlanOutcomeCallable stopBackupPlanCallable(const Model::StopBackupPlanRequest& request) const;
CreateBackupPlanOutcome createBackupPlan(const Model::CreateBackupPlanRequest &request)const;
void createBackupPlanAsync(const Model::CreateBackupPlanRequest& request, const CreateBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateBackupPlanOutcomeCallable createBackupPlanCallable(const Model::CreateBackupPlanRequest& request) const;
StartBackupPlanOutcome startBackupPlan(const Model::StartBackupPlanRequest &request)const;
void startBackupPlanAsync(const Model::StartBackupPlanRequest& request, const StartBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartBackupPlanOutcomeCallable startBackupPlanCallable(const Model::StartBackupPlanRequest& request) const;
DescribeBackupGatewayListOutcome describeBackupGatewayList(const Model::DescribeBackupGatewayListRequest &request)const;
void describeBackupGatewayListAsync(const Model::DescribeBackupGatewayListRequest& request, const DescribeBackupGatewayListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeBackupGatewayListOutcomeCallable describeBackupGatewayListCallable(const Model::DescribeBackupGatewayListRequest& request) const;
DescribeIncrementBackupListOutcome describeIncrementBackupList(const Model::DescribeIncrementBackupListRequest &request)const;
void describeIncrementBackupListAsync(const Model::DescribeIncrementBackupListRequest& request, const DescribeIncrementBackupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeIncrementBackupListOutcomeCallable describeIncrementBackupListCallable(const Model::DescribeIncrementBackupListRequest& request) const;
ConfigureBackupPlanOutcome configureBackupPlan(const Model::ConfigureBackupPlanRequest &request)const;
void configureBackupPlanAsync(const Model::ConfigureBackupPlanRequest& request, const ConfigureBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ConfigureBackupPlanOutcomeCallable configureBackupPlanCallable(const Model::ConfigureBackupPlanRequest& request) const;
DescribeFullBackupListOutcome describeFullBackupList(const Model::DescribeFullBackupListRequest &request)const;
void describeFullBackupListAsync(const Model::DescribeFullBackupListRequest& request, const DescribeFullBackupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFullBackupListOutcomeCallable describeFullBackupListCallable(const Model::DescribeFullBackupListRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_DBS_DBSCLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_DBSEXPORT_H_
#define ALIBABACLOUD_DBS_DBSEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_DBS_LIBRARY)
# define ALIBABACLOUD_DBS_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_DBS_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_DBS_EXPORT
#endif
#endif // !ALIBABACLOUD_DBS_DBSEXPORT_H_

View File

@@ -0,0 +1,114 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_
#define ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT ConfigureBackupPlanRequest : public RpcServiceRequest
{
public:
ConfigureBackupPlanRequest();
~ConfigureBackupPlanRequest();
std::string getSourceEndpointRegion()const;
void setSourceEndpointRegion(const std::string& sourceEndpointRegion);
int getDuplicationArchivePeriod()const;
void setDuplicationArchivePeriod(int duplicationArchivePeriod);
long getBackupGatewayId()const;
void setBackupGatewayId(long backupGatewayId);
std::string getSourceEndpointInstanceID()const;
void setSourceEndpointInstanceID(const std::string& sourceEndpointInstanceID);
std::string getSourceEndpointUserName()const;
void setSourceEndpointUserName(const std::string& sourceEndpointUserName);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getSourceEndpointPassword()const;
void setSourceEndpointPassword(const std::string& sourceEndpointPassword);
std::string getBackupPlanId()const;
void setBackupPlanId(const std::string& backupPlanId);
std::string getBackupObjects()const;
void setBackupObjects(const std::string& backupObjects);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
int getSourceEndpointPort()const;
void setSourceEndpointPort(int sourceEndpointPort);
std::string getSourceEndpointDatabaseName()const;
void setSourceEndpointDatabaseName(const std::string& sourceEndpointDatabaseName);
int getBackupRetentionPeriod()const;
void setBackupRetentionPeriod(int backupRetentionPeriod);
int getDuplicationInfrequentAccessPeriod()const;
void setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod);
std::string getBackupPeriod()const;
void setBackupPeriod(const std::string& backupPeriod);
std::string getBackupStartTime()const;
void setBackupStartTime(const std::string& backupStartTime);
std::string getSourceEndpointInstanceType()const;
void setSourceEndpointInstanceType(const std::string& sourceEndpointInstanceType);
std::string getSourceEndpointIP()const;
void setSourceEndpointIP(const std::string& sourceEndpointIP);
std::string getBackupPlanName()const;
void setBackupPlanName(const std::string& backupPlanName);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getSourceEndpointOracleSID()const;
void setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID);
std::string getOSSBucketName()const;
void setOSSBucketName(const std::string& oSSBucketName);
bool getEnableBackupLog()const;
void setEnableBackupLog(bool enableBackupLog);
private:
std::string sourceEndpointRegion_;
int duplicationArchivePeriod_;
long backupGatewayId_;
std::string sourceEndpointInstanceID_;
std::string sourceEndpointUserName_;
std::string clientToken_;
std::string sourceEndpointPassword_;
std::string backupPlanId_;
std::string backupObjects_;
std::string ownerId_;
int sourceEndpointPort_;
std::string sourceEndpointDatabaseName_;
int backupRetentionPeriod_;
int duplicationInfrequentAccessPeriod_;
std::string backupPeriod_;
std::string backupStartTime_;
std::string sourceEndpointInstanceType_;
std::string sourceEndpointIP_;
std::string backupPlanName_;
std::string regionId_;
std::string sourceEndpointOracleSID_;
std::string oSSBucketName_;
bool enableBackupLog_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANRESULT_H_
#define ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT ConfigureBackupPlanResult : public ServiceResult
{
public:
ConfigureBackupPlanResult();
explicit ConfigureBackupPlanResult(const std::string &payload);
~ConfigureBackupPlanResult();
int getHttpStatusCode()const;
std::string getBackupPlanId()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int httpStatusCode_;
std::string backupPlanId_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANRESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_
#define ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT CreateBackupPlanRequest : public RpcServiceRequest
{
public:
CreateBackupPlanRequest();
~CreateBackupPlanRequest();
std::string getBackupMethod()const;
void setBackupMethod(const std::string& backupMethod);
std::string getDatabaseType()const;
void setDatabaseType(const std::string& databaseType);
std::string getPeriod()const;
void setPeriod(const std::string& period);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getRegion()const;
void setRegion(const std::string& region);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
int getUsedTime()const;
void setUsedTime(int usedTime);
std::string getInstanceClass()const;
void setInstanceClass(const std::string& instanceClass);
private:
std::string backupMethod_;
std::string databaseType_;
std::string period_;
std::string regionId_;
std::string clientToken_;
std::string region_;
std::string ownerId_;
int usedTime_;
std::string instanceClass_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANRESULT_H_
#define ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT CreateBackupPlanResult : public ServiceResult
{
public:
CreateBackupPlanResult();
explicit CreateBackupPlanResult(const std::string &payload);
~CreateBackupPlanResult();
int getHttpStatusCode()const;
std::string getBackupPlanId()const;
std::string getErrMessage()const;
std::string getOrderId()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int httpStatusCode_;
std::string backupPlanId_;
std::string errMessage_;
std::string orderId_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT DescribeBackupGatewayListRequest : public RpcServiceRequest
{
public:
DescribeBackupGatewayListRequest();
~DescribeBackupGatewayListRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getRegion()const;
void setRegion(const std::string& region);
int getPageNum()const;
void setPageNum(int pageNum);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
private:
std::string regionId_;
std::string clientToken_;
int pageSize_;
std::string region_;
int pageNum_;
std::string ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTRESULT_H_
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT DescribeBackupGatewayListResult : public ServiceResult
{
public:
DescribeBackupGatewayListResult();
explicit DescribeBackupGatewayListResult(const std::string &payload);
~DescribeBackupGatewayListResult();
int getPageSize()const;
int getPageNum()const;
int getHttpStatusCode()const;
int getTotalElements()const;
std::vector<std::string> getItems()const;
int getTotalPages()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int pageSize_;
int pageNum_;
int httpStatusCode_;
int totalElements_;
std::vector<std::string> items_;
int totalPages_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT DescribeBackupPlanListRequest : public RpcServiceRequest
{
public:
DescribeBackupPlanListRequest();
~DescribeBackupPlanListRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getBackupPlanId()const;
void setBackupPlanId(const std::string& backupPlanId);
std::string getRegion()const;
void setRegion(const std::string& region);
int getPageNum()const;
void setPageNum(int pageNum);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
private:
std::string regionId_;
std::string clientToken_;
int pageSize_;
std::string backupPlanId_;
std::string region_;
int pageNum_;
std::string ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTRESULT_H_
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT DescribeBackupPlanListResult : public ServiceResult
{
public:
DescribeBackupPlanListResult();
explicit DescribeBackupPlanListResult(const std::string &payload);
~DescribeBackupPlanListResult();
int getPageSize()const;
int getPageNum()const;
int getHttpStatusCode()const;
int getTotalElements()const;
std::vector<std::string> getItems()const;
int getTotalPages()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int pageSize_;
int pageNum_;
int httpStatusCode_;
int totalElements_;
std::vector<std::string> items_;
int totalPages_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT DescribeFullBackupListRequest : public RpcServiceRequest
{
public:
DescribeFullBackupListRequest();
~DescribeFullBackupListRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getBackupPlanId()const;
void setBackupPlanId(const std::string& backupPlanId);
int getPageNum()const;
void setPageNum(int pageNum);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
private:
std::string regionId_;
std::string clientToken_;
int pageSize_;
std::string backupPlanId_;
int pageNum_;
std::string ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTRESULT_H_
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT DescribeFullBackupListResult : public ServiceResult
{
public:
DescribeFullBackupListResult();
explicit DescribeFullBackupListResult(const std::string &payload);
~DescribeFullBackupListResult();
int getPageSize()const;
int getPageNum()const;
int getHttpStatusCode()const;
int getTotalElements()const;
std::vector<std::string> getItems()const;
int getTotalPages()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int pageSize_;
int pageNum_;
int httpStatusCode_;
int totalElements_;
std::vector<std::string> items_;
int totalPages_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT DescribeIncrementBackupListRequest : public RpcServiceRequest
{
public:
DescribeIncrementBackupListRequest();
~DescribeIncrementBackupListRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getBackupPlanId()const;
void setBackupPlanId(const std::string& backupPlanId);
int getPageNum()const;
void setPageNum(int pageNum);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
private:
std::string regionId_;
std::string clientToken_;
int pageSize_;
std::string backupPlanId_;
int pageNum_;
std::string ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTRESULT_H_
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT DescribeIncrementBackupListResult : public ServiceResult
{
public:
DescribeIncrementBackupListResult();
explicit DescribeIncrementBackupListResult(const std::string &payload);
~DescribeIncrementBackupListResult();
int getPageSize()const;
int getPageNum()const;
int getHttpStatusCode()const;
int getTotalElements()const;
std::vector<std::string> getItems()const;
int getTotalPages()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int pageSize_;
int pageNum_;
int httpStatusCode_;
int totalElements_;
std::vector<std::string> items_;
int totalPages_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTRESULT_H_

View File

@@ -0,0 +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.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANREQUEST_H_
#define ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT StartBackupPlanRequest : public RpcServiceRequest
{
public:
StartBackupPlanRequest();
~StartBackupPlanRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getBackupPlanId()const;
void setBackupPlanId(const std::string& backupPlanId);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
private:
std::string regionId_;
std::string clientToken_;
std::string backupPlanId_;
std::string ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANRESULT_H_
#define ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT StartBackupPlanResult : public ServiceResult
{
public:
StartBackupPlanResult();
explicit StartBackupPlanResult(const std::string &payload);
~StartBackupPlanResult();
int getHttpStatusCode()const;
std::string getBackupPlanId()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int httpStatusCode_;
std::string backupPlanId_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_
#define ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT StopBackupPlanRequest : public RpcServiceRequest
{
public:
StopBackupPlanRequest();
~StopBackupPlanRequest();
std::string getStopMethod()const;
void setStopMethod(const std::string& stopMethod);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getBackupPlanId()const;
void setBackupPlanId(const std::string& backupPlanId);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
private:
std::string stopMethod_;
std::string regionId_;
std::string clientToken_;
std::string backupPlanId_;
std::string ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANRESULT_H_
#define ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dbs/DbsExport.h>
namespace AlibabaCloud
{
namespace Dbs
{
namespace Model
{
class ALIBABACLOUD_DBS_EXPORT StopBackupPlanResult : public ServiceResult
{
public:
StopBackupPlanResult();
explicit StopBackupPlanResult(const std::string &payload);
~StopBackupPlanResult();
int getHttpStatusCode()const;
std::string getBackupPlanId()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int httpStatusCode_;
std::string backupPlanId_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANRESULT_H_

341
dbs/src/DbsClient.cc Normal file
View File

@@ -0,0 +1,341 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/DbsClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
namespace
{
const std::string SERVICE_NAME = "Dbs";
}
DbsClient::DbsClient(const Credentials &credentials, const ClientConfiguration &configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cbs");
}
DbsClient::DbsClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cbs");
}
DbsClient::DbsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cbs");
}
DbsClient::~DbsClient()
{}
DbsClient::DescribeBackupPlanListOutcome DbsClient::describeBackupPlanList(const DescribeBackupPlanListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeBackupPlanListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeBackupPlanListOutcome(DescribeBackupPlanListResult(outcome.result()));
else
return DescribeBackupPlanListOutcome(outcome.error());
}
void DbsClient::describeBackupPlanListAsync(const DescribeBackupPlanListRequest& request, const DescribeBackupPlanListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeBackupPlanList(request), context);
};
asyncExecute(new Runnable(fn));
}
DbsClient::DescribeBackupPlanListOutcomeCallable DbsClient::describeBackupPlanListCallable(const DescribeBackupPlanListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeBackupPlanListOutcome()>>(
[this, request]()
{
return this->describeBackupPlanList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DbsClient::StopBackupPlanOutcome DbsClient::stopBackupPlan(const StopBackupPlanRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StopBackupPlanOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StopBackupPlanOutcome(StopBackupPlanResult(outcome.result()));
else
return StopBackupPlanOutcome(outcome.error());
}
void DbsClient::stopBackupPlanAsync(const StopBackupPlanRequest& request, const StopBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, stopBackupPlan(request), context);
};
asyncExecute(new Runnable(fn));
}
DbsClient::StopBackupPlanOutcomeCallable DbsClient::stopBackupPlanCallable(const StopBackupPlanRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StopBackupPlanOutcome()>>(
[this, request]()
{
return this->stopBackupPlan(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DbsClient::CreateBackupPlanOutcome DbsClient::createBackupPlan(const CreateBackupPlanRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateBackupPlanOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateBackupPlanOutcome(CreateBackupPlanResult(outcome.result()));
else
return CreateBackupPlanOutcome(outcome.error());
}
void DbsClient::createBackupPlanAsync(const CreateBackupPlanRequest& request, const CreateBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createBackupPlan(request), context);
};
asyncExecute(new Runnable(fn));
}
DbsClient::CreateBackupPlanOutcomeCallable DbsClient::createBackupPlanCallable(const CreateBackupPlanRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateBackupPlanOutcome()>>(
[this, request]()
{
return this->createBackupPlan(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DbsClient::StartBackupPlanOutcome DbsClient::startBackupPlan(const StartBackupPlanRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StartBackupPlanOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StartBackupPlanOutcome(StartBackupPlanResult(outcome.result()));
else
return StartBackupPlanOutcome(outcome.error());
}
void DbsClient::startBackupPlanAsync(const StartBackupPlanRequest& request, const StartBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, startBackupPlan(request), context);
};
asyncExecute(new Runnable(fn));
}
DbsClient::StartBackupPlanOutcomeCallable DbsClient::startBackupPlanCallable(const StartBackupPlanRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StartBackupPlanOutcome()>>(
[this, request]()
{
return this->startBackupPlan(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DbsClient::DescribeBackupGatewayListOutcome DbsClient::describeBackupGatewayList(const DescribeBackupGatewayListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeBackupGatewayListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeBackupGatewayListOutcome(DescribeBackupGatewayListResult(outcome.result()));
else
return DescribeBackupGatewayListOutcome(outcome.error());
}
void DbsClient::describeBackupGatewayListAsync(const DescribeBackupGatewayListRequest& request, const DescribeBackupGatewayListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeBackupGatewayList(request), context);
};
asyncExecute(new Runnable(fn));
}
DbsClient::DescribeBackupGatewayListOutcomeCallable DbsClient::describeBackupGatewayListCallable(const DescribeBackupGatewayListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeBackupGatewayListOutcome()>>(
[this, request]()
{
return this->describeBackupGatewayList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DbsClient::DescribeIncrementBackupListOutcome DbsClient::describeIncrementBackupList(const DescribeIncrementBackupListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeIncrementBackupListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeIncrementBackupListOutcome(DescribeIncrementBackupListResult(outcome.result()));
else
return DescribeIncrementBackupListOutcome(outcome.error());
}
void DbsClient::describeIncrementBackupListAsync(const DescribeIncrementBackupListRequest& request, const DescribeIncrementBackupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeIncrementBackupList(request), context);
};
asyncExecute(new Runnable(fn));
}
DbsClient::DescribeIncrementBackupListOutcomeCallable DbsClient::describeIncrementBackupListCallable(const DescribeIncrementBackupListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeIncrementBackupListOutcome()>>(
[this, request]()
{
return this->describeIncrementBackupList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DbsClient::ConfigureBackupPlanOutcome DbsClient::configureBackupPlan(const ConfigureBackupPlanRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ConfigureBackupPlanOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ConfigureBackupPlanOutcome(ConfigureBackupPlanResult(outcome.result()));
else
return ConfigureBackupPlanOutcome(outcome.error());
}
void DbsClient::configureBackupPlanAsync(const ConfigureBackupPlanRequest& request, const ConfigureBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, configureBackupPlan(request), context);
};
asyncExecute(new Runnable(fn));
}
DbsClient::ConfigureBackupPlanOutcomeCallable DbsClient::configureBackupPlanCallable(const ConfigureBackupPlanRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ConfigureBackupPlanOutcome()>>(
[this, request]()
{
return this->configureBackupPlan(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DbsClient::DescribeFullBackupListOutcome DbsClient::describeFullBackupList(const DescribeFullBackupListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeFullBackupListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeFullBackupListOutcome(DescribeFullBackupListResult(outcome.result()));
else
return DescribeFullBackupListOutcome(outcome.error());
}
void DbsClient::describeFullBackupListAsync(const DescribeFullBackupListRequest& request, const DescribeFullBackupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeFullBackupList(request), context);
};
asyncExecute(new Runnable(fn));
}
DbsClient::DescribeFullBackupListOutcomeCallable DbsClient::describeFullBackupListCallable(const DescribeFullBackupListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeFullBackupListOutcome()>>(
[this, request]()
{
return this->describeFullBackupList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,280 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/ConfigureBackupPlanRequest.h>
using AlibabaCloud::Dbs::Model::ConfigureBackupPlanRequest;
ConfigureBackupPlanRequest::ConfigureBackupPlanRequest() :
RpcServiceRequest("dbs", "2019-03-06", "ConfigureBackupPlan")
{}
ConfigureBackupPlanRequest::~ConfigureBackupPlanRequest()
{}
std::string ConfigureBackupPlanRequest::getSourceEndpointRegion()const
{
return sourceEndpointRegion_;
}
void ConfigureBackupPlanRequest::setSourceEndpointRegion(const std::string& sourceEndpointRegion)
{
sourceEndpointRegion_ = sourceEndpointRegion;
setCoreParameter("SourceEndpointRegion", sourceEndpointRegion);
}
int ConfigureBackupPlanRequest::getDuplicationArchivePeriod()const
{
return duplicationArchivePeriod_;
}
void ConfigureBackupPlanRequest::setDuplicationArchivePeriod(int duplicationArchivePeriod)
{
duplicationArchivePeriod_ = duplicationArchivePeriod;
setCoreParameter("DuplicationArchivePeriod", std::to_string(duplicationArchivePeriod));
}
long ConfigureBackupPlanRequest::getBackupGatewayId()const
{
return backupGatewayId_;
}
void ConfigureBackupPlanRequest::setBackupGatewayId(long backupGatewayId)
{
backupGatewayId_ = backupGatewayId;
setCoreParameter("BackupGatewayId", std::to_string(backupGatewayId));
}
std::string ConfigureBackupPlanRequest::getSourceEndpointInstanceID()const
{
return sourceEndpointInstanceID_;
}
void ConfigureBackupPlanRequest::setSourceEndpointInstanceID(const std::string& sourceEndpointInstanceID)
{
sourceEndpointInstanceID_ = sourceEndpointInstanceID;
setCoreParameter("SourceEndpointInstanceID", sourceEndpointInstanceID);
}
std::string ConfigureBackupPlanRequest::getSourceEndpointUserName()const
{
return sourceEndpointUserName_;
}
void ConfigureBackupPlanRequest::setSourceEndpointUserName(const std::string& sourceEndpointUserName)
{
sourceEndpointUserName_ = sourceEndpointUserName;
setCoreParameter("SourceEndpointUserName", sourceEndpointUserName);
}
std::string ConfigureBackupPlanRequest::getClientToken()const
{
return clientToken_;
}
void ConfigureBackupPlanRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}
std::string ConfigureBackupPlanRequest::getSourceEndpointPassword()const
{
return sourceEndpointPassword_;
}
void ConfigureBackupPlanRequest::setSourceEndpointPassword(const std::string& sourceEndpointPassword)
{
sourceEndpointPassword_ = sourceEndpointPassword;
setCoreParameter("SourceEndpointPassword", sourceEndpointPassword);
}
std::string ConfigureBackupPlanRequest::getBackupPlanId()const
{
return backupPlanId_;
}
void ConfigureBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId)
{
backupPlanId_ = backupPlanId;
setCoreParameter("BackupPlanId", backupPlanId);
}
std::string ConfigureBackupPlanRequest::getBackupObjects()const
{
return backupObjects_;
}
void ConfigureBackupPlanRequest::setBackupObjects(const std::string& backupObjects)
{
backupObjects_ = backupObjects;
setCoreParameter("BackupObjects", backupObjects);
}
std::string ConfigureBackupPlanRequest::getOwnerId()const
{
return ownerId_;
}
void ConfigureBackupPlanRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}
int ConfigureBackupPlanRequest::getSourceEndpointPort()const
{
return sourceEndpointPort_;
}
void ConfigureBackupPlanRequest::setSourceEndpointPort(int sourceEndpointPort)
{
sourceEndpointPort_ = sourceEndpointPort;
setCoreParameter("SourceEndpointPort", std::to_string(sourceEndpointPort));
}
std::string ConfigureBackupPlanRequest::getSourceEndpointDatabaseName()const
{
return sourceEndpointDatabaseName_;
}
void ConfigureBackupPlanRequest::setSourceEndpointDatabaseName(const std::string& sourceEndpointDatabaseName)
{
sourceEndpointDatabaseName_ = sourceEndpointDatabaseName;
setCoreParameter("SourceEndpointDatabaseName", sourceEndpointDatabaseName);
}
int ConfigureBackupPlanRequest::getBackupRetentionPeriod()const
{
return backupRetentionPeriod_;
}
void ConfigureBackupPlanRequest::setBackupRetentionPeriod(int backupRetentionPeriod)
{
backupRetentionPeriod_ = backupRetentionPeriod;
setCoreParameter("BackupRetentionPeriod", std::to_string(backupRetentionPeriod));
}
int ConfigureBackupPlanRequest::getDuplicationInfrequentAccessPeriod()const
{
return duplicationInfrequentAccessPeriod_;
}
void ConfigureBackupPlanRequest::setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod)
{
duplicationInfrequentAccessPeriod_ = duplicationInfrequentAccessPeriod;
setCoreParameter("DuplicationInfrequentAccessPeriod", std::to_string(duplicationInfrequentAccessPeriod));
}
std::string ConfigureBackupPlanRequest::getBackupPeriod()const
{
return backupPeriod_;
}
void ConfigureBackupPlanRequest::setBackupPeriod(const std::string& backupPeriod)
{
backupPeriod_ = backupPeriod;
setCoreParameter("BackupPeriod", backupPeriod);
}
std::string ConfigureBackupPlanRequest::getBackupStartTime()const
{
return backupStartTime_;
}
void ConfigureBackupPlanRequest::setBackupStartTime(const std::string& backupStartTime)
{
backupStartTime_ = backupStartTime;
setCoreParameter("BackupStartTime", backupStartTime);
}
std::string ConfigureBackupPlanRequest::getSourceEndpointInstanceType()const
{
return sourceEndpointInstanceType_;
}
void ConfigureBackupPlanRequest::setSourceEndpointInstanceType(const std::string& sourceEndpointInstanceType)
{
sourceEndpointInstanceType_ = sourceEndpointInstanceType;
setCoreParameter("SourceEndpointInstanceType", sourceEndpointInstanceType);
}
std::string ConfigureBackupPlanRequest::getSourceEndpointIP()const
{
return sourceEndpointIP_;
}
void ConfigureBackupPlanRequest::setSourceEndpointIP(const std::string& sourceEndpointIP)
{
sourceEndpointIP_ = sourceEndpointIP;
setCoreParameter("SourceEndpointIP", sourceEndpointIP);
}
std::string ConfigureBackupPlanRequest::getBackupPlanName()const
{
return backupPlanName_;
}
void ConfigureBackupPlanRequest::setBackupPlanName(const std::string& backupPlanName)
{
backupPlanName_ = backupPlanName;
setCoreParameter("BackupPlanName", backupPlanName);
}
std::string ConfigureBackupPlanRequest::getRegionId()const
{
return regionId_;
}
void ConfigureBackupPlanRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string ConfigureBackupPlanRequest::getSourceEndpointOracleSID()const
{
return sourceEndpointOracleSID_;
}
void ConfigureBackupPlanRequest::setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID)
{
sourceEndpointOracleSID_ = sourceEndpointOracleSID;
setCoreParameter("SourceEndpointOracleSID", sourceEndpointOracleSID);
}
std::string ConfigureBackupPlanRequest::getOSSBucketName()const
{
return oSSBucketName_;
}
void ConfigureBackupPlanRequest::setOSSBucketName(const std::string& oSSBucketName)
{
oSSBucketName_ = oSSBucketName;
setCoreParameter("OSSBucketName", oSSBucketName);
}
bool ConfigureBackupPlanRequest::getEnableBackupLog()const
{
return enableBackupLog_;
}
void ConfigureBackupPlanRequest::setEnableBackupLog(bool enableBackupLog)
{
enableBackupLog_ = enableBackupLog;
setCoreParameter("EnableBackupLog", enableBackupLog ? "true" : "false");
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/ConfigureBackupPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
ConfigureBackupPlanResult::ConfigureBackupPlanResult() :
ServiceResult()
{}
ConfigureBackupPlanResult::ConfigureBackupPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConfigureBackupPlanResult::~ConfigureBackupPlanResult()
{}
void ConfigureBackupPlanResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["BackupPlanId"].isNull())
backupPlanId_ = value["BackupPlanId"].asString();
}
int ConfigureBackupPlanResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ConfigureBackupPlanResult::getBackupPlanId()const
{
return backupPlanId_;
}
std::string ConfigureBackupPlanResult::getErrMessage()const
{
return errMessage_;
}
bool ConfigureBackupPlanResult::getSuccess()const
{
return success_;
}
std::string ConfigureBackupPlanResult::getErrCode()const
{
return errCode_;
}

View File

@@ -0,0 +1,126 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/CreateBackupPlanRequest.h>
using AlibabaCloud::Dbs::Model::CreateBackupPlanRequest;
CreateBackupPlanRequest::CreateBackupPlanRequest() :
RpcServiceRequest("dbs", "2019-03-06", "CreateBackupPlan")
{}
CreateBackupPlanRequest::~CreateBackupPlanRequest()
{}
std::string CreateBackupPlanRequest::getBackupMethod()const
{
return backupMethod_;
}
void CreateBackupPlanRequest::setBackupMethod(const std::string& backupMethod)
{
backupMethod_ = backupMethod;
setCoreParameter("BackupMethod", backupMethod);
}
std::string CreateBackupPlanRequest::getDatabaseType()const
{
return databaseType_;
}
void CreateBackupPlanRequest::setDatabaseType(const std::string& databaseType)
{
databaseType_ = databaseType;
setCoreParameter("DatabaseType", databaseType);
}
std::string CreateBackupPlanRequest::getPeriod()const
{
return period_;
}
void CreateBackupPlanRequest::setPeriod(const std::string& period)
{
period_ = period;
setCoreParameter("Period", period);
}
std::string CreateBackupPlanRequest::getRegionId()const
{
return regionId_;
}
void CreateBackupPlanRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string CreateBackupPlanRequest::getClientToken()const
{
return clientToken_;
}
void CreateBackupPlanRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}
std::string CreateBackupPlanRequest::getRegion()const
{
return region_;
}
void CreateBackupPlanRequest::setRegion(const std::string& region)
{
region_ = region;
setCoreParameter("Region", region);
}
std::string CreateBackupPlanRequest::getOwnerId()const
{
return ownerId_;
}
void CreateBackupPlanRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}
int CreateBackupPlanRequest::getUsedTime()const
{
return usedTime_;
}
void CreateBackupPlanRequest::setUsedTime(int usedTime)
{
usedTime_ = usedTime;
setCoreParameter("UsedTime", std::to_string(usedTime));
}
std::string CreateBackupPlanRequest::getInstanceClass()const
{
return instanceClass_;
}
void CreateBackupPlanRequest::setInstanceClass(const std::string& instanceClass)
{
instanceClass_ = instanceClass;
setCoreParameter("InstanceClass", instanceClass);
}

View File

@@ -0,0 +1,87 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/CreateBackupPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
CreateBackupPlanResult::CreateBackupPlanResult() :
ServiceResult()
{}
CreateBackupPlanResult::CreateBackupPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateBackupPlanResult::~CreateBackupPlanResult()
{}
void CreateBackupPlanResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["BackupPlanId"].isNull())
backupPlanId_ = value["BackupPlanId"].asString();
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
}
int CreateBackupPlanResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateBackupPlanResult::getBackupPlanId()const
{
return backupPlanId_;
}
std::string CreateBackupPlanResult::getErrMessage()const
{
return errMessage_;
}
std::string CreateBackupPlanResult::getOrderId()const
{
return orderId_;
}
bool CreateBackupPlanResult::getSuccess()const
{
return success_;
}
std::string CreateBackupPlanResult::getErrCode()const
{
return errCode_;
}

View 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/dbs/model/DescribeBackupGatewayListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeBackupGatewayListRequest;
DescribeBackupGatewayListRequest::DescribeBackupGatewayListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupGatewayList")
{}
DescribeBackupGatewayListRequest::~DescribeBackupGatewayListRequest()
{}
std::string DescribeBackupGatewayListRequest::getRegionId()const
{
return regionId_;
}
void DescribeBackupGatewayListRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DescribeBackupGatewayListRequest::getClientToken()const
{
return clientToken_;
}
void DescribeBackupGatewayListRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}
int DescribeBackupGatewayListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeBackupGatewayListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeBackupGatewayListRequest::getRegion()const
{
return region_;
}
void DescribeBackupGatewayListRequest::setRegion(const std::string& region)
{
region_ = region;
setCoreParameter("Region", region);
}
int DescribeBackupGatewayListRequest::getPageNum()const
{
return pageNum_;
}
void DescribeBackupGatewayListRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setCoreParameter("PageNum", std::to_string(pageNum));
}
std::string DescribeBackupGatewayListRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeBackupGatewayListRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}

View File

@@ -0,0 +1,109 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/DescribeBackupGatewayListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeBackupGatewayListResult::DescribeBackupGatewayListResult() :
ServiceResult()
{}
DescribeBackupGatewayListResult::DescribeBackupGatewayListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBackupGatewayListResult::~DescribeBackupGatewayListResult()
{}
void DescribeBackupGatewayListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["BackupGateway"];
for (const auto &item : allItems)
items_.push_back(item.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["TotalPages"].isNull())
totalPages_ = std::stoi(value["TotalPages"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNum"].isNull())
pageNum_ = std::stoi(value["PageNum"].asString());
if(!value["TotalElements"].isNull())
totalElements_ = std::stoi(value["TotalElements"].asString());
}
int DescribeBackupGatewayListResult::getPageSize()const
{
return pageSize_;
}
int DescribeBackupGatewayListResult::getPageNum()const
{
return pageNum_;
}
int DescribeBackupGatewayListResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
int DescribeBackupGatewayListResult::getTotalElements()const
{
return totalElements_;
}
std::vector<std::string> DescribeBackupGatewayListResult::getItems()const
{
return items_;
}
int DescribeBackupGatewayListResult::getTotalPages()const
{
return totalPages_;
}
std::string DescribeBackupGatewayListResult::getErrMessage()const
{
return errMessage_;
}
bool DescribeBackupGatewayListResult::getSuccess()const
{
return success_;
}
std::string DescribeBackupGatewayListResult::getErrCode()const
{
return errCode_;
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/DescribeBackupPlanListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeBackupPlanListRequest;
DescribeBackupPlanListRequest::DescribeBackupPlanListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupPlanList")
{}
DescribeBackupPlanListRequest::~DescribeBackupPlanListRequest()
{}
std::string DescribeBackupPlanListRequest::getRegionId()const
{
return regionId_;
}
void DescribeBackupPlanListRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DescribeBackupPlanListRequest::getClientToken()const
{
return clientToken_;
}
void DescribeBackupPlanListRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}
int DescribeBackupPlanListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeBackupPlanListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeBackupPlanListRequest::getBackupPlanId()const
{
return backupPlanId_;
}
void DescribeBackupPlanListRequest::setBackupPlanId(const std::string& backupPlanId)
{
backupPlanId_ = backupPlanId;
setCoreParameter("BackupPlanId", backupPlanId);
}
std::string DescribeBackupPlanListRequest::getRegion()const
{
return region_;
}
void DescribeBackupPlanListRequest::setRegion(const std::string& region)
{
region_ = region;
setCoreParameter("Region", region);
}
int DescribeBackupPlanListRequest::getPageNum()const
{
return pageNum_;
}
void DescribeBackupPlanListRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setCoreParameter("PageNum", std::to_string(pageNum));
}
std::string DescribeBackupPlanListRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeBackupPlanListRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}

View File

@@ -0,0 +1,109 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/DescribeBackupPlanListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeBackupPlanListResult::DescribeBackupPlanListResult() :
ServiceResult()
{}
DescribeBackupPlanListResult::DescribeBackupPlanListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBackupPlanListResult::~DescribeBackupPlanListResult()
{}
void DescribeBackupPlanListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["BackupPlanDetail"];
for (const auto &item : allItems)
items_.push_back(item.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["TotalPages"].isNull())
totalPages_ = std::stoi(value["TotalPages"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNum"].isNull())
pageNum_ = std::stoi(value["PageNum"].asString());
if(!value["TotalElements"].isNull())
totalElements_ = std::stoi(value["TotalElements"].asString());
}
int DescribeBackupPlanListResult::getPageSize()const
{
return pageSize_;
}
int DescribeBackupPlanListResult::getPageNum()const
{
return pageNum_;
}
int DescribeBackupPlanListResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
int DescribeBackupPlanListResult::getTotalElements()const
{
return totalElements_;
}
std::vector<std::string> DescribeBackupPlanListResult::getItems()const
{
return items_;
}
int DescribeBackupPlanListResult::getTotalPages()const
{
return totalPages_;
}
std::string DescribeBackupPlanListResult::getErrMessage()const
{
return errMessage_;
}
bool DescribeBackupPlanListResult::getSuccess()const
{
return success_;
}
std::string DescribeBackupPlanListResult::getErrCode()const
{
return errCode_;
}

View 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/dbs/model/DescribeFullBackupListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeFullBackupListRequest;
DescribeFullBackupListRequest::DescribeFullBackupListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeFullBackupList")
{}
DescribeFullBackupListRequest::~DescribeFullBackupListRequest()
{}
std::string DescribeFullBackupListRequest::getRegionId()const
{
return regionId_;
}
void DescribeFullBackupListRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DescribeFullBackupListRequest::getClientToken()const
{
return clientToken_;
}
void DescribeFullBackupListRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}
int DescribeFullBackupListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeFullBackupListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeFullBackupListRequest::getBackupPlanId()const
{
return backupPlanId_;
}
void DescribeFullBackupListRequest::setBackupPlanId(const std::string& backupPlanId)
{
backupPlanId_ = backupPlanId;
setCoreParameter("BackupPlanId", backupPlanId);
}
int DescribeFullBackupListRequest::getPageNum()const
{
return pageNum_;
}
void DescribeFullBackupListRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setCoreParameter("PageNum", std::to_string(pageNum));
}
std::string DescribeFullBackupListRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeFullBackupListRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}

View File

@@ -0,0 +1,109 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/DescribeFullBackupListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeFullBackupListResult::DescribeFullBackupListResult() :
ServiceResult()
{}
DescribeFullBackupListResult::DescribeFullBackupListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeFullBackupListResult::~DescribeFullBackupListResult()
{}
void DescribeFullBackupListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["FullBackupFile"];
for (const auto &item : allItems)
items_.push_back(item.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["TotalPages"].isNull())
totalPages_ = std::stoi(value["TotalPages"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNum"].isNull())
pageNum_ = std::stoi(value["PageNum"].asString());
if(!value["TotalElements"].isNull())
totalElements_ = std::stoi(value["TotalElements"].asString());
}
int DescribeFullBackupListResult::getPageSize()const
{
return pageSize_;
}
int DescribeFullBackupListResult::getPageNum()const
{
return pageNum_;
}
int DescribeFullBackupListResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
int DescribeFullBackupListResult::getTotalElements()const
{
return totalElements_;
}
std::vector<std::string> DescribeFullBackupListResult::getItems()const
{
return items_;
}
int DescribeFullBackupListResult::getTotalPages()const
{
return totalPages_;
}
std::string DescribeFullBackupListResult::getErrMessage()const
{
return errMessage_;
}
bool DescribeFullBackupListResult::getSuccess()const
{
return success_;
}
std::string DescribeFullBackupListResult::getErrCode()const
{
return errCode_;
}

View 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/dbs/model/DescribeIncrementBackupListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeIncrementBackupListRequest;
DescribeIncrementBackupListRequest::DescribeIncrementBackupListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeIncrementBackupList")
{}
DescribeIncrementBackupListRequest::~DescribeIncrementBackupListRequest()
{}
std::string DescribeIncrementBackupListRequest::getRegionId()const
{
return regionId_;
}
void DescribeIncrementBackupListRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DescribeIncrementBackupListRequest::getClientToken()const
{
return clientToken_;
}
void DescribeIncrementBackupListRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}
int DescribeIncrementBackupListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeIncrementBackupListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeIncrementBackupListRequest::getBackupPlanId()const
{
return backupPlanId_;
}
void DescribeIncrementBackupListRequest::setBackupPlanId(const std::string& backupPlanId)
{
backupPlanId_ = backupPlanId;
setCoreParameter("BackupPlanId", backupPlanId);
}
int DescribeIncrementBackupListRequest::getPageNum()const
{
return pageNum_;
}
void DescribeIncrementBackupListRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setCoreParameter("PageNum", std::to_string(pageNum));
}
std::string DescribeIncrementBackupListRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeIncrementBackupListRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}

View File

@@ -0,0 +1,109 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/DescribeIncrementBackupListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeIncrementBackupListResult::DescribeIncrementBackupListResult() :
ServiceResult()
{}
DescribeIncrementBackupListResult::DescribeIncrementBackupListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeIncrementBackupListResult::~DescribeIncrementBackupListResult()
{}
void DescribeIncrementBackupListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["IncrementBackupFile"];
for (const auto &item : allItems)
items_.push_back(item.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["TotalPages"].isNull())
totalPages_ = std::stoi(value["TotalPages"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNum"].isNull())
pageNum_ = std::stoi(value["PageNum"].asString());
if(!value["TotalElements"].isNull())
totalElements_ = std::stoi(value["TotalElements"].asString());
}
int DescribeIncrementBackupListResult::getPageSize()const
{
return pageSize_;
}
int DescribeIncrementBackupListResult::getPageNum()const
{
return pageNum_;
}
int DescribeIncrementBackupListResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
int DescribeIncrementBackupListResult::getTotalElements()const
{
return totalElements_;
}
std::vector<std::string> DescribeIncrementBackupListResult::getItems()const
{
return items_;
}
int DescribeIncrementBackupListResult::getTotalPages()const
{
return totalPages_;
}
std::string DescribeIncrementBackupListResult::getErrMessage()const
{
return errMessage_;
}
bool DescribeIncrementBackupListResult::getSuccess()const
{
return success_;
}
std::string DescribeIncrementBackupListResult::getErrCode()const
{
return errCode_;
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/StartBackupPlanRequest.h>
using AlibabaCloud::Dbs::Model::StartBackupPlanRequest;
StartBackupPlanRequest::StartBackupPlanRequest() :
RpcServiceRequest("dbs", "2019-03-06", "StartBackupPlan")
{}
StartBackupPlanRequest::~StartBackupPlanRequest()
{}
std::string StartBackupPlanRequest::getRegionId()const
{
return regionId_;
}
void StartBackupPlanRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string StartBackupPlanRequest::getClientToken()const
{
return clientToken_;
}
void StartBackupPlanRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}
std::string StartBackupPlanRequest::getBackupPlanId()const
{
return backupPlanId_;
}
void StartBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId)
{
backupPlanId_ = backupPlanId;
setCoreParameter("BackupPlanId", backupPlanId);
}
std::string StartBackupPlanRequest::getOwnerId()const
{
return ownerId_;
}
void StartBackupPlanRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/StartBackupPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
StartBackupPlanResult::StartBackupPlanResult() :
ServiceResult()
{}
StartBackupPlanResult::StartBackupPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartBackupPlanResult::~StartBackupPlanResult()
{}
void StartBackupPlanResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["BackupPlanId"].isNull())
backupPlanId_ = value["BackupPlanId"].asString();
}
int StartBackupPlanResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string StartBackupPlanResult::getBackupPlanId()const
{
return backupPlanId_;
}
std::string StartBackupPlanResult::getErrMessage()const
{
return errMessage_;
}
bool StartBackupPlanResult::getSuccess()const
{
return success_;
}
std::string StartBackupPlanResult::getErrCode()const
{
return errCode_;
}

View 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/dbs/model/StopBackupPlanRequest.h>
using AlibabaCloud::Dbs::Model::StopBackupPlanRequest;
StopBackupPlanRequest::StopBackupPlanRequest() :
RpcServiceRequest("dbs", "2019-03-06", "StopBackupPlan")
{}
StopBackupPlanRequest::~StopBackupPlanRequest()
{}
std::string StopBackupPlanRequest::getStopMethod()const
{
return stopMethod_;
}
void StopBackupPlanRequest::setStopMethod(const std::string& stopMethod)
{
stopMethod_ = stopMethod;
setCoreParameter("StopMethod", stopMethod);
}
std::string StopBackupPlanRequest::getRegionId()const
{
return regionId_;
}
void StopBackupPlanRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string StopBackupPlanRequest::getClientToken()const
{
return clientToken_;
}
void StopBackupPlanRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}
std::string StopBackupPlanRequest::getBackupPlanId()const
{
return backupPlanId_;
}
void StopBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId)
{
backupPlanId_ = backupPlanId;
setCoreParameter("BackupPlanId", backupPlanId);
}
std::string StopBackupPlanRequest::getOwnerId()const
{
return ownerId_;
}
void StopBackupPlanRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/StopBackupPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
StopBackupPlanResult::StopBackupPlanResult() :
ServiceResult()
{}
StopBackupPlanResult::StopBackupPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopBackupPlanResult::~StopBackupPlanResult()
{}
void StopBackupPlanResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["BackupPlanId"].isNull())
backupPlanId_ = value["BackupPlanId"].asString();
}
int StopBackupPlanResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string StopBackupPlanResult::getBackupPlanId()const
{
return backupPlanId_;
}
std::string StopBackupPlanResult::getErrMessage()const
{
return errMessage_;
}
bool StopBackupPlanResult::getSuccess()const
{
return success_;
}
std::string StopBackupPlanResult::getErrCode()const
{
return errCode_;
}