com.aliyun.sdk.service.dts20200101.models.DescribeMigrationJobDetailRequest 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 DescribeMigrationJobDetailRequest} extends {@link RequestModel}
*
* DescribeMigrationJobDetailRequest
*/
public class DescribeMigrationJobDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MigrationMode")
private MigrationMode migrationMode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AccountId")
private String accountId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MigrationJobId")
@com.aliyun.core.annotation.Validation(required = true)
private String migrationJobId;
@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;
private DescribeMigrationJobDetailRequest(Builder builder) {
super(builder);
this.migrationMode = builder.migrationMode;
this.accountId = builder.accountId;
this.clientToken = builder.clientToken;
this.migrationJobId = builder.migrationJobId;
this.ownerId = builder.ownerId;
this.pageNum = builder.pageNum;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeMigrationJobDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return migrationMode
*/
public MigrationMode getMigrationMode() {
return this.migrationMode;
}
/**
* @return accountId
*/
public String getAccountId() {
return this.accountId;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return migrationJobId
*/
public String getMigrationJobId() {
return this.migrationJobId;
}
/**
* @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;
}
public static final class Builder extends Request.Builder {
private MigrationMode migrationMode;
private String accountId;
private String clientToken;
private String migrationJobId;
private String ownerId;
private Integer pageNum;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private Builder() {
super();
}
private Builder(DescribeMigrationJobDetailRequest request) {
super(request);
this.migrationMode = request.migrationMode;
this.accountId = request.accountId;
this.clientToken = request.clientToken;
this.migrationJobId = request.migrationJobId;
this.ownerId = request.ownerId;
this.pageNum = request.pageNum;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
}
/**
* MigrationMode.
*/
public Builder migrationMode(MigrationMode migrationMode) {
this.putQueryParameter("MigrationMode", migrationMode);
this.migrationMode = migrationMode;
return this;
}
/**
* 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 client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that the value is unique among different requests. The **ClientToken** value can contain only ASCII characters and cannot exceed 64 characters in length.
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* The ID of the data migration instance. You can call the **DescribeMigrationJobs** operation to query the instance ID.
*/
public Builder migrationJobId(String migrationJobId) {
this.putQueryParameter("MigrationJobId", migrationJobId);
this.migrationJobId = migrationJobId;
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 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 DescribeMigrationJobDetailRequest build() {
return new DescribeMigrationJobDetailRequest(this);
}
}
public static class MigrationMode extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DataInitialization")
private Boolean dataInitialization;
@com.aliyun.core.annotation.NameInMap("DataSynchronization")
private Boolean dataSynchronization;
@com.aliyun.core.annotation.NameInMap("StructureInitialization")
private Boolean structureInitialization;
private MigrationMode(Builder builder) {
this.dataInitialization = builder.dataInitialization;
this.dataSynchronization = builder.dataSynchronization;
this.structureInitialization = builder.structureInitialization;
}
public static Builder builder() {
return new Builder();
}
public static MigrationMode create() {
return builder().build();
}
/**
* @return dataInitialization
*/
public Boolean getDataInitialization() {
return this.dataInitialization;
}
/**
* @return dataSynchronization
*/
public Boolean getDataSynchronization() {
return this.dataSynchronization;
}
/**
* @return structureInitialization
*/
public Boolean getStructureInitialization() {
return this.structureInitialization;
}
public static final class Builder {
private Boolean dataInitialization;
private Boolean dataSynchronization;
private Boolean structureInitialization;
/**
* Specifies whether to query the details of full data migration. Valid values:
*
*
* * **true**: yes
*
* * **false**: no
*
* > Default value: **false**
*/
public Builder dataInitialization(Boolean dataInitialization) {
this.dataInitialization = dataInitialization;
return this;
}
/**
* Specifies whether to query the details of incremental data migration. Valid values:
*
*
* * **true**: yes
*
* * **false**: no
*
* > Default value: **false**
*/
public Builder dataSynchronization(Boolean dataSynchronization) {
this.dataSynchronization = dataSynchronization;
return this;
}
/**
* Specifies whether to query the details of schema migration. Valid values:
*
*
* * **true**: yes
*
* * **false**: no
*
* > Default value: **false**
*/
public Builder structureInitialization(Boolean structureInitialization) {
this.structureInitialization = structureInitialization;
return this;
}
public MigrationMode build() {
return new MigrationMode(this);
}
}
}
}