com.aliyun.sdk.service.dts20200101.models.UpgradeTwoWayRequest 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 UpgradeTwoWayRequest} extends {@link RequestModel}
*
* UpgradeTwoWayRequest
*/
public class UpgradeTwoWayRequest extends Request {
@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("InstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceId;
@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 UpgradeTwoWayRequest(Builder builder) {
super(builder);
this.instanceClass = builder.instanceClass;
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static UpgradeTwoWayRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceClass
*/
public String getInstanceClass() {
return this.instanceClass;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @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 instanceClass;
private String instanceId;
private String regionId;
private String resourceGroupId;
private Builder() {
super();
}
private Builder(UpgradeTwoWayRequest request) {
super(request);
this.instanceClass = request.instanceClass;
this.instanceId = request.instanceId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
}
/**
* The instance class of the two-way synchronization task. Valid values: **large**, **medium**, **micro**, and **small**.
*
*
* > For more information, see [Specifications of data synchronization instances](~~26605~~).
*/
public Builder instanceClass(String instanceClass) {
this.putQueryParameter("InstanceClass", instanceClass);
this.instanceClass = instanceClass;
return this;
}
/**
* The ID of the data synchronization instance. You can call the [DescribeDtsJobs](~~209702~~) operation to query the instance ID.
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
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;
}
@Override
public UpgradeTwoWayRequest build() {
return new UpgradeTwoWayRequest(this);
}
}
}