com.aliyun.sdk.service.dts20200101.models.InitDtsRdsInstanceRequest 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 InitDtsRdsInstanceRequest} extends {@link RequestModel}
*
* InitDtsRdsInstanceRequest
*/
public class InitDtsRdsInstanceRequest 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("EndpointCenId")
private String endpointCenId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndpointInstanceId")
private String endpointInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndpointInstanceType")
private String endpointInstanceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndpointRegion")
private String endpointRegion;
@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 InitDtsRdsInstanceRequest(Builder builder) {
super(builder);
this.dtsInstanceId = builder.dtsInstanceId;
this.endpointCenId = builder.endpointCenId;
this.endpointInstanceId = builder.endpointInstanceId;
this.endpointInstanceType = builder.endpointInstanceType;
this.endpointRegion = builder.endpointRegion;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static InitDtsRdsInstanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dtsInstanceId
*/
public String getDtsInstanceId() {
return this.dtsInstanceId;
}
/**
* @return endpointCenId
*/
public String getEndpointCenId() {
return this.endpointCenId;
}
/**
* @return endpointInstanceId
*/
public String getEndpointInstanceId() {
return this.endpointInstanceId;
}
/**
* @return endpointInstanceType
*/
public String getEndpointInstanceType() {
return this.endpointInstanceType;
}
/**
* @return endpointRegion
*/
public String getEndpointRegion() {
return this.endpointRegion;
}
/**
* @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 endpointCenId;
private String endpointInstanceId;
private String endpointInstanceType;
private String endpointRegion;
private String regionId;
private String resourceGroupId;
private Builder() {
super();
}
private Builder(InitDtsRdsInstanceRequest request) {
super(request);
this.dtsInstanceId = request.dtsInstanceId;
this.endpointCenId = request.endpointCenId;
this.endpointInstanceId = request.endpointInstanceId;
this.endpointInstanceType = request.endpointInstanceType;
this.endpointRegion = request.endpointRegion;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
}
/**
* The ID of the data synchronization task.
*/
public Builder dtsInstanceId(String dtsInstanceId) {
this.putQueryParameter("DtsInstanceId", dtsInstanceId);
this.dtsInstanceId = dtsInstanceId;
return this;
}
/**
* If the node is a self-managed MySQL database that is connected over CEN, you must specify the ID of the CEN instance.
*
*
* > You must specify the **EndpointRegion** and **EndpointInstanceId** parameters or the EndpointCenId parameter based on the type of the node.
*/
public Builder endpointCenId(String endpointCenId) {
this.putQueryParameter("EndpointCenId", endpointCenId);
this.endpointCenId = endpointCenId;
return this;
}
/**
* If the node is an ApsaraDB RDS for MySQL instance, you must specify the ID of the ApsaraDB RDS for MySQL instance.
*
*
* > * You must also specify the **EndpointRegion** parameter.
* >* You must specify the EndpointInstanceId parameter or the **EndpointCenId** parameter based on the type of the node.
*/
public Builder endpointInstanceId(String endpointInstanceId) {
this.putQueryParameter("EndpointInstanceId", endpointInstanceId);
this.endpointInstanceId = endpointInstanceId;
return this;
}
/**
* The type of the node. Valid values:
*
*
* * **RDS**: an ApsaraDB RDS for MySQL instance
* * **CEN**: a self-managed MySQL database that is connected over CEN
*/
public Builder endpointInstanceType(String endpointInstanceType) {
this.putQueryParameter("EndpointInstanceType", endpointInstanceType);
this.endpointInstanceType = endpointInstanceType;
return this;
}
/**
* If the node is an ApsaraDB RDS for MySQL instance, you must specify the region in which the ApsaraDB RDS for MySQL instance resides.
*
*
* > * You must also specify the **EndpointInstanceId** parameter.
* >* You must specify the EndpointRegion parameter or the **EndpointCenId** parameter based on the type of the node.
*/
public Builder endpointRegion(String endpointRegion) {
this.putQueryParameter("EndpointRegion", endpointRegion);
this.endpointRegion = endpointRegion;
return this;
}
/**
* The ID of the region in which the active geo-redundancy database cluster resides.
*/
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 InitDtsRdsInstanceRequest build() {
return new InitDtsRdsInstanceRequest(this);
}
}
}