com.aliyun.sdk.service.dts20200101.models.StopDtsJobRequest 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 StopDtsJobRequest} extends {@link RequestModel}
*
* StopDtsJobRequest
*/
public class StopDtsJobRequest 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 StopDtsJobRequest(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 StopDtsJobRequest 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(StopDtsJobRequest 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.
*/
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;
}
/**
* RegionId.
*/
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. Valid values:
*
*
* * **Forward**
* * **Reverse**
*
* >
* * Default value: **Forward**.
* * You can set this parameter to **Reverse** to stop the reverse synchronization task only when 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 StopDtsJobRequest build() {
return new StopDtsJobRequest(this);
}
}
}