Supported ModifyDtsJob and DeleteDtsJob.

This commit is contained in:
sdk-team
2021-04-08 12:33:24 +00:00
parent b4aaee558a
commit 00cc6ef6d2
63 changed files with 4754 additions and 62 deletions

View File

@@ -1,3 +1,6 @@
2021-04-08 Version: 1.36.672
- Supported ModifyDtsJob and DeleteDtsJob.
2021-04-08 Version: 1.36.671 2021-04-08 Version: 1.36.671
- Add DetectIPCVideoObject. - Add DetectIPCVideoObject.

View File

@@ -1 +1 @@
1.36.671 1.36.672

View File

@@ -21,6 +21,8 @@ set(dts_public_header
include/alibabacloud/dts/DtsExport.h ) include/alibabacloud/dts/DtsExport.h )
set(dts_public_header_model set(dts_public_header_model
include/alibabacloud/dts/model/ConfigureDtsJobRequest.h
include/alibabacloud/dts/model/ConfigureDtsJobResult.h
include/alibabacloud/dts/model/ConfigureMigrationJobRequest.h include/alibabacloud/dts/model/ConfigureMigrationJobRequest.h
include/alibabacloud/dts/model/ConfigureMigrationJobResult.h include/alibabacloud/dts/model/ConfigureMigrationJobResult.h
include/alibabacloud/dts/model/ConfigureMigrationJobAlertRequest.h include/alibabacloud/dts/model/ConfigureMigrationJobAlertRequest.h
@@ -37,6 +39,8 @@ set(dts_public_header_model
include/alibabacloud/dts/model/ConfigureSynchronizationJobReplicatorCompareResult.h include/alibabacloud/dts/model/ConfigureSynchronizationJobReplicatorCompareResult.h
include/alibabacloud/dts/model/CreateConsumerGroupRequest.h include/alibabacloud/dts/model/CreateConsumerGroupRequest.h
include/alibabacloud/dts/model/CreateConsumerGroupResult.h include/alibabacloud/dts/model/CreateConsumerGroupResult.h
include/alibabacloud/dts/model/CreateDtsInstanceRequest.h
include/alibabacloud/dts/model/CreateDtsInstanceResult.h
include/alibabacloud/dts/model/CreateMigrationJobRequest.h include/alibabacloud/dts/model/CreateMigrationJobRequest.h
include/alibabacloud/dts/model/CreateMigrationJobResult.h include/alibabacloud/dts/model/CreateMigrationJobResult.h
include/alibabacloud/dts/model/CreateSubscriptionInstanceRequest.h include/alibabacloud/dts/model/CreateSubscriptionInstanceRequest.h
@@ -45,6 +49,8 @@ set(dts_public_header_model
include/alibabacloud/dts/model/CreateSynchronizationJobResult.h include/alibabacloud/dts/model/CreateSynchronizationJobResult.h
include/alibabacloud/dts/model/DeleteConsumerGroupRequest.h include/alibabacloud/dts/model/DeleteConsumerGroupRequest.h
include/alibabacloud/dts/model/DeleteConsumerGroupResult.h include/alibabacloud/dts/model/DeleteConsumerGroupResult.h
include/alibabacloud/dts/model/DeleteDtsJobRequest.h
include/alibabacloud/dts/model/DeleteDtsJobResult.h
include/alibabacloud/dts/model/DeleteMigrationJobRequest.h include/alibabacloud/dts/model/DeleteMigrationJobRequest.h
include/alibabacloud/dts/model/DeleteMigrationJobResult.h include/alibabacloud/dts/model/DeleteMigrationJobResult.h
include/alibabacloud/dts/model/DeleteSubscriptionInstanceRequest.h include/alibabacloud/dts/model/DeleteSubscriptionInstanceRequest.h
@@ -57,6 +63,10 @@ set(dts_public_header_model
include/alibabacloud/dts/model/DescribeConsumerGroupResult.h include/alibabacloud/dts/model/DescribeConsumerGroupResult.h
include/alibabacloud/dts/model/DescribeDTSIPRequest.h include/alibabacloud/dts/model/DescribeDTSIPRequest.h
include/alibabacloud/dts/model/DescribeDTSIPResult.h include/alibabacloud/dts/model/DescribeDTSIPResult.h
include/alibabacloud/dts/model/DescribeDtsJobDetailRequest.h
include/alibabacloud/dts/model/DescribeDtsJobDetailResult.h
include/alibabacloud/dts/model/DescribeDtsJobsRequest.h
include/alibabacloud/dts/model/DescribeDtsJobsResult.h
include/alibabacloud/dts/model/DescribeEndpointSwitchStatusRequest.h include/alibabacloud/dts/model/DescribeEndpointSwitchStatusRequest.h
include/alibabacloud/dts/model/DescribeEndpointSwitchStatusResult.h include/alibabacloud/dts/model/DescribeEndpointSwitchStatusResult.h
include/alibabacloud/dts/model/DescribeInitializationStatusRequest.h include/alibabacloud/dts/model/DescribeInitializationStatusRequest.h
@@ -69,6 +79,8 @@ set(dts_public_header_model
include/alibabacloud/dts/model/DescribeMigrationJobStatusResult.h include/alibabacloud/dts/model/DescribeMigrationJobStatusResult.h
include/alibabacloud/dts/model/DescribeMigrationJobsRequest.h include/alibabacloud/dts/model/DescribeMigrationJobsRequest.h
include/alibabacloud/dts/model/DescribeMigrationJobsResult.h include/alibabacloud/dts/model/DescribeMigrationJobsResult.h
include/alibabacloud/dts/model/DescribePreCheckStatusRequest.h
include/alibabacloud/dts/model/DescribePreCheckStatusResult.h
include/alibabacloud/dts/model/DescribeSubscriptionInstanceAlertRequest.h include/alibabacloud/dts/model/DescribeSubscriptionInstanceAlertRequest.h
include/alibabacloud/dts/model/DescribeSubscriptionInstanceAlertResult.h include/alibabacloud/dts/model/DescribeSubscriptionInstanceAlertResult.h
include/alibabacloud/dts/model/DescribeSubscriptionInstanceStatusRequest.h include/alibabacloud/dts/model/DescribeSubscriptionInstanceStatusRequest.h
@@ -93,22 +105,38 @@ set(dts_public_header_model
include/alibabacloud/dts/model/ModifyConsumerGroupPasswordResult.h include/alibabacloud/dts/model/ModifyConsumerGroupPasswordResult.h
include/alibabacloud/dts/model/ModifyConsumptionTimestampRequest.h include/alibabacloud/dts/model/ModifyConsumptionTimestampRequest.h
include/alibabacloud/dts/model/ModifyConsumptionTimestampResult.h include/alibabacloud/dts/model/ModifyConsumptionTimestampResult.h
include/alibabacloud/dts/model/ModifyDtsJobRequest.h
include/alibabacloud/dts/model/ModifyDtsJobResult.h
include/alibabacloud/dts/model/ModifyDtsJobNameRequest.h
include/alibabacloud/dts/model/ModifyDtsJobNameResult.h
include/alibabacloud/dts/model/ModifyDtsJobPasswordRequest.h
include/alibabacloud/dts/model/ModifyDtsJobPasswordResult.h
include/alibabacloud/dts/model/ModifySubscriptionObjectRequest.h include/alibabacloud/dts/model/ModifySubscriptionObjectRequest.h
include/alibabacloud/dts/model/ModifySubscriptionObjectResult.h include/alibabacloud/dts/model/ModifySubscriptionObjectResult.h
include/alibabacloud/dts/model/ModifySynchronizationObjectRequest.h include/alibabacloud/dts/model/ModifySynchronizationObjectRequest.h
include/alibabacloud/dts/model/ModifySynchronizationObjectResult.h include/alibabacloud/dts/model/ModifySynchronizationObjectResult.h
include/alibabacloud/dts/model/ResetDtsJobRequest.h
include/alibabacloud/dts/model/ResetDtsJobResult.h
include/alibabacloud/dts/model/ResetSynchronizationJobRequest.h include/alibabacloud/dts/model/ResetSynchronizationJobRequest.h
include/alibabacloud/dts/model/ResetSynchronizationJobResult.h include/alibabacloud/dts/model/ResetSynchronizationJobResult.h
include/alibabacloud/dts/model/ShieldPrecheckRequest.h include/alibabacloud/dts/model/ShieldPrecheckRequest.h
include/alibabacloud/dts/model/ShieldPrecheckResult.h include/alibabacloud/dts/model/ShieldPrecheckResult.h
include/alibabacloud/dts/model/SkipPreCheckRequest.h
include/alibabacloud/dts/model/SkipPreCheckResult.h
include/alibabacloud/dts/model/StartDtsJobRequest.h
include/alibabacloud/dts/model/StartDtsJobResult.h
include/alibabacloud/dts/model/StartMigrationJobRequest.h include/alibabacloud/dts/model/StartMigrationJobRequest.h
include/alibabacloud/dts/model/StartMigrationJobResult.h include/alibabacloud/dts/model/StartMigrationJobResult.h
include/alibabacloud/dts/model/StartSubscriptionInstanceRequest.h include/alibabacloud/dts/model/StartSubscriptionInstanceRequest.h
include/alibabacloud/dts/model/StartSubscriptionInstanceResult.h include/alibabacloud/dts/model/StartSubscriptionInstanceResult.h
include/alibabacloud/dts/model/StartSynchronizationJobRequest.h include/alibabacloud/dts/model/StartSynchronizationJobRequest.h
include/alibabacloud/dts/model/StartSynchronizationJobResult.h include/alibabacloud/dts/model/StartSynchronizationJobResult.h
include/alibabacloud/dts/model/StopDtsJobRequest.h
include/alibabacloud/dts/model/StopDtsJobResult.h
include/alibabacloud/dts/model/StopMigrationJobRequest.h include/alibabacloud/dts/model/StopMigrationJobRequest.h
include/alibabacloud/dts/model/StopMigrationJobResult.h include/alibabacloud/dts/model/StopMigrationJobResult.h
include/alibabacloud/dts/model/SuspendDtsJobRequest.h
include/alibabacloud/dts/model/SuspendDtsJobResult.h
include/alibabacloud/dts/model/SuspendMigrationJobRequest.h include/alibabacloud/dts/model/SuspendMigrationJobRequest.h
include/alibabacloud/dts/model/SuspendMigrationJobResult.h include/alibabacloud/dts/model/SuspendMigrationJobResult.h
include/alibabacloud/dts/model/SuspendSynchronizationJobRequest.h include/alibabacloud/dts/model/SuspendSynchronizationJobRequest.h
@@ -122,6 +150,8 @@ set(dts_public_header_model
set(dts_src set(dts_src
src/DtsClient.cc src/DtsClient.cc
src/model/ConfigureDtsJobRequest.cc
src/model/ConfigureDtsJobResult.cc
src/model/ConfigureMigrationJobRequest.cc src/model/ConfigureMigrationJobRequest.cc
src/model/ConfigureMigrationJobResult.cc src/model/ConfigureMigrationJobResult.cc
src/model/ConfigureMigrationJobAlertRequest.cc src/model/ConfigureMigrationJobAlertRequest.cc
@@ -138,6 +168,8 @@ set(dts_src
src/model/ConfigureSynchronizationJobReplicatorCompareResult.cc src/model/ConfigureSynchronizationJobReplicatorCompareResult.cc
src/model/CreateConsumerGroupRequest.cc src/model/CreateConsumerGroupRequest.cc
src/model/CreateConsumerGroupResult.cc src/model/CreateConsumerGroupResult.cc
src/model/CreateDtsInstanceRequest.cc
src/model/CreateDtsInstanceResult.cc
src/model/CreateMigrationJobRequest.cc src/model/CreateMigrationJobRequest.cc
src/model/CreateMigrationJobResult.cc src/model/CreateMigrationJobResult.cc
src/model/CreateSubscriptionInstanceRequest.cc src/model/CreateSubscriptionInstanceRequest.cc
@@ -146,6 +178,8 @@ set(dts_src
src/model/CreateSynchronizationJobResult.cc src/model/CreateSynchronizationJobResult.cc
src/model/DeleteConsumerGroupRequest.cc src/model/DeleteConsumerGroupRequest.cc
src/model/DeleteConsumerGroupResult.cc src/model/DeleteConsumerGroupResult.cc
src/model/DeleteDtsJobRequest.cc
src/model/DeleteDtsJobResult.cc
src/model/DeleteMigrationJobRequest.cc src/model/DeleteMigrationJobRequest.cc
src/model/DeleteMigrationJobResult.cc src/model/DeleteMigrationJobResult.cc
src/model/DeleteSubscriptionInstanceRequest.cc src/model/DeleteSubscriptionInstanceRequest.cc
@@ -158,6 +192,10 @@ set(dts_src
src/model/DescribeConsumerGroupResult.cc src/model/DescribeConsumerGroupResult.cc
src/model/DescribeDTSIPRequest.cc src/model/DescribeDTSIPRequest.cc
src/model/DescribeDTSIPResult.cc src/model/DescribeDTSIPResult.cc
src/model/DescribeDtsJobDetailRequest.cc
src/model/DescribeDtsJobDetailResult.cc
src/model/DescribeDtsJobsRequest.cc
src/model/DescribeDtsJobsResult.cc
src/model/DescribeEndpointSwitchStatusRequest.cc src/model/DescribeEndpointSwitchStatusRequest.cc
src/model/DescribeEndpointSwitchStatusResult.cc src/model/DescribeEndpointSwitchStatusResult.cc
src/model/DescribeInitializationStatusRequest.cc src/model/DescribeInitializationStatusRequest.cc
@@ -170,6 +208,8 @@ set(dts_src
src/model/DescribeMigrationJobStatusResult.cc src/model/DescribeMigrationJobStatusResult.cc
src/model/DescribeMigrationJobsRequest.cc src/model/DescribeMigrationJobsRequest.cc
src/model/DescribeMigrationJobsResult.cc src/model/DescribeMigrationJobsResult.cc
src/model/DescribePreCheckStatusRequest.cc
src/model/DescribePreCheckStatusResult.cc
src/model/DescribeSubscriptionInstanceAlertRequest.cc src/model/DescribeSubscriptionInstanceAlertRequest.cc
src/model/DescribeSubscriptionInstanceAlertResult.cc src/model/DescribeSubscriptionInstanceAlertResult.cc
src/model/DescribeSubscriptionInstanceStatusRequest.cc src/model/DescribeSubscriptionInstanceStatusRequest.cc
@@ -194,22 +234,38 @@ set(dts_src
src/model/ModifyConsumerGroupPasswordResult.cc src/model/ModifyConsumerGroupPasswordResult.cc
src/model/ModifyConsumptionTimestampRequest.cc src/model/ModifyConsumptionTimestampRequest.cc
src/model/ModifyConsumptionTimestampResult.cc src/model/ModifyConsumptionTimestampResult.cc
src/model/ModifyDtsJobRequest.cc
src/model/ModifyDtsJobResult.cc
src/model/ModifyDtsJobNameRequest.cc
src/model/ModifyDtsJobNameResult.cc
src/model/ModifyDtsJobPasswordRequest.cc
src/model/ModifyDtsJobPasswordResult.cc
src/model/ModifySubscriptionObjectRequest.cc src/model/ModifySubscriptionObjectRequest.cc
src/model/ModifySubscriptionObjectResult.cc src/model/ModifySubscriptionObjectResult.cc
src/model/ModifySynchronizationObjectRequest.cc src/model/ModifySynchronizationObjectRequest.cc
src/model/ModifySynchronizationObjectResult.cc src/model/ModifySynchronizationObjectResult.cc
src/model/ResetDtsJobRequest.cc
src/model/ResetDtsJobResult.cc
src/model/ResetSynchronizationJobRequest.cc src/model/ResetSynchronizationJobRequest.cc
src/model/ResetSynchronizationJobResult.cc src/model/ResetSynchronizationJobResult.cc
src/model/ShieldPrecheckRequest.cc src/model/ShieldPrecheckRequest.cc
src/model/ShieldPrecheckResult.cc src/model/ShieldPrecheckResult.cc
src/model/SkipPreCheckRequest.cc
src/model/SkipPreCheckResult.cc
src/model/StartDtsJobRequest.cc
src/model/StartDtsJobResult.cc
src/model/StartMigrationJobRequest.cc src/model/StartMigrationJobRequest.cc
src/model/StartMigrationJobResult.cc src/model/StartMigrationJobResult.cc
src/model/StartSubscriptionInstanceRequest.cc src/model/StartSubscriptionInstanceRequest.cc
src/model/StartSubscriptionInstanceResult.cc src/model/StartSubscriptionInstanceResult.cc
src/model/StartSynchronizationJobRequest.cc src/model/StartSynchronizationJobRequest.cc
src/model/StartSynchronizationJobResult.cc src/model/StartSynchronizationJobResult.cc
src/model/StopDtsJobRequest.cc
src/model/StopDtsJobResult.cc
src/model/StopMigrationJobRequest.cc src/model/StopMigrationJobRequest.cc
src/model/StopMigrationJobResult.cc src/model/StopMigrationJobResult.cc
src/model/SuspendDtsJobRequest.cc
src/model/SuspendDtsJobResult.cc
src/model/SuspendMigrationJobRequest.cc src/model/SuspendMigrationJobRequest.cc
src/model/SuspendMigrationJobResult.cc src/model/SuspendMigrationJobResult.cc
src/model/SuspendSynchronizationJobRequest.cc src/model/SuspendSynchronizationJobRequest.cc

View File

@@ -22,6 +22,8 @@
#include <alibabacloud/core/EndpointProvider.h> #include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h> #include <alibabacloud/core/RpcServiceClient.h>
#include "DtsExport.h" #include "DtsExport.h"
#include "model/ConfigureDtsJobRequest.h"
#include "model/ConfigureDtsJobResult.h"
#include "model/ConfigureMigrationJobRequest.h" #include "model/ConfigureMigrationJobRequest.h"
#include "model/ConfigureMigrationJobResult.h" #include "model/ConfigureMigrationJobResult.h"
#include "model/ConfigureMigrationJobAlertRequest.h" #include "model/ConfigureMigrationJobAlertRequest.h"
@@ -38,6 +40,8 @@
#include "model/ConfigureSynchronizationJobReplicatorCompareResult.h" #include "model/ConfigureSynchronizationJobReplicatorCompareResult.h"
#include "model/CreateConsumerGroupRequest.h" #include "model/CreateConsumerGroupRequest.h"
#include "model/CreateConsumerGroupResult.h" #include "model/CreateConsumerGroupResult.h"
#include "model/CreateDtsInstanceRequest.h"
#include "model/CreateDtsInstanceResult.h"
#include "model/CreateMigrationJobRequest.h" #include "model/CreateMigrationJobRequest.h"
#include "model/CreateMigrationJobResult.h" #include "model/CreateMigrationJobResult.h"
#include "model/CreateSubscriptionInstanceRequest.h" #include "model/CreateSubscriptionInstanceRequest.h"
@@ -46,6 +50,8 @@
#include "model/CreateSynchronizationJobResult.h" #include "model/CreateSynchronizationJobResult.h"
#include "model/DeleteConsumerGroupRequest.h" #include "model/DeleteConsumerGroupRequest.h"
#include "model/DeleteConsumerGroupResult.h" #include "model/DeleteConsumerGroupResult.h"
#include "model/DeleteDtsJobRequest.h"
#include "model/DeleteDtsJobResult.h"
#include "model/DeleteMigrationJobRequest.h" #include "model/DeleteMigrationJobRequest.h"
#include "model/DeleteMigrationJobResult.h" #include "model/DeleteMigrationJobResult.h"
#include "model/DeleteSubscriptionInstanceRequest.h" #include "model/DeleteSubscriptionInstanceRequest.h"
@@ -58,6 +64,10 @@
#include "model/DescribeConsumerGroupResult.h" #include "model/DescribeConsumerGroupResult.h"
#include "model/DescribeDTSIPRequest.h" #include "model/DescribeDTSIPRequest.h"
#include "model/DescribeDTSIPResult.h" #include "model/DescribeDTSIPResult.h"
#include "model/DescribeDtsJobDetailRequest.h"
#include "model/DescribeDtsJobDetailResult.h"
#include "model/DescribeDtsJobsRequest.h"
#include "model/DescribeDtsJobsResult.h"
#include "model/DescribeEndpointSwitchStatusRequest.h" #include "model/DescribeEndpointSwitchStatusRequest.h"
#include "model/DescribeEndpointSwitchStatusResult.h" #include "model/DescribeEndpointSwitchStatusResult.h"
#include "model/DescribeInitializationStatusRequest.h" #include "model/DescribeInitializationStatusRequest.h"
@@ -70,6 +80,8 @@
#include "model/DescribeMigrationJobStatusResult.h" #include "model/DescribeMigrationJobStatusResult.h"
#include "model/DescribeMigrationJobsRequest.h" #include "model/DescribeMigrationJobsRequest.h"
#include "model/DescribeMigrationJobsResult.h" #include "model/DescribeMigrationJobsResult.h"
#include "model/DescribePreCheckStatusRequest.h"
#include "model/DescribePreCheckStatusResult.h"
#include "model/DescribeSubscriptionInstanceAlertRequest.h" #include "model/DescribeSubscriptionInstanceAlertRequest.h"
#include "model/DescribeSubscriptionInstanceAlertResult.h" #include "model/DescribeSubscriptionInstanceAlertResult.h"
#include "model/DescribeSubscriptionInstanceStatusRequest.h" #include "model/DescribeSubscriptionInstanceStatusRequest.h"
@@ -94,22 +106,38 @@
#include "model/ModifyConsumerGroupPasswordResult.h" #include "model/ModifyConsumerGroupPasswordResult.h"
#include "model/ModifyConsumptionTimestampRequest.h" #include "model/ModifyConsumptionTimestampRequest.h"
#include "model/ModifyConsumptionTimestampResult.h" #include "model/ModifyConsumptionTimestampResult.h"
#include "model/ModifyDtsJobRequest.h"
#include "model/ModifyDtsJobResult.h"
#include "model/ModifyDtsJobNameRequest.h"
#include "model/ModifyDtsJobNameResult.h"
#include "model/ModifyDtsJobPasswordRequest.h"
#include "model/ModifyDtsJobPasswordResult.h"
#include "model/ModifySubscriptionObjectRequest.h" #include "model/ModifySubscriptionObjectRequest.h"
#include "model/ModifySubscriptionObjectResult.h" #include "model/ModifySubscriptionObjectResult.h"
#include "model/ModifySynchronizationObjectRequest.h" #include "model/ModifySynchronizationObjectRequest.h"
#include "model/ModifySynchronizationObjectResult.h" #include "model/ModifySynchronizationObjectResult.h"
#include "model/ResetDtsJobRequest.h"
#include "model/ResetDtsJobResult.h"
#include "model/ResetSynchronizationJobRequest.h" #include "model/ResetSynchronizationJobRequest.h"
#include "model/ResetSynchronizationJobResult.h" #include "model/ResetSynchronizationJobResult.h"
#include "model/ShieldPrecheckRequest.h" #include "model/ShieldPrecheckRequest.h"
#include "model/ShieldPrecheckResult.h" #include "model/ShieldPrecheckResult.h"
#include "model/SkipPreCheckRequest.h"
#include "model/SkipPreCheckResult.h"
#include "model/StartDtsJobRequest.h"
#include "model/StartDtsJobResult.h"
#include "model/StartMigrationJobRequest.h" #include "model/StartMigrationJobRequest.h"
#include "model/StartMigrationJobResult.h" #include "model/StartMigrationJobResult.h"
#include "model/StartSubscriptionInstanceRequest.h" #include "model/StartSubscriptionInstanceRequest.h"
#include "model/StartSubscriptionInstanceResult.h" #include "model/StartSubscriptionInstanceResult.h"
#include "model/StartSynchronizationJobRequest.h" #include "model/StartSynchronizationJobRequest.h"
#include "model/StartSynchronizationJobResult.h" #include "model/StartSynchronizationJobResult.h"
#include "model/StopDtsJobRequest.h"
#include "model/StopDtsJobResult.h"
#include "model/StopMigrationJobRequest.h" #include "model/StopMigrationJobRequest.h"
#include "model/StopMigrationJobResult.h" #include "model/StopMigrationJobResult.h"
#include "model/SuspendDtsJobRequest.h"
#include "model/SuspendDtsJobResult.h"
#include "model/SuspendMigrationJobRequest.h" #include "model/SuspendMigrationJobRequest.h"
#include "model/SuspendMigrationJobResult.h" #include "model/SuspendMigrationJobResult.h"
#include "model/SuspendSynchronizationJobRequest.h" #include "model/SuspendSynchronizationJobRequest.h"
@@ -129,6 +157,9 @@ namespace AlibabaCloud
class ALIBABACLOUD_DTS_EXPORT DtsClient : public RpcServiceClient class ALIBABACLOUD_DTS_EXPORT DtsClient : public RpcServiceClient
{ {
public: public:
typedef Outcome<Error, Model::ConfigureDtsJobResult> ConfigureDtsJobOutcome;
typedef std::future<ConfigureDtsJobOutcome> ConfigureDtsJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ConfigureDtsJobRequest&, const ConfigureDtsJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConfigureDtsJobAsyncHandler;
typedef Outcome<Error, Model::ConfigureMigrationJobResult> ConfigureMigrationJobOutcome; typedef Outcome<Error, Model::ConfigureMigrationJobResult> ConfigureMigrationJobOutcome;
typedef std::future<ConfigureMigrationJobOutcome> ConfigureMigrationJobOutcomeCallable; typedef std::future<ConfigureMigrationJobOutcome> ConfigureMigrationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ConfigureMigrationJobRequest&, const ConfigureMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConfigureMigrationJobAsyncHandler; typedef std::function<void(const DtsClient*, const Model::ConfigureMigrationJobRequest&, const ConfigureMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConfigureMigrationJobAsyncHandler;
@@ -153,6 +184,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateConsumerGroupResult> CreateConsumerGroupOutcome; typedef Outcome<Error, Model::CreateConsumerGroupResult> CreateConsumerGroupOutcome;
typedef std::future<CreateConsumerGroupOutcome> CreateConsumerGroupOutcomeCallable; typedef std::future<CreateConsumerGroupOutcome> CreateConsumerGroupOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::CreateConsumerGroupRequest&, const CreateConsumerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateConsumerGroupAsyncHandler; typedef std::function<void(const DtsClient*, const Model::CreateConsumerGroupRequest&, const CreateConsumerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateConsumerGroupAsyncHandler;
typedef Outcome<Error, Model::CreateDtsInstanceResult> CreateDtsInstanceOutcome;
typedef std::future<CreateDtsInstanceOutcome> CreateDtsInstanceOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::CreateDtsInstanceRequest&, const CreateDtsInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDtsInstanceAsyncHandler;
typedef Outcome<Error, Model::CreateMigrationJobResult> CreateMigrationJobOutcome; typedef Outcome<Error, Model::CreateMigrationJobResult> CreateMigrationJobOutcome;
typedef std::future<CreateMigrationJobOutcome> CreateMigrationJobOutcomeCallable; typedef std::future<CreateMigrationJobOutcome> CreateMigrationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::CreateMigrationJobRequest&, const CreateMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMigrationJobAsyncHandler; typedef std::function<void(const DtsClient*, const Model::CreateMigrationJobRequest&, const CreateMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMigrationJobAsyncHandler;
@@ -165,6 +199,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteConsumerGroupResult> DeleteConsumerGroupOutcome; typedef Outcome<Error, Model::DeleteConsumerGroupResult> DeleteConsumerGroupOutcome;
typedef std::future<DeleteConsumerGroupOutcome> DeleteConsumerGroupOutcomeCallable; typedef std::future<DeleteConsumerGroupOutcome> DeleteConsumerGroupOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DeleteConsumerGroupRequest&, const DeleteConsumerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteConsumerGroupAsyncHandler; typedef std::function<void(const DtsClient*, const Model::DeleteConsumerGroupRequest&, const DeleteConsumerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteConsumerGroupAsyncHandler;
typedef Outcome<Error, Model::DeleteDtsJobResult> DeleteDtsJobOutcome;
typedef std::future<DeleteDtsJobOutcome> DeleteDtsJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DeleteDtsJobRequest&, const DeleteDtsJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDtsJobAsyncHandler;
typedef Outcome<Error, Model::DeleteMigrationJobResult> DeleteMigrationJobOutcome; typedef Outcome<Error, Model::DeleteMigrationJobResult> DeleteMigrationJobOutcome;
typedef std::future<DeleteMigrationJobOutcome> DeleteMigrationJobOutcomeCallable; typedef std::future<DeleteMigrationJobOutcome> DeleteMigrationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DeleteMigrationJobRequest&, const DeleteMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMigrationJobAsyncHandler; typedef std::function<void(const DtsClient*, const Model::DeleteMigrationJobRequest&, const DeleteMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMigrationJobAsyncHandler;
@@ -183,6 +220,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDTSIPResult> DescribeDTSIPOutcome; typedef Outcome<Error, Model::DescribeDTSIPResult> DescribeDTSIPOutcome;
typedef std::future<DescribeDTSIPOutcome> DescribeDTSIPOutcomeCallable; typedef std::future<DescribeDTSIPOutcome> DescribeDTSIPOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DescribeDTSIPRequest&, const DescribeDTSIPOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDTSIPAsyncHandler; typedef std::function<void(const DtsClient*, const Model::DescribeDTSIPRequest&, const DescribeDTSIPOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDTSIPAsyncHandler;
typedef Outcome<Error, Model::DescribeDtsJobDetailResult> DescribeDtsJobDetailOutcome;
typedef std::future<DescribeDtsJobDetailOutcome> DescribeDtsJobDetailOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DescribeDtsJobDetailRequest&, const DescribeDtsJobDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDtsJobDetailAsyncHandler;
typedef Outcome<Error, Model::DescribeDtsJobsResult> DescribeDtsJobsOutcome;
typedef std::future<DescribeDtsJobsOutcome> DescribeDtsJobsOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DescribeDtsJobsRequest&, const DescribeDtsJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDtsJobsAsyncHandler;
typedef Outcome<Error, Model::DescribeEndpointSwitchStatusResult> DescribeEndpointSwitchStatusOutcome; typedef Outcome<Error, Model::DescribeEndpointSwitchStatusResult> DescribeEndpointSwitchStatusOutcome;
typedef std::future<DescribeEndpointSwitchStatusOutcome> DescribeEndpointSwitchStatusOutcomeCallable; typedef std::future<DescribeEndpointSwitchStatusOutcome> DescribeEndpointSwitchStatusOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DescribeEndpointSwitchStatusRequest&, const DescribeEndpointSwitchStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEndpointSwitchStatusAsyncHandler; typedef std::function<void(const DtsClient*, const Model::DescribeEndpointSwitchStatusRequest&, const DescribeEndpointSwitchStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEndpointSwitchStatusAsyncHandler;
@@ -201,6 +244,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeMigrationJobsResult> DescribeMigrationJobsOutcome; typedef Outcome<Error, Model::DescribeMigrationJobsResult> DescribeMigrationJobsOutcome;
typedef std::future<DescribeMigrationJobsOutcome> DescribeMigrationJobsOutcomeCallable; typedef std::future<DescribeMigrationJobsOutcome> DescribeMigrationJobsOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DescribeMigrationJobsRequest&, const DescribeMigrationJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMigrationJobsAsyncHandler; typedef std::function<void(const DtsClient*, const Model::DescribeMigrationJobsRequest&, const DescribeMigrationJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMigrationJobsAsyncHandler;
typedef Outcome<Error, Model::DescribePreCheckStatusResult> DescribePreCheckStatusOutcome;
typedef std::future<DescribePreCheckStatusOutcome> DescribePreCheckStatusOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DescribePreCheckStatusRequest&, const DescribePreCheckStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePreCheckStatusAsyncHandler;
typedef Outcome<Error, Model::DescribeSubscriptionInstanceAlertResult> DescribeSubscriptionInstanceAlertOutcome; typedef Outcome<Error, Model::DescribeSubscriptionInstanceAlertResult> DescribeSubscriptionInstanceAlertOutcome;
typedef std::future<DescribeSubscriptionInstanceAlertOutcome> DescribeSubscriptionInstanceAlertOutcomeCallable; typedef std::future<DescribeSubscriptionInstanceAlertOutcome> DescribeSubscriptionInstanceAlertOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DescribeSubscriptionInstanceAlertRequest&, const DescribeSubscriptionInstanceAlertOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSubscriptionInstanceAlertAsyncHandler; typedef std::function<void(const DtsClient*, const Model::DescribeSubscriptionInstanceAlertRequest&, const DescribeSubscriptionInstanceAlertOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSubscriptionInstanceAlertAsyncHandler;
@@ -237,18 +283,36 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyConsumptionTimestampResult> ModifyConsumptionTimestampOutcome; typedef Outcome<Error, Model::ModifyConsumptionTimestampResult> ModifyConsumptionTimestampOutcome;
typedef std::future<ModifyConsumptionTimestampOutcome> ModifyConsumptionTimestampOutcomeCallable; typedef std::future<ModifyConsumptionTimestampOutcome> ModifyConsumptionTimestampOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ModifyConsumptionTimestampRequest&, const ModifyConsumptionTimestampOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyConsumptionTimestampAsyncHandler; typedef std::function<void(const DtsClient*, const Model::ModifyConsumptionTimestampRequest&, const ModifyConsumptionTimestampOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyConsumptionTimestampAsyncHandler;
typedef Outcome<Error, Model::ModifyDtsJobResult> ModifyDtsJobOutcome;
typedef std::future<ModifyDtsJobOutcome> ModifyDtsJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ModifyDtsJobRequest&, const ModifyDtsJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDtsJobAsyncHandler;
typedef Outcome<Error, Model::ModifyDtsJobNameResult> ModifyDtsJobNameOutcome;
typedef std::future<ModifyDtsJobNameOutcome> ModifyDtsJobNameOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ModifyDtsJobNameRequest&, const ModifyDtsJobNameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDtsJobNameAsyncHandler;
typedef Outcome<Error, Model::ModifyDtsJobPasswordResult> ModifyDtsJobPasswordOutcome;
typedef std::future<ModifyDtsJobPasswordOutcome> ModifyDtsJobPasswordOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ModifyDtsJobPasswordRequest&, const ModifyDtsJobPasswordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDtsJobPasswordAsyncHandler;
typedef Outcome<Error, Model::ModifySubscriptionObjectResult> ModifySubscriptionObjectOutcome; typedef Outcome<Error, Model::ModifySubscriptionObjectResult> ModifySubscriptionObjectOutcome;
typedef std::future<ModifySubscriptionObjectOutcome> ModifySubscriptionObjectOutcomeCallable; typedef std::future<ModifySubscriptionObjectOutcome> ModifySubscriptionObjectOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ModifySubscriptionObjectRequest&, const ModifySubscriptionObjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySubscriptionObjectAsyncHandler; typedef std::function<void(const DtsClient*, const Model::ModifySubscriptionObjectRequest&, const ModifySubscriptionObjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySubscriptionObjectAsyncHandler;
typedef Outcome<Error, Model::ModifySynchronizationObjectResult> ModifySynchronizationObjectOutcome; typedef Outcome<Error, Model::ModifySynchronizationObjectResult> ModifySynchronizationObjectOutcome;
typedef std::future<ModifySynchronizationObjectOutcome> ModifySynchronizationObjectOutcomeCallable; typedef std::future<ModifySynchronizationObjectOutcome> ModifySynchronizationObjectOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ModifySynchronizationObjectRequest&, const ModifySynchronizationObjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySynchronizationObjectAsyncHandler; typedef std::function<void(const DtsClient*, const Model::ModifySynchronizationObjectRequest&, const ModifySynchronizationObjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySynchronizationObjectAsyncHandler;
typedef Outcome<Error, Model::ResetDtsJobResult> ResetDtsJobOutcome;
typedef std::future<ResetDtsJobOutcome> ResetDtsJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ResetDtsJobRequest&, const ResetDtsJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetDtsJobAsyncHandler;
typedef Outcome<Error, Model::ResetSynchronizationJobResult> ResetSynchronizationJobOutcome; typedef Outcome<Error, Model::ResetSynchronizationJobResult> ResetSynchronizationJobOutcome;
typedef std::future<ResetSynchronizationJobOutcome> ResetSynchronizationJobOutcomeCallable; typedef std::future<ResetSynchronizationJobOutcome> ResetSynchronizationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ResetSynchronizationJobRequest&, const ResetSynchronizationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetSynchronizationJobAsyncHandler; typedef std::function<void(const DtsClient*, const Model::ResetSynchronizationJobRequest&, const ResetSynchronizationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetSynchronizationJobAsyncHandler;
typedef Outcome<Error, Model::ShieldPrecheckResult> ShieldPrecheckOutcome; typedef Outcome<Error, Model::ShieldPrecheckResult> ShieldPrecheckOutcome;
typedef std::future<ShieldPrecheckOutcome> ShieldPrecheckOutcomeCallable; typedef std::future<ShieldPrecheckOutcome> ShieldPrecheckOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ShieldPrecheckRequest&, const ShieldPrecheckOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ShieldPrecheckAsyncHandler; typedef std::function<void(const DtsClient*, const Model::ShieldPrecheckRequest&, const ShieldPrecheckOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ShieldPrecheckAsyncHandler;
typedef Outcome<Error, Model::SkipPreCheckResult> SkipPreCheckOutcome;
typedef std::future<SkipPreCheckOutcome> SkipPreCheckOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::SkipPreCheckRequest&, const SkipPreCheckOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SkipPreCheckAsyncHandler;
typedef Outcome<Error, Model::StartDtsJobResult> StartDtsJobOutcome;
typedef std::future<StartDtsJobOutcome> StartDtsJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::StartDtsJobRequest&, const StartDtsJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartDtsJobAsyncHandler;
typedef Outcome<Error, Model::StartMigrationJobResult> StartMigrationJobOutcome; typedef Outcome<Error, Model::StartMigrationJobResult> StartMigrationJobOutcome;
typedef std::future<StartMigrationJobOutcome> StartMigrationJobOutcomeCallable; typedef std::future<StartMigrationJobOutcome> StartMigrationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::StartMigrationJobRequest&, const StartMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartMigrationJobAsyncHandler; typedef std::function<void(const DtsClient*, const Model::StartMigrationJobRequest&, const StartMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartMigrationJobAsyncHandler;
@@ -258,9 +322,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::StartSynchronizationJobResult> StartSynchronizationJobOutcome; typedef Outcome<Error, Model::StartSynchronizationJobResult> StartSynchronizationJobOutcome;
typedef std::future<StartSynchronizationJobOutcome> StartSynchronizationJobOutcomeCallable; typedef std::future<StartSynchronizationJobOutcome> StartSynchronizationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::StartSynchronizationJobRequest&, const StartSynchronizationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartSynchronizationJobAsyncHandler; typedef std::function<void(const DtsClient*, const Model::StartSynchronizationJobRequest&, const StartSynchronizationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartSynchronizationJobAsyncHandler;
typedef Outcome<Error, Model::StopDtsJobResult> StopDtsJobOutcome;
typedef std::future<StopDtsJobOutcome> StopDtsJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::StopDtsJobRequest&, const StopDtsJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopDtsJobAsyncHandler;
typedef Outcome<Error, Model::StopMigrationJobResult> StopMigrationJobOutcome; typedef Outcome<Error, Model::StopMigrationJobResult> StopMigrationJobOutcome;
typedef std::future<StopMigrationJobOutcome> StopMigrationJobOutcomeCallable; typedef std::future<StopMigrationJobOutcome> StopMigrationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::StopMigrationJobRequest&, const StopMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopMigrationJobAsyncHandler; typedef std::function<void(const DtsClient*, const Model::StopMigrationJobRequest&, const StopMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopMigrationJobAsyncHandler;
typedef Outcome<Error, Model::SuspendDtsJobResult> SuspendDtsJobOutcome;
typedef std::future<SuspendDtsJobOutcome> SuspendDtsJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::SuspendDtsJobRequest&, const SuspendDtsJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SuspendDtsJobAsyncHandler;
typedef Outcome<Error, Model::SuspendMigrationJobResult> SuspendMigrationJobOutcome; typedef Outcome<Error, Model::SuspendMigrationJobResult> SuspendMigrationJobOutcome;
typedef std::future<SuspendMigrationJobOutcome> SuspendMigrationJobOutcomeCallable; typedef std::future<SuspendMigrationJobOutcome> SuspendMigrationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::SuspendMigrationJobRequest&, const SuspendMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SuspendMigrationJobAsyncHandler; typedef std::function<void(const DtsClient*, const Model::SuspendMigrationJobRequest&, const SuspendMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SuspendMigrationJobAsyncHandler;
@@ -281,6 +351,9 @@ namespace AlibabaCloud
DtsClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration); DtsClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
DtsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); DtsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~DtsClient(); ~DtsClient();
ConfigureDtsJobOutcome configureDtsJob(const Model::ConfigureDtsJobRequest &request)const;
void configureDtsJobAsync(const Model::ConfigureDtsJobRequest& request, const ConfigureDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ConfigureDtsJobOutcomeCallable configureDtsJobCallable(const Model::ConfigureDtsJobRequest& request) const;
ConfigureMigrationJobOutcome configureMigrationJob(const Model::ConfigureMigrationJobRequest &request)const; ConfigureMigrationJobOutcome configureMigrationJob(const Model::ConfigureMigrationJobRequest &request)const;
void configureMigrationJobAsync(const Model::ConfigureMigrationJobRequest& request, const ConfigureMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void configureMigrationJobAsync(const Model::ConfigureMigrationJobRequest& request, const ConfigureMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ConfigureMigrationJobOutcomeCallable configureMigrationJobCallable(const Model::ConfigureMigrationJobRequest& request) const; ConfigureMigrationJobOutcomeCallable configureMigrationJobCallable(const Model::ConfigureMigrationJobRequest& request) const;
@@ -305,6 +378,9 @@ namespace AlibabaCloud
CreateConsumerGroupOutcome createConsumerGroup(const Model::CreateConsumerGroupRequest &request)const; CreateConsumerGroupOutcome createConsumerGroup(const Model::CreateConsumerGroupRequest &request)const;
void createConsumerGroupAsync(const Model::CreateConsumerGroupRequest& request, const CreateConsumerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void createConsumerGroupAsync(const Model::CreateConsumerGroupRequest& request, const CreateConsumerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateConsumerGroupOutcomeCallable createConsumerGroupCallable(const Model::CreateConsumerGroupRequest& request) const; CreateConsumerGroupOutcomeCallable createConsumerGroupCallable(const Model::CreateConsumerGroupRequest& request) const;
CreateDtsInstanceOutcome createDtsInstance(const Model::CreateDtsInstanceRequest &request)const;
void createDtsInstanceAsync(const Model::CreateDtsInstanceRequest& request, const CreateDtsInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDtsInstanceOutcomeCallable createDtsInstanceCallable(const Model::CreateDtsInstanceRequest& request) const;
CreateMigrationJobOutcome createMigrationJob(const Model::CreateMigrationJobRequest &request)const; CreateMigrationJobOutcome createMigrationJob(const Model::CreateMigrationJobRequest &request)const;
void createMigrationJobAsync(const Model::CreateMigrationJobRequest& request, const CreateMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void createMigrationJobAsync(const Model::CreateMigrationJobRequest& request, const CreateMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateMigrationJobOutcomeCallable createMigrationJobCallable(const Model::CreateMigrationJobRequest& request) const; CreateMigrationJobOutcomeCallable createMigrationJobCallable(const Model::CreateMigrationJobRequest& request) const;
@@ -317,6 +393,9 @@ namespace AlibabaCloud
DeleteConsumerGroupOutcome deleteConsumerGroup(const Model::DeleteConsumerGroupRequest &request)const; DeleteConsumerGroupOutcome deleteConsumerGroup(const Model::DeleteConsumerGroupRequest &request)const;
void deleteConsumerGroupAsync(const Model::DeleteConsumerGroupRequest& request, const DeleteConsumerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void deleteConsumerGroupAsync(const Model::DeleteConsumerGroupRequest& request, const DeleteConsumerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteConsumerGroupOutcomeCallable deleteConsumerGroupCallable(const Model::DeleteConsumerGroupRequest& request) const; DeleteConsumerGroupOutcomeCallable deleteConsumerGroupCallable(const Model::DeleteConsumerGroupRequest& request) const;
DeleteDtsJobOutcome deleteDtsJob(const Model::DeleteDtsJobRequest &request)const;
void deleteDtsJobAsync(const Model::DeleteDtsJobRequest& request, const DeleteDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDtsJobOutcomeCallable deleteDtsJobCallable(const Model::DeleteDtsJobRequest& request) const;
DeleteMigrationJobOutcome deleteMigrationJob(const Model::DeleteMigrationJobRequest &request)const; DeleteMigrationJobOutcome deleteMigrationJob(const Model::DeleteMigrationJobRequest &request)const;
void deleteMigrationJobAsync(const Model::DeleteMigrationJobRequest& request, const DeleteMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void deleteMigrationJobAsync(const Model::DeleteMigrationJobRequest& request, const DeleteMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteMigrationJobOutcomeCallable deleteMigrationJobCallable(const Model::DeleteMigrationJobRequest& request) const; DeleteMigrationJobOutcomeCallable deleteMigrationJobCallable(const Model::DeleteMigrationJobRequest& request) const;
@@ -335,6 +414,12 @@ namespace AlibabaCloud
DescribeDTSIPOutcome describeDTSIP(const Model::DescribeDTSIPRequest &request)const; DescribeDTSIPOutcome describeDTSIP(const Model::DescribeDTSIPRequest &request)const;
void describeDTSIPAsync(const Model::DescribeDTSIPRequest& request, const DescribeDTSIPAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void describeDTSIPAsync(const Model::DescribeDTSIPRequest& request, const DescribeDTSIPAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDTSIPOutcomeCallable describeDTSIPCallable(const Model::DescribeDTSIPRequest& request) const; DescribeDTSIPOutcomeCallable describeDTSIPCallable(const Model::DescribeDTSIPRequest& request) const;
DescribeDtsJobDetailOutcome describeDtsJobDetail(const Model::DescribeDtsJobDetailRequest &request)const;
void describeDtsJobDetailAsync(const Model::DescribeDtsJobDetailRequest& request, const DescribeDtsJobDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDtsJobDetailOutcomeCallable describeDtsJobDetailCallable(const Model::DescribeDtsJobDetailRequest& request) const;
DescribeDtsJobsOutcome describeDtsJobs(const Model::DescribeDtsJobsRequest &request)const;
void describeDtsJobsAsync(const Model::DescribeDtsJobsRequest& request, const DescribeDtsJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDtsJobsOutcomeCallable describeDtsJobsCallable(const Model::DescribeDtsJobsRequest& request) const;
DescribeEndpointSwitchStatusOutcome describeEndpointSwitchStatus(const Model::DescribeEndpointSwitchStatusRequest &request)const; DescribeEndpointSwitchStatusOutcome describeEndpointSwitchStatus(const Model::DescribeEndpointSwitchStatusRequest &request)const;
void describeEndpointSwitchStatusAsync(const Model::DescribeEndpointSwitchStatusRequest& request, const DescribeEndpointSwitchStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void describeEndpointSwitchStatusAsync(const Model::DescribeEndpointSwitchStatusRequest& request, const DescribeEndpointSwitchStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeEndpointSwitchStatusOutcomeCallable describeEndpointSwitchStatusCallable(const Model::DescribeEndpointSwitchStatusRequest& request) const; DescribeEndpointSwitchStatusOutcomeCallable describeEndpointSwitchStatusCallable(const Model::DescribeEndpointSwitchStatusRequest& request) const;
@@ -353,6 +438,9 @@ namespace AlibabaCloud
DescribeMigrationJobsOutcome describeMigrationJobs(const Model::DescribeMigrationJobsRequest &request)const; DescribeMigrationJobsOutcome describeMigrationJobs(const Model::DescribeMigrationJobsRequest &request)const;
void describeMigrationJobsAsync(const Model::DescribeMigrationJobsRequest& request, const DescribeMigrationJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void describeMigrationJobsAsync(const Model::DescribeMigrationJobsRequest& request, const DescribeMigrationJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeMigrationJobsOutcomeCallable describeMigrationJobsCallable(const Model::DescribeMigrationJobsRequest& request) const; DescribeMigrationJobsOutcomeCallable describeMigrationJobsCallable(const Model::DescribeMigrationJobsRequest& request) const;
DescribePreCheckStatusOutcome describePreCheckStatus(const Model::DescribePreCheckStatusRequest &request)const;
void describePreCheckStatusAsync(const Model::DescribePreCheckStatusRequest& request, const DescribePreCheckStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribePreCheckStatusOutcomeCallable describePreCheckStatusCallable(const Model::DescribePreCheckStatusRequest& request) const;
DescribeSubscriptionInstanceAlertOutcome describeSubscriptionInstanceAlert(const Model::DescribeSubscriptionInstanceAlertRequest &request)const; DescribeSubscriptionInstanceAlertOutcome describeSubscriptionInstanceAlert(const Model::DescribeSubscriptionInstanceAlertRequest &request)const;
void describeSubscriptionInstanceAlertAsync(const Model::DescribeSubscriptionInstanceAlertRequest& request, const DescribeSubscriptionInstanceAlertAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void describeSubscriptionInstanceAlertAsync(const Model::DescribeSubscriptionInstanceAlertRequest& request, const DescribeSubscriptionInstanceAlertAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSubscriptionInstanceAlertOutcomeCallable describeSubscriptionInstanceAlertCallable(const Model::DescribeSubscriptionInstanceAlertRequest& request) const; DescribeSubscriptionInstanceAlertOutcomeCallable describeSubscriptionInstanceAlertCallable(const Model::DescribeSubscriptionInstanceAlertRequest& request) const;
@@ -389,18 +477,36 @@ namespace AlibabaCloud
ModifyConsumptionTimestampOutcome modifyConsumptionTimestamp(const Model::ModifyConsumptionTimestampRequest &request)const; ModifyConsumptionTimestampOutcome modifyConsumptionTimestamp(const Model::ModifyConsumptionTimestampRequest &request)const;
void modifyConsumptionTimestampAsync(const Model::ModifyConsumptionTimestampRequest& request, const ModifyConsumptionTimestampAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void modifyConsumptionTimestampAsync(const Model::ModifyConsumptionTimestampRequest& request, const ModifyConsumptionTimestampAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyConsumptionTimestampOutcomeCallable modifyConsumptionTimestampCallable(const Model::ModifyConsumptionTimestampRequest& request) const; ModifyConsumptionTimestampOutcomeCallable modifyConsumptionTimestampCallable(const Model::ModifyConsumptionTimestampRequest& request) const;
ModifyDtsJobOutcome modifyDtsJob(const Model::ModifyDtsJobRequest &request)const;
void modifyDtsJobAsync(const Model::ModifyDtsJobRequest& request, const ModifyDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDtsJobOutcomeCallable modifyDtsJobCallable(const Model::ModifyDtsJobRequest& request) const;
ModifyDtsJobNameOutcome modifyDtsJobName(const Model::ModifyDtsJobNameRequest &request)const;
void modifyDtsJobNameAsync(const Model::ModifyDtsJobNameRequest& request, const ModifyDtsJobNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDtsJobNameOutcomeCallable modifyDtsJobNameCallable(const Model::ModifyDtsJobNameRequest& request) const;
ModifyDtsJobPasswordOutcome modifyDtsJobPassword(const Model::ModifyDtsJobPasswordRequest &request)const;
void modifyDtsJobPasswordAsync(const Model::ModifyDtsJobPasswordRequest& request, const ModifyDtsJobPasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDtsJobPasswordOutcomeCallable modifyDtsJobPasswordCallable(const Model::ModifyDtsJobPasswordRequest& request) const;
ModifySubscriptionObjectOutcome modifySubscriptionObject(const Model::ModifySubscriptionObjectRequest &request)const; ModifySubscriptionObjectOutcome modifySubscriptionObject(const Model::ModifySubscriptionObjectRequest &request)const;
void modifySubscriptionObjectAsync(const Model::ModifySubscriptionObjectRequest& request, const ModifySubscriptionObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void modifySubscriptionObjectAsync(const Model::ModifySubscriptionObjectRequest& request, const ModifySubscriptionObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifySubscriptionObjectOutcomeCallable modifySubscriptionObjectCallable(const Model::ModifySubscriptionObjectRequest& request) const; ModifySubscriptionObjectOutcomeCallable modifySubscriptionObjectCallable(const Model::ModifySubscriptionObjectRequest& request) const;
ModifySynchronizationObjectOutcome modifySynchronizationObject(const Model::ModifySynchronizationObjectRequest &request)const; ModifySynchronizationObjectOutcome modifySynchronizationObject(const Model::ModifySynchronizationObjectRequest &request)const;
void modifySynchronizationObjectAsync(const Model::ModifySynchronizationObjectRequest& request, const ModifySynchronizationObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void modifySynchronizationObjectAsync(const Model::ModifySynchronizationObjectRequest& request, const ModifySynchronizationObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifySynchronizationObjectOutcomeCallable modifySynchronizationObjectCallable(const Model::ModifySynchronizationObjectRequest& request) const; ModifySynchronizationObjectOutcomeCallable modifySynchronizationObjectCallable(const Model::ModifySynchronizationObjectRequest& request) const;
ResetDtsJobOutcome resetDtsJob(const Model::ResetDtsJobRequest &request)const;
void resetDtsJobAsync(const Model::ResetDtsJobRequest& request, const ResetDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ResetDtsJobOutcomeCallable resetDtsJobCallable(const Model::ResetDtsJobRequest& request) const;
ResetSynchronizationJobOutcome resetSynchronizationJob(const Model::ResetSynchronizationJobRequest &request)const; ResetSynchronizationJobOutcome resetSynchronizationJob(const Model::ResetSynchronizationJobRequest &request)const;
void resetSynchronizationJobAsync(const Model::ResetSynchronizationJobRequest& request, const ResetSynchronizationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void resetSynchronizationJobAsync(const Model::ResetSynchronizationJobRequest& request, const ResetSynchronizationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ResetSynchronizationJobOutcomeCallable resetSynchronizationJobCallable(const Model::ResetSynchronizationJobRequest& request) const; ResetSynchronizationJobOutcomeCallable resetSynchronizationJobCallable(const Model::ResetSynchronizationJobRequest& request) const;
ShieldPrecheckOutcome shieldPrecheck(const Model::ShieldPrecheckRequest &request)const; ShieldPrecheckOutcome shieldPrecheck(const Model::ShieldPrecheckRequest &request)const;
void shieldPrecheckAsync(const Model::ShieldPrecheckRequest& request, const ShieldPrecheckAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void shieldPrecheckAsync(const Model::ShieldPrecheckRequest& request, const ShieldPrecheckAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ShieldPrecheckOutcomeCallable shieldPrecheckCallable(const Model::ShieldPrecheckRequest& request) const; ShieldPrecheckOutcomeCallable shieldPrecheckCallable(const Model::ShieldPrecheckRequest& request) const;
SkipPreCheckOutcome skipPreCheck(const Model::SkipPreCheckRequest &request)const;
void skipPreCheckAsync(const Model::SkipPreCheckRequest& request, const SkipPreCheckAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SkipPreCheckOutcomeCallable skipPreCheckCallable(const Model::SkipPreCheckRequest& request) const;
StartDtsJobOutcome startDtsJob(const Model::StartDtsJobRequest &request)const;
void startDtsJobAsync(const Model::StartDtsJobRequest& request, const StartDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartDtsJobOutcomeCallable startDtsJobCallable(const Model::StartDtsJobRequest& request) const;
StartMigrationJobOutcome startMigrationJob(const Model::StartMigrationJobRequest &request)const; StartMigrationJobOutcome startMigrationJob(const Model::StartMigrationJobRequest &request)const;
void startMigrationJobAsync(const Model::StartMigrationJobRequest& request, const StartMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void startMigrationJobAsync(const Model::StartMigrationJobRequest& request, const StartMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartMigrationJobOutcomeCallable startMigrationJobCallable(const Model::StartMigrationJobRequest& request) const; StartMigrationJobOutcomeCallable startMigrationJobCallable(const Model::StartMigrationJobRequest& request) const;
@@ -410,9 +516,15 @@ namespace AlibabaCloud
StartSynchronizationJobOutcome startSynchronizationJob(const Model::StartSynchronizationJobRequest &request)const; StartSynchronizationJobOutcome startSynchronizationJob(const Model::StartSynchronizationJobRequest &request)const;
void startSynchronizationJobAsync(const Model::StartSynchronizationJobRequest& request, const StartSynchronizationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void startSynchronizationJobAsync(const Model::StartSynchronizationJobRequest& request, const StartSynchronizationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartSynchronizationJobOutcomeCallable startSynchronizationJobCallable(const Model::StartSynchronizationJobRequest& request) const; StartSynchronizationJobOutcomeCallable startSynchronizationJobCallable(const Model::StartSynchronizationJobRequest& request) const;
StopDtsJobOutcome stopDtsJob(const Model::StopDtsJobRequest &request)const;
void stopDtsJobAsync(const Model::StopDtsJobRequest& request, const StopDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopDtsJobOutcomeCallable stopDtsJobCallable(const Model::StopDtsJobRequest& request) const;
StopMigrationJobOutcome stopMigrationJob(const Model::StopMigrationJobRequest &request)const; StopMigrationJobOutcome stopMigrationJob(const Model::StopMigrationJobRequest &request)const;
void stopMigrationJobAsync(const Model::StopMigrationJobRequest& request, const StopMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void stopMigrationJobAsync(const Model::StopMigrationJobRequest& request, const StopMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopMigrationJobOutcomeCallable stopMigrationJobCallable(const Model::StopMigrationJobRequest& request) const; StopMigrationJobOutcomeCallable stopMigrationJobCallable(const Model::StopMigrationJobRequest& request) const;
SuspendDtsJobOutcome suspendDtsJob(const Model::SuspendDtsJobRequest &request)const;
void suspendDtsJobAsync(const Model::SuspendDtsJobRequest& request, const SuspendDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SuspendDtsJobOutcomeCallable suspendDtsJobCallable(const Model::SuspendDtsJobRequest& request) const;
SuspendMigrationJobOutcome suspendMigrationJob(const Model::SuspendMigrationJobRequest &request)const; SuspendMigrationJobOutcome suspendMigrationJob(const Model::SuspendMigrationJobRequest &request)const;
void suspendMigrationJobAsync(const Model::SuspendMigrationJobRequest& request, const SuspendMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void suspendMigrationJobAsync(const Model::SuspendMigrationJobRequest& request, const SuspendMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SuspendMigrationJobOutcomeCallable suspendMigrationJobCallable(const Model::SuspendMigrationJobRequest& request) const; SuspendMigrationJobOutcomeCallable suspendMigrationJobCallable(const Model::SuspendMigrationJobRequest& request) const;

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT DeleteDtsJobRequest : public RpcServiceRequest
{
public:
DeleteDtsJobRequest();
~DeleteDtsJobRequest();
std::string getDtsJobId()const;
void setDtsJobId(const std::string& dtsJobId);
std::string getDtsInstanceId()const;
void setDtsInstanceId(const std::string& dtsInstanceId);
std::string getSynchronizationDirection()const;
void setSynchronizationDirection(const std::string& synchronizationDirection);
private:
std::string dtsJobId_;
std::string dtsInstanceId_;
std::string synchronizationDirection_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBREQUEST_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_DTS_MODEL_DELETEDTSJOBRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT DeleteDtsJobResult : public ServiceResult
{
public:
DeleteDtsJobResult();
explicit DeleteDtsJobResult(const std::string &payload);
~DeleteDtsJobResult();
int getHttpStatusCode()const;
std::string getDynamicCode()const;
std::string getDynamicMessage()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int httpStatusCode_;
std::string dynamicCode_;
std::string dynamicMessage_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBRESULT_H_

View File

@@ -53,10 +53,10 @@ namespace AlibabaCloud
void setSourceEndpointIP(const std::string& sourceEndpointIP); void setSourceEndpointIP(const std::string& sourceEndpointIP);
std::string getDestinationEndpointUserName()const; std::string getDestinationEndpointUserName()const;
void setDestinationEndpointUserName(const std::string& destinationEndpointUserName); void setDestinationEndpointUserName(const std::string& destinationEndpointUserName);
bool getDestinationEndpointArchitecture()const; std::string getDestinationEndpointArchitecture()const;
void setDestinationEndpointArchitecture(bool destinationEndpointArchitecture); void setDestinationEndpointArchitecture(const std::string& destinationEndpointArchitecture);
bool getDestinationEndpointOracleSID()const; std::string getDestinationEndpointOracleSID()const;
void setDestinationEndpointOracleSID(bool destinationEndpointOracleSID); void setDestinationEndpointOracleSID(const std::string& destinationEndpointOracleSID);
std::string getDestinationEndpointEngineName()const; std::string getDestinationEndpointEngineName()const;
void setDestinationEndpointEngineName(const std::string& destinationEndpointEngineName); void setDestinationEndpointEngineName(const std::string& destinationEndpointEngineName);
std::string getDestinationEndpointInstanceID()const; std::string getDestinationEndpointInstanceID()const;
@@ -90,8 +90,8 @@ namespace AlibabaCloud
std::string destinationEndpointRegion_; std::string destinationEndpointRegion_;
std::string sourceEndpointIP_; std::string sourceEndpointIP_;
std::string destinationEndpointUserName_; std::string destinationEndpointUserName_;
bool destinationEndpointArchitecture_; std::string destinationEndpointArchitecture_;
bool destinationEndpointOracleSID_; std::string destinationEndpointOracleSID_;
std::string destinationEndpointEngineName_; std::string destinationEndpointEngineName_;
std::string destinationEndpointInstanceID_; std::string destinationEndpointInstanceID_;
std::string destinationEndpointPort_; std::string destinationEndpointPort_;

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBDETAILREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBDETAILREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT DescribeDtsJobDetailRequest : public RpcServiceRequest
{
public:
DescribeDtsJobDetailRequest();
~DescribeDtsJobDetailRequest();
std::string getDtsJobId()const;
void setDtsJobId(const std::string& dtsJobId);
private:
std::string dtsJobId_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBDETAILREQUEST_H_

View File

@@ -0,0 +1,131 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_DTS_MODEL_DESCRIBEDTSJOBDETAILRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBDETAILRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT DescribeDtsJobDetailResult : public ServiceResult
{
public:
struct SourceEndpoint
{
std::string oracleSID;
std::string roleName;
std::string userName;
std::string instanceID;
std::string sslSolutionEnum;
std::string ip;
std::string port;
std::string aliyunUid;
std::string databaseName;
std::string region;
std::string instanceType;
std::string engineName;
};
struct DestinationEndpoint
{
std::string oracleSID;
std::string userName;
std::string instanceID;
std::string sslSolutionEnum;
std::string ip;
std::string port;
std::string databaseName;
std::string region;
std::string instanceType;
std::string engineName;
};
struct MigrationMode
{
bool dataInitialization;
bool dataSynchronization;
bool structureInitialization;
};
DescribeDtsJobDetailResult();
explicit DescribeDtsJobDetailResult(const std::string &payload);
~DescribeDtsJobDetailResult();
std::string getStatus()const;
std::string getDbObject()const;
std::string getCreateTime()const;
std::string getDtsJobName()const;
std::string getDynamicMessage()const;
std::string getPayType()const;
std::string getErrMessage()const;
int getCode()const;
std::string getDtsInstanceID()const;
MigrationMode getMigrationMode()const;
bool getSuccess()const;
int getDelay()const;
std::string getErrCode()const;
std::string getDtsJobClass()const;
int getCheckpoint()const;
std::string getDtsJobId()const;
std::string getDtsJobDirection()const;
std::string getFinishTime()const;
DestinationEndpoint getDestinationEndpoint()const;
SourceEndpoint getSourceEndpoint()const;
int getHttpStatusCode()const;
std::string getExpireTime()const;
std::string getErrorMessage()const;
std::string getReserved()const;
protected:
void parse(const std::string &payload);
private:
std::string status_;
std::string dbObject_;
std::string createTime_;
std::string dtsJobName_;
std::string dynamicMessage_;
std::string payType_;
std::string errMessage_;
int code_;
std::string dtsInstanceID_;
MigrationMode migrationMode_;
bool success_;
int delay_;
std::string errCode_;
std::string dtsJobClass_;
int checkpoint_;
std::string dtsJobId_;
std::string dtsJobDirection_;
std::string finishTime_;
DestinationEndpoint destinationEndpoint_;
SourceEndpoint sourceEndpoint_;
int httpStatusCode_;
std::string expireTime_;
std::string errorMessage_;
std::string reserved_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBDETAILRESULT_H_

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBSREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT DescribeDtsJobsRequest : public RpcServiceRequest
{
public:
DescribeDtsJobsRequest();
~DescribeDtsJobsRequest();
std::string getOrderDirection()const;
void setOrderDirection(const std::string& orderDirection);
std::string getType()const;
void setType(const std::string& type);
std::string getParams()const;
void setParams(const std::string& params);
std::string getJobType()const;
void setJobType(const std::string& jobType);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getTags()const;
void setTags(const std::string& tags);
std::string getOrderColumn()const;
void setOrderColumn(const std::string& orderColumn);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getRegion()const;
void setRegion(const std::string& region);
std::string getStatus()const;
void setStatus(const std::string& status);
private:
std::string orderDirection_;
std::string type_;
std::string params_;
std::string jobType_;
int pageNumber_;
std::string tags_;
std::string orderColumn_;
int pageSize_;
std::string region_;
std::string status_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBSREQUEST_H_

View File

@@ -0,0 +1,272 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_DTS_MODEL_DESCRIBEDTSJOBSRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT DescribeDtsJobsResult : public ServiceResult
{
public:
struct DtsJobStatus
{
struct SourceEndpoint
{
std::string oracleSID;
std::string userName;
std::string instanceID;
std::string sslSolutionEnum;
std::string ip;
std::string port;
std::string databaseName;
std::string region;
std::string instanceType;
std::string engineName;
};
struct DestinationEndpoint
{
std::string oracleSID;
std::string userName;
std::string instanceID;
std::string sslSolutionEnum;
std::string ip;
std::string port;
std::string databaseName;
std::string region;
std::string instanceType;
std::string engineName;
};
struct MigrationMode
{
bool dataInitialization;
bool dataSynchronization;
bool structureInitialization;
};
struct PrecheckStatus
{
struct PrecheckDetail
{
std::string repairMethod;
std::string checkItem;
std::string checkResult;
std::string failedReason;
std::string checkItemDescription;
};
std::string status;
std::string percent;
std::string errorMessage;
std::vector<PrecheckDetail> detail;
};
struct StructureInitializationStatus
{
std::string status;
std::string progress;
std::string percent;
std::string errorMessage;
};
struct DataInitializationStatus
{
std::string status;
std::string progress;
std::string percent;
std::string errorMessage;
};
struct DataSynchronizationStatus
{
std::string status;
std::string progress;
std::string percent;
std::string errorMessage;
};
struct Performance
{
std::string rps;
std::string flow;
};
struct ReverseJob
{
struct SourceEndpoint1
{
std::string oracleSID;
std::string userName;
std::string instanceID;
std::string sslSolutionEnum;
std::string ip;
std::string port;
std::string databaseName;
std::string region;
std::string instanceType;
std::string engineName;
};
struct DestinationEndpoint2
{
std::string oracleSID;
std::string userName;
std::string instanceID;
std::string sslSolutionEnum;
std::string ip;
std::string port;
std::string databaseName;
std::string region;
std::string instanceType;
std::string engineName;
};
struct MigrationMode3
{
bool dataInitialization;
bool dataSynchronization;
bool structureInitialization;
};
struct PrecheckStatus4
{
struct PrecheckDetail10
{
std::string repairMethod;
std::string checkItem;
std::string checkResult;
std::string failedReason;
std::string checkItemDescription;
};
std::string status;
std::string percent;
std::vector<PrecheckDetail10> detail9;
std::string errorMessage;
};
struct StructureInitializationStatus5
{
std::string status;
std::string progress;
std::string percent;
std::string errorMessage;
};
struct DataInitializationStatus6
{
std::string status;
std::string progress;
std::string percent;
std::string errorMessage;
};
struct DataSynchronizationStatus7
{
std::string status;
std::string progress;
std::string percent;
std::string errorMessage;
};
struct Performance8
{
std::string rps;
std::string flow;
};
std::string status;
Performance8 performance8;
SourceEndpoint1 sourceEndpoint1;
std::string dbObject;
std::string createTime;
PrecheckStatus4 precheckStatus4;
std::string dtsJobName;
std::string payType;
MigrationMode3 migrationMode3;
std::string dtsInstanceID;
int delay;
StructureInitializationStatus5 structureInitializationStatus5;
DestinationEndpoint2 destinationEndpoint2;
std::string dtsJobClass;
std::string checkpoint;
std::string dtsJobId;
std::string dtsJobDirection;
DataInitializationStatus6 dataInitializationStatus6;
DataSynchronizationStatus7 dataSynchronizationStatus7;
std::string expireTime;
std::string errorMessage;
std::string reserved;
};
struct DtsTag
{
std::string tagKey;
std::string tagValue;
};
std::string status;
DataInitializationStatus dataInitializationStatus;
std::string dbObject;
std::string createTime;
ReverseJob reverseJob;
std::string dtsJobName;
std::string payType;
std::string dtsInstanceID;
MigrationMode migrationMode;
int delay;
PrecheckStatus precheckStatus;
std::string dtsJobClass;
std::string checkpoint;
std::string dtsJobId;
std::string dtsJobDirection;
DestinationEndpoint destinationEndpoint;
SourceEndpoint sourceEndpoint;
std::vector<DtsJobStatus::DtsTag> tagList;
Performance performance;
std::string expireTime;
std::string errorMessage;
StructureInitializationStatus structureInitializationStatus;
DataSynchronizationStatus dataSynchronizationStatus;
std::string reserved;
};
DescribeDtsJobsResult();
explicit DescribeDtsJobsResult(const std::string &payload);
~DescribeDtsJobsResult();
int getTotalRecordCount()const;
std::vector<DtsJobStatus> getDtsJobList()const;
int getPageRecordCount()const;
int getPageNumber()const;
int getHttpStatusCode()const;
std::string getDynamicCode()const;
std::string getDynamicMessage()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int totalRecordCount_;
std::vector<DtsJobStatus> dtsJobList_;
int pageRecordCount_;
int pageNumber_;
int httpStatusCode_;
std::string dynamicCode_;
std::string dynamicMessage_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBSRESULT_H_

View File

@@ -101,6 +101,7 @@ namespace AlibabaCloud
explicit DescribeMigrationJobStatusResult(const std::string &payload); explicit DescribeMigrationJobStatusResult(const std::string &payload);
~DescribeMigrationJobStatusResult(); ~DescribeMigrationJobStatusResult();
DataInitializationStatus getDataInitializationStatus()const; DataInitializationStatus getDataInitializationStatus()const;
std::string getTaskId()const;
std::string getMigrationJobName()const; std::string getMigrationJobName()const;
std::string getPayType()const; std::string getPayType()const;
std::string getErrMessage()const; std::string getErrMessage()const;
@@ -121,6 +122,7 @@ namespace AlibabaCloud
void parse(const std::string &payload); void parse(const std::string &payload);
private: private:
DataInitializationStatus dataInitializationStatus_; DataInitializationStatus dataInitializationStatus_;
std::string taskId_;
std::string migrationJobName_; std::string migrationJobName_;
std::string payType_; std::string payType_;
std::string errMessage_; std::string errMessage_;

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
DescribeMigrationJobsRequest(); DescribeMigrationJobsRequest();
~DescribeMigrationJobsRequest(); ~DescribeMigrationJobsRequest();
std::string getInstFilterRegion()const;
void setInstFilterRegion(const std::string& instFilterRegion);
int getPageNum()const; int getPageNum()const;
void setPageNum(int pageNum); void setPageNum(int pageNum);
std::string getOwnerId()const; std::string getOwnerId()const;
@@ -57,6 +59,7 @@ namespace AlibabaCloud
void setTag(const std::vector<Tag>& tag); void setTag(const std::vector<Tag>& tag);
private: private:
std::string instFilterRegion_;
int pageNum_; int pageNum_;
std::string ownerId_; std::string ownerId_;
std::string accessKeyId_; std::string accessKeyId_;

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_DTS_MODEL_DESCRIBEPRECHECKSTATUSREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_DESCRIBEPRECHECKSTATUSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT DescribePreCheckStatusRequest : public RpcServiceRequest
{
public:
DescribePreCheckStatusRequest();
~DescribePreCheckStatusRequest();
std::string getStructType()const;
void setStructType(const std::string& structType);
std::string getPageNo()const;
void setPageNo(const std::string& pageNo);
std::string getPageSize()const;
void setPageSize(const std::string& pageSize);
std::string getJobCode()const;
void setJobCode(const std::string& jobCode);
std::string getDtsJobId()const;
void setDtsJobId(const std::string& dtsJobId);
private:
std::string structType_;
std::string pageNo_;
std::string pageSize_;
std::string jobCode_;
std::string dtsJobId_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEPRECHECKSTATUSREQUEST_H_

View File

@@ -0,0 +1,98 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_DTS_MODEL_DESCRIBEPRECHECKSTATUSRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_DESCRIBEPRECHECKSTATUSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT DescribePreCheckStatusResult : public ServiceResult
{
public:
struct ProgressInfo
{
struct JobLog
{
std::string errData;
std::string errMsg;
std::string errType;
std::string logLevel;
};
std::string sourceSchema;
std::string sub;
std::string destSchema;
std::string errMsg;
std::string targetNames;
long bootTime;
std::vector<ProgressInfo::JobLog> logs;
std::string names;
std::string item;
bool canSkip;
std::string repairMethod;
int delaySeconds;
long finishTime;
int orderNum;
long diffRow;
std::string parentObj;
std::string ignoreFlag;
std::string state;
int total;
bool skip;
std::string errDetail;
std::string jobId;
std::string ddlSql;
};
DescribePreCheckStatusResult();
explicit DescribePreCheckStatusResult(const std::string &payload);
~DescribePreCheckStatusResult();
std::string getState()const;
int getTotal()const;
int getHttpStatusCode()const;
std::string getJobName()const;
int getErrorItem()const;
std::string getCode()const;
bool getSuccess()const;
std::vector<ProgressInfo> getJobProgress()const;
protected:
void parse(const std::string &payload);
private:
std::string state_;
int total_;
int httpStatusCode_;
std::string jobName_;
int errorItem_;
std::string code_;
bool success_;
std::vector<ProgressInfo> jobProgress_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEPRECHECKSTATUSRESULT_H_

View File

@@ -60,6 +60,7 @@ namespace AlibabaCloud
explicit DescribeSubscriptionInstanceStatusResult(const std::string &payload); explicit DescribeSubscriptionInstanceStatusResult(const std::string &payload);
~DescribeSubscriptionInstanceStatusResult(); ~DescribeSubscriptionInstanceStatusResult();
std::string getStatus()const; std::string getStatus()const;
std::string getTaskId()const;
SubscriptionHost getSubscriptionHost()const; SubscriptionHost getSubscriptionHost()const;
std::string getEndTimestamp()const; std::string getEndTimestamp()const;
std::string getPayType()const; std::string getPayType()const;
@@ -82,6 +83,7 @@ namespace AlibabaCloud
void parse(const std::string &payload); void parse(const std::string &payload);
private: private:
std::string status_; std::string status_;
std::string taskId_;
SubscriptionHost subscriptionHost_; SubscriptionHost subscriptionHost_;
std::string endTimestamp_; std::string endTimestamp_;
std::string payType_; std::string payType_;

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
std::string getClientToken()const; std::string getClientToken()const;
void setClientToken(const std::string& clientToken); void setClientToken(const std::string& clientToken);
std::string getInstFilterRegion()const;
void setInstFilterRegion(const std::string& instFilterRegion);
int getPageNum()const; int getPageNum()const;
void setPageNum(int pageNum); void setPageNum(int pageNum);
std::string getOwnerId()const; std::string getOwnerId()const;
@@ -60,6 +62,7 @@ namespace AlibabaCloud
private: private:
std::string clientToken_; std::string clientToken_;
std::string instFilterRegion_;
int pageNum_; int pageNum_;
std::string ownerId_; std::string ownerId_;
std::string accessKeyId_; std::string accessKeyId_;

View File

@@ -111,57 +111,59 @@ namespace AlibabaCloud
DescribeSynchronizationJobStatusResult(); DescribeSynchronizationJobStatusResult();
explicit DescribeSynchronizationJobStatusResult(const std::string &payload); explicit DescribeSynchronizationJobStatusResult(const std::string &payload);
~DescribeSynchronizationJobStatusResult(); ~DescribeSynchronizationJobStatusResult();
std::string getStatus()const;
DataInitializationStatus getDataInitializationStatus()const; DataInitializationStatus getDataInitializationStatus()const;
std::vector<SynchronizationObject> getSynchronizationObjects()const; std::vector<SynchronizationObject> getSynchronizationObjects()const;
std::string getTaskId()const;
std::string getDelay()const;
std::string getSuccess()const;
long getDelayMillis()const;
std::string getDataInitialization()const;
std::string getSynchronizationJobClass()const;
DataSynchronizationStatus getDataSynchronizationStatus()const;
std::string getStatus()const;
std::string getSynchronizationJobName()const; std::string getSynchronizationJobName()const;
std::string getPayType()const; std::string getPayType()const;
std::string getErrMessage()const; std::string getErrMessage()const;
std::string getDelay()const;
std::string getSuccess()const;
std::string getErrCode()const; std::string getErrCode()const;
PrecheckStatus getPrecheckStatus()const; PrecheckStatus getPrecheckStatus()const;
std::string getCheckpoint()const; std::string getCheckpoint()const;
long getDelayMillis()const;
std::string getSynchronizationJobId()const; std::string getSynchronizationJobId()const;
std::string getDataInitialization()const;
DestinationEndpoint getDestinationEndpoint()const; DestinationEndpoint getDestinationEndpoint()const;
SourceEndpoint getSourceEndpoint()const; SourceEndpoint getSourceEndpoint()const;
std::string getStructureInitialization()const; std::string getStructureInitialization()const;
Performance getPerformance()const; Performance getPerformance()const;
std::string getErrorMessage()const; std::string getErrorMessage()const;
std::string getExpireTime()const; std::string getExpireTime()const;
std::string getSynchronizationJobClass()const;
std::string getSynchronizationDirection()const; std::string getSynchronizationDirection()const;
DataSynchronizationStatus getDataSynchronizationStatus()const;
StructureInitializationStatus getStructureInitializationStatus()const; StructureInitializationStatus getStructureInitializationStatus()const;
protected: protected:
void parse(const std::string &payload); void parse(const std::string &payload);
private: private:
std::string status_;
DataInitializationStatus dataInitializationStatus_; DataInitializationStatus dataInitializationStatus_;
std::vector<SynchronizationObject> synchronizationObjects_; std::vector<SynchronizationObject> synchronizationObjects_;
std::string taskId_;
std::string delay_;
std::string success_;
long delayMillis_;
std::string dataInitialization_;
std::string synchronizationJobClass_;
DataSynchronizationStatus dataSynchronizationStatus_;
std::string status_;
std::string synchronizationJobName_; std::string synchronizationJobName_;
std::string payType_; std::string payType_;
std::string errMessage_; std::string errMessage_;
std::string delay_;
std::string success_;
std::string errCode_; std::string errCode_;
PrecheckStatus precheckStatus_; PrecheckStatus precheckStatus_;
std::string checkpoint_; std::string checkpoint_;
long delayMillis_;
std::string synchronizationJobId_; std::string synchronizationJobId_;
std::string dataInitialization_;
DestinationEndpoint destinationEndpoint_; DestinationEndpoint destinationEndpoint_;
SourceEndpoint sourceEndpoint_; SourceEndpoint sourceEndpoint_;
std::string structureInitialization_; std::string structureInitialization_;
Performance performance_; Performance performance_;
std::string errorMessage_; std::string errorMessage_;
std::string expireTime_; std::string expireTime_;
std::string synchronizationJobClass_;
std::string synchronizationDirection_; std::string synchronizationDirection_;
DataSynchronizationStatus dataSynchronizationStatus_;
StructureInitializationStatus structureInitializationStatus_; StructureInitializationStatus structureInitializationStatus_;
}; };

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
std::string getClientToken()const; std::string getClientToken()const;
void setClientToken(const std::string& clientToken); void setClientToken(const std::string& clientToken);
std::string getInstFilterRegion()const;
void setInstFilterRegion(const std::string& instFilterRegion);
int getPageNum()const; int getPageNum()const;
void setPageNum(int pageNum); void setPageNum(int pageNum);
std::string getOwnerId()const; std::string getOwnerId()const;
@@ -60,6 +62,7 @@ namespace AlibabaCloud
private: private:
std::string clientToken_; std::string clientToken_;
std::string instFilterRegion_;
int pageNum_; int pageNum_;
std::string ownerId_; std::string ownerId_;
std::string accessKeyId_; std::string accessKeyId_;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBNAMEREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBNAMEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobNameRequest : public RpcServiceRequest
{
public:
ModifyDtsJobNameRequest();
~ModifyDtsJobNameRequest();
std::string getDtsJobName()const;
void setDtsJobName(const std::string& dtsJobName);
std::string getDtsJobId()const;
void setDtsJobId(const std::string& dtsJobId);
private:
std::string dtsJobName_;
std::string dtsJobId_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBNAMEREQUEST_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_DTS_MODEL_MODIFYDTSJOBNAMERESULT_H_
#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBNAMERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobNameResult : public ServiceResult
{
public:
ModifyDtsJobNameResult();
explicit ModifyDtsJobNameResult(const std::string &payload);
~ModifyDtsJobNameResult();
int getHttpStatusCode()const;
std::string getDynamicMessage()const;
std::string getErrMessage()const;
std::string getCode()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int httpStatusCode_;
std::string dynamicMessage_;
std::string errMessage_;
std::string code_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBNAMERESULT_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_DTS_MODEL_MODIFYDTSJOBPASSWORDREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBPASSWORDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobPasswordRequest : public RpcServiceRequest
{
public:
ModifyDtsJobPasswordRequest();
~ModifyDtsJobPasswordRequest();
std::string getPassword()const;
void setPassword(const std::string& password);
std::string getEndpoint()const;
void setEndpoint(const std::string& endpoint);
std::string getDtsJobId()const;
void setDtsJobId(const std::string& dtsJobId);
std::string getUserName()const;
void setUserName(const std::string& userName);
private:
std::string password_;
std::string endpoint_;
std::string dtsJobId_;
std::string userName_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBPASSWORDREQUEST_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_DTS_MODEL_MODIFYDTSJOBPASSWORDRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBPASSWORDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobPasswordResult : public ServiceResult
{
public:
ModifyDtsJobPasswordResult();
explicit ModifyDtsJobPasswordResult(const std::string &payload);
~ModifyDtsJobPasswordResult();
int getHttpStatusCode()const;
std::string getDynamicMessage()const;
std::string getErrMessage()const;
std::string getCode()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int httpStatusCode_;
std::string dynamicMessage_;
std::string errMessage_;
std::string code_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBPASSWORDRESULT_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_DTS_MODEL_MODIFYDTSJOBREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobRequest : public RpcServiceRequest
{
public:
ModifyDtsJobRequest();
~ModifyDtsJobRequest();
std::string getDbList()const;
void setDbList(const std::string& dbList);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getDtsInstanceId()const;
void setDtsInstanceId(const std::string& dtsInstanceId);
std::string getSynchronizationDirection()const;
void setSynchronizationDirection(const std::string& synchronizationDirection);
private:
std::string dbList_;
std::string clientToken_;
std::string ownerId_;
std::string accessKeyId_;
std::string dtsInstanceId_;
std::string synchronizationDirection_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBREQUEST_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_DTS_MODEL_MODIFYDTSJOBRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobResult : public ServiceResult
{
public:
ModifyDtsJobResult();
explicit ModifyDtsJobResult(const std::string &payload);
~ModifyDtsJobResult();
std::string getStatus()const;
std::string getDtsJobId()const;
bool getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
std::string status_;
std::string dtsJobId_;
bool errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_RESETDTSJOBREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_RESETDTSJOBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT ResetDtsJobRequest : public RpcServiceRequest
{
public:
ResetDtsJobRequest();
~ResetDtsJobRequest();
std::string getDtsJobId()const;
void setDtsJobId(const std::string& dtsJobId);
std::string getDtsInstanceId()const;
void setDtsInstanceId(const std::string& dtsInstanceId);
std::string getSynchronizationDirection()const;
void setSynchronizationDirection(const std::string& synchronizationDirection);
private:
std::string dtsJobId_;
std::string dtsInstanceId_;
std::string synchronizationDirection_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_RESETDTSJOBREQUEST_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_DTS_MODEL_RESETDTSJOBRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_RESETDTSJOBRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT ResetDtsJobResult : public ServiceResult
{
public:
ResetDtsJobResult();
explicit ResetDtsJobResult(const std::string &payload);
~ResetDtsJobResult();
int getHttpStatusCode()const;
std::string getDynamicCode()const;
std::string getDynamicMessage()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int httpStatusCode_;
std::string dynamicCode_;
std::string dynamicMessage_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_RESETDTSJOBRESULT_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_DTS_MODEL_SKIPPRECHECKREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_SKIPPRECHECKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT SkipPreCheckRequest : public RpcServiceRequest
{
public:
SkipPreCheckRequest();
~SkipPreCheckRequest();
std::string getSkipPreCheckItems()const;
void setSkipPreCheckItems(const std::string& skipPreCheckItems);
bool getSkip()const;
void setSkip(bool skip);
std::string getJobId()const;
void setJobId(const std::string& jobId);
std::string getSkipPreCheckNames()const;
void setSkipPreCheckNames(const std::string& skipPreCheckNames);
private:
std::string skipPreCheckItems_;
bool skip_;
std::string jobId_;
std::string skipPreCheckNames_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_SKIPPRECHECKREQUEST_H_

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_DTS_MODEL_SKIPPRECHECKRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_SKIPPRECHECKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT SkipPreCheckResult : public ServiceResult
{
public:
SkipPreCheckResult();
explicit SkipPreCheckResult(const std::string &payload);
~SkipPreCheckResult();
std::string getSkipItems()const;
std::string getScheduleJobId()const;
int getHttpStatusCode()const;
std::string getSkipNames()const;
std::string getDynamicMessage()const;
std::string getErrMessage()const;
std::string getCode()const;
bool getSuccess()const;
std::string getErrCode()const;
std::string getMigrationJobId()const;
protected:
void parse(const std::string &payload);
private:
std::string skipItems_;
std::string scheduleJobId_;
int httpStatusCode_;
std::string skipNames_;
std::string dynamicMessage_;
std::string errMessage_;
std::string code_;
bool success_;
std::string errCode_;
std::string migrationJobId_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_SKIPPRECHECKRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_STOPDTSJOBREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_STOPDTSJOBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT StopDtsJobRequest : public RpcServiceRequest
{
public:
StopDtsJobRequest();
~StopDtsJobRequest();
std::string getDtsJobId()const;
void setDtsJobId(const std::string& dtsJobId);
std::string getDtsInstanceId()const;
void setDtsInstanceId(const std::string& dtsInstanceId);
std::string getSynchronizationDirection()const;
void setSynchronizationDirection(const std::string& synchronizationDirection);
private:
std::string dtsJobId_;
std::string dtsInstanceId_;
std::string synchronizationDirection_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_STOPDTSJOBREQUEST_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_DTS_MODEL_STOPDTSJOBRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_STOPDTSJOBRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT StopDtsJobResult : public ServiceResult
{
public:
StopDtsJobResult();
explicit StopDtsJobResult(const std::string &payload);
~StopDtsJobResult();
int getHttpStatusCode()const;
std::string getDynamicCode()const;
std::string getDynamicMessage()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int httpStatusCode_;
std::string dynamicCode_;
std::string dynamicMessage_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_STOPDTSJOBRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT SuspendDtsJobRequest : public RpcServiceRequest
{
public:
SuspendDtsJobRequest();
~SuspendDtsJobRequest();
std::string getDtsJobId()const;
void setDtsJobId(const std::string& dtsJobId);
std::string getDtsInstanceId()const;
void setDtsInstanceId(const std::string& dtsInstanceId);
std::string getSynchronizationDirection()const;
void setSynchronizationDirection(const std::string& synchronizationDirection);
private:
std::string dtsJobId_;
std::string dtsInstanceId_;
std::string synchronizationDirection_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBREQUEST_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_DTS_MODEL_SUSPENDDTSJOBRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT SuspendDtsJobResult : public ServiceResult
{
public:
SuspendDtsJobResult();
explicit SuspendDtsJobResult(const std::string &payload);
~SuspendDtsJobResult();
int getHttpStatusCode()const;
std::string getDynamicCode()const;
std::string getDynamicMessage()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int httpStatusCode_;
std::string dynamicCode_;
std::string dynamicMessage_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBRESULT_H_

View File

@@ -51,6 +51,42 @@ DtsClient::DtsClient(const std::string & accessKeyId, const std::string & access
DtsClient::~DtsClient() DtsClient::~DtsClient()
{} {}
DtsClient::ConfigureDtsJobOutcome DtsClient::configureDtsJob(const ConfigureDtsJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ConfigureDtsJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ConfigureDtsJobOutcome(ConfigureDtsJobResult(outcome.result()));
else
return ConfigureDtsJobOutcome(outcome.error());
}
void DtsClient::configureDtsJobAsync(const ConfigureDtsJobRequest& request, const ConfigureDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, configureDtsJob(request), context);
};
asyncExecute(new Runnable(fn));
}
DtsClient::ConfigureDtsJobOutcomeCallable DtsClient::configureDtsJobCallable(const ConfigureDtsJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ConfigureDtsJobOutcome()>>(
[this, request]()
{
return this->configureDtsJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::ConfigureMigrationJobOutcome DtsClient::configureMigrationJob(const ConfigureMigrationJobRequest &request) const DtsClient::ConfigureMigrationJobOutcome DtsClient::configureMigrationJob(const ConfigureMigrationJobRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -339,6 +375,42 @@ DtsClient::CreateConsumerGroupOutcomeCallable DtsClient::createConsumerGroupCall
return task->get_future(); return task->get_future();
} }
DtsClient::CreateDtsInstanceOutcome DtsClient::createDtsInstance(const CreateDtsInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateDtsInstanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateDtsInstanceOutcome(CreateDtsInstanceResult(outcome.result()));
else
return CreateDtsInstanceOutcome(outcome.error());
}
void DtsClient::createDtsInstanceAsync(const CreateDtsInstanceRequest& request, const CreateDtsInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createDtsInstance(request), context);
};
asyncExecute(new Runnable(fn));
}
DtsClient::CreateDtsInstanceOutcomeCallable DtsClient::createDtsInstanceCallable(const CreateDtsInstanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateDtsInstanceOutcome()>>(
[this, request]()
{
return this->createDtsInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::CreateMigrationJobOutcome DtsClient::createMigrationJob(const CreateMigrationJobRequest &request) const DtsClient::CreateMigrationJobOutcome DtsClient::createMigrationJob(const CreateMigrationJobRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -483,6 +555,42 @@ DtsClient::DeleteConsumerGroupOutcomeCallable DtsClient::deleteConsumerGroupCall
return task->get_future(); return task->get_future();
} }
DtsClient::DeleteDtsJobOutcome DtsClient::deleteDtsJob(const DeleteDtsJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteDtsJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteDtsJobOutcome(DeleteDtsJobResult(outcome.result()));
else
return DeleteDtsJobOutcome(outcome.error());
}
void DtsClient::deleteDtsJobAsync(const DeleteDtsJobRequest& request, const DeleteDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteDtsJob(request), context);
};
asyncExecute(new Runnable(fn));
}
DtsClient::DeleteDtsJobOutcomeCallable DtsClient::deleteDtsJobCallable(const DeleteDtsJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteDtsJobOutcome()>>(
[this, request]()
{
return this->deleteDtsJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::DeleteMigrationJobOutcome DtsClient::deleteMigrationJob(const DeleteMigrationJobRequest &request) const DtsClient::DeleteMigrationJobOutcome DtsClient::deleteMigrationJob(const DeleteMigrationJobRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -699,6 +807,78 @@ DtsClient::DescribeDTSIPOutcomeCallable DtsClient::describeDTSIPCallable(const D
return task->get_future(); return task->get_future();
} }
DtsClient::DescribeDtsJobDetailOutcome DtsClient::describeDtsJobDetail(const DescribeDtsJobDetailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDtsJobDetailOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDtsJobDetailOutcome(DescribeDtsJobDetailResult(outcome.result()));
else
return DescribeDtsJobDetailOutcome(outcome.error());
}
void DtsClient::describeDtsJobDetailAsync(const DescribeDtsJobDetailRequest& request, const DescribeDtsJobDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDtsJobDetail(request), context);
};
asyncExecute(new Runnable(fn));
}
DtsClient::DescribeDtsJobDetailOutcomeCallable DtsClient::describeDtsJobDetailCallable(const DescribeDtsJobDetailRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDtsJobDetailOutcome()>>(
[this, request]()
{
return this->describeDtsJobDetail(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::DescribeDtsJobsOutcome DtsClient::describeDtsJobs(const DescribeDtsJobsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDtsJobsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDtsJobsOutcome(DescribeDtsJobsResult(outcome.result()));
else
return DescribeDtsJobsOutcome(outcome.error());
}
void DtsClient::describeDtsJobsAsync(const DescribeDtsJobsRequest& request, const DescribeDtsJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDtsJobs(request), context);
};
asyncExecute(new Runnable(fn));
}
DtsClient::DescribeDtsJobsOutcomeCallable DtsClient::describeDtsJobsCallable(const DescribeDtsJobsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDtsJobsOutcome()>>(
[this, request]()
{
return this->describeDtsJobs(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::DescribeEndpointSwitchStatusOutcome DtsClient::describeEndpointSwitchStatus(const DescribeEndpointSwitchStatusRequest &request) const DtsClient::DescribeEndpointSwitchStatusOutcome DtsClient::describeEndpointSwitchStatus(const DescribeEndpointSwitchStatusRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -915,6 +1095,42 @@ DtsClient::DescribeMigrationJobsOutcomeCallable DtsClient::describeMigrationJobs
return task->get_future(); return task->get_future();
} }
DtsClient::DescribePreCheckStatusOutcome DtsClient::describePreCheckStatus(const DescribePreCheckStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribePreCheckStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribePreCheckStatusOutcome(DescribePreCheckStatusResult(outcome.result()));
else
return DescribePreCheckStatusOutcome(outcome.error());
}
void DtsClient::describePreCheckStatusAsync(const DescribePreCheckStatusRequest& request, const DescribePreCheckStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describePreCheckStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
DtsClient::DescribePreCheckStatusOutcomeCallable DtsClient::describePreCheckStatusCallable(const DescribePreCheckStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribePreCheckStatusOutcome()>>(
[this, request]()
{
return this->describePreCheckStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::DescribeSubscriptionInstanceAlertOutcome DtsClient::describeSubscriptionInstanceAlert(const DescribeSubscriptionInstanceAlertRequest &request) const DtsClient::DescribeSubscriptionInstanceAlertOutcome DtsClient::describeSubscriptionInstanceAlert(const DescribeSubscriptionInstanceAlertRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1347,6 +1563,114 @@ DtsClient::ModifyConsumptionTimestampOutcomeCallable DtsClient::modifyConsumptio
return task->get_future(); return task->get_future();
} }
DtsClient::ModifyDtsJobOutcome DtsClient::modifyDtsJob(const ModifyDtsJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyDtsJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyDtsJobOutcome(ModifyDtsJobResult(outcome.result()));
else
return ModifyDtsJobOutcome(outcome.error());
}
void DtsClient::modifyDtsJobAsync(const ModifyDtsJobRequest& request, const ModifyDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyDtsJob(request), context);
};
asyncExecute(new Runnable(fn));
}
DtsClient::ModifyDtsJobOutcomeCallable DtsClient::modifyDtsJobCallable(const ModifyDtsJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyDtsJobOutcome()>>(
[this, request]()
{
return this->modifyDtsJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::ModifyDtsJobNameOutcome DtsClient::modifyDtsJobName(const ModifyDtsJobNameRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyDtsJobNameOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyDtsJobNameOutcome(ModifyDtsJobNameResult(outcome.result()));
else
return ModifyDtsJobNameOutcome(outcome.error());
}
void DtsClient::modifyDtsJobNameAsync(const ModifyDtsJobNameRequest& request, const ModifyDtsJobNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyDtsJobName(request), context);
};
asyncExecute(new Runnable(fn));
}
DtsClient::ModifyDtsJobNameOutcomeCallable DtsClient::modifyDtsJobNameCallable(const ModifyDtsJobNameRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyDtsJobNameOutcome()>>(
[this, request]()
{
return this->modifyDtsJobName(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::ModifyDtsJobPasswordOutcome DtsClient::modifyDtsJobPassword(const ModifyDtsJobPasswordRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyDtsJobPasswordOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyDtsJobPasswordOutcome(ModifyDtsJobPasswordResult(outcome.result()));
else
return ModifyDtsJobPasswordOutcome(outcome.error());
}
void DtsClient::modifyDtsJobPasswordAsync(const ModifyDtsJobPasswordRequest& request, const ModifyDtsJobPasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyDtsJobPassword(request), context);
};
asyncExecute(new Runnable(fn));
}
DtsClient::ModifyDtsJobPasswordOutcomeCallable DtsClient::modifyDtsJobPasswordCallable(const ModifyDtsJobPasswordRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyDtsJobPasswordOutcome()>>(
[this, request]()
{
return this->modifyDtsJobPassword(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::ModifySubscriptionObjectOutcome DtsClient::modifySubscriptionObject(const ModifySubscriptionObjectRequest &request) const DtsClient::ModifySubscriptionObjectOutcome DtsClient::modifySubscriptionObject(const ModifySubscriptionObjectRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1419,6 +1743,42 @@ DtsClient::ModifySynchronizationObjectOutcomeCallable DtsClient::modifySynchroni
return task->get_future(); return task->get_future();
} }
DtsClient::ResetDtsJobOutcome DtsClient::resetDtsJob(const ResetDtsJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ResetDtsJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ResetDtsJobOutcome(ResetDtsJobResult(outcome.result()));
else
return ResetDtsJobOutcome(outcome.error());
}
void DtsClient::resetDtsJobAsync(const ResetDtsJobRequest& request, const ResetDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, resetDtsJob(request), context);
};
asyncExecute(new Runnable(fn));
}
DtsClient::ResetDtsJobOutcomeCallable DtsClient::resetDtsJobCallable(const ResetDtsJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ResetDtsJobOutcome()>>(
[this, request]()
{
return this->resetDtsJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::ResetSynchronizationJobOutcome DtsClient::resetSynchronizationJob(const ResetSynchronizationJobRequest &request) const DtsClient::ResetSynchronizationJobOutcome DtsClient::resetSynchronizationJob(const ResetSynchronizationJobRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1491,6 +1851,78 @@ DtsClient::ShieldPrecheckOutcomeCallable DtsClient::shieldPrecheckCallable(const
return task->get_future(); return task->get_future();
} }
DtsClient::SkipPreCheckOutcome DtsClient::skipPreCheck(const SkipPreCheckRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SkipPreCheckOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SkipPreCheckOutcome(SkipPreCheckResult(outcome.result()));
else
return SkipPreCheckOutcome(outcome.error());
}
void DtsClient::skipPreCheckAsync(const SkipPreCheckRequest& request, const SkipPreCheckAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, skipPreCheck(request), context);
};
asyncExecute(new Runnable(fn));
}
DtsClient::SkipPreCheckOutcomeCallable DtsClient::skipPreCheckCallable(const SkipPreCheckRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SkipPreCheckOutcome()>>(
[this, request]()
{
return this->skipPreCheck(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::StartDtsJobOutcome DtsClient::startDtsJob(const StartDtsJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StartDtsJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StartDtsJobOutcome(StartDtsJobResult(outcome.result()));
else
return StartDtsJobOutcome(outcome.error());
}
void DtsClient::startDtsJobAsync(const StartDtsJobRequest& request, const StartDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, startDtsJob(request), context);
};
asyncExecute(new Runnable(fn));
}
DtsClient::StartDtsJobOutcomeCallable DtsClient::startDtsJobCallable(const StartDtsJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StartDtsJobOutcome()>>(
[this, request]()
{
return this->startDtsJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::StartMigrationJobOutcome DtsClient::startMigrationJob(const StartMigrationJobRequest &request) const DtsClient::StartMigrationJobOutcome DtsClient::startMigrationJob(const StartMigrationJobRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1599,6 +2031,42 @@ DtsClient::StartSynchronizationJobOutcomeCallable DtsClient::startSynchronizatio
return task->get_future(); return task->get_future();
} }
DtsClient::StopDtsJobOutcome DtsClient::stopDtsJob(const StopDtsJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StopDtsJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StopDtsJobOutcome(StopDtsJobResult(outcome.result()));
else
return StopDtsJobOutcome(outcome.error());
}
void DtsClient::stopDtsJobAsync(const StopDtsJobRequest& request, const StopDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, stopDtsJob(request), context);
};
asyncExecute(new Runnable(fn));
}
DtsClient::StopDtsJobOutcomeCallable DtsClient::stopDtsJobCallable(const StopDtsJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StopDtsJobOutcome()>>(
[this, request]()
{
return this->stopDtsJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::StopMigrationJobOutcome DtsClient::stopMigrationJob(const StopMigrationJobRequest &request) const DtsClient::StopMigrationJobOutcome DtsClient::stopMigrationJob(const StopMigrationJobRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1635,6 +2103,42 @@ DtsClient::StopMigrationJobOutcomeCallable DtsClient::stopMigrationJobCallable(c
return task->get_future(); return task->get_future();
} }
DtsClient::SuspendDtsJobOutcome DtsClient::suspendDtsJob(const SuspendDtsJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SuspendDtsJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SuspendDtsJobOutcome(SuspendDtsJobResult(outcome.result()));
else
return SuspendDtsJobOutcome(outcome.error());
}
void DtsClient::suspendDtsJobAsync(const SuspendDtsJobRequest& request, const SuspendDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, suspendDtsJob(request), context);
};
asyncExecute(new Runnable(fn));
}
DtsClient::SuspendDtsJobOutcomeCallable DtsClient::suspendDtsJobCallable(const SuspendDtsJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SuspendDtsJobOutcome()>>(
[this, request]()
{
return this->suspendDtsJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::SuspendMigrationJobOutcome DtsClient::suspendMigrationJob(const SuspendMigrationJobRequest &request) const DtsClient::SuspendMigrationJobOutcome DtsClient::suspendMigrationJob(const SuspendMigrationJobRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/DeleteDtsJobRequest.h>
using AlibabaCloud::Dts::Model::DeleteDtsJobRequest;
DeleteDtsJobRequest::DeleteDtsJobRequest() :
RpcServiceRequest("dts", "2020-01-01", "DeleteDtsJob")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDtsJobRequest::~DeleteDtsJobRequest()
{}
std::string DeleteDtsJobRequest::getDtsJobId()const
{
return dtsJobId_;
}
void DeleteDtsJobRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}
std::string DeleteDtsJobRequest::getDtsInstanceId()const
{
return dtsInstanceId_;
}
void DeleteDtsJobRequest::setDtsInstanceId(const std::string& dtsInstanceId)
{
dtsInstanceId_ = dtsInstanceId;
setParameter("DtsInstanceId", dtsInstanceId);
}
std::string DeleteDtsJobRequest::getSynchronizationDirection()const
{
return synchronizationDirection_;
}
void DeleteDtsJobRequest::setSynchronizationDirection(const std::string& synchronizationDirection)
{
synchronizationDirection_ = synchronizationDirection;
setParameter("SynchronizationDirection", synchronizationDirection);
}

View File

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

View File

@@ -126,26 +126,26 @@ void DescribeConnectionStatusRequest::setDestinationEndpointUserName(const std::
setParameter("DestinationEndpointUserName", destinationEndpointUserName); setParameter("DestinationEndpointUserName", destinationEndpointUserName);
} }
bool DescribeConnectionStatusRequest::getDestinationEndpointArchitecture()const std::string DescribeConnectionStatusRequest::getDestinationEndpointArchitecture()const
{ {
return destinationEndpointArchitecture_; return destinationEndpointArchitecture_;
} }
void DescribeConnectionStatusRequest::setDestinationEndpointArchitecture(bool destinationEndpointArchitecture) void DescribeConnectionStatusRequest::setDestinationEndpointArchitecture(const std::string& destinationEndpointArchitecture)
{ {
destinationEndpointArchitecture_ = destinationEndpointArchitecture; destinationEndpointArchitecture_ = destinationEndpointArchitecture;
setParameter("DestinationEndpointArchitecture", destinationEndpointArchitecture ? "true" : "false"); setParameter("DestinationEndpointArchitecture", destinationEndpointArchitecture);
} }
bool DescribeConnectionStatusRequest::getDestinationEndpointOracleSID()const std::string DescribeConnectionStatusRequest::getDestinationEndpointOracleSID()const
{ {
return destinationEndpointOracleSID_; return destinationEndpointOracleSID_;
} }
void DescribeConnectionStatusRequest::setDestinationEndpointOracleSID(bool destinationEndpointOracleSID) void DescribeConnectionStatusRequest::setDestinationEndpointOracleSID(const std::string& destinationEndpointOracleSID)
{ {
destinationEndpointOracleSID_ = destinationEndpointOracleSID; destinationEndpointOracleSID_ = destinationEndpointOracleSID;
setParameter("DestinationEndpointOracleSID", destinationEndpointOracleSID ? "true" : "false"); setParameter("DestinationEndpointOracleSID", destinationEndpointOracleSID);
} }
std::string DescribeConnectionStatusRequest::getDestinationEndpointEngineName()const std::string DescribeConnectionStatusRequest::getDestinationEndpointEngineName()const

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/DescribeDtsJobDetailRequest.h>
using AlibabaCloud::Dts::Model::DescribeDtsJobDetailRequest;
DescribeDtsJobDetailRequest::DescribeDtsJobDetailRequest() :
RpcServiceRequest("dts", "2020-01-01", "DescribeDtsJobDetail")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDtsJobDetailRequest::~DescribeDtsJobDetailRequest()
{}
std::string DescribeDtsJobDetailRequest::getDtsJobId()const
{
return dtsJobId_;
}
void DescribeDtsJobDetailRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}

View File

@@ -0,0 +1,259 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/DescribeDtsJobDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dts;
using namespace AlibabaCloud::Dts::Model;
DescribeDtsJobDetailResult::DescribeDtsJobDetailResult() :
ServiceResult()
{}
DescribeDtsJobDetailResult::DescribeDtsJobDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDtsJobDetailResult::~DescribeDtsJobDetailResult()
{}
void DescribeDtsJobDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto sourceEndpointNode = value["SourceEndpoint"];
if(!sourceEndpointNode["InstanceID"].isNull())
sourceEndpoint_.instanceID = sourceEndpointNode["InstanceID"].asString();
if(!sourceEndpointNode["Region"].isNull())
sourceEndpoint_.region = sourceEndpointNode["Region"].asString();
if(!sourceEndpointNode["InstanceType"].isNull())
sourceEndpoint_.instanceType = sourceEndpointNode["InstanceType"].asString();
if(!sourceEndpointNode["EngineName"].isNull())
sourceEndpoint_.engineName = sourceEndpointNode["EngineName"].asString();
if(!sourceEndpointNode["Ip"].isNull())
sourceEndpoint_.ip = sourceEndpointNode["Ip"].asString();
if(!sourceEndpointNode["Port"].isNull())
sourceEndpoint_.port = sourceEndpointNode["Port"].asString();
if(!sourceEndpointNode["DatabaseName"].isNull())
sourceEndpoint_.databaseName = sourceEndpointNode["DatabaseName"].asString();
if(!sourceEndpointNode["OracleSID"].isNull())
sourceEndpoint_.oracleSID = sourceEndpointNode["OracleSID"].asString();
if(!sourceEndpointNode["UserName"].isNull())
sourceEndpoint_.userName = sourceEndpointNode["UserName"].asString();
if(!sourceEndpointNode["SslSolutionEnum"].isNull())
sourceEndpoint_.sslSolutionEnum = sourceEndpointNode["SslSolutionEnum"].asString();
if(!sourceEndpointNode["RoleName"].isNull())
sourceEndpoint_.roleName = sourceEndpointNode["RoleName"].asString();
if(!sourceEndpointNode["AliyunUid"].isNull())
sourceEndpoint_.aliyunUid = sourceEndpointNode["AliyunUid"].asString();
auto destinationEndpointNode = value["DestinationEndpoint"];
if(!destinationEndpointNode["InstanceID"].isNull())
destinationEndpoint_.instanceID = destinationEndpointNode["InstanceID"].asString();
if(!destinationEndpointNode["Region"].isNull())
destinationEndpoint_.region = destinationEndpointNode["Region"].asString();
if(!destinationEndpointNode["InstanceType"].isNull())
destinationEndpoint_.instanceType = destinationEndpointNode["InstanceType"].asString();
if(!destinationEndpointNode["EngineName"].isNull())
destinationEndpoint_.engineName = destinationEndpointNode["EngineName"].asString();
if(!destinationEndpointNode["Ip"].isNull())
destinationEndpoint_.ip = destinationEndpointNode["Ip"].asString();
if(!destinationEndpointNode["Port"].isNull())
destinationEndpoint_.port = destinationEndpointNode["Port"].asString();
if(!destinationEndpointNode["DatabaseName"].isNull())
destinationEndpoint_.databaseName = destinationEndpointNode["DatabaseName"].asString();
if(!destinationEndpointNode["OracleSID"].isNull())
destinationEndpoint_.oracleSID = destinationEndpointNode["OracleSID"].asString();
if(!destinationEndpointNode["UserName"].isNull())
destinationEndpoint_.userName = destinationEndpointNode["UserName"].asString();
if(!destinationEndpointNode["SslSolutionEnum"].isNull())
destinationEndpoint_.sslSolutionEnum = destinationEndpointNode["SslSolutionEnum"].asString();
auto migrationModeNode = value["MigrationMode"];
if(!migrationModeNode["StructureInitialization"].isNull())
migrationMode_.structureInitialization = migrationModeNode["StructureInitialization"].asString() == "true";
if(!migrationModeNode["DataInitialization"].isNull())
migrationMode_.dataInitialization = migrationModeNode["DataInitialization"].asString() == "true";
if(!migrationModeNode["DataSynchronization"].isNull())
migrationMode_.dataSynchronization = migrationModeNode["DataSynchronization"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["DtsInstanceID"].isNull())
dtsInstanceID_ = value["DtsInstanceID"].asString();
if(!value["DtsJobId"].isNull())
dtsJobId_ = value["DtsJobId"].asString();
if(!value["DtsJobName"].isNull())
dtsJobName_ = value["DtsJobName"].asString();
if(!value["DtsJobClass"].isNull())
dtsJobClass_ = value["DtsJobClass"].asString();
if(!value["DtsJobDirection"].isNull())
dtsJobDirection_ = value["DtsJobDirection"].asString();
if(!value["PayType"].isNull())
payType_ = value["PayType"].asString();
if(!value["ExpireTime"].isNull())
expireTime_ = value["ExpireTime"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["FinishTime"].isNull())
finishTime_ = value["FinishTime"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["Checkpoint"].isNull())
checkpoint_ = std::stoi(value["Checkpoint"].asString());
if(!value["Delay"].isNull())
delay_ = std::stoi(value["Delay"].asString());
if(!value["Reserved"].isNull())
reserved_ = value["Reserved"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["DbObject"].isNull())
dbObject_ = value["DbObject"].asString();
}
std::string DescribeDtsJobDetailResult::getStatus()const
{
return status_;
}
std::string DescribeDtsJobDetailResult::getDbObject()const
{
return dbObject_;
}
std::string DescribeDtsJobDetailResult::getCreateTime()const
{
return createTime_;
}
std::string DescribeDtsJobDetailResult::getDtsJobName()const
{
return dtsJobName_;
}
std::string DescribeDtsJobDetailResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeDtsJobDetailResult::getPayType()const
{
return payType_;
}
std::string DescribeDtsJobDetailResult::getErrMessage()const
{
return errMessage_;
}
int DescribeDtsJobDetailResult::getCode()const
{
return code_;
}
std::string DescribeDtsJobDetailResult::getDtsInstanceID()const
{
return dtsInstanceID_;
}
DescribeDtsJobDetailResult::MigrationMode DescribeDtsJobDetailResult::getMigrationMode()const
{
return migrationMode_;
}
bool DescribeDtsJobDetailResult::getSuccess()const
{
return success_;
}
int DescribeDtsJobDetailResult::getDelay()const
{
return delay_;
}
std::string DescribeDtsJobDetailResult::getErrCode()const
{
return errCode_;
}
std::string DescribeDtsJobDetailResult::getDtsJobClass()const
{
return dtsJobClass_;
}
int DescribeDtsJobDetailResult::getCheckpoint()const
{
return checkpoint_;
}
std::string DescribeDtsJobDetailResult::getDtsJobId()const
{
return dtsJobId_;
}
std::string DescribeDtsJobDetailResult::getDtsJobDirection()const
{
return dtsJobDirection_;
}
std::string DescribeDtsJobDetailResult::getFinishTime()const
{
return finishTime_;
}
DescribeDtsJobDetailResult::DestinationEndpoint DescribeDtsJobDetailResult::getDestinationEndpoint()const
{
return destinationEndpoint_;
}
DescribeDtsJobDetailResult::SourceEndpoint DescribeDtsJobDetailResult::getSourceEndpoint()const
{
return sourceEndpoint_;
}
int DescribeDtsJobDetailResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeDtsJobDetailResult::getExpireTime()const
{
return expireTime_;
}
std::string DescribeDtsJobDetailResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribeDtsJobDetailResult::getReserved()const
{
return reserved_;
}

View File

@@ -0,0 +1,139 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/DescribeDtsJobsRequest.h>
using AlibabaCloud::Dts::Model::DescribeDtsJobsRequest;
DescribeDtsJobsRequest::DescribeDtsJobsRequest() :
RpcServiceRequest("dts", "2020-01-01", "DescribeDtsJobs")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDtsJobsRequest::~DescribeDtsJobsRequest()
{}
std::string DescribeDtsJobsRequest::getOrderDirection()const
{
return orderDirection_;
}
void DescribeDtsJobsRequest::setOrderDirection(const std::string& orderDirection)
{
orderDirection_ = orderDirection;
setParameter("OrderDirection", orderDirection);
}
std::string DescribeDtsJobsRequest::getType()const
{
return type_;
}
void DescribeDtsJobsRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string DescribeDtsJobsRequest::getParams()const
{
return params_;
}
void DescribeDtsJobsRequest::setParams(const std::string& params)
{
params_ = params;
setParameter("Params", params);
}
std::string DescribeDtsJobsRequest::getJobType()const
{
return jobType_;
}
void DescribeDtsJobsRequest::setJobType(const std::string& jobType)
{
jobType_ = jobType;
setParameter("JobType", jobType);
}
int DescribeDtsJobsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDtsJobsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDtsJobsRequest::getTags()const
{
return tags_;
}
void DescribeDtsJobsRequest::setTags(const std::string& tags)
{
tags_ = tags;
setParameter("Tags", tags);
}
std::string DescribeDtsJobsRequest::getOrderColumn()const
{
return orderColumn_;
}
void DescribeDtsJobsRequest::setOrderColumn(const std::string& orderColumn)
{
orderColumn_ = orderColumn;
setParameter("OrderColumn", orderColumn);
}
int DescribeDtsJobsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDtsJobsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDtsJobsRequest::getRegion()const
{
return region_;
}
void DescribeDtsJobsRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}
std::string DescribeDtsJobsRequest::getStatus()const
{
return status_;
}
void DescribeDtsJobsRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -0,0 +1,393 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/DescribeDtsJobsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dts;
using namespace AlibabaCloud::Dts::Model;
DescribeDtsJobsResult::DescribeDtsJobsResult() :
ServiceResult()
{}
DescribeDtsJobsResult::DescribeDtsJobsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDtsJobsResult::~DescribeDtsJobsResult()
{}
void DescribeDtsJobsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDtsJobListNode = value["DtsJobList"]["DtsJobStatus"];
for (auto valueDtsJobListDtsJobStatus : allDtsJobListNode)
{
DtsJobStatus dtsJobListObject;
if(!valueDtsJobListDtsJobStatus["DtsInstanceID"].isNull())
dtsJobListObject.dtsInstanceID = valueDtsJobListDtsJobStatus["DtsInstanceID"].asString();
if(!valueDtsJobListDtsJobStatus["DtsJobId"].isNull())
dtsJobListObject.dtsJobId = valueDtsJobListDtsJobStatus["DtsJobId"].asString();
if(!valueDtsJobListDtsJobStatus["DtsJobName"].isNull())
dtsJobListObject.dtsJobName = valueDtsJobListDtsJobStatus["DtsJobName"].asString();
if(!valueDtsJobListDtsJobStatus["DtsJobClass"].isNull())
dtsJobListObject.dtsJobClass = valueDtsJobListDtsJobStatus["DtsJobClass"].asString();
if(!valueDtsJobListDtsJobStatus["DtsJobDirection"].isNull())
dtsJobListObject.dtsJobDirection = valueDtsJobListDtsJobStatus["DtsJobDirection"].asString();
if(!valueDtsJobListDtsJobStatus["PayType"].isNull())
dtsJobListObject.payType = valueDtsJobListDtsJobStatus["PayType"].asString();
if(!valueDtsJobListDtsJobStatus["ExpireTime"].isNull())
dtsJobListObject.expireTime = valueDtsJobListDtsJobStatus["ExpireTime"].asString();
if(!valueDtsJobListDtsJobStatus["CreateTime"].isNull())
dtsJobListObject.createTime = valueDtsJobListDtsJobStatus["CreateTime"].asString();
if(!valueDtsJobListDtsJobStatus["Status"].isNull())
dtsJobListObject.status = valueDtsJobListDtsJobStatus["Status"].asString();
if(!valueDtsJobListDtsJobStatus["ErrorMessage"].isNull())
dtsJobListObject.errorMessage = valueDtsJobListDtsJobStatus["ErrorMessage"].asString();
if(!valueDtsJobListDtsJobStatus["Delay"].isNull())
dtsJobListObject.delay = std::stoi(valueDtsJobListDtsJobStatus["Delay"].asString());
if(!valueDtsJobListDtsJobStatus["Checkpoint"].isNull())
dtsJobListObject.checkpoint = valueDtsJobListDtsJobStatus["Checkpoint"].asString();
if(!valueDtsJobListDtsJobStatus["DbObject"].isNull())
dtsJobListObject.dbObject = valueDtsJobListDtsJobStatus["DbObject"].asString();
if(!valueDtsJobListDtsJobStatus["Reserved"].isNull())
dtsJobListObject.reserved = valueDtsJobListDtsJobStatus["Reserved"].asString();
auto allTagListNode = valueDtsJobListDtsJobStatus["TagList"]["DtsTag"];
for (auto valueDtsJobListDtsJobStatusTagListDtsTag : allTagListNode)
{
DtsJobStatus::DtsTag tagListObject;
if(!valueDtsJobListDtsJobStatusTagListDtsTag["TagKey"].isNull())
tagListObject.tagKey = valueDtsJobListDtsJobStatusTagListDtsTag["TagKey"].asString();
if(!valueDtsJobListDtsJobStatusTagListDtsTag["TagValue"].isNull())
tagListObject.tagValue = valueDtsJobListDtsJobStatusTagListDtsTag["TagValue"].asString();
dtsJobListObject.tagList.push_back(tagListObject);
}
auto sourceEndpointNode = value["SourceEndpoint"];
if(!sourceEndpointNode["InstanceID"].isNull())
dtsJobListObject.sourceEndpoint.instanceID = sourceEndpointNode["InstanceID"].asString();
if(!sourceEndpointNode["InstanceType"].isNull())
dtsJobListObject.sourceEndpoint.instanceType = sourceEndpointNode["InstanceType"].asString();
if(!sourceEndpointNode["EngineName"].isNull())
dtsJobListObject.sourceEndpoint.engineName = sourceEndpointNode["EngineName"].asString();
if(!sourceEndpointNode["Ip"].isNull())
dtsJobListObject.sourceEndpoint.ip = sourceEndpointNode["Ip"].asString();
if(!sourceEndpointNode["Port"].isNull())
dtsJobListObject.sourceEndpoint.port = sourceEndpointNode["Port"].asString();
if(!sourceEndpointNode["DatabaseName"].isNull())
dtsJobListObject.sourceEndpoint.databaseName = sourceEndpointNode["DatabaseName"].asString();
if(!sourceEndpointNode["OracleSID"].isNull())
dtsJobListObject.sourceEndpoint.oracleSID = sourceEndpointNode["OracleSID"].asString();
if(!sourceEndpointNode["UserName"].isNull())
dtsJobListObject.sourceEndpoint.userName = sourceEndpointNode["UserName"].asString();
if(!sourceEndpointNode["SslSolutionEnum"].isNull())
dtsJobListObject.sourceEndpoint.sslSolutionEnum = sourceEndpointNode["SslSolutionEnum"].asString();
if(!sourceEndpointNode["Region"].isNull())
dtsJobListObject.sourceEndpoint.region = sourceEndpointNode["Region"].asString();
auto destinationEndpointNode = value["DestinationEndpoint"];
if(!destinationEndpointNode["InstanceID"].isNull())
dtsJobListObject.destinationEndpoint.instanceID = destinationEndpointNode["InstanceID"].asString();
if(!destinationEndpointNode["InstanceType"].isNull())
dtsJobListObject.destinationEndpoint.instanceType = destinationEndpointNode["InstanceType"].asString();
if(!destinationEndpointNode["EngineName"].isNull())
dtsJobListObject.destinationEndpoint.engineName = destinationEndpointNode["EngineName"].asString();
if(!destinationEndpointNode["Ip"].isNull())
dtsJobListObject.destinationEndpoint.ip = destinationEndpointNode["Ip"].asString();
if(!destinationEndpointNode["Port"].isNull())
dtsJobListObject.destinationEndpoint.port = destinationEndpointNode["Port"].asString();
if(!destinationEndpointNode["DatabaseName"].isNull())
dtsJobListObject.destinationEndpoint.databaseName = destinationEndpointNode["DatabaseName"].asString();
if(!destinationEndpointNode["OracleSID"].isNull())
dtsJobListObject.destinationEndpoint.oracleSID = destinationEndpointNode["OracleSID"].asString();
if(!destinationEndpointNode["UserName"].isNull())
dtsJobListObject.destinationEndpoint.userName = destinationEndpointNode["UserName"].asString();
if(!destinationEndpointNode["SslSolutionEnum"].isNull())
dtsJobListObject.destinationEndpoint.sslSolutionEnum = destinationEndpointNode["SslSolutionEnum"].asString();
if(!destinationEndpointNode["Region"].isNull())
dtsJobListObject.destinationEndpoint.region = destinationEndpointNode["Region"].asString();
auto migrationModeNode = value["MigrationMode"];
if(!migrationModeNode["StructureInitialization"].isNull())
dtsJobListObject.migrationMode.structureInitialization = migrationModeNode["StructureInitialization"].asString() == "true";
if(!migrationModeNode["DataInitialization"].isNull())
dtsJobListObject.migrationMode.dataInitialization = migrationModeNode["DataInitialization"].asString() == "true";
if(!migrationModeNode["DataSynchronization"].isNull())
dtsJobListObject.migrationMode.dataSynchronization = migrationModeNode["DataSynchronization"].asString() == "true";
auto precheckStatusNode = value["PrecheckStatus"];
if(!precheckStatusNode["Status"].isNull())
dtsJobListObject.precheckStatus.status = precheckStatusNode["Status"].asString();
if(!precheckStatusNode["Percent"].isNull())
dtsJobListObject.precheckStatus.percent = precheckStatusNode["Percent"].asString();
if(!precheckStatusNode["ErrorMessage"].isNull())
dtsJobListObject.precheckStatus.errorMessage = precheckStatusNode["ErrorMessage"].asString();
auto allDetailNode = precheckStatusNode["Detail"]["PrecheckDetail"];
for (auto precheckStatusNodeDetailPrecheckDetail : allDetailNode)
{
DtsJobStatus::PrecheckStatus::PrecheckDetail precheckDetailObject;
if(!precheckStatusNodeDetailPrecheckDetail["CheckItem"].isNull())
precheckDetailObject.checkItem = precheckStatusNodeDetailPrecheckDetail["CheckItem"].asString();
if(!precheckStatusNodeDetailPrecheckDetail["CheckItemDescription"].isNull())
precheckDetailObject.checkItemDescription = precheckStatusNodeDetailPrecheckDetail["CheckItemDescription"].asString();
if(!precheckStatusNodeDetailPrecheckDetail["CheckResult"].isNull())
precheckDetailObject.checkResult = precheckStatusNodeDetailPrecheckDetail["CheckResult"].asString();
if(!precheckStatusNodeDetailPrecheckDetail["FailedReason"].isNull())
precheckDetailObject.failedReason = precheckStatusNodeDetailPrecheckDetail["FailedReason"].asString();
if(!precheckStatusNodeDetailPrecheckDetail["RepairMethod"].isNull())
precheckDetailObject.repairMethod = precheckStatusNodeDetailPrecheckDetail["RepairMethod"].asString();
dtsJobListObject.precheckStatus.detail.push_back(precheckDetailObject);
}
auto structureInitializationStatusNode = value["StructureInitializationStatus"];
if(!structureInitializationStatusNode["Status"].isNull())
dtsJobListObject.structureInitializationStatus.status = structureInitializationStatusNode["Status"].asString();
if(!structureInitializationStatusNode["ErrorMessage"].isNull())
dtsJobListObject.structureInitializationStatus.errorMessage = structureInitializationStatusNode["ErrorMessage"].asString();
if(!structureInitializationStatusNode["Percent"].isNull())
dtsJobListObject.structureInitializationStatus.percent = structureInitializationStatusNode["Percent"].asString();
if(!structureInitializationStatusNode["Progress"].isNull())
dtsJobListObject.structureInitializationStatus.progress = structureInitializationStatusNode["Progress"].asString();
auto dataInitializationStatusNode = value["DataInitializationStatus"];
if(!dataInitializationStatusNode["Status"].isNull())
dtsJobListObject.dataInitializationStatus.status = dataInitializationStatusNode["Status"].asString();
if(!dataInitializationStatusNode["ErrorMessage"].isNull())
dtsJobListObject.dataInitializationStatus.errorMessage = dataInitializationStatusNode["ErrorMessage"].asString();
if(!dataInitializationStatusNode["Percent"].isNull())
dtsJobListObject.dataInitializationStatus.percent = dataInitializationStatusNode["Percent"].asString();
if(!dataInitializationStatusNode["Progress"].isNull())
dtsJobListObject.dataInitializationStatus.progress = dataInitializationStatusNode["Progress"].asString();
auto dataSynchronizationStatusNode = value["DataSynchronizationStatus"];
if(!dataSynchronizationStatusNode["Status"].isNull())
dtsJobListObject.dataSynchronizationStatus.status = dataSynchronizationStatusNode["Status"].asString();
if(!dataSynchronizationStatusNode["ErrorMessage"].isNull())
dtsJobListObject.dataSynchronizationStatus.errorMessage = dataSynchronizationStatusNode["ErrorMessage"].asString();
if(!dataSynchronizationStatusNode["Percent"].isNull())
dtsJobListObject.dataSynchronizationStatus.percent = dataSynchronizationStatusNode["Percent"].asString();
if(!dataSynchronizationStatusNode["Progress"].isNull())
dtsJobListObject.dataSynchronizationStatus.progress = dataSynchronizationStatusNode["Progress"].asString();
auto performanceNode = value["Performance"];
if(!performanceNode["Rps"].isNull())
dtsJobListObject.performance.rps = performanceNode["Rps"].asString();
if(!performanceNode["Flow"].isNull())
dtsJobListObject.performance.flow = performanceNode["Flow"].asString();
auto reverseJobNode = value["ReverseJob"];
if(!reverseJobNode["DtsInstanceID"].isNull())
dtsJobListObject.reverseJob.dtsInstanceID = reverseJobNode["DtsInstanceID"].asString();
if(!reverseJobNode["DtsJobId"].isNull())
dtsJobListObject.reverseJob.dtsJobId = reverseJobNode["DtsJobId"].asString();
if(!reverseJobNode["DtsJobName"].isNull())
dtsJobListObject.reverseJob.dtsJobName = reverseJobNode["DtsJobName"].asString();
if(!reverseJobNode["DtsJobClass"].isNull())
dtsJobListObject.reverseJob.dtsJobClass = reverseJobNode["DtsJobClass"].asString();
if(!reverseJobNode["DtsJobDirection"].isNull())
dtsJobListObject.reverseJob.dtsJobDirection = reverseJobNode["DtsJobDirection"].asString();
if(!reverseJobNode["PayType"].isNull())
dtsJobListObject.reverseJob.payType = reverseJobNode["PayType"].asString();
if(!reverseJobNode["ExpireTime"].isNull())
dtsJobListObject.reverseJob.expireTime = reverseJobNode["ExpireTime"].asString();
if(!reverseJobNode["CreateTime"].isNull())
dtsJobListObject.reverseJob.createTime = reverseJobNode["CreateTime"].asString();
if(!reverseJobNode["Status"].isNull())
dtsJobListObject.reverseJob.status = reverseJobNode["Status"].asString();
if(!reverseJobNode["ErrorMessage"].isNull())
dtsJobListObject.reverseJob.errorMessage = reverseJobNode["ErrorMessage"].asString();
if(!reverseJobNode["Delay"].isNull())
dtsJobListObject.reverseJob.delay = std::stoi(reverseJobNode["Delay"].asString());
if(!reverseJobNode["Checkpoint"].isNull())
dtsJobListObject.reverseJob.checkpoint = reverseJobNode["Checkpoint"].asString();
if(!reverseJobNode["DbObject"].isNull())
dtsJobListObject.reverseJob.dbObject = reverseJobNode["DbObject"].asString();
if(!reverseJobNode["Reserved"].isNull())
dtsJobListObject.reverseJob.reserved = reverseJobNode["Reserved"].asString();
auto sourceEndpoint1Node = reverseJobNode["SourceEndpoint"];
if(!sourceEndpoint1Node["InstanceID"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.instanceID = sourceEndpoint1Node["InstanceID"].asString();
if(!sourceEndpoint1Node["InstanceType"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.instanceType = sourceEndpoint1Node["InstanceType"].asString();
if(!sourceEndpoint1Node["EngineName"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.engineName = sourceEndpoint1Node["EngineName"].asString();
if(!sourceEndpoint1Node["Ip"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.ip = sourceEndpoint1Node["Ip"].asString();
if(!sourceEndpoint1Node["Port"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.port = sourceEndpoint1Node["Port"].asString();
if(!sourceEndpoint1Node["DatabaseName"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.databaseName = sourceEndpoint1Node["DatabaseName"].asString();
if(!sourceEndpoint1Node["OracleSID"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.oracleSID = sourceEndpoint1Node["OracleSID"].asString();
if(!sourceEndpoint1Node["UserName"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.userName = sourceEndpoint1Node["UserName"].asString();
if(!sourceEndpoint1Node["SslSolutionEnum"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.sslSolutionEnum = sourceEndpoint1Node["SslSolutionEnum"].asString();
if(!sourceEndpoint1Node["Region"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.region = sourceEndpoint1Node["Region"].asString();
auto destinationEndpoint2Node = reverseJobNode["DestinationEndpoint"];
if(!destinationEndpoint2Node["InstanceID"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.instanceID = destinationEndpoint2Node["InstanceID"].asString();
if(!destinationEndpoint2Node["InstanceType"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.instanceType = destinationEndpoint2Node["InstanceType"].asString();
if(!destinationEndpoint2Node["EngineName"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.engineName = destinationEndpoint2Node["EngineName"].asString();
if(!destinationEndpoint2Node["Ip"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.ip = destinationEndpoint2Node["Ip"].asString();
if(!destinationEndpoint2Node["Port"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.port = destinationEndpoint2Node["Port"].asString();
if(!destinationEndpoint2Node["DatabaseName"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.databaseName = destinationEndpoint2Node["DatabaseName"].asString();
if(!destinationEndpoint2Node["OracleSID"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.oracleSID = destinationEndpoint2Node["OracleSID"].asString();
if(!destinationEndpoint2Node["UserName"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.userName = destinationEndpoint2Node["UserName"].asString();
if(!destinationEndpoint2Node["SslSolutionEnum"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.sslSolutionEnum = destinationEndpoint2Node["SslSolutionEnum"].asString();
if(!destinationEndpoint2Node["Region"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.region = destinationEndpoint2Node["Region"].asString();
auto migrationMode3Node = reverseJobNode["MigrationMode"];
if(!migrationMode3Node["StructureInitialization"].isNull())
dtsJobListObject.reverseJob.migrationMode3.structureInitialization = migrationMode3Node["StructureInitialization"].asString() == "true";
if(!migrationMode3Node["DataInitialization"].isNull())
dtsJobListObject.reverseJob.migrationMode3.dataInitialization = migrationMode3Node["DataInitialization"].asString() == "true";
if(!migrationMode3Node["DataSynchronization"].isNull())
dtsJobListObject.reverseJob.migrationMode3.dataSynchronization = migrationMode3Node["DataSynchronization"].asString() == "true";
auto precheckStatus4Node = reverseJobNode["PrecheckStatus"];
if(!precheckStatus4Node["Status"].isNull())
dtsJobListObject.reverseJob.precheckStatus4.status = precheckStatus4Node["Status"].asString();
if(!precheckStatus4Node["Percent"].isNull())
dtsJobListObject.reverseJob.precheckStatus4.percent = precheckStatus4Node["Percent"].asString();
if(!precheckStatus4Node["ErrorMessage"].isNull())
dtsJobListObject.reverseJob.precheckStatus4.errorMessage = precheckStatus4Node["ErrorMessage"].asString();
auto allDetail9Node = precheckStatus4Node["Detail"]["PrecheckDetail"];
for (auto precheckStatus4NodeDetailPrecheckDetail : allDetail9Node)
{
DtsJobStatus::ReverseJob::PrecheckStatus4::PrecheckDetail10 precheckDetail10Object;
if(!precheckStatus4NodeDetailPrecheckDetail["CheckItem"].isNull())
precheckDetail10Object.checkItem = precheckStatus4NodeDetailPrecheckDetail["CheckItem"].asString();
if(!precheckStatus4NodeDetailPrecheckDetail["CheckItemDescription"].isNull())
precheckDetail10Object.checkItemDescription = precheckStatus4NodeDetailPrecheckDetail["CheckItemDescription"].asString();
if(!precheckStatus4NodeDetailPrecheckDetail["CheckResult"].isNull())
precheckDetail10Object.checkResult = precheckStatus4NodeDetailPrecheckDetail["CheckResult"].asString();
if(!precheckStatus4NodeDetailPrecheckDetail["FailedReason"].isNull())
precheckDetail10Object.failedReason = precheckStatus4NodeDetailPrecheckDetail["FailedReason"].asString();
if(!precheckStatus4NodeDetailPrecheckDetail["RepairMethod"].isNull())
precheckDetail10Object.repairMethod = precheckStatus4NodeDetailPrecheckDetail["RepairMethod"].asString();
dtsJobListObject.reverseJob.precheckStatus4.detail9.push_back(precheckDetail10Object);
}
auto structureInitializationStatus5Node = reverseJobNode["StructureInitializationStatus"];
if(!structureInitializationStatus5Node["Status"].isNull())
dtsJobListObject.reverseJob.structureInitializationStatus5.status = structureInitializationStatus5Node["Status"].asString();
if(!structureInitializationStatus5Node["ErrorMessage"].isNull())
dtsJobListObject.reverseJob.structureInitializationStatus5.errorMessage = structureInitializationStatus5Node["ErrorMessage"].asString();
if(!structureInitializationStatus5Node["Percent"].isNull())
dtsJobListObject.reverseJob.structureInitializationStatus5.percent = structureInitializationStatus5Node["Percent"].asString();
if(!structureInitializationStatus5Node["Progress"].isNull())
dtsJobListObject.reverseJob.structureInitializationStatus5.progress = structureInitializationStatus5Node["Progress"].asString();
auto dataInitializationStatus6Node = reverseJobNode["DataInitializationStatus"];
if(!dataInitializationStatus6Node["Status"].isNull())
dtsJobListObject.reverseJob.dataInitializationStatus6.status = dataInitializationStatus6Node["Status"].asString();
if(!dataInitializationStatus6Node["ErrorMessage"].isNull())
dtsJobListObject.reverseJob.dataInitializationStatus6.errorMessage = dataInitializationStatus6Node["ErrorMessage"].asString();
if(!dataInitializationStatus6Node["Percent"].isNull())
dtsJobListObject.reverseJob.dataInitializationStatus6.percent = dataInitializationStatus6Node["Percent"].asString();
if(!dataInitializationStatus6Node["Progress"].isNull())
dtsJobListObject.reverseJob.dataInitializationStatus6.progress = dataInitializationStatus6Node["Progress"].asString();
auto dataSynchronizationStatus7Node = reverseJobNode["DataSynchronizationStatus"];
if(!dataSynchronizationStatus7Node["Status"].isNull())
dtsJobListObject.reverseJob.dataSynchronizationStatus7.status = dataSynchronizationStatus7Node["Status"].asString();
if(!dataSynchronizationStatus7Node["ErrorMessage"].isNull())
dtsJobListObject.reverseJob.dataSynchronizationStatus7.errorMessage = dataSynchronizationStatus7Node["ErrorMessage"].asString();
if(!dataSynchronizationStatus7Node["Percent"].isNull())
dtsJobListObject.reverseJob.dataSynchronizationStatus7.percent = dataSynchronizationStatus7Node["Percent"].asString();
if(!dataSynchronizationStatus7Node["Progress"].isNull())
dtsJobListObject.reverseJob.dataSynchronizationStatus7.progress = dataSynchronizationStatus7Node["Progress"].asString();
auto performance8Node = reverseJobNode["Performance"];
if(!performance8Node["Rps"].isNull())
dtsJobListObject.reverseJob.performance8.rps = performance8Node["Rps"].asString();
if(!performance8Node["Flow"].isNull())
dtsJobListObject.reverseJob.performance8.flow = performance8Node["Flow"].asString();
dtsJobList_.push_back(dtsJobListObject);
}
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["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageRecordCount"].isNull())
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
if(!value["TotalRecordCount"].isNull())
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
}
int DescribeDtsJobsResult::getTotalRecordCount()const
{
return totalRecordCount_;
}
std::vector<DescribeDtsJobsResult::DtsJobStatus> DescribeDtsJobsResult::getDtsJobList()const
{
return dtsJobList_;
}
int DescribeDtsJobsResult::getPageRecordCount()const
{
return pageRecordCount_;
}
int DescribeDtsJobsResult::getPageNumber()const
{
return pageNumber_;
}
int DescribeDtsJobsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeDtsJobsResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DescribeDtsJobsResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeDtsJobsResult::getErrMessage()const
{
return errMessage_;
}
bool DescribeDtsJobsResult::getSuccess()const
{
return success_;
}
std::string DescribeDtsJobsResult::getErrCode()const
{
return errCode_;
}

View File

@@ -146,6 +146,8 @@ void DescribeMigrationJobStatusResult::parse(const std::string &payload)
payType_ = value["PayType"].asString(); payType_ = value["PayType"].asString();
if(!value["Success"].isNull()) if(!value["Success"].isNull())
success_ = value["Success"].asString(); success_ = value["Success"].asString();
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
} }
@@ -154,6 +156,11 @@ DescribeMigrationJobStatusResult::DataInitializationStatus DescribeMigrationJobS
return dataInitializationStatus_; return dataInitializationStatus_;
} }
std::string DescribeMigrationJobStatusResult::getTaskId()const
{
return taskId_;
}
std::string DescribeMigrationJobStatusResult::getMigrationJobName()const std::string DescribeMigrationJobStatusResult::getMigrationJobName()const
{ {
return migrationJobName_; return migrationJobName_;

View File

@@ -27,6 +27,17 @@ DescribeMigrationJobsRequest::DescribeMigrationJobsRequest() :
DescribeMigrationJobsRequest::~DescribeMigrationJobsRequest() DescribeMigrationJobsRequest::~DescribeMigrationJobsRequest()
{} {}
std::string DescribeMigrationJobsRequest::getInstFilterRegion()const
{
return instFilterRegion_;
}
void DescribeMigrationJobsRequest::setInstFilterRegion(const std::string& instFilterRegion)
{
instFilterRegion_ = instFilterRegion;
setParameter("InstFilterRegion", instFilterRegion);
}
int DescribeMigrationJobsRequest::getPageNum()const int DescribeMigrationJobsRequest::getPageNum()const
{ {
return pageNum_; return pageNum_;

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/DescribePreCheckStatusRequest.h>
using AlibabaCloud::Dts::Model::DescribePreCheckStatusRequest;
DescribePreCheckStatusRequest::DescribePreCheckStatusRequest() :
RpcServiceRequest("dts", "2020-01-01", "DescribePreCheckStatus")
{
setMethod(HttpRequest::Method::Post);
}
DescribePreCheckStatusRequest::~DescribePreCheckStatusRequest()
{}
std::string DescribePreCheckStatusRequest::getStructType()const
{
return structType_;
}
void DescribePreCheckStatusRequest::setStructType(const std::string& structType)
{
structType_ = structType;
setParameter("StructType", structType);
}
std::string DescribePreCheckStatusRequest::getPageNo()const
{
return pageNo_;
}
void DescribePreCheckStatusRequest::setPageNo(const std::string& pageNo)
{
pageNo_ = pageNo;
setParameter("PageNo", pageNo);
}
std::string DescribePreCheckStatusRequest::getPageSize()const
{
return pageSize_;
}
void DescribePreCheckStatusRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", pageSize);
}
std::string DescribePreCheckStatusRequest::getJobCode()const
{
return jobCode_;
}
void DescribePreCheckStatusRequest::setJobCode(const std::string& jobCode)
{
jobCode_ = jobCode;
setParameter("JobCode", jobCode);
}
std::string DescribePreCheckStatusRequest::getDtsJobId()const
{
return dtsJobId_;
}
void DescribePreCheckStatusRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}

View File

@@ -0,0 +1,162 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/DescribePreCheckStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dts;
using namespace AlibabaCloud::Dts::Model;
DescribePreCheckStatusResult::DescribePreCheckStatusResult() :
ServiceResult()
{}
DescribePreCheckStatusResult::DescribePreCheckStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePreCheckStatusResult::~DescribePreCheckStatusResult()
{}
void DescribePreCheckStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allJobProgressNode = value["JobProgress"]["ProgressInfo"];
for (auto valueJobProgressProgressInfo : allJobProgressNode)
{
ProgressInfo jobProgressObject;
if(!valueJobProgressProgressInfo["BootTime"].isNull())
jobProgressObject.bootTime = std::stol(valueJobProgressProgressInfo["BootTime"].asString());
if(!valueJobProgressProgressInfo["CanSkip"].isNull())
jobProgressObject.canSkip = valueJobProgressProgressInfo["CanSkip"].asString() == "true";
if(!valueJobProgressProgressInfo["DelaySeconds"].isNull())
jobProgressObject.delaySeconds = std::stoi(valueJobProgressProgressInfo["DelaySeconds"].asString());
if(!valueJobProgressProgressInfo["FinishTime"].isNull())
jobProgressObject.finishTime = std::stol(valueJobProgressProgressInfo["FinishTime"].asString());
if(!valueJobProgressProgressInfo["IgnoreFlag"].isNull())
jobProgressObject.ignoreFlag = valueJobProgressProgressInfo["IgnoreFlag"].asString();
if(!valueJobProgressProgressInfo["Item"].isNull())
jobProgressObject.item = valueJobProgressProgressInfo["Item"].asString();
if(!valueJobProgressProgressInfo["JobId"].isNull())
jobProgressObject.jobId = valueJobProgressProgressInfo["JobId"].asString();
if(!valueJobProgressProgressInfo["Names"].isNull())
jobProgressObject.names = valueJobProgressProgressInfo["Names"].asString();
if(!valueJobProgressProgressInfo["OrderNum"].isNull())
jobProgressObject.orderNum = std::stoi(valueJobProgressProgressInfo["OrderNum"].asString());
if(!valueJobProgressProgressInfo["Skip"].isNull())
jobProgressObject.skip = valueJobProgressProgressInfo["Skip"].asString() == "true";
if(!valueJobProgressProgressInfo["State"].isNull())
jobProgressObject.state = valueJobProgressProgressInfo["State"].asString();
if(!valueJobProgressProgressInfo["Sub"].isNull())
jobProgressObject.sub = valueJobProgressProgressInfo["Sub"].asString();
if(!valueJobProgressProgressInfo["RepairMethod"].isNull())
jobProgressObject.repairMethod = valueJobProgressProgressInfo["RepairMethod"].asString();
if(!valueJobProgressProgressInfo["TargetNames"].isNull())
jobProgressObject.targetNames = valueJobProgressProgressInfo["TargetNames"].asString();
if(!valueJobProgressProgressInfo["Total"].isNull())
jobProgressObject.total = std::stoi(valueJobProgressProgressInfo["Total"].asString());
if(!valueJobProgressProgressInfo["SourceSchema"].isNull())
jobProgressObject.sourceSchema = valueJobProgressProgressInfo["SourceSchema"].asString();
if(!valueJobProgressProgressInfo["ParentObj"].isNull())
jobProgressObject.parentObj = valueJobProgressProgressInfo["ParentObj"].asString();
if(!valueJobProgressProgressInfo["DiffRow"].isNull())
jobProgressObject.diffRow = std::stol(valueJobProgressProgressInfo["DiffRow"].asString());
if(!valueJobProgressProgressInfo["DestSchema"].isNull())
jobProgressObject.destSchema = valueJobProgressProgressInfo["DestSchema"].asString();
if(!valueJobProgressProgressInfo["ErrDetail"].isNull())
jobProgressObject.errDetail = valueJobProgressProgressInfo["ErrDetail"].asString();
if(!valueJobProgressProgressInfo["ErrMsg"].isNull())
jobProgressObject.errMsg = valueJobProgressProgressInfo["ErrMsg"].asString();
if(!valueJobProgressProgressInfo["DdlSql"].isNull())
jobProgressObject.ddlSql = valueJobProgressProgressInfo["DdlSql"].asString();
auto allLogsNode = valueJobProgressProgressInfo["Logs"]["JobLog"];
for (auto valueJobProgressProgressInfoLogsJobLog : allLogsNode)
{
ProgressInfo::JobLog logsObject;
if(!valueJobProgressProgressInfoLogsJobLog["ErrData"].isNull())
logsObject.errData = valueJobProgressProgressInfoLogsJobLog["ErrData"].asString();
if(!valueJobProgressProgressInfoLogsJobLog["ErrMsg"].isNull())
logsObject.errMsg = valueJobProgressProgressInfoLogsJobLog["ErrMsg"].asString();
if(!valueJobProgressProgressInfoLogsJobLog["ErrType"].isNull())
logsObject.errType = valueJobProgressProgressInfoLogsJobLog["ErrType"].asString();
if(!valueJobProgressProgressInfoLogsJobLog["LogLevel"].isNull())
logsObject.logLevel = valueJobProgressProgressInfoLogsJobLog["LogLevel"].asString();
jobProgressObject.logs.push_back(logsObject);
}
jobProgress_.push_back(jobProgressObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorItem"].isNull())
errorItem_ = std::stoi(value["ErrorItem"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["JobName"].isNull())
jobName_ = value["JobName"].asString();
if(!value["State"].isNull())
state_ = value["State"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
std::string DescribePreCheckStatusResult::getState()const
{
return state_;
}
int DescribePreCheckStatusResult::getTotal()const
{
return total_;
}
int DescribePreCheckStatusResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribePreCheckStatusResult::getJobName()const
{
return jobName_;
}
int DescribePreCheckStatusResult::getErrorItem()const
{
return errorItem_;
}
std::string DescribePreCheckStatusResult::getCode()const
{
return code_;
}
bool DescribePreCheckStatusResult::getSuccess()const
{
return success_;
}
std::vector<DescribePreCheckStatusResult::ProgressInfo> DescribePreCheckStatusResult::getJobProgress()const
{
return jobProgress_;
}

View File

@@ -97,6 +97,8 @@ void DescribeSubscriptionInstanceStatusResult::parse(const std::string &payload)
errorMessage_ = value["ErrorMessage"].asString(); errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorMessage"].isNull()) if(!value["ErrorMessage"].isNull())
errorMessage1_ = value["ErrorMessage"].asString(); errorMessage1_ = value["ErrorMessage"].asString();
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
} }
@@ -105,6 +107,11 @@ std::string DescribeSubscriptionInstanceStatusResult::getStatus()const
return status_; return status_;
} }
std::string DescribeSubscriptionInstanceStatusResult::getTaskId()const
{
return taskId_;
}
DescribeSubscriptionInstanceStatusResult::SubscriptionHost DescribeSubscriptionInstanceStatusResult::getSubscriptionHost()const DescribeSubscriptionInstanceStatusResult::SubscriptionHost DescribeSubscriptionInstanceStatusResult::getSubscriptionHost()const
{ {
return subscriptionHost_; return subscriptionHost_;

View File

@@ -38,6 +38,17 @@ void DescribeSubscriptionInstancesRequest::setClientToken(const std::string& cli
setParameter("ClientToken", clientToken); setParameter("ClientToken", clientToken);
} }
std::string DescribeSubscriptionInstancesRequest::getInstFilterRegion()const
{
return instFilterRegion_;
}
void DescribeSubscriptionInstancesRequest::setInstFilterRegion(const std::string& instFilterRegion)
{
instFilterRegion_ = instFilterRegion;
setParameter("InstFilterRegion", instFilterRegion);
}
int DescribeSubscriptionInstancesRequest::getPageNum()const int DescribeSubscriptionInstancesRequest::getPageNum()const
{ {
return pageNum_; return pageNum_;

View File

@@ -178,14 +178,11 @@ void DescribeSynchronizationJobStatusResult::parse(const std::string &payload)
synchronizationJobId_ = value["SynchronizationJobId"].asString(); synchronizationJobId_ = value["SynchronizationJobId"].asString();
if(!value["SynchronizationJobName"].isNull()) if(!value["SynchronizationJobName"].isNull())
synchronizationJobName_ = value["SynchronizationJobName"].asString(); synchronizationJobName_ = value["SynchronizationJobName"].asString();
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
} }
std::string DescribeSynchronizationJobStatusResult::getStatus()const
{
return status_;
}
std::vector<DescribeSynchronizationJobStatusResult::SynchronizationObject> DescribeSynchronizationJobStatusResult::getSynchronizationObjects()const std::vector<DescribeSynchronizationJobStatusResult::SynchronizationObject> DescribeSynchronizationJobStatusResult::getSynchronizationObjects()const
{ {
return synchronizationObjects_; return synchronizationObjects_;
@@ -196,6 +193,46 @@ DescribeSynchronizationJobStatusResult::DataInitializationStatus DescribeSynchro
return dataInitializationStatus_; return dataInitializationStatus_;
} }
std::string DescribeSynchronizationJobStatusResult::getTaskId()const
{
return taskId_;
}
std::string DescribeSynchronizationJobStatusResult::getDelay()const
{
return delay_;
}
std::string DescribeSynchronizationJobStatusResult::getSuccess()const
{
return success_;
}
long DescribeSynchronizationJobStatusResult::getDelayMillis()const
{
return delayMillis_;
}
std::string DescribeSynchronizationJobStatusResult::getDataInitialization()const
{
return dataInitialization_;
}
std::string DescribeSynchronizationJobStatusResult::getSynchronizationJobClass()const
{
return synchronizationJobClass_;
}
DescribeSynchronizationJobStatusResult::DataSynchronizationStatus DescribeSynchronizationJobStatusResult::getDataSynchronizationStatus()const
{
return dataSynchronizationStatus_;
}
std::string DescribeSynchronizationJobStatusResult::getStatus()const
{
return status_;
}
std::string DescribeSynchronizationJobStatusResult::getSynchronizationJobName()const std::string DescribeSynchronizationJobStatusResult::getSynchronizationJobName()const
{ {
return synchronizationJobName_; return synchronizationJobName_;
@@ -211,16 +248,6 @@ std::string DescribeSynchronizationJobStatusResult::getErrMessage()const
return errMessage_; return errMessage_;
} }
std::string DescribeSynchronizationJobStatusResult::getDelay()const
{
return delay_;
}
std::string DescribeSynchronizationJobStatusResult::getSuccess()const
{
return success_;
}
std::string DescribeSynchronizationJobStatusResult::getErrCode()const std::string DescribeSynchronizationJobStatusResult::getErrCode()const
{ {
return errCode_; return errCode_;
@@ -236,21 +263,11 @@ std::string DescribeSynchronizationJobStatusResult::getCheckpoint()const
return checkpoint_; return checkpoint_;
} }
long DescribeSynchronizationJobStatusResult::getDelayMillis()const
{
return delayMillis_;
}
std::string DescribeSynchronizationJobStatusResult::getSynchronizationJobId()const std::string DescribeSynchronizationJobStatusResult::getSynchronizationJobId()const
{ {
return synchronizationJobId_; return synchronizationJobId_;
} }
std::string DescribeSynchronizationJobStatusResult::getDataInitialization()const
{
return dataInitialization_;
}
DescribeSynchronizationJobStatusResult::DestinationEndpoint DescribeSynchronizationJobStatusResult::getDestinationEndpoint()const DescribeSynchronizationJobStatusResult::DestinationEndpoint DescribeSynchronizationJobStatusResult::getDestinationEndpoint()const
{ {
return destinationEndpoint_; return destinationEndpoint_;
@@ -281,21 +298,11 @@ std::string DescribeSynchronizationJobStatusResult::getExpireTime()const
return expireTime_; return expireTime_;
} }
std::string DescribeSynchronizationJobStatusResult::getSynchronizationJobClass()const
{
return synchronizationJobClass_;
}
std::string DescribeSynchronizationJobStatusResult::getSynchronizationDirection()const std::string DescribeSynchronizationJobStatusResult::getSynchronizationDirection()const
{ {
return synchronizationDirection_; return synchronizationDirection_;
} }
DescribeSynchronizationJobStatusResult::DataSynchronizationStatus DescribeSynchronizationJobStatusResult::getDataSynchronizationStatus()const
{
return dataSynchronizationStatus_;
}
DescribeSynchronizationJobStatusResult::StructureInitializationStatus DescribeSynchronizationJobStatusResult::getStructureInitializationStatus()const DescribeSynchronizationJobStatusResult::StructureInitializationStatus DescribeSynchronizationJobStatusResult::getStructureInitializationStatus()const
{ {
return structureInitializationStatus_; return structureInitializationStatus_;

View File

@@ -38,6 +38,17 @@ void DescribeSynchronizationJobsRequest::setClientToken(const std::string& clien
setParameter("ClientToken", clientToken); setParameter("ClientToken", clientToken);
} }
std::string DescribeSynchronizationJobsRequest::getInstFilterRegion()const
{
return instFilterRegion_;
}
void DescribeSynchronizationJobsRequest::setInstFilterRegion(const std::string& instFilterRegion)
{
instFilterRegion_ = instFilterRegion;
setParameter("InstFilterRegion", instFilterRegion);
}
int DescribeSynchronizationJobsRequest::getPageNum()const int DescribeSynchronizationJobsRequest::getPageNum()const
{ {
return pageNum_; return pageNum_;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/ModifyDtsJobNameRequest.h>
using AlibabaCloud::Dts::Model::ModifyDtsJobNameRequest;
ModifyDtsJobNameRequest::ModifyDtsJobNameRequest() :
RpcServiceRequest("dts", "2020-01-01", "ModifyDtsJobName")
{
setMethod(HttpRequest::Method::Post);
}
ModifyDtsJobNameRequest::~ModifyDtsJobNameRequest()
{}
std::string ModifyDtsJobNameRequest::getDtsJobName()const
{
return dtsJobName_;
}
void ModifyDtsJobNameRequest::setDtsJobName(const std::string& dtsJobName)
{
dtsJobName_ = dtsJobName;
setParameter("DtsJobName", dtsJobName);
}
std::string ModifyDtsJobNameRequest::getDtsJobId()const
{
return dtsJobId_;
}
void ModifyDtsJobNameRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}

View File

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

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/ModifyDtsJobPasswordRequest.h>
using AlibabaCloud::Dts::Model::ModifyDtsJobPasswordRequest;
ModifyDtsJobPasswordRequest::ModifyDtsJobPasswordRequest() :
RpcServiceRequest("dts", "2020-01-01", "ModifyDtsJobPassword")
{
setMethod(HttpRequest::Method::Post);
}
ModifyDtsJobPasswordRequest::~ModifyDtsJobPasswordRequest()
{}
std::string ModifyDtsJobPasswordRequest::getPassword()const
{
return password_;
}
void ModifyDtsJobPasswordRequest::setPassword(const std::string& password)
{
password_ = password;
setParameter("Password", password);
}
std::string ModifyDtsJobPasswordRequest::getEndpoint()const
{
return endpoint_;
}
void ModifyDtsJobPasswordRequest::setEndpoint(const std::string& endpoint)
{
endpoint_ = endpoint;
setParameter("Endpoint", endpoint);
}
std::string ModifyDtsJobPasswordRequest::getDtsJobId()const
{
return dtsJobId_;
}
void ModifyDtsJobPasswordRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}
std::string ModifyDtsJobPasswordRequest::getUserName()const
{
return userName_;
}
void ModifyDtsJobPasswordRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

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

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/ModifyDtsJobRequest.h>
using AlibabaCloud::Dts::Model::ModifyDtsJobRequest;
ModifyDtsJobRequest::ModifyDtsJobRequest() :
RpcServiceRequest("dts", "2020-01-01", "ModifyDtsJob")
{
setMethod(HttpRequest::Method::Post);
}
ModifyDtsJobRequest::~ModifyDtsJobRequest()
{}
std::string ModifyDtsJobRequest::getDbList()const
{
return dbList_;
}
void ModifyDtsJobRequest::setDbList(const std::string& dbList)
{
dbList_ = dbList;
setBodyParameter("DbList", dbList);
}
std::string ModifyDtsJobRequest::getClientToken()const
{
return clientToken_;
}
void ModifyDtsJobRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string ModifyDtsJobRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyDtsJobRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string ModifyDtsJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ModifyDtsJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ModifyDtsJobRequest::getDtsInstanceId()const
{
return dtsInstanceId_;
}
void ModifyDtsJobRequest::setDtsInstanceId(const std::string& dtsInstanceId)
{
dtsInstanceId_ = dtsInstanceId;
setParameter("DtsInstanceId", dtsInstanceId);
}
std::string ModifyDtsJobRequest::getSynchronizationDirection()const
{
return synchronizationDirection_;
}
void ModifyDtsJobRequest::setSynchronizationDirection(const std::string& synchronizationDirection)
{
synchronizationDirection_ = synchronizationDirection;
setParameter("SynchronizationDirection", synchronizationDirection);
}

View File

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

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/ResetDtsJobRequest.h>
using AlibabaCloud::Dts::Model::ResetDtsJobRequest;
ResetDtsJobRequest::ResetDtsJobRequest() :
RpcServiceRequest("dts", "2020-01-01", "ResetDtsJob")
{
setMethod(HttpRequest::Method::Post);
}
ResetDtsJobRequest::~ResetDtsJobRequest()
{}
std::string ResetDtsJobRequest::getDtsJobId()const
{
return dtsJobId_;
}
void ResetDtsJobRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}
std::string ResetDtsJobRequest::getDtsInstanceId()const
{
return dtsInstanceId_;
}
void ResetDtsJobRequest::setDtsInstanceId(const std::string& dtsInstanceId)
{
dtsInstanceId_ = dtsInstanceId;
setParameter("DtsInstanceId", dtsInstanceId);
}
std::string ResetDtsJobRequest::getSynchronizationDirection()const
{
return synchronizationDirection_;
}
void ResetDtsJobRequest::setSynchronizationDirection(const std::string& synchronizationDirection)
{
synchronizationDirection_ = synchronizationDirection;
setParameter("SynchronizationDirection", synchronizationDirection);
}

View File

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

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/SkipPreCheckRequest.h>
using AlibabaCloud::Dts::Model::SkipPreCheckRequest;
SkipPreCheckRequest::SkipPreCheckRequest() :
RpcServiceRequest("dts", "2020-01-01", "SkipPreCheck")
{
setMethod(HttpRequest::Method::Post);
}
SkipPreCheckRequest::~SkipPreCheckRequest()
{}
std::string SkipPreCheckRequest::getSkipPreCheckItems()const
{
return skipPreCheckItems_;
}
void SkipPreCheckRequest::setSkipPreCheckItems(const std::string& skipPreCheckItems)
{
skipPreCheckItems_ = skipPreCheckItems;
setParameter("SkipPreCheckItems", skipPreCheckItems);
}
bool SkipPreCheckRequest::getSkip()const
{
return skip_;
}
void SkipPreCheckRequest::setSkip(bool skip)
{
skip_ = skip;
setParameter("Skip", skip ? "true" : "false");
}
std::string SkipPreCheckRequest::getJobId()const
{
return jobId_;
}
void SkipPreCheckRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setParameter("JobId", jobId);
}
std::string SkipPreCheckRequest::getSkipPreCheckNames()const
{
return skipPreCheckNames_;
}
void SkipPreCheckRequest::setSkipPreCheckNames(const std::string& skipPreCheckNames)
{
skipPreCheckNames_ = skipPreCheckNames;
setParameter("SkipPreCheckNames", skipPreCheckNames);
}

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.
*/
#include <alibabacloud/dts/model/SkipPreCheckResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dts;
using namespace AlibabaCloud::Dts::Model;
SkipPreCheckResult::SkipPreCheckResult() :
ServiceResult()
{}
SkipPreCheckResult::SkipPreCheckResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SkipPreCheckResult::~SkipPreCheckResult()
{}
void SkipPreCheckResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
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["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["MigrationJobId"].isNull())
migrationJobId_ = value["MigrationJobId"].asString();
if(!value["ScheduleJobId"].isNull())
scheduleJobId_ = value["ScheduleJobId"].asString();
if(!value["SkipItems"].isNull())
skipItems_ = value["SkipItems"].asString();
if(!value["SkipNames"].isNull())
skipNames_ = value["SkipNames"].asString();
}
std::string SkipPreCheckResult::getSkipItems()const
{
return skipItems_;
}
std::string SkipPreCheckResult::getScheduleJobId()const
{
return scheduleJobId_;
}
int SkipPreCheckResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string SkipPreCheckResult::getSkipNames()const
{
return skipNames_;
}
std::string SkipPreCheckResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string SkipPreCheckResult::getErrMessage()const
{
return errMessage_;
}
std::string SkipPreCheckResult::getCode()const
{
return code_;
}
bool SkipPreCheckResult::getSuccess()const
{
return success_;
}
std::string SkipPreCheckResult::getErrCode()const
{
return errCode_;
}
std::string SkipPreCheckResult::getMigrationJobId()const
{
return migrationJobId_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/StopDtsJobRequest.h>
using AlibabaCloud::Dts::Model::StopDtsJobRequest;
StopDtsJobRequest::StopDtsJobRequest() :
RpcServiceRequest("dts", "2020-01-01", "StopDtsJob")
{
setMethod(HttpRequest::Method::Post);
}
StopDtsJobRequest::~StopDtsJobRequest()
{}
std::string StopDtsJobRequest::getDtsJobId()const
{
return dtsJobId_;
}
void StopDtsJobRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}
std::string StopDtsJobRequest::getDtsInstanceId()const
{
return dtsInstanceId_;
}
void StopDtsJobRequest::setDtsInstanceId(const std::string& dtsInstanceId)
{
dtsInstanceId_ = dtsInstanceId;
setParameter("DtsInstanceId", dtsInstanceId);
}
std::string StopDtsJobRequest::getSynchronizationDirection()const
{
return synchronizationDirection_;
}
void StopDtsJobRequest::setSynchronizationDirection(const std::string& synchronizationDirection)
{
synchronizationDirection_ = synchronizationDirection;
setParameter("SynchronizationDirection", synchronizationDirection);
}

View File

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

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/SuspendDtsJobRequest.h>
using AlibabaCloud::Dts::Model::SuspendDtsJobRequest;
SuspendDtsJobRequest::SuspendDtsJobRequest() :
RpcServiceRequest("dts", "2020-01-01", "SuspendDtsJob")
{
setMethod(HttpRequest::Method::Post);
}
SuspendDtsJobRequest::~SuspendDtsJobRequest()
{}
std::string SuspendDtsJobRequest::getDtsJobId()const
{
return dtsJobId_;
}
void SuspendDtsJobRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}
std::string SuspendDtsJobRequest::getDtsInstanceId()const
{
return dtsInstanceId_;
}
void SuspendDtsJobRequest::setDtsInstanceId(const std::string& dtsInstanceId)
{
dtsInstanceId_ = dtsInstanceId;
setParameter("DtsInstanceId", dtsInstanceId);
}
std::string SuspendDtsJobRequest::getSynchronizationDirection()const
{
return synchronizationDirection_;
}
void SuspendDtsJobRequest::setSynchronizationDirection(const std::string& synchronizationDirection)
{
synchronizationDirection_ = synchronizationDirection;
setParameter("SynchronizationDirection", synchronizationDirection);
}

View File

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