com.aliyun.sdk.service.dts20200101.models.DescribeConsumerChannelRequest 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 DescribeConsumerChannelRequest} extends {@link RequestModel}
*
* DescribeConsumerChannelRequest
*/
public class DescribeConsumerChannelRequest 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("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ParentChannelId")
private String parentChannelId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
private DescribeConsumerChannelRequest(Builder builder) {
super(builder);
this.dtsInstanceId = builder.dtsInstanceId;
this.dtsJobId = builder.dtsJobId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.parentChannelId = builder.parentChannelId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeConsumerChannelRequest 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 pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return parentChannelId
*/
public String getParentChannelId() {
return this.parentChannelId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
public static final class Builder extends Request.Builder {
private String dtsInstanceId;
private String dtsJobId;
private Integer pageNumber;
private Integer pageSize;
private String parentChannelId;
private String regionId;
private String resourceGroupId;
private Builder() {
super();
}
private Builder(DescribeConsumerChannelRequest request) {
super(request);
this.dtsInstanceId = request.dtsInstanceId;
this.dtsJobId = request.dtsJobId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.parentChannelId = request.parentChannelId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
}
/**
* The ID of the change tracking instance. You can call the [DescribeDtsJobs](~~209702~~) operation to query the instance ID.
*
*
* > You must specify at least one of the **DtsInstanceId** and **DtsJobId** parameters.
*/
public Builder dtsInstanceId(String dtsInstanceId) {
this.putQueryParameter("DtsInstanceId", dtsInstanceId);
this.dtsInstanceId = dtsInstanceId;
return this;
}
/**
* The ID of the change tracking task. You can call the [DescribeDtsJobs](~~209702~~) operation to query the task ID.
*
*
* > You must specify at least one of the **DtsInstanceId** and **DtsJobId** parameters.
*/
public Builder dtsJobId(String dtsJobId) {
this.putQueryParameter("DtsJobId", dtsJobId);
this.dtsJobId = dtsJobId;
return this;
}
/**
* The number of the page to return. The value must be an integer that is greater than **0** and does not exceed the maximum value of the Integer data type. Default value: **1**.
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries to return on each page. Valid values: **1** to **100**. Default value: **20**.
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* The parent task ID of the distributed task.
*/
public Builder parentChannelId(String parentChannelId) {
this.putQueryParameter("ParentChannelId", parentChannelId);
this.parentChannelId = parentChannelId;
return this;
}
/**
* The ID of the region in which the change tracking instance resides. 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;
}
@Override
public DescribeConsumerChannelRequest build() {
return new DescribeConsumerChannelRequest(this);
}
}
}