com.aliyun.sdk.service.dts20200101.models.StartDtsJobsRequest 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 StartDtsJobsRequest} extends {@link RequestModel}
*
* StartDtsJobsRequest
*/
public class StartDtsJobsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DtsJobIds")
@com.aliyun.core.annotation.Validation(required = true)
private String dtsJobIds;
@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("ZeroEtlJob")
private Boolean zeroEtlJob;
private StartDtsJobsRequest(Builder builder) {
super(builder);
this.dtsJobIds = builder.dtsJobIds;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.zeroEtlJob = builder.zeroEtlJob;
}
public static Builder builder() {
return new Builder();
}
public static StartDtsJobsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dtsJobIds
*/
public String getDtsJobIds() {
return this.dtsJobIds;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return zeroEtlJob
*/
public Boolean getZeroEtlJob() {
return this.zeroEtlJob;
}
public static final class Builder extends Request.Builder {
private String dtsJobIds;
private String regionId;
private String resourceGroupId;
private Boolean zeroEtlJob;
private Builder() {
super();
}
private Builder(StartDtsJobsRequest request) {
super(request);
this.dtsJobIds = request.dtsJobIds;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.zeroEtlJob = request.zeroEtlJob;
}
/**
* The ID of the data migration or data synchronization task.
*
*
* >
* * For multiple tasks, separate them with commas (**,**).
* * You can call the [DescribeDtsJobs](~~209702~~) operation to query the task ID.
*/
public Builder dtsJobIds(String dtsJobIds) {
this.putQueryParameter("DtsJobIds", dtsJobIds);
this.dtsJobIds = dtsJobIds;
return this;
}
/**
* The region ID of the 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;
}
/**
* ZeroEtlJob.
*/
public Builder zeroEtlJob(Boolean zeroEtlJob) {
this.putQueryParameter("ZeroEtlJob", zeroEtlJob);
this.zeroEtlJob = zeroEtlJob;
return this;
}
@Override
public StartDtsJobsRequest build() {
return new StartDtsJobsRequest(this);
}
}
}