com.aliyun.sdk.service.dts20200101.models.DescribeMigrationJobsRequest 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 DescribeMigrationJobsRequest} extends {@link RequestModel}
*
* DescribeMigrationJobsRequest
*/
public class DescribeMigrationJobsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AccountId")
private String accountId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MigrationJobName")
private String migrationJobName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private String ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNum")
private Integer pageNum;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1)
private Integer pageSize;
@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("Tag")
private java.util.List < Tag> tag;
private DescribeMigrationJobsRequest(Builder builder) {
super(builder);
this.accountId = builder.accountId;
this.migrationJobName = builder.migrationJobName;
this.ownerId = builder.ownerId;
this.pageNum = builder.pageNum;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static DescribeMigrationJobsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accountId
*/
public String getAccountId() {
return this.accountId;
}
/**
* @return migrationJobName
*/
public String getMigrationJobName() {
return this.migrationJobName;
}
/**
* @return ownerId
*/
public String getOwnerId() {
return this.ownerId;
}
/**
* @return pageNum
*/
public Integer getPageNum() {
return this.pageNum;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return tag
*/
public java.util.List < Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder {
private String accountId;
private String migrationJobName;
private String ownerId;
private Integer pageNum;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private java.util.List < Tag> tag;
private Builder() {
super();
}
private Builder(DescribeMigrationJobsRequest request) {
super(request);
this.accountId = request.accountId;
this.migrationJobName = request.migrationJobName;
this.ownerId = request.ownerId;
this.pageNum = request.pageNum;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.tag = request.tag;
}
/**
* The ID of the Alibaba Cloud account. You do not need to specify this parameter because this parameter will be removed in the future.
*/
public Builder accountId(String accountId) {
this.putQueryParameter("AccountId", accountId);
this.accountId = accountId;
return this;
}
/**
* The name of the data migration task.
*
*
* > Fuzzy match is supported.
*/
public Builder migrationJobName(String migrationJobName) {
this.putQueryParameter("MigrationJobName", migrationJobName);
this.migrationJobName = migrationJobName;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(String ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
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 pageNum(Integer pageNum) {
this.putQueryParameter("PageNum", pageNum);
this.pageNum = pageNum;
return this;
}
/**
* The number of entries to return on each page. Valid values: **30**, **50**, and **100**. Default value: **30**.
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* The ID of the region where the data migration instances reside. 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;
}
/**
* Tag.
*/
public Builder tag(java.util.List < Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public DescribeMigrationJobsRequest build() {
return new DescribeMigrationJobsRequest(this);
}
}
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
@com.aliyun.core.annotation.Validation(required = true)
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
/**
* The tag key. You can call the [ListTagResources](~~191187~~) operation to query the tag key.
*
*
* >
* * N specifies the serial number of the tag. For example, Tag.1.Key specifies the key of the first tag and Tag.2.Key specifies the key of the second tag. You can specify 1 to 20 tag keys at a time.
* * This parameter cannot be an empty string.
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* The tag value. You can call the [ListTagResources](~~191187~~) operation to query the tag value.
*
*
* >
* * N specifies the serial number of the tag. For example, Tag.1.Value specifies the value of the first tag and Tag.2.Value specifies the value of the second tag. You can specify 1 to 20 tag values at a time.
* * This parameter can be an empty string.
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}