com.aliyun.sdk.service.dts20200101.models.TransferInstanceClassRequest 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 TransferInstanceClassRequest} extends {@link RequestModel}
*
* TransferInstanceClassRequest
*/
public class TransferInstanceClassRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DtsJobId")
@com.aliyun.core.annotation.Validation(required = true)
private String dtsJobId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceClass")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceClass;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OrderType")
@com.aliyun.core.annotation.Validation(required = true)
private String orderType;
@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 TransferInstanceClassRequest(Builder builder) {
super(builder);
this.dtsJobId = builder.dtsJobId;
this.instanceClass = builder.instanceClass;
this.orderType = builder.orderType;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static TransferInstanceClassRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dtsJobId
*/
public String getDtsJobId() {
return this.dtsJobId;
}
/**
* @return instanceClass
*/
public String getInstanceClass() {
return this.instanceClass;
}
/**
* @return orderType
*/
public String getOrderType() {
return this.orderType;
}
/**
* @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 dtsJobId;
private String instanceClass;
private String orderType;
private String regionId;
private String resourceGroupId;
private Builder() {
super();
}
private Builder(TransferInstanceClassRequest request) {
super(request);
this.dtsJobId = request.dtsJobId;
this.instanceClass = request.instanceClass;
this.orderType = request.orderType;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
}
/**
* The ID of the data migration or data synchronization task. You can call the [DescribeDtsJobs](~~209702~~) operation to query the task ID.
*/
public Builder dtsJobId(String dtsJobId) {
this.putQueryParameter("DtsJobId", dtsJobId);
this.dtsJobId = dtsJobId;
return this;
}
/**
* The new instance class of the DTS instance. You can call the [DescribeDtsJobDetail](~~208925~~) operation to query the original instance class of the DTS instance.
*
*
* * DTS supports the following instance classes for a data migration instance: **xxlarge**, **xlarge**, **large**, **medium**, and **small**.
* * DTS supports the following instance classes for a data synchronization instance: **large**, **medium**, **small**, and **micro**.
*
* > For more information about the test performance of each instance class, see [Specifications of data migration instances](~~26606~~) and [Specifications of data synchronization instances](~~26605~~).
*/
public Builder instanceClass(String instanceClass) {
this.putQueryParameter("InstanceClass", instanceClass);
this.instanceClass = instanceClass;
return this;
}
/**
* Specifies whether to upgrade or downgrade the DTS instance. Valid values:
*
*
* * **UPGRADE**
* * **DOWNGRADE**
*/
public Builder orderType(String orderType) {
this.putQueryParameter("OrderType", orderType);
this.orderType = orderType;
return this;
}
/**
* The ID of the region where the DTS 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 TransferInstanceClassRequest build() {
return new TransferInstanceClassRequest(this);
}
}
}