com.aliyun.sdk.service.dts20200101.models.StartDtsJobRequest Maven / Gradle / Ivy
Show all versions of alibabacloud-dts20200101 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dts20200101.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link StartDtsJobRequest} extends {@link RequestModel}
*
* StartDtsJobRequest
*/
public class StartDtsJobRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DtsInstanceId")
private String dtsInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DtsJobId")
private String dtsJobId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SynchronizationDirection")
private String synchronizationDirection;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZeroEtlJob")
private Boolean zeroEtlJob;
private StartDtsJobRequest(Builder builder) {
super(builder);
this.dtsInstanceId = builder.dtsInstanceId;
this.dtsJobId = builder.dtsJobId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.synchronizationDirection = builder.synchronizationDirection;
this.zeroEtlJob = builder.zeroEtlJob;
}
public static Builder builder() {
return new Builder();
}
public static StartDtsJobRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dtsInstanceId
*/
public String getDtsInstanceId() {
return this.dtsInstanceId;
}
/**
* @return dtsJobId
*/
public String getDtsJobId() {
return this.dtsJobId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return synchronizationDirection
*/
public String getSynchronizationDirection() {
return this.synchronizationDirection;
}
/**
* @return zeroEtlJob
*/
public Boolean getZeroEtlJob() {
return this.zeroEtlJob;
}
public static final class Builder extends Request.Builder {
private String dtsInstanceId;
private String dtsJobId;
private String regionId;
private String resourceGroupId;
private String synchronizationDirection;
private Boolean zeroEtlJob;
private Builder() {
super();
}
private Builder(StartDtsJobRequest request) {
super(request);
this.dtsInstanceId = request.dtsInstanceId;
this.dtsJobId = request.dtsJobId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.synchronizationDirection = request.synchronizationDirection;
this.zeroEtlJob = request.zeroEtlJob;
}
/**
* The ID of the data migration, data synchronization, or change tracking instance.
*
*
* > You can call the [DescribeMigrationJobs](~~208139~~), [DescribeSubscriptionInstances](~~49442~~), or [DescribeSynchronizationJobs](~~49454~~) operation to query the instance ID
*/
public Builder dtsInstanceId(String dtsInstanceId) {
this.putQueryParameter("DtsInstanceId", dtsInstanceId);
this.dtsInstanceId = dtsInstanceId;
return this;
}
/**
* The ID of the data migration, data synchronization, or change tracking task.
*/
public Builder dtsJobId(String dtsJobId) {
this.putQueryParameter("DtsJobId", dtsJobId);
this.dtsJobId = dtsJobId;
return this;
}
/**
* The region ID of the Data Transmission Service (DTS) instance. For more information, see [List of supported regions](~~141033~~).
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceGroupId.
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* The synchronization direction. Default value: Forward. Valid values:
*
*
* * **Forward**: Data is synchronized from the source database to the destination database.
*
* * **Reverse**: Data is synchronized from the destination database to the source database.
*
* >You can set this parameter to **Reverse** to start the reverse synchronization task only if the topology is two-way synchronization.
*/
public Builder synchronizationDirection(String synchronizationDirection) {
this.putQueryParameter("SynchronizationDirection", synchronizationDirection);
this.synchronizationDirection = synchronizationDirection;
return this;
}
/**
* ZeroEtlJob.
*/
public Builder zeroEtlJob(Boolean zeroEtlJob) {
this.putQueryParameter("ZeroEtlJob", zeroEtlJob);
this.zeroEtlJob = zeroEtlJob;
return this;
}
@Override
public StartDtsJobRequest build() {
return new StartDtsJobRequest(this);
}
}
}