Add TaskId for DescribeMigrationJobStatus, DescribeSubscriptionInstanceStatus, DescribeSynchronizationJobStatus.

This commit is contained in:
sdk-team
2021-02-26 07:19:42 +00:00
parent 4017f787f4
commit d57006bd72
13 changed files with 1442 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
2021-02-26 Version: patch
- Add TaskId for DescribeMigrationJobStatus, DescribeSubscriptionInstanceStatus, DescribeSynchronizationJobStatus.
- Add API CreateDtsInstance, ConfigureDtsJob, StartDtsJob.
2021-02-26 Version: patch 2021-02-26 Version: patch
- Support SLR by InitializeDbsServiceLinkedRole action. - Support SLR by InitializeDbsServiceLinkedRole action.
- Change DescribeIncrementBackupList and DescribeFullBackupList to Support Range filter by endTimestamp. - Change DescribeIncrementBackupList and DescribeFullBackupList to Support Range filter by endTimestamp.

View File

@@ -0,0 +1,159 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_CONFIGUREDTSJOBREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_CONFIGUREDTSJOBREQUEST_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 ConfigureDtsJobRequest : public RpcServiceRequest
{
public:
ConfigureDtsJobRequest();
~ConfigureDtsJobRequest();
std::string getCheckpoint()const;
void setCheckpoint(const std::string& checkpoint);
std::string getSourceEndpointUserName()const;
void setSourceEndpointUserName(const std::string& sourceEndpointUserName);
std::string getDelayPhone()const;
void setDelayPhone(const std::string& delayPhone);
std::string getSourceEndpointIP()const;
void setSourceEndpointIP(const std::string& sourceEndpointIP);
std::string getErrorPhone()const;
void setErrorPhone(const std::string& errorPhone);
std::string getDestinationEndpointUserName()const;
void setDestinationEndpointUserName(const std::string& destinationEndpointUserName);
std::string getDtsJobId()const;
void setDtsJobId(const std::string& dtsJobId);
std::string getDbList()const;
void setDbList(const std::string& dbList);
std::string getDestinationEndpointOracleSID()const;
void setDestinationEndpointOracleSID(const std::string& destinationEndpointOracleSID);
std::string getDestinationEndpointPort()const;
void setDestinationEndpointPort(const std::string& destinationEndpointPort);
std::string getSourceEndpointPassword()const;
void setSourceEndpointPassword(const std::string& sourceEndpointPassword);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
std::string getJobType()const;
void setJobType(const std::string& jobType);
long getDelayRuleTime()const;
void setDelayRuleTime(long delayRuleTime);
std::string getDestinationEndpointIP()const;
void setDestinationEndpointIP(const std::string& destinationEndpointIP);
std::string getSourceEndpointInstanceType()const;
void setSourceEndpointInstanceType(const std::string& sourceEndpointInstanceType);
std::string getDtsJobName()const;
void setDtsJobName(const std::string& dtsJobName);
std::string getDtsInstanceId()const;
void setDtsInstanceId(const std::string& dtsInstanceId);
std::string getSourceEndpointRegion()const;
void setSourceEndpointRegion(const std::string& sourceEndpointRegion);
bool getDelayNotice()const;
void setDelayNotice(bool delayNotice);
std::string getDestinationEndpointInstanceType()const;
void setDestinationEndpointInstanceType(const std::string& destinationEndpointInstanceType);
bool getDataInitialization()const;
void setDataInitialization(bool dataInitialization);
std::string getSourceEndpointInstanceID()const;
void setSourceEndpointInstanceID(const std::string& sourceEndpointInstanceID);
bool getStructureInitialization()const;
void setStructureInitialization(bool structureInitialization);
std::string getSourceEndpointOwnerID()const;
void setSourceEndpointOwnerID(const std::string& sourceEndpointOwnerID);
std::string getSourceEndpointDatabaseName()const;
void setSourceEndpointDatabaseName(const std::string& sourceEndpointDatabaseName);
std::string getDestinationEndpointRegion()const;
void setDestinationEndpointRegion(const std::string& destinationEndpointRegion);
std::string getReserve()const;
void setReserve(const std::string& reserve);
bool getDataSynchronization()const;
void setDataSynchronization(bool dataSynchronization);
std::string getDestinationEndpointEngineName()const;
void setDestinationEndpointEngineName(const std::string& destinationEndpointEngineName);
std::string getDestinationEndpointInstanceID()const;
void setDestinationEndpointInstanceID(const std::string& destinationEndpointInstanceID);
std::string getSourceEndpointPort()const;
void setSourceEndpointPort(const std::string& sourceEndpointPort);
std::string getSourceEndpointOracleSID()const;
void setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID);
std::string getDestinationEndpointDataBaseName()const;
void setDestinationEndpointDataBaseName(const std::string& destinationEndpointDataBaseName);
bool getErrorNotice()const;
void setErrorNotice(bool errorNotice);
std::string getSourceEndpointRole()const;
void setSourceEndpointRole(const std::string& sourceEndpointRole);
std::string getDestinationEndpointPassword()const;
void setDestinationEndpointPassword(const std::string& destinationEndpointPassword);
std::string getSourceEndpointEngineName()const;
void setSourceEndpointEngineName(const std::string& sourceEndpointEngineName);
private:
std::string checkpoint_;
std::string sourceEndpointUserName_;
std::string delayPhone_;
std::string sourceEndpointIP_;
std::string errorPhone_;
std::string destinationEndpointUserName_;
std::string dtsJobId_;
std::string dbList_;
std::string destinationEndpointOracleSID_;
std::string destinationEndpointPort_;
std::string sourceEndpointPassword_;
std::string ownerId_;
std::string jobType_;
long delayRuleTime_;
std::string destinationEndpointIP_;
std::string sourceEndpointInstanceType_;
std::string dtsJobName_;
std::string dtsInstanceId_;
std::string sourceEndpointRegion_;
bool delayNotice_;
std::string destinationEndpointInstanceType_;
bool dataInitialization_;
std::string sourceEndpointInstanceID_;
bool structureInitialization_;
std::string sourceEndpointOwnerID_;
std::string sourceEndpointDatabaseName_;
std::string destinationEndpointRegion_;
std::string reserve_;
bool dataSynchronization_;
std::string destinationEndpointEngineName_;
std::string destinationEndpointInstanceID_;
std::string sourceEndpointPort_;
std::string sourceEndpointOracleSID_;
std::string destinationEndpointDataBaseName_;
bool errorNotice_;
std::string sourceEndpointRole_;
std::string destinationEndpointPassword_;
std::string sourceEndpointEngineName_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGUREDTSJOBREQUEST_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_CONFIGUREDTSJOBRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_CONFIGUREDTSJOBRESULT_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 ConfigureDtsJobResult : public ServiceResult
{
public:
ConfigureDtsJobResult();
explicit ConfigureDtsJobResult(const std::string &payload);
~ConfigureDtsJobResult();
std::string getDtsJobId()const;
std::string getHttpStatusCode()const;
std::string getErrMessage()const;
std::string getDtsInstanceId()const;
std::string getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
std::string dtsJobId_;
std::string httpStatusCode_;
std::string errMessage_;
std::string dtsInstanceId_;
std::string success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGUREDTSJOBRESULT_H_

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_CREATEDTSINSTANCEREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_CREATEDTSINSTANCEREQUEST_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 CreateDtsInstanceRequest : public RpcServiceRequest
{
public:
CreateDtsInstanceRequest();
~CreateDtsInstanceRequest();
bool getAutoStart()const;
void setAutoStart(bool autoStart);
std::string getType()const;
void setType(const std::string& type);
std::string getInstanceClass()const;
void setInstanceClass(const std::string& instanceClass);
int getDatabaseCount()const;
void setDatabaseCount(int databaseCount);
std::string getJobId()const;
void setJobId(const std::string& jobId);
std::string getDestinationRegion()const;
void setDestinationRegion(const std::string& destinationRegion);
std::string getPeriod()const;
void setPeriod(const std::string& period);
std::string getDestinationEndpointEngineName()const;
void setDestinationEndpointEngineName(const std::string& destinationEndpointEngineName);
int getQuantity()const;
void setQuantity(int quantity);
bool getAutoPay()const;
void setAutoPay(bool autoPay);
int getUsedTime()const;
void setUsedTime(int usedTime);
std::string getSyncArchitecture()const;
void setSyncArchitecture(const std::string& syncArchitecture);
std::string getPayType()const;
void setPayType(const std::string& payType);
std::string getSourceRegion()const;
void setSourceRegion(const std::string& sourceRegion);
std::string getSourceEndpointEngineName()const;
void setSourceEndpointEngineName(const std::string& sourceEndpointEngineName);
private:
bool autoStart_;
std::string type_;
std::string instanceClass_;
int databaseCount_;
std::string jobId_;
std::string destinationRegion_;
std::string period_;
std::string destinationEndpointEngineName_;
int quantity_;
bool autoPay_;
int usedTime_;
std::string syncArchitecture_;
std::string payType_;
std::string sourceRegion_;
std::string sourceEndpointEngineName_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_CREATEDTSINSTANCEREQUEST_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_CREATEDTSINSTANCERESULT_H_
#define ALIBABACLOUD_DTS_MODEL_CREATEDTSINSTANCERESULT_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 CreateDtsInstanceResult : public ServiceResult
{
public:
CreateDtsInstanceResult();
explicit CreateDtsInstanceResult(const std::string &payload);
~CreateDtsInstanceResult();
std::string getInstanceId()const;
std::string getErrMessage()const;
std::string getSuccess()const;
std::string getJobId()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
std::string instanceId_;
std::string errMessage_;
std::string success_;
std::string jobId_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_CREATEDTSINSTANCERESULT_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_STARTDTSJOBREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_STARTDTSJOBREQUEST_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 StartDtsJobRequest : public RpcServiceRequest
{
public:
StartDtsJobRequest();
~StartDtsJobRequest();
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_STARTDTSJOBREQUEST_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_STARTDTSJOBRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_STARTDTSJOBRESULT_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 StartDtsJobResult : public ServiceResult
{
public:
StartDtsJobResult();
explicit StartDtsJobResult(const std::string &payload);
~StartDtsJobResult();
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_STARTDTSJOBRESULT_H_

View File

@@ -0,0 +1,447 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/ConfigureDtsJobRequest.h>
using AlibabaCloud::Dts::Model::ConfigureDtsJobRequest;
ConfigureDtsJobRequest::ConfigureDtsJobRequest() :
RpcServiceRequest("dts", "2020-01-01", "ConfigureDtsJob")
{
setMethod(HttpRequest::Method::Post);
}
ConfigureDtsJobRequest::~ConfigureDtsJobRequest()
{}
std::string ConfigureDtsJobRequest::getCheckpoint()const
{
return checkpoint_;
}
void ConfigureDtsJobRequest::setCheckpoint(const std::string& checkpoint)
{
checkpoint_ = checkpoint;
setParameter("Checkpoint", checkpoint);
}
std::string ConfigureDtsJobRequest::getSourceEndpointUserName()const
{
return sourceEndpointUserName_;
}
void ConfigureDtsJobRequest::setSourceEndpointUserName(const std::string& sourceEndpointUserName)
{
sourceEndpointUserName_ = sourceEndpointUserName;
setParameter("SourceEndpointUserName", sourceEndpointUserName);
}
std::string ConfigureDtsJobRequest::getDelayPhone()const
{
return delayPhone_;
}
void ConfigureDtsJobRequest::setDelayPhone(const std::string& delayPhone)
{
delayPhone_ = delayPhone;
setParameter("DelayPhone", delayPhone);
}
std::string ConfigureDtsJobRequest::getSourceEndpointIP()const
{
return sourceEndpointIP_;
}
void ConfigureDtsJobRequest::setSourceEndpointIP(const std::string& sourceEndpointIP)
{
sourceEndpointIP_ = sourceEndpointIP;
setParameter("SourceEndpointIP", sourceEndpointIP);
}
std::string ConfigureDtsJobRequest::getErrorPhone()const
{
return errorPhone_;
}
void ConfigureDtsJobRequest::setErrorPhone(const std::string& errorPhone)
{
errorPhone_ = errorPhone;
setParameter("ErrorPhone", errorPhone);
}
std::string ConfigureDtsJobRequest::getDestinationEndpointUserName()const
{
return destinationEndpointUserName_;
}
void ConfigureDtsJobRequest::setDestinationEndpointUserName(const std::string& destinationEndpointUserName)
{
destinationEndpointUserName_ = destinationEndpointUserName;
setParameter("DestinationEndpointUserName", destinationEndpointUserName);
}
std::string ConfigureDtsJobRequest::getDtsJobId()const
{
return dtsJobId_;
}
void ConfigureDtsJobRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}
std::string ConfigureDtsJobRequest::getDbList()const
{
return dbList_;
}
void ConfigureDtsJobRequest::setDbList(const std::string& dbList)
{
dbList_ = dbList;
setParameter("DbList", dbList);
}
std::string ConfigureDtsJobRequest::getDestinationEndpointOracleSID()const
{
return destinationEndpointOracleSID_;
}
void ConfigureDtsJobRequest::setDestinationEndpointOracleSID(const std::string& destinationEndpointOracleSID)
{
destinationEndpointOracleSID_ = destinationEndpointOracleSID;
setParameter("DestinationEndpointOracleSID", destinationEndpointOracleSID);
}
std::string ConfigureDtsJobRequest::getDestinationEndpointPort()const
{
return destinationEndpointPort_;
}
void ConfigureDtsJobRequest::setDestinationEndpointPort(const std::string& destinationEndpointPort)
{
destinationEndpointPort_ = destinationEndpointPort;
setParameter("DestinationEndpointPort", destinationEndpointPort);
}
std::string ConfigureDtsJobRequest::getSourceEndpointPassword()const
{
return sourceEndpointPassword_;
}
void ConfigureDtsJobRequest::setSourceEndpointPassword(const std::string& sourceEndpointPassword)
{
sourceEndpointPassword_ = sourceEndpointPassword;
setParameter("SourceEndpointPassword", sourceEndpointPassword);
}
std::string ConfigureDtsJobRequest::getOwnerId()const
{
return ownerId_;
}
void ConfigureDtsJobRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string ConfigureDtsJobRequest::getJobType()const
{
return jobType_;
}
void ConfigureDtsJobRequest::setJobType(const std::string& jobType)
{
jobType_ = jobType;
setParameter("JobType", jobType);
}
long ConfigureDtsJobRequest::getDelayRuleTime()const
{
return delayRuleTime_;
}
void ConfigureDtsJobRequest::setDelayRuleTime(long delayRuleTime)
{
delayRuleTime_ = delayRuleTime;
setParameter("DelayRuleTime", std::to_string(delayRuleTime));
}
std::string ConfigureDtsJobRequest::getDestinationEndpointIP()const
{
return destinationEndpointIP_;
}
void ConfigureDtsJobRequest::setDestinationEndpointIP(const std::string& destinationEndpointIP)
{
destinationEndpointIP_ = destinationEndpointIP;
setParameter("DestinationEndpointIP", destinationEndpointIP);
}
std::string ConfigureDtsJobRequest::getSourceEndpointInstanceType()const
{
return sourceEndpointInstanceType_;
}
void ConfigureDtsJobRequest::setSourceEndpointInstanceType(const std::string& sourceEndpointInstanceType)
{
sourceEndpointInstanceType_ = sourceEndpointInstanceType;
setParameter("SourceEndpointInstanceType", sourceEndpointInstanceType);
}
std::string ConfigureDtsJobRequest::getDtsJobName()const
{
return dtsJobName_;
}
void ConfigureDtsJobRequest::setDtsJobName(const std::string& dtsJobName)
{
dtsJobName_ = dtsJobName;
setParameter("DtsJobName", dtsJobName);
}
std::string ConfigureDtsJobRequest::getDtsInstanceId()const
{
return dtsInstanceId_;
}
void ConfigureDtsJobRequest::setDtsInstanceId(const std::string& dtsInstanceId)
{
dtsInstanceId_ = dtsInstanceId;
setParameter("DtsInstanceId", dtsInstanceId);
}
std::string ConfigureDtsJobRequest::getSourceEndpointRegion()const
{
return sourceEndpointRegion_;
}
void ConfigureDtsJobRequest::setSourceEndpointRegion(const std::string& sourceEndpointRegion)
{
sourceEndpointRegion_ = sourceEndpointRegion;
setParameter("SourceEndpointRegion", sourceEndpointRegion);
}
bool ConfigureDtsJobRequest::getDelayNotice()const
{
return delayNotice_;
}
void ConfigureDtsJobRequest::setDelayNotice(bool delayNotice)
{
delayNotice_ = delayNotice;
setParameter("DelayNotice", delayNotice ? "true" : "false");
}
std::string ConfigureDtsJobRequest::getDestinationEndpointInstanceType()const
{
return destinationEndpointInstanceType_;
}
void ConfigureDtsJobRequest::setDestinationEndpointInstanceType(const std::string& destinationEndpointInstanceType)
{
destinationEndpointInstanceType_ = destinationEndpointInstanceType;
setParameter("DestinationEndpointInstanceType", destinationEndpointInstanceType);
}
bool ConfigureDtsJobRequest::getDataInitialization()const
{
return dataInitialization_;
}
void ConfigureDtsJobRequest::setDataInitialization(bool dataInitialization)
{
dataInitialization_ = dataInitialization;
setParameter("DataInitialization", dataInitialization ? "true" : "false");
}
std::string ConfigureDtsJobRequest::getSourceEndpointInstanceID()const
{
return sourceEndpointInstanceID_;
}
void ConfigureDtsJobRequest::setSourceEndpointInstanceID(const std::string& sourceEndpointInstanceID)
{
sourceEndpointInstanceID_ = sourceEndpointInstanceID;
setParameter("SourceEndpointInstanceID", sourceEndpointInstanceID);
}
bool ConfigureDtsJobRequest::getStructureInitialization()const
{
return structureInitialization_;
}
void ConfigureDtsJobRequest::setStructureInitialization(bool structureInitialization)
{
structureInitialization_ = structureInitialization;
setParameter("StructureInitialization", structureInitialization ? "true" : "false");
}
std::string ConfigureDtsJobRequest::getSourceEndpointOwnerID()const
{
return sourceEndpointOwnerID_;
}
void ConfigureDtsJobRequest::setSourceEndpointOwnerID(const std::string& sourceEndpointOwnerID)
{
sourceEndpointOwnerID_ = sourceEndpointOwnerID;
setParameter("SourceEndpointOwnerID", sourceEndpointOwnerID);
}
std::string ConfigureDtsJobRequest::getSourceEndpointDatabaseName()const
{
return sourceEndpointDatabaseName_;
}
void ConfigureDtsJobRequest::setSourceEndpointDatabaseName(const std::string& sourceEndpointDatabaseName)
{
sourceEndpointDatabaseName_ = sourceEndpointDatabaseName;
setParameter("SourceEndpointDatabaseName", sourceEndpointDatabaseName);
}
std::string ConfigureDtsJobRequest::getDestinationEndpointRegion()const
{
return destinationEndpointRegion_;
}
void ConfigureDtsJobRequest::setDestinationEndpointRegion(const std::string& destinationEndpointRegion)
{
destinationEndpointRegion_ = destinationEndpointRegion;
setParameter("DestinationEndpointRegion", destinationEndpointRegion);
}
std::string ConfigureDtsJobRequest::getReserve()const
{
return reserve_;
}
void ConfigureDtsJobRequest::setReserve(const std::string& reserve)
{
reserve_ = reserve;
setParameter("Reserve", reserve);
}
bool ConfigureDtsJobRequest::getDataSynchronization()const
{
return dataSynchronization_;
}
void ConfigureDtsJobRequest::setDataSynchronization(bool dataSynchronization)
{
dataSynchronization_ = dataSynchronization;
setParameter("DataSynchronization", dataSynchronization ? "true" : "false");
}
std::string ConfigureDtsJobRequest::getDestinationEndpointEngineName()const
{
return destinationEndpointEngineName_;
}
void ConfigureDtsJobRequest::setDestinationEndpointEngineName(const std::string& destinationEndpointEngineName)
{
destinationEndpointEngineName_ = destinationEndpointEngineName;
setParameter("DestinationEndpointEngineName", destinationEndpointEngineName);
}
std::string ConfigureDtsJobRequest::getDestinationEndpointInstanceID()const
{
return destinationEndpointInstanceID_;
}
void ConfigureDtsJobRequest::setDestinationEndpointInstanceID(const std::string& destinationEndpointInstanceID)
{
destinationEndpointInstanceID_ = destinationEndpointInstanceID;
setParameter("DestinationEndpointInstanceID", destinationEndpointInstanceID);
}
std::string ConfigureDtsJobRequest::getSourceEndpointPort()const
{
return sourceEndpointPort_;
}
void ConfigureDtsJobRequest::setSourceEndpointPort(const std::string& sourceEndpointPort)
{
sourceEndpointPort_ = sourceEndpointPort;
setParameter("SourceEndpointPort", sourceEndpointPort);
}
std::string ConfigureDtsJobRequest::getSourceEndpointOracleSID()const
{
return sourceEndpointOracleSID_;
}
void ConfigureDtsJobRequest::setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID)
{
sourceEndpointOracleSID_ = sourceEndpointOracleSID;
setParameter("SourceEndpointOracleSID", sourceEndpointOracleSID);
}
std::string ConfigureDtsJobRequest::getDestinationEndpointDataBaseName()const
{
return destinationEndpointDataBaseName_;
}
void ConfigureDtsJobRequest::setDestinationEndpointDataBaseName(const std::string& destinationEndpointDataBaseName)
{
destinationEndpointDataBaseName_ = destinationEndpointDataBaseName;
setParameter("DestinationEndpointDataBaseName", destinationEndpointDataBaseName);
}
bool ConfigureDtsJobRequest::getErrorNotice()const
{
return errorNotice_;
}
void ConfigureDtsJobRequest::setErrorNotice(bool errorNotice)
{
errorNotice_ = errorNotice;
setParameter("ErrorNotice", errorNotice ? "true" : "false");
}
std::string ConfigureDtsJobRequest::getSourceEndpointRole()const
{
return sourceEndpointRole_;
}
void ConfigureDtsJobRequest::setSourceEndpointRole(const std::string& sourceEndpointRole)
{
sourceEndpointRole_ = sourceEndpointRole;
setParameter("SourceEndpointRole", sourceEndpointRole);
}
std::string ConfigureDtsJobRequest::getDestinationEndpointPassword()const
{
return destinationEndpointPassword_;
}
void ConfigureDtsJobRequest::setDestinationEndpointPassword(const std::string& destinationEndpointPassword)
{
destinationEndpointPassword_ = destinationEndpointPassword;
setParameter("DestinationEndpointPassword", destinationEndpointPassword);
}
std::string ConfigureDtsJobRequest::getSourceEndpointEngineName()const
{
return sourceEndpointEngineName_;
}
void ConfigureDtsJobRequest::setSourceEndpointEngineName(const std::string& sourceEndpointEngineName)
{
sourceEndpointEngineName_ = sourceEndpointEngineName;
setParameter("SourceEndpointEngineName", sourceEndpointEngineName);
}

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/ConfigureDtsJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dts;
using namespace AlibabaCloud::Dts::Model;
ConfigureDtsJobResult::ConfigureDtsJobResult() :
ServiceResult()
{}
ConfigureDtsJobResult::ConfigureDtsJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConfigureDtsJobResult::~ConfigureDtsJobResult()
{}
void ConfigureDtsJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = value["HttpStatusCode"].asString();
if(!value["DtsJobId"].isNull())
dtsJobId_ = value["DtsJobId"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString();
if(!value["DtsInstanceId"].isNull())
dtsInstanceId_ = value["DtsInstanceId"].asString();
}
std::string ConfigureDtsJobResult::getDtsJobId()const
{
return dtsJobId_;
}
std::string ConfigureDtsJobResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ConfigureDtsJobResult::getErrMessage()const
{
return errMessage_;
}
std::string ConfigureDtsJobResult::getDtsInstanceId()const
{
return dtsInstanceId_;
}
std::string ConfigureDtsJobResult::getSuccess()const
{
return success_;
}
std::string ConfigureDtsJobResult::getErrCode()const
{
return errCode_;
}

View File

@@ -0,0 +1,194 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/CreateDtsInstanceRequest.h>
using AlibabaCloud::Dts::Model::CreateDtsInstanceRequest;
CreateDtsInstanceRequest::CreateDtsInstanceRequest() :
RpcServiceRequest("dts", "2020-01-01", "CreateDtsInstance")
{
setMethod(HttpRequest::Method::Post);
}
CreateDtsInstanceRequest::~CreateDtsInstanceRequest()
{}
bool CreateDtsInstanceRequest::getAutoStart()const
{
return autoStart_;
}
void CreateDtsInstanceRequest::setAutoStart(bool autoStart)
{
autoStart_ = autoStart;
setParameter("AutoStart", autoStart ? "true" : "false");
}
std::string CreateDtsInstanceRequest::getType()const
{
return type_;
}
void CreateDtsInstanceRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string CreateDtsInstanceRequest::getInstanceClass()const
{
return instanceClass_;
}
void CreateDtsInstanceRequest::setInstanceClass(const std::string& instanceClass)
{
instanceClass_ = instanceClass;
setParameter("InstanceClass", instanceClass);
}
int CreateDtsInstanceRequest::getDatabaseCount()const
{
return databaseCount_;
}
void CreateDtsInstanceRequest::setDatabaseCount(int databaseCount)
{
databaseCount_ = databaseCount;
setParameter("DatabaseCount", std::to_string(databaseCount));
}
std::string CreateDtsInstanceRequest::getJobId()const
{
return jobId_;
}
void CreateDtsInstanceRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setParameter("JobId", jobId);
}
std::string CreateDtsInstanceRequest::getDestinationRegion()const
{
return destinationRegion_;
}
void CreateDtsInstanceRequest::setDestinationRegion(const std::string& destinationRegion)
{
destinationRegion_ = destinationRegion;
setParameter("DestinationRegion", destinationRegion);
}
std::string CreateDtsInstanceRequest::getPeriod()const
{
return period_;
}
void CreateDtsInstanceRequest::setPeriod(const std::string& period)
{
period_ = period;
setParameter("Period", period);
}
std::string CreateDtsInstanceRequest::getDestinationEndpointEngineName()const
{
return destinationEndpointEngineName_;
}
void CreateDtsInstanceRequest::setDestinationEndpointEngineName(const std::string& destinationEndpointEngineName)
{
destinationEndpointEngineName_ = destinationEndpointEngineName;
setParameter("DestinationEndpointEngineName", destinationEndpointEngineName);
}
int CreateDtsInstanceRequest::getQuantity()const
{
return quantity_;
}
void CreateDtsInstanceRequest::setQuantity(int quantity)
{
quantity_ = quantity;
setParameter("Quantity", std::to_string(quantity));
}
bool CreateDtsInstanceRequest::getAutoPay()const
{
return autoPay_;
}
void CreateDtsInstanceRequest::setAutoPay(bool autoPay)
{
autoPay_ = autoPay;
setParameter("AutoPay", autoPay ? "true" : "false");
}
int CreateDtsInstanceRequest::getUsedTime()const
{
return usedTime_;
}
void CreateDtsInstanceRequest::setUsedTime(int usedTime)
{
usedTime_ = usedTime;
setParameter("UsedTime", std::to_string(usedTime));
}
std::string CreateDtsInstanceRequest::getSyncArchitecture()const
{
return syncArchitecture_;
}
void CreateDtsInstanceRequest::setSyncArchitecture(const std::string& syncArchitecture)
{
syncArchitecture_ = syncArchitecture;
setParameter("SyncArchitecture", syncArchitecture);
}
std::string CreateDtsInstanceRequest::getPayType()const
{
return payType_;
}
void CreateDtsInstanceRequest::setPayType(const std::string& payType)
{
payType_ = payType;
setParameter("PayType", payType);
}
std::string CreateDtsInstanceRequest::getSourceRegion()const
{
return sourceRegion_;
}
void CreateDtsInstanceRequest::setSourceRegion(const std::string& sourceRegion)
{
sourceRegion_ = sourceRegion;
setParameter("SourceRegion", sourceRegion);
}
std::string CreateDtsInstanceRequest::getSourceEndpointEngineName()const
{
return sourceEndpointEngineName_;
}
void CreateDtsInstanceRequest::setSourceEndpointEngineName(const std::string& sourceEndpointEngineName)
{
sourceEndpointEngineName_ = sourceEndpointEngineName;
setParameter("SourceEndpointEngineName", sourceEndpointEngineName);
}

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/CreateDtsInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dts;
using namespace AlibabaCloud::Dts::Model;
CreateDtsInstanceResult::CreateDtsInstanceResult() :
ServiceResult()
{}
CreateDtsInstanceResult::CreateDtsInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDtsInstanceResult::~CreateDtsInstanceResult()
{}
void CreateDtsInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString();
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
if(!value["JobId"].isNull())
jobId_ = value["JobId"].asString();
}
std::string CreateDtsInstanceResult::getInstanceId()const
{
return instanceId_;
}
std::string CreateDtsInstanceResult::getErrMessage()const
{
return errMessage_;
}
std::string CreateDtsInstanceResult::getSuccess()const
{
return success_;
}
std::string CreateDtsInstanceResult::getJobId()const
{
return jobId_;
}
std::string CreateDtsInstanceResult::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/StartDtsJobRequest.h>
using AlibabaCloud::Dts::Model::StartDtsJobRequest;
StartDtsJobRequest::StartDtsJobRequest() :
RpcServiceRequest("dts", "2020-01-01", "StartDtsJob")
{
setMethod(HttpRequest::Method::Post);
}
StartDtsJobRequest::~StartDtsJobRequest()
{}
std::string StartDtsJobRequest::getDtsJobId()const
{
return dtsJobId_;
}
void StartDtsJobRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}
std::string StartDtsJobRequest::getDtsInstanceId()const
{
return dtsInstanceId_;
}
void StartDtsJobRequest::setDtsInstanceId(const std::string& dtsInstanceId)
{
dtsInstanceId_ = dtsInstanceId;
setParameter("DtsInstanceId", dtsInstanceId);
}
std::string StartDtsJobRequest::getSynchronizationDirection()const
{
return synchronizationDirection_;
}
void StartDtsJobRequest::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/StartDtsJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dts;
using namespace AlibabaCloud::Dts::Model;
StartDtsJobResult::StartDtsJobResult() :
ServiceResult()
{}
StartDtsJobResult::StartDtsJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartDtsJobResult::~StartDtsJobResult()
{}
void StartDtsJobResult::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 StartDtsJobResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string StartDtsJobResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string StartDtsJobResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string StartDtsJobResult::getErrMessage()const
{
return errMessage_;
}
bool StartDtsJobResult::getSuccess()const
{
return success_;
}
std::string StartDtsJobResult::getErrCode()const
{
return errCode_;
}