Add TaskId for DescribeMigrationJobStatus, DescribeSubscriptionInstanceStatus, DescribeSynchronizationJobStatus.
This commit is contained in:
447
dts/src/model/ConfigureDtsJobRequest.cc
Normal file
447
dts/src/model/ConfigureDtsJobRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
86
dts/src/model/ConfigureDtsJobResult.cc
Normal file
86
dts/src/model/ConfigureDtsJobResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
194
dts/src/model/CreateDtsInstanceRequest.cc
Normal file
194
dts/src/model/CreateDtsInstanceRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
79
dts/src/model/CreateDtsInstanceResult.cc
Normal file
79
dts/src/model/CreateDtsInstanceResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
62
dts/src/model/StartDtsJobRequest.cc
Normal file
62
dts/src/model/StartDtsJobRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
86
dts/src/model/StartDtsJobResult.cc
Normal file
86
dts/src/model/StartDtsJobResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user