index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AddTagsToResourceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddTagsToResourceRequest} extends {@link RequestModel}
*
* <p>AddTagsToResourceRequest</p>
*/
public class AddTagsToResourceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
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("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tags")
private String tags;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("proxyId")
private String proxyId;
private AddTagsToResourceRequest(Builder builder) {
super(builder);
this.tag = builder.tag;
this.clientToken = builder.clientToken;
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tags = builder.tags;
this.proxyId = builder.proxyId;
}
public static Builder builder() {
return new Builder();
}
public static AddTagsToResourceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tags
*/
public String getTags() {
return this.tags;
}
/**
* @return proxyId
*/
public String getProxyId() {
return this.proxyId;
}
public static final class Builder extends Request.Builder<AddTagsToResourceRequest, Builder> {
private java.util.List<Tag> tag;
private String clientToken;
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String tags;
private String proxyId;
private Builder() {
super();
}
private Builder(AddTagsToResourceRequest request) {
super(request);
this.tag = request.tag;
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tags = request.tags;
this.proxyId = request.proxyId;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the generated token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCzxxxxxxx</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The instance ID.</p>
* <blockquote>
* <p> You can enter up to 30 instance IDs in a single request. If you enter more than one instance ID, you must separate the instance IDs with commas (,).</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID. You can call the DescribeRegions operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hagnzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy*****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The tags that you want to add. Each tag consists of a tag key and a tag value. You can specify a maximum of five tags in the following format for each request: {"key1":"value1","key2":"value2"...}.</p>
* <blockquote>
* <p> The tag key is required and the tag value is optional.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>{“key1”:”value1”,“key2”:””}</p>
*/
public Builder tags(String tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
/**
* <p>The ID of the proxy mode.</p>
*
* <strong>example:</strong>
* <p>API</p>
*/
public Builder proxyId(String proxyId) {
this.putQueryParameter("proxyId", proxyId);
this.proxyId = proxyId;
return this;
}
@Override
public AddTagsToResourceRequest build() {
return new AddTagsToResourceRequest(this);
}
}
/**
*
* {@link AddTagsToResourceRequest} extends {@link TeaModel}
*
* <p>AddTagsToResourceRequest</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("key")
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key of the first tag that you want to add. Each tag consists of a tag key and a tag value. You can specify up to five tags in a single request. You cannot specify an empty string as the tag key. You can specify an empty string as the tag value.</p>
*
* <strong>example:</strong>
* <p>key1</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value of the first tag that you want to add. Each tag consists of a tag key and a tag value. You can specify up to five tags in a single request. You cannot specify an empty string as the tag key. You can specify an empty string as the tag value.</p>
*
* <strong>example:</strong>
* <p>value1</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AddTagsToResourceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddTagsToResourceResponse} extends {@link TeaModel}
*
* <p>AddTagsToResourceResponse</p>
*/
public class AddTagsToResourceResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AddTagsToResourceResponseBody body;
private AddTagsToResourceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AddTagsToResourceResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AddTagsToResourceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AddTagsToResourceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AddTagsToResourceResponseBody body);
@Override
AddTagsToResourceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AddTagsToResourceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AddTagsToResourceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AddTagsToResourceResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AddTagsToResourceResponseBody body) {
this.body = body;
return this;
}
@Override
public AddTagsToResourceResponse build() {
return new AddTagsToResourceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AddTagsToResourceResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddTagsToResourceResponseBody} extends {@link TeaModel}
*
* <p>AddTagsToResourceResponseBody</p>
*/
public class AddTagsToResourceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private AddTagsToResourceResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static AddTagsToResourceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(AddTagsToResourceResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>224DB9F7-3100-4899-AB9C-C938BCCB43E7</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public AddTagsToResourceResponseBody build() {
return new AddTagsToResourceResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AllocateInstancePublicConnectionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AllocateInstancePublicConnectionRequest} extends {@link RequestModel}
*
* <p>AllocateInstancePublicConnectionRequest</p>
*/
public class AllocateInstancePublicConnectionRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BabelfishPort")
private String babelfishPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ConnectionStringPrefix")
@com.aliyun.core.annotation.Validation(required = true)
private String connectionStringPrefix;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GeneralGroupName")
private String generalGroupName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PGBouncerPort")
private String PGBouncerPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Port")
@com.aliyun.core.annotation.Validation(required = true)
private String port;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private AllocateInstancePublicConnectionRequest(Builder builder) {
super(builder);
this.babelfishPort = builder.babelfishPort;
this.connectionStringPrefix = builder.connectionStringPrefix;
this.DBInstanceId = builder.DBInstanceId;
this.generalGroupName = builder.generalGroupName;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.PGBouncerPort = builder.PGBouncerPort;
this.port = builder.port;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static AllocateInstancePublicConnectionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return babelfishPort
*/
public String getBabelfishPort() {
return this.babelfishPort;
}
/**
* @return connectionStringPrefix
*/
public String getConnectionStringPrefix() {
return this.connectionStringPrefix;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return generalGroupName
*/
public String getGeneralGroupName() {
return this.generalGroupName;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return PGBouncerPort
*/
public String getPGBouncerPort() {
return this.PGBouncerPort;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<AllocateInstancePublicConnectionRequest, Builder> {
private String babelfishPort;
private String connectionStringPrefix;
private String DBInstanceId;
private String generalGroupName;
private String ownerAccount;
private Long ownerId;
private String PGBouncerPort;
private String port;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(AllocateInstancePublicConnectionRequest request) {
super(request);
this.babelfishPort = request.babelfishPort;
this.connectionStringPrefix = request.connectionStringPrefix;
this.DBInstanceId = request.DBInstanceId;
this.generalGroupName = request.generalGroupName;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.PGBouncerPort = request.PGBouncerPort;
this.port = request.port;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The Tabular Data Stream (TDS) port of the instance for which Babelfish is enabled.</p>
* <blockquote>
* <p>This parameter applies only to ApsaraDB RDS for PostgreSQL instances. For more information about Babelfish for ApsaraDB RDS for PostgreSQL, see <a href="https://help.aliyun.com/document_detail/428613.html">Introduction to Babelfish</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1433</p>
*/
public Builder babelfishPort(String babelfishPort) {
this.putQueryParameter("BabelfishPort", babelfishPort);
this.babelfishPort = babelfishPort;
return this;
}
/**
* <p>The prefix of the public endpoint. A valid public endpoint is in the following format: <code>Prefix.Database engine.rds.aliyuncs.com</code>. Example: <code>test1234.mysql.rds.aliyuncs.com</code>.</p>
* <blockquote>
* <p>The value can be 5 to 40 characters in length and can contain letters, digits, and hyphens (-). The value cannot contain any of the following characters: ~ ! # % ^ & * = + | {} ; : " " , <> / ?</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test1234</p>
*/
public Builder connectionStringPrefix(String connectionStringPrefix) {
this.putQueryParameter("ConnectionStringPrefix", connectionStringPrefix);
this.connectionStringPrefix = connectionStringPrefix;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5*****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The name of the dedicated cluster to which the instance belongs. This parameter is available only when the instance is created in an ApsaraDB MyBase cluster that runs MySQL on Standard Edition.</p>
*
* <strong>example:</strong>
* <p>rgc-bp1tkv8*****</p>
*/
public Builder generalGroupName(String generalGroupName) {
this.putQueryParameter("GeneralGroupName", generalGroupName);
this.generalGroupName = generalGroupName;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The PgBouncer port.</p>
* <blockquote>
* <p>This parameter is available only for instances that run PostgreSQL.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>6432</p>
*/
public Builder PGBouncerPort(String PGBouncerPort) {
this.putQueryParameter("PGBouncerPort", PGBouncerPort);
this.PGBouncerPort = PGBouncerPort;
return this;
}
/**
* <p>The public port of the instance. Valid values: <strong>1000 to 5999</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>3306</p>
*/
public Builder port(String port) {
this.putQueryParameter("Port", port);
this.port = port;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public AllocateInstancePublicConnectionRequest build() {
return new AllocateInstancePublicConnectionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AllocateInstancePublicConnectionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AllocateInstancePublicConnectionResponse} extends {@link TeaModel}
*
* <p>AllocateInstancePublicConnectionResponse</p>
*/
public class AllocateInstancePublicConnectionResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AllocateInstancePublicConnectionResponseBody body;
private AllocateInstancePublicConnectionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AllocateInstancePublicConnectionResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AllocateInstancePublicConnectionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AllocateInstancePublicConnectionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AllocateInstancePublicConnectionResponseBody body);
@Override
AllocateInstancePublicConnectionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AllocateInstancePublicConnectionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AllocateInstancePublicConnectionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AllocateInstancePublicConnectionResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AllocateInstancePublicConnectionResponseBody body) {
this.body = body;
return this;
}
@Override
public AllocateInstancePublicConnectionResponse build() {
return new AllocateInstancePublicConnectionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AllocateInstancePublicConnectionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AllocateInstancePublicConnectionResponseBody} extends {@link TeaModel}
*
* <p>AllocateInstancePublicConnectionResponseBody</p>
*/
public class AllocateInstancePublicConnectionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConnectionString")
private String connectionString;
@com.aliyun.core.annotation.NameInMap("DbInstanceName")
private String dbInstanceName;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private AllocateInstancePublicConnectionResponseBody(Builder builder) {
this.connectionString = builder.connectionString;
this.dbInstanceName = builder.dbInstanceName;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static AllocateInstancePublicConnectionResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return connectionString
*/
public String getConnectionString() {
return this.connectionString;
}
/**
* @return dbInstanceName
*/
public String getDbInstanceName() {
return this.dbInstanceName;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String connectionString;
private String dbInstanceName;
private String requestId;
private Builder() {
}
private Builder(AllocateInstancePublicConnectionResponseBody model) {
this.connectionString = model.connectionString;
this.dbInstanceName = model.dbInstanceName;
this.requestId = model.requestId;
}
/**
* <p>The endpoint that is used to connect to the database instance.</p>
*
* <strong>example:</strong>
* <p>test*****.mysql.rds.aliyuncs.com</p>
*/
public Builder connectionString(String connectionString) {
this.connectionString = connectionString;
return this;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-bp1*****</p>
*/
public Builder dbInstanceName(String dbInstanceName) {
this.dbInstanceName = dbInstanceName;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>65BDA532-28AF-4122-AA39-B382721EEE64</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public AllocateInstancePublicConnectionResponseBody build() {
return new AllocateInstancePublicConnectionResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AllocateReadWriteSplittingConnectionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AllocateReadWriteSplittingConnectionRequest} extends {@link RequestModel}
*
* <p>AllocateReadWriteSplittingConnectionRequest</p>
*/
public class AllocateReadWriteSplittingConnectionRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ConnectionStringPrefix")
private String connectionStringPrefix;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DistributionType")
private String distributionType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaxDelayTime")
private String maxDelayTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetType")
private String netType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Weight")
private String weight;
private AllocateReadWriteSplittingConnectionRequest(Builder builder) {
super(builder);
this.connectionStringPrefix = builder.connectionStringPrefix;
this.DBInstanceId = builder.DBInstanceId;
this.distributionType = builder.distributionType;
this.maxDelayTime = builder.maxDelayTime;
this.netType = builder.netType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.port = builder.port;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static AllocateReadWriteSplittingConnectionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return connectionStringPrefix
*/
public String getConnectionStringPrefix() {
return this.connectionStringPrefix;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return distributionType
*/
public String getDistributionType() {
return this.distributionType;
}
/**
* @return maxDelayTime
*/
public String getMaxDelayTime() {
return this.maxDelayTime;
}
/**
* @return netType
*/
public String getNetType() {
return this.netType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return weight
*/
public String getWeight() {
return this.weight;
}
public static final class Builder extends Request.Builder<AllocateReadWriteSplittingConnectionRequest, Builder> {
private String connectionStringPrefix;
private String DBInstanceId;
private String distributionType;
private String maxDelayTime;
private String netType;
private String ownerAccount;
private Long ownerId;
private String port;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String weight;
private Builder() {
super();
}
private Builder(AllocateReadWriteSplittingConnectionRequest request) {
super(request);
this.connectionStringPrefix = request.connectionStringPrefix;
this.DBInstanceId = request.DBInstanceId;
this.distributionType = request.distributionType;
this.maxDelayTime = request.maxDelayTime;
this.netType = request.netType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.port = request.port;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.weight = request.weight;
}
/**
* <p>The prefix of the read-only routing endpoint. The prefix must be unique. It can be up to 30 characters in length and can contain lowercase letters and hyphens (-). It must start with a lowercase letter.</p>
* <blockquote>
* <p> The default prefix consists of the name of the primary instance followed by the letters rw.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>rr-m5exxxxx-rw.mysql.rds.aliyuncs.com</p>
*/
public Builder connectionStringPrefix(String connectionStringPrefix) {
this.putQueryParameter("ConnectionStringPrefix", connectionStringPrefix);
this.connectionStringPrefix = connectionStringPrefix;
return this;
}
/**
* <p>The primary instance ID. You can call the DescribeDBInstances operation to query the primary instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The method that is used to assign read weights. Valid values:</p>
* <ul>
* <li><strong>Standard</strong>: The system automatically assigns read weights to the primary and read-only instances based on the specifications of these instances.</li>
* <li><strong>Custom</strong>: You must manually assign a read weight to each instance.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Standard</p>
*/
public Builder distributionType(String distributionType) {
this.putQueryParameter("DistributionType", distributionType);
this.distributionType = distributionType;
return this;
}
/**
* <p>The threshold of the latency that is allowed on the read-only instances. Valid values: 0 to 7200. Default value: 30. Unit: seconds.</p>
* <blockquote>
* <p> If the latency on a read-only instance exceeds the specified threshold, ApsaraDB RDS does not forward read requests to the read-only instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder maxDelayTime(String maxDelayTime) {
this.putQueryParameter("MaxDelayTime", maxDelayTime);
this.maxDelayTime = maxDelayTime;
return this;
}
/**
* <p>The network type of the read-only routing endpoint. Valid values:</p>
* <ul>
* <li><strong>Internet</strong></li>
* <li><strong>Intranet</strong></li>
* </ul>
* <blockquote>
* <p> The default value is Intranet. Make sure that the network type of the read-only routing endpoint is the same as that of the primary instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Intranet</p>
*/
public Builder netType(String netType) {
this.putQueryParameter("NetType", netType);
this.netType = netType;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The port that is associated with the read-only routing endpoint. Valid values: 1000 to 5999. Default value: 1433.</p>
*
* <strong>example:</strong>
* <p>1433</p>
*/
public Builder port(String port) {
this.putQueryParameter("Port", port);
this.port = port;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The read weights of the primary instance and its read-only instances. The read weight is increased in increments of 100. The maximum value is 10000.</p>
* <ul>
* <li>For ApsaraDB RDS instances, the value of this parameter is in the following format: <code>{"<ID of the read-only instance >":<Weight>,"master":<Weight>,"slave":<Weight>}</code>.</li>
* <li>For ApsaraDB MyBase instances, the value of this parameter is in the following format: <code>[{"instanceName":"<Primary instance ID>","weight":<Weight>,"role":"master"},{"instanceName":"<Primary instance ID>","weight":<Weight>,"role":"slave"},{"instanceName":"<Read-only instance ID>","weight":<Weight>,"role":"master"}]</code></li>
* </ul>
* <blockquote>
* </blockquote>
* <ul>
* <li><p>This parameter must be specified when <strong>DistributionType</strong> is set to <strong>Custom</strong>.</p>
* </li>
* <li><p>If <strong>DistributionType</strong> is set to <strong>Standard</strong>, this parameter is invalid.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>{"rm-bp1**********":800,"master":400,"slave":400}</p>
*/
public Builder weight(String weight) {
this.putQueryParameter("Weight", weight);
this.weight = weight;
return this;
}
@Override
public AllocateReadWriteSplittingConnectionRequest build() {
return new AllocateReadWriteSplittingConnectionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AllocateReadWriteSplittingConnectionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AllocateReadWriteSplittingConnectionResponse} extends {@link TeaModel}
*
* <p>AllocateReadWriteSplittingConnectionResponse</p>
*/
public class AllocateReadWriteSplittingConnectionResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AllocateReadWriteSplittingConnectionResponseBody body;
private AllocateReadWriteSplittingConnectionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AllocateReadWriteSplittingConnectionResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AllocateReadWriteSplittingConnectionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AllocateReadWriteSplittingConnectionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AllocateReadWriteSplittingConnectionResponseBody body);
@Override
AllocateReadWriteSplittingConnectionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AllocateReadWriteSplittingConnectionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AllocateReadWriteSplittingConnectionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AllocateReadWriteSplittingConnectionResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AllocateReadWriteSplittingConnectionResponseBody body) {
this.body = body;
return this;
}
@Override
public AllocateReadWriteSplittingConnectionResponse build() {
return new AllocateReadWriteSplittingConnectionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AllocateReadWriteSplittingConnectionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AllocateReadWriteSplittingConnectionResponseBody} extends {@link TeaModel}
*
* <p>AllocateReadWriteSplittingConnectionResponseBody</p>
*/
public class AllocateReadWriteSplittingConnectionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private AllocateReadWriteSplittingConnectionResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static AllocateReadWriteSplittingConnectionResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(AllocateReadWriteSplittingConnectionResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>4C467B38-3910-447D-87BC-AC049166F216</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public AllocateReadWriteSplittingConnectionResponseBody build() {
return new AllocateReadWriteSplittingConnectionResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AssociateEipAddressWithRCInstanceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AssociateEipAddressWithRCInstanceRequest} extends {@link RequestModel}
*
* <p>AssociateEipAddressWithRCInstanceRequest</p>
*/
public class AssociateEipAddressWithRCInstanceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AllocationId")
private String allocationId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private AssociateEipAddressWithRCInstanceRequest(Builder builder) {
super(builder);
this.allocationId = builder.allocationId;
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static AssociateEipAddressWithRCInstanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return allocationId
*/
public String getAllocationId() {
return this.allocationId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<AssociateEipAddressWithRCInstanceRequest, Builder> {
private String allocationId;
private String instanceId;
private String regionId;
private Builder() {
super();
}
private Builder(AssociateEipAddressWithRCInstanceRequest request) {
super(request);
this.allocationId = request.allocationId;
this.instanceId = request.instanceId;
this.regionId = request.regionId;
}
/**
* <p>The EIP ID.</p>
* <blockquote>
* <p> If no EIP is available, create an EIP. For more information, see <a href="https://help.aliyun.com/document_detail/292841.html">Create an EIP</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>eip-bp166out2x4bpcf******</p>
*/
public Builder allocationId(String allocationId) {
this.putQueryParameter("AllocationId", allocationId);
this.allocationId = allocationId;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rc-i322y2t562oh7o******</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The region ID. You can call the DescribeRegions operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
@Override
public AssociateEipAddressWithRCInstanceRequest build() {
return new AssociateEipAddressWithRCInstanceRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AssociateEipAddressWithRCInstanceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AssociateEipAddressWithRCInstanceResponse} extends {@link TeaModel}
*
* <p>AssociateEipAddressWithRCInstanceResponse</p>
*/
public class AssociateEipAddressWithRCInstanceResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AssociateEipAddressWithRCInstanceResponseBody body;
private AssociateEipAddressWithRCInstanceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AssociateEipAddressWithRCInstanceResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AssociateEipAddressWithRCInstanceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AssociateEipAddressWithRCInstanceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AssociateEipAddressWithRCInstanceResponseBody body);
@Override
AssociateEipAddressWithRCInstanceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AssociateEipAddressWithRCInstanceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AssociateEipAddressWithRCInstanceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AssociateEipAddressWithRCInstanceResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AssociateEipAddressWithRCInstanceResponseBody body) {
this.body = body;
return this;
}
@Override
public AssociateEipAddressWithRCInstanceResponse build() {
return new AssociateEipAddressWithRCInstanceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AssociateEipAddressWithRCInstanceResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AssociateEipAddressWithRCInstanceResponseBody} extends {@link TeaModel}
*
* <p>AssociateEipAddressWithRCInstanceResponseBody</p>
*/
public class AssociateEipAddressWithRCInstanceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private AssociateEipAddressWithRCInstanceResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static AssociateEipAddressWithRCInstanceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(AssociateEipAddressWithRCInstanceResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>EFFC7565-B3CF-5CFA-9E1F-164DD1E1F498</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public AssociateEipAddressWithRCInstanceResponseBody build() {
return new AssociateEipAddressWithRCInstanceResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AttachRCDiskRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AttachRCDiskRequest} extends {@link RequestModel}
*
* <p>AttachRCDiskRequest</p>
*/
public class AttachRCDiskRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DeleteWithInstance")
private Boolean deleteWithInstance;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DiskId")
@com.aliyun.core.annotation.Validation(required = true)
private String diskId;
@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;
private AttachRCDiskRequest(Builder builder) {
super(builder);
this.deleteWithInstance = builder.deleteWithInstance;
this.diskId = builder.diskId;
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static AttachRCDiskRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return deleteWithInstance
*/
public Boolean getDeleteWithInstance() {
return this.deleteWithInstance;
}
/**
* @return diskId
*/
public String getDiskId() {
return this.diskId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<AttachRCDiskRequest, Builder> {
private Boolean deleteWithInstance;
private String diskId;
private String instanceId;
private String regionId;
private Builder() {
super();
}
private Builder(AttachRCDiskRequest request) {
super(request);
this.deleteWithInstance = request.deleteWithInstance;
this.diskId = request.diskId;
this.instanceId = request.instanceId;
this.regionId = request.regionId;
}
/**
* <p>The reserved parameter. This parameter is not supported.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder deleteWithInstance(Boolean deleteWithInstance) {
this.putQueryParameter("DeleteWithInstance", deleteWithInstance);
this.deleteWithInstance = deleteWithInstance;
return this;
}
/**
* <p>The disk ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rcd-wz98hnpj2sjo85zc7t2w</p>
*/
public Builder diskId(String diskId) {
this.putQueryParameter("DiskId", diskId);
this.diskId = diskId;
return this;
}
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rc-dh2jf9n6j4s14926****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The region ID</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
@Override
public AttachRCDiskRequest build() {
return new AttachRCDiskRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AttachRCDiskResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AttachRCDiskResponse} extends {@link TeaModel}
*
* <p>AttachRCDiskResponse</p>
*/
public class AttachRCDiskResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AttachRCDiskResponseBody body;
private AttachRCDiskResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AttachRCDiskResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AttachRCDiskResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AttachRCDiskResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AttachRCDiskResponseBody body);
@Override
AttachRCDiskResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AttachRCDiskResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AttachRCDiskResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AttachRCDiskResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AttachRCDiskResponseBody body) {
this.body = body;
return this;
}
@Override
public AttachRCDiskResponse build() {
return new AttachRCDiskResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AttachRCDiskResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AttachRCDiskResponseBody} extends {@link TeaModel}
*
* <p>AttachRCDiskResponseBody</p>
*/
public class AttachRCDiskResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private AttachRCDiskResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static AttachRCDiskResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(AttachRCDiskResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>C19D1668-70CB-5421-AA91-D6D8EE3AB664</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public AttachRCDiskResponseBody build() {
return new AttachRCDiskResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AttachRCInstancesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AttachRCInstancesRequest} extends {@link RequestModel}
*
* <p>AttachRCInstancesRequest</p>
*/
public class AttachRCInstancesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceIds")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<String> instanceIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("KeyPair")
private String keyPair;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Password")
private String password;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private AttachRCInstancesRequest(Builder builder) {
super(builder);
this.instanceIds = builder.instanceIds;
this.keyPair = builder.keyPair;
this.password = builder.password;
this.regionId = builder.regionId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static AttachRCInstancesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceIds
*/
public java.util.List<String> getInstanceIds() {
return this.instanceIds;
}
/**
* @return keyPair
*/
public String getKeyPair() {
return this.keyPair;
}
/**
* @return password
*/
public String getPassword() {
return this.password;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<AttachRCInstancesRequest, Builder> {
private java.util.List<String> instanceIds;
private String keyPair;
private String password;
private String regionId;
private String vpcId;
private Builder() {
super();
}
private Builder(AttachRCInstancesRequest request) {
super(request);
this.instanceIds = request.instanceIds;
this.keyPair = request.keyPair;
this.password = request.password;
this.regionId = request.regionId;
this.vpcId = request.vpcId;
}
/**
* <p>The node IDs.</p>
* <p>This parameter is required.</p>
*/
public Builder instanceIds(java.util.List<String> instanceIds) {
String instanceIdsShrink = shrink(instanceIds, "InstanceIds", "simple");
this.putQueryParameter("InstanceIds", instanceIdsShrink);
this.instanceIds = instanceIds;
return this;
}
/**
* <p>The key pair of the node.</p>
*
* <strong>example:</strong>
* <p>Custom_test</p>
*/
public Builder keyPair(String keyPair) {
this.putQueryParameter("KeyPair", keyPair);
this.keyPair = keyPair;
return this;
}
/**
* <p>The logon password of the node.</p>
*
* <strong>example:</strong>
* <p>testPassword</p>
*/
public Builder password(String password) {
this.putQueryParameter("Password", password);
this.password = password;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The virtual private cloud (VPC) ID.</p>
* <blockquote>
* <p>This is a reserved parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public AttachRCInstancesRequest build() {
return new AttachRCInstancesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AttachRCInstancesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AttachRCInstancesResponse} extends {@link TeaModel}
*
* <p>AttachRCInstancesResponse</p>
*/
public class AttachRCInstancesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AttachRCInstancesResponseBody body;
private AttachRCInstancesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AttachRCInstancesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AttachRCInstancesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AttachRCInstancesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AttachRCInstancesResponseBody body);
@Override
AttachRCInstancesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AttachRCInstancesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AttachRCInstancesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AttachRCInstancesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AttachRCInstancesResponseBody body) {
this.body = body;
return this;
}
@Override
public AttachRCInstancesResponse build() {
return new AttachRCInstancesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AttachRCInstancesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AttachRCInstancesResponseBody} extends {@link TeaModel}
*
* <p>AttachRCInstancesResponseBody</p>
*/
public class AttachRCInstancesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Responses")
private java.util.List<Responses> responses;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
private AttachRCInstancesResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.responses = builder.responses;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static AttachRCInstancesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return responses
*/
public java.util.List<Responses> getResponses() {
return this.responses;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
public static final class Builder {
private String requestId;
private java.util.List<Responses> responses;
private String taskId;
private Builder() {
}
private Builder(AttachRCInstancesResponseBody model) {
this.requestId = model.requestId;
this.responses = model.responses;
this.taskId = model.taskId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>847BA085-B377-4BFA-8267-F82345ECE1D2</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The response parameters.</p>
*/
public Builder responses(java.util.List<Responses> responses) {
this.responses = responses;
return this;
}
/**
* <p>The task ID.</p>
*
* <strong>example:</strong>
* <p>178968983</p>
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
public AttachRCInstancesResponseBody build() {
return new AttachRCInstancesResponseBody(this);
}
}
/**
*
* {@link AttachRCInstancesResponseBody} extends {@link TeaModel}
*
* <p>AttachRCInstancesResponseBody</p>
*/
public static class Responses extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
private Responses(Builder builder) {
this.code = builder.code;
this.instanceId = builder.instanceId;
this.message = builder.message;
}
public static Builder builder() {
return new Builder();
}
public static Responses create() {
return builder().build();
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
public static final class Builder {
private String code;
private String instanceId;
private String message;
private Builder() {
}
private Builder(Responses model) {
this.code = model.code;
this.instanceId = model.instanceId;
this.message = model.message;
}
/**
* <p>The HTTP status code returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The node ID.</p>
*
* <strong>example:</strong>
* <p>rc-e2g521l55k038cr8****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The message returned.</p>
* <blockquote>
* <p> If the request is successful, <strong>Successful</strong> is returned. If the request fails, an error message that contains information such as an error code is returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
public Responses build() {
return new Responses(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AttachWhitelistTemplateToInstanceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AttachWhitelistTemplateToInstanceRequest} extends {@link RequestModel}
*
* <p>AttachWhitelistTemplateToInstanceRequest</p>
*/
public class AttachWhitelistTemplateToInstanceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InsName")
@com.aliyun.core.annotation.Validation(required = true)
private String insName;
@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("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateId")
@com.aliyun.core.annotation.Validation(required = true)
private Integer templateId;
private AttachWhitelistTemplateToInstanceRequest(Builder builder) {
super(builder);
this.insName = builder.insName;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static AttachWhitelistTemplateToInstanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return insName
*/
public String getInsName() {
return this.insName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return templateId
*/
public Integer getTemplateId() {
return this.templateId;
}
public static final class Builder extends Request.Builder<AttachWhitelistTemplateToInstanceRequest, Builder> {
private String insName;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Integer templateId;
private Builder() {
super();
}
private Builder(AttachWhitelistTemplateToInstanceRequest request) {
super(request);
this.insName = request.insName;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.templateId = request.templateId;
}
/**
* <p>The name of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-bp191w771kd3****</p>
*/
public Builder insName(String insName) {
this.putQueryParameter("InsName", insName);
this.insName = insName;
return this;
}
/**
* <p>The region ID. You can call the DescribeRegions operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group. For more information about resource groups, see Resource groups.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy*****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the whitelist template. You can call the DescribeAllWhitelistTemplate operation to obtain the ID of the whitelist template.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>412</p>
*/
public Builder templateId(Integer templateId) {
this.putQueryParameter("TemplateId", templateId);
this.templateId = templateId;
return this;
}
@Override
public AttachWhitelistTemplateToInstanceRequest build() {
return new AttachWhitelistTemplateToInstanceRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AttachWhitelistTemplateToInstanceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AttachWhitelistTemplateToInstanceResponse} extends {@link TeaModel}
*
* <p>AttachWhitelistTemplateToInstanceResponse</p>
*/
public class AttachWhitelistTemplateToInstanceResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AttachWhitelistTemplateToInstanceResponseBody body;
private AttachWhitelistTemplateToInstanceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AttachWhitelistTemplateToInstanceResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AttachWhitelistTemplateToInstanceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AttachWhitelistTemplateToInstanceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AttachWhitelistTemplateToInstanceResponseBody body);
@Override
AttachWhitelistTemplateToInstanceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AttachWhitelistTemplateToInstanceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AttachWhitelistTemplateToInstanceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AttachWhitelistTemplateToInstanceResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AttachWhitelistTemplateToInstanceResponseBody body) {
this.body = body;
return this;
}
@Override
public AttachWhitelistTemplateToInstanceResponse build() {
return new AttachWhitelistTemplateToInstanceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AttachWhitelistTemplateToInstanceResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AttachWhitelistTemplateToInstanceResponseBody} extends {@link TeaModel}
*
* <p>AttachWhitelistTemplateToInstanceResponseBody</p>
*/
public class AttachWhitelistTemplateToInstanceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private AttachWhitelistTemplateToInstanceResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static AttachWhitelistTemplateToInstanceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private Data data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(AttachWhitelistTemplateToInstanceResponseBody model) {
this.code = model.code;
this.data = model.data;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The response code returned. Valid values:</p>
* <ul>
* <li><strong>200</strong>: success</li>
* <li><strong>400</strong>: client error</li>
* <li><strong>401</strong>: identity authentication failed</li>
* <li><strong>404</strong>: request page not found</li>
* <li><strong>500</strong>: server error</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The data returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The HTTP status code returned. Valid values:</p>
* <ul>
* <li><strong>200</strong>: success</li>
* <li><strong>400</strong>: client error</li>
* <li><strong>500</strong>: server error</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The message returned.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>08A3B71B-FE08-4B03-974F-CC7EA6DB1828</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the request is successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public AttachWhitelistTemplateToInstanceResponseBody build() {
return new AttachWhitelistTemplateToInstanceResponseBody(this);
}
}
/**
*
* {@link AttachWhitelistTemplateToInstanceResponseBody} extends {@link TeaModel}
*
* <p>AttachWhitelistTemplateToInstanceResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private Data(Builder builder) {
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String status;
private Builder() {
}
private Builder(Data model) {
this.status = model.status;
}
/**
* <p>The status code returned. Valid values:</p>
* <ul>
* <li><strong>ok</strong>: The request is successful.</li>
* <li><strong>error</strong>: The request fails.</li>
* </ul>
*
* <strong>example:</strong>
* <p>ok</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AuthorizeRCSecurityGroupPermissionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AuthorizeRCSecurityGroupPermissionRequest} extends {@link RequestModel}
*
* <p>AuthorizeRCSecurityGroupPermissionRequest</p>
*/
public class AuthorizeRCSecurityGroupPermissionRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Direction")
private String direction;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityGroupId")
private String securityGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityGroupPermissions")
private java.util.List<SecurityGroupPermissions> securityGroupPermissions;
private AuthorizeRCSecurityGroupPermissionRequest(Builder builder) {
super(builder);
this.direction = builder.direction;
this.regionId = builder.regionId;
this.securityGroupId = builder.securityGroupId;
this.securityGroupPermissions = builder.securityGroupPermissions;
}
public static Builder builder() {
return new Builder();
}
public static AuthorizeRCSecurityGroupPermissionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return direction
*/
public String getDirection() {
return this.direction;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return securityGroupId
*/
public String getSecurityGroupId() {
return this.securityGroupId;
}
/**
* @return securityGroupPermissions
*/
public java.util.List<SecurityGroupPermissions> getSecurityGroupPermissions() {
return this.securityGroupPermissions;
}
public static final class Builder extends Request.Builder<AuthorizeRCSecurityGroupPermissionRequest, Builder> {
private String direction;
private String regionId;
private String securityGroupId;
private java.util.List<SecurityGroupPermissions> securityGroupPermissions;
private Builder() {
super();
}
private Builder(AuthorizeRCSecurityGroupPermissionRequest request) {
super(request);
this.direction = request.direction;
this.regionId = request.regionId;
this.securityGroupId = request.securityGroupId;
this.securityGroupPermissions = request.securityGroupPermissions;
}
/**
* Direction.
*/
public Builder direction(String direction) {
this.putQueryParameter("Direction", direction);
this.direction = direction;
return this;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* SecurityGroupId.
*/
public Builder securityGroupId(String securityGroupId) {
this.putQueryParameter("SecurityGroupId", securityGroupId);
this.securityGroupId = securityGroupId;
return this;
}
/**
* SecurityGroupPermissions.
*/
public Builder securityGroupPermissions(java.util.List<SecurityGroupPermissions> securityGroupPermissions) {
String securityGroupPermissionsShrink = shrink(securityGroupPermissions, "SecurityGroupPermissions", "json");
this.putQueryParameter("SecurityGroupPermissions", securityGroupPermissionsShrink);
this.securityGroupPermissions = securityGroupPermissions;
return this;
}
@Override
public AuthorizeRCSecurityGroupPermissionRequest build() {
return new AuthorizeRCSecurityGroupPermissionRequest(this);
}
}
/**
*
* {@link AuthorizeRCSecurityGroupPermissionRequest} extends {@link TeaModel}
*
* <p>AuthorizeRCSecurityGroupPermissionRequest</p>
*/
public static class SecurityGroupPermissions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DestCidrIp")
private String destCidrIp;
@com.aliyun.core.annotation.NameInMap("IpProtocol")
private String ipProtocol;
@com.aliyun.core.annotation.NameInMap("Policy")
private String policy;
@com.aliyun.core.annotation.NameInMap("PortRange")
private String portRange;
@com.aliyun.core.annotation.NameInMap("Priority")
private Integer priority;
@com.aliyun.core.annotation.NameInMap("SourceCidrIp")
private String sourceCidrIp;
@com.aliyun.core.annotation.NameInMap("SourcePortRange")
private String sourcePortRange;
private SecurityGroupPermissions(Builder builder) {
this.destCidrIp = builder.destCidrIp;
this.ipProtocol = builder.ipProtocol;
this.policy = builder.policy;
this.portRange = builder.portRange;
this.priority = builder.priority;
this.sourceCidrIp = builder.sourceCidrIp;
this.sourcePortRange = builder.sourcePortRange;
}
public static Builder builder() {
return new Builder();
}
public static SecurityGroupPermissions create() {
return builder().build();
}
/**
* @return destCidrIp
*/
public String getDestCidrIp() {
return this.destCidrIp;
}
/**
* @return ipProtocol
*/
public String getIpProtocol() {
return this.ipProtocol;
}
/**
* @return policy
*/
public String getPolicy() {
return this.policy;
}
/**
* @return portRange
*/
public String getPortRange() {
return this.portRange;
}
/**
* @return priority
*/
public Integer getPriority() {
return this.priority;
}
/**
* @return sourceCidrIp
*/
public String getSourceCidrIp() {
return this.sourceCidrIp;
}
/**
* @return sourcePortRange
*/
public String getSourcePortRange() {
return this.sourcePortRange;
}
public static final class Builder {
private String destCidrIp;
private String ipProtocol;
private String policy;
private String portRange;
private Integer priority;
private String sourceCidrIp;
private String sourcePortRange;
private Builder() {
}
private Builder(SecurityGroupPermissions model) {
this.destCidrIp = model.destCidrIp;
this.ipProtocol = model.ipProtocol;
this.policy = model.policy;
this.portRange = model.portRange;
this.priority = model.priority;
this.sourceCidrIp = model.sourceCidrIp;
this.sourcePortRange = model.sourcePortRange;
}
/**
* DestCidrIp.
*/
public Builder destCidrIp(String destCidrIp) {
this.destCidrIp = destCidrIp;
return this;
}
/**
* IpProtocol.
*/
public Builder ipProtocol(String ipProtocol) {
this.ipProtocol = ipProtocol;
return this;
}
/**
* Policy.
*/
public Builder policy(String policy) {
this.policy = policy;
return this;
}
/**
* PortRange.
*/
public Builder portRange(String portRange) {
this.portRange = portRange;
return this;
}
/**
* Priority.
*/
public Builder priority(Integer priority) {
this.priority = priority;
return this;
}
/**
* SourceCidrIp.
*/
public Builder sourceCidrIp(String sourceCidrIp) {
this.sourceCidrIp = sourceCidrIp;
return this;
}
/**
* SourcePortRange.
*/
public Builder sourcePortRange(String sourcePortRange) {
this.sourcePortRange = sourcePortRange;
return this;
}
public SecurityGroupPermissions build() {
return new SecurityGroupPermissions(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AuthorizeRCSecurityGroupPermissionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AuthorizeRCSecurityGroupPermissionResponse} extends {@link TeaModel}
*
* <p>AuthorizeRCSecurityGroupPermissionResponse</p>
*/
public class AuthorizeRCSecurityGroupPermissionResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private AuthorizeRCSecurityGroupPermissionResponseBody body;
private AuthorizeRCSecurityGroupPermissionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static AuthorizeRCSecurityGroupPermissionResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public AuthorizeRCSecurityGroupPermissionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<AuthorizeRCSecurityGroupPermissionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(AuthorizeRCSecurityGroupPermissionResponseBody body);
@Override
AuthorizeRCSecurityGroupPermissionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<AuthorizeRCSecurityGroupPermissionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private AuthorizeRCSecurityGroupPermissionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(AuthorizeRCSecurityGroupPermissionResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(AuthorizeRCSecurityGroupPermissionResponseBody body) {
this.body = body;
return this;
}
@Override
public AuthorizeRCSecurityGroupPermissionResponse build() {
return new AuthorizeRCSecurityGroupPermissionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/AuthorizeRCSecurityGroupPermissionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AuthorizeRCSecurityGroupPermissionResponseBody} extends {@link TeaModel}
*
* <p>AuthorizeRCSecurityGroupPermissionResponseBody</p>
*/
public class AuthorizeRCSecurityGroupPermissionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private AuthorizeRCSecurityGroupPermissionResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static AuthorizeRCSecurityGroupPermissionResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(AuthorizeRCSecurityGroupPermissionResponseBody model) {
this.requestId = model.requestId;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public AuthorizeRCSecurityGroupPermissionResponseBody build() {
return new AuthorizeRCSecurityGroupPermissionResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CalculateDBInstanceWeightRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CalculateDBInstanceWeightRequest} extends {@link RequestModel}
*
* <p>CalculateDBInstanceWeightRequest</p>
*/
public class CalculateDBInstanceWeightRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private CalculateDBInstanceWeightRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static CalculateDBInstanceWeightRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<CalculateDBInstanceWeightRequest, Builder> {
private String DBInstanceId;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(CalculateDBInstanceWeightRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The primary instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public CalculateDBInstanceWeightRequest build() {
return new CalculateDBInstanceWeightRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CalculateDBInstanceWeightResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CalculateDBInstanceWeightResponse} extends {@link TeaModel}
*
* <p>CalculateDBInstanceWeightResponse</p>
*/
public class CalculateDBInstanceWeightResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CalculateDBInstanceWeightResponseBody body;
private CalculateDBInstanceWeightResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CalculateDBInstanceWeightResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CalculateDBInstanceWeightResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CalculateDBInstanceWeightResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CalculateDBInstanceWeightResponseBody body);
@Override
CalculateDBInstanceWeightResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CalculateDBInstanceWeightResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CalculateDBInstanceWeightResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CalculateDBInstanceWeightResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CalculateDBInstanceWeightResponseBody body) {
this.body = body;
return this;
}
@Override
public CalculateDBInstanceWeightResponse build() {
return new CalculateDBInstanceWeightResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CalculateDBInstanceWeightResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CalculateDBInstanceWeightResponseBody} extends {@link TeaModel}
*
* <p>CalculateDBInstanceWeightResponseBody</p>
*/
public class CalculateDBInstanceWeightResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CalculateDBInstanceWeightResponseBody(Builder builder) {
this.items = builder.items;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CalculateDBInstanceWeightResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Items items;
private String requestId;
private Builder() {
}
private Builder(CalculateDBInstanceWeightResponseBody model) {
this.items = model.items;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of information about the system-assigned read weight.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>C816A4BF-A6EC-4722-95F9-2055859CCFD2</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CalculateDBInstanceWeightResponseBody build() {
return new CalculateDBInstanceWeightResponseBody(this);
}
}
/**
*
* {@link CalculateDBInstanceWeightResponseBody} extends {@link TeaModel}
*
* <p>CalculateDBInstanceWeightResponseBody</p>
*/
public static class DBInstanceWeight extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("DBInstanceType")
private String DBInstanceType;
@com.aliyun.core.annotation.NameInMap("ReadonlyInstanceSQLDelayedTime")
private String readonlyInstanceSQLDelayedTime;
@com.aliyun.core.annotation.NameInMap("Weight")
private String weight;
private DBInstanceWeight(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceType = builder.DBInstanceType;
this.readonlyInstanceSQLDelayedTime = builder.readonlyInstanceSQLDelayedTime;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceWeight create() {
return builder().build();
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBInstanceType
*/
public String getDBInstanceType() {
return this.DBInstanceType;
}
/**
* @return readonlyInstanceSQLDelayedTime
*/
public String getReadonlyInstanceSQLDelayedTime() {
return this.readonlyInstanceSQLDelayedTime;
}
/**
* @return weight
*/
public String getWeight() {
return this.weight;
}
public static final class Builder {
private String DBInstanceId;
private String DBInstanceType;
private String readonlyInstanceSQLDelayedTime;
private String weight;
private Builder() {
}
private Builder(DBInstanceWeight model) {
this.DBInstanceId = model.DBInstanceId;
this.DBInstanceType = model.DBInstanceType;
this.readonlyInstanceSQLDelayedTime = model.readonlyInstanceSQLDelayedTime;
this.weight = model.weight;
}
/**
* <p>The instance ID</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The type of the instance. Valid values:</p>
* <ul>
* <li><strong>Master</strong>: primary instance</li>
* <li><strong>Readonly</strong>: read-only instance</li>
* </ul>
*
* <strong>example:</strong>
* <p>Master</p>
*/
public Builder DBInstanceType(String DBInstanceType) {
this.DBInstanceType = DBInstanceType;
return this;
}
/**
* <p>The latency at which the read-only instances replicate data. The read-only instances replicate data from the primary instance at the latency that is specified by the <strong>ReadonlyInstanceSQLDelayedTime</strong> parameter. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder readonlyInstanceSQLDelayedTime(String readonlyInstanceSQLDelayedTime) {
this.readonlyInstanceSQLDelayedTime = readonlyInstanceSQLDelayedTime;
return this;
}
/**
* <p>The read weight that the system calculates in real time for the instance.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder weight(String weight) {
this.weight = weight;
return this;
}
public DBInstanceWeight build() {
return new DBInstanceWeight(this);
}
}
}
/**
*
* {@link CalculateDBInstanceWeightResponseBody} extends {@link TeaModel}
*
* <p>CalculateDBInstanceWeightResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceWeight")
private java.util.List<DBInstanceWeight> DBInstanceWeight;
private Items(Builder builder) {
this.DBInstanceWeight = builder.DBInstanceWeight;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return DBInstanceWeight
*/
public java.util.List<DBInstanceWeight> getDBInstanceWeight() {
return this.DBInstanceWeight;
}
public static final class Builder {
private java.util.List<DBInstanceWeight> DBInstanceWeight;
private Builder() {
}
private Builder(Items model) {
this.DBInstanceWeight = model.DBInstanceWeight;
}
/**
* DBInstanceWeight.
*/
public Builder DBInstanceWeight(java.util.List<DBInstanceWeight> DBInstanceWeight) {
this.DBInstanceWeight = DBInstanceWeight;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CancelActiveOperationTasksRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CancelActiveOperationTasksRequest} extends {@link RequestModel}
*
* <p>CancelActiveOperationTasksRequest</p>
*/
public class CancelActiveOperationTasksRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ids")
@com.aliyun.core.annotation.Validation(required = true)
private String ids;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
private CancelActiveOperationTasksRequest(Builder builder) {
super(builder);
this.ids = builder.ids;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.securityToken = builder.securityToken;
}
public static Builder builder() {
return new Builder();
}
public static CancelActiveOperationTasksRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ids
*/
public String getIds() {
return this.ids;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
public static final class Builder extends Request.Builder<CancelActiveOperationTasksRequest, Builder> {
private String ids;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String securityToken;
private Builder() {
super();
}
private Builder(CancelActiveOperationTasksRequest request) {
super(request);
this.ids = request.ids;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.securityToken = request.securityToken;
}
/**
* <p>The IDs of tasks that you want to cancel at a time. Separate multiple IDs with commas (,). We recommend that you configure up to 25 IDs at a time.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>188****,188****,188****</p>
*/
public Builder ids(String ids) {
this.putQueryParameter("Ids", ids);
this.ids = ids;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
@Override
public CancelActiveOperationTasksRequest build() {
return new CancelActiveOperationTasksRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CancelActiveOperationTasksResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CancelActiveOperationTasksResponse} extends {@link TeaModel}
*
* <p>CancelActiveOperationTasksResponse</p>
*/
public class CancelActiveOperationTasksResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CancelActiveOperationTasksResponseBody body;
private CancelActiveOperationTasksResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CancelActiveOperationTasksResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CancelActiveOperationTasksResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CancelActiveOperationTasksResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CancelActiveOperationTasksResponseBody body);
@Override
CancelActiveOperationTasksResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CancelActiveOperationTasksResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CancelActiveOperationTasksResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CancelActiveOperationTasksResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CancelActiveOperationTasksResponseBody body) {
this.body = body;
return this;
}
@Override
public CancelActiveOperationTasksResponse build() {
return new CancelActiveOperationTasksResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CancelActiveOperationTasksResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CancelActiveOperationTasksResponseBody} extends {@link TeaModel}
*
* <p>CancelActiveOperationTasksResponseBody</p>
*/
public class CancelActiveOperationTasksResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ids")
private String ids;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CancelActiveOperationTasksResponseBody(Builder builder) {
this.ids = builder.ids;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CancelActiveOperationTasksResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ids
*/
public String getIds() {
return this.ids;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String ids;
private String requestId;
private Builder() {
}
private Builder(CancelActiveOperationTasksResponseBody model) {
this.ids = model.ids;
this.requestId = model.requestId;
}
/**
* <p>The IDs of the tasks that are canceled. Multiple task IDs are separated with commas (,).</p>
*
* <strong>example:</strong>
* <p>188****,188****,188****</p>
*/
public Builder ids(String ids) {
this.ids = ids;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>A807C95D-410C-5BB5-96C0-C6E09F2C3D36</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CancelActiveOperationTasksResponseBody build() {
return new CancelActiveOperationTasksResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckAccountNameAvailableRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckAccountNameAvailableRequest} extends {@link RequestModel}
*
* <p>CheckAccountNameAvailableRequest</p>
*/
public class CheckAccountNameAvailableRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AccountName")
@com.aliyun.core.annotation.Validation(required = true)
private String accountName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
private CheckAccountNameAvailableRequest(Builder builder) {
super(builder);
this.accountName = builder.accountName;
this.clientToken = builder.clientToken;
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
}
public static Builder builder() {
return new Builder();
}
public static CheckAccountNameAvailableRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accountName
*/
public String getAccountName() {
return this.accountName;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public static final class Builder extends Request.Builder<CheckAccountNameAvailableRequest, Builder> {
private String accountName;
private String clientToken;
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Builder() {
super();
}
private Builder(CheckAccountNameAvailableRequest request) {
super(request);
this.accountName = request.accountName;
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
}
/**
* <p>The username of the account.</p>
* <ul>
* <li><p>The value must be unique.</p>
* </li>
* <li><p>The value must start with a lowercase letter, and end with a lowercase letter or a digit.</p>
* </li>
* <li><p>The value can contain lowercase letters, digits, and underscores (_).</p>
* </li>
* <li><p>The length of the value must meet the following requirements:</p>
* <ul>
* <li>If the instance runs MySQL 5.7 or MySQL 8.0, the value must be 2 to 32 characters in length.</li>
* <li>If the instance runs MySQL 5.6, the value must be 2 to 16 characters in length.</li>
* <li>If the instance runs SQL Server, the value must be 2 to 64 characters in length.</li>
* <li>If the instance runs PostgreSQL with cloud disks, the value must be 2 to 63 characters in length.</li>
* <li>If the instance runs PostgreSQL with local disks, the value must be 2 to 16 characters in length.</li>
* <li>If the instance runs MariaDB, the value must be 2 to 16 characters in length.</li>
* </ul>
* </li>
* <li><p>For more information about invalid characters, see <a href="https://help.aliyun.com/document_detail/26317.html">Forbidden keywords table</a>.</p>
* </li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>DatabaseTest</p>
*/
public Builder accountName(String accountName) {
this.putQueryParameter("AccountName", accountName);
this.accountName = accountName;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCzxxxxxxxxxx</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
@Override
public CheckAccountNameAvailableRequest build() {
return new CheckAccountNameAvailableRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckAccountNameAvailableResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckAccountNameAvailableResponse} extends {@link TeaModel}
*
* <p>CheckAccountNameAvailableResponse</p>
*/
public class CheckAccountNameAvailableResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CheckAccountNameAvailableResponseBody body;
private CheckAccountNameAvailableResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CheckAccountNameAvailableResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CheckAccountNameAvailableResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CheckAccountNameAvailableResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CheckAccountNameAvailableResponseBody body);
@Override
CheckAccountNameAvailableResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CheckAccountNameAvailableResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CheckAccountNameAvailableResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CheckAccountNameAvailableResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CheckAccountNameAvailableResponseBody body) {
this.body = body;
return this;
}
@Override
public CheckAccountNameAvailableResponse build() {
return new CheckAccountNameAvailableResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckAccountNameAvailableResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckAccountNameAvailableResponseBody} extends {@link TeaModel}
*
* <p>CheckAccountNameAvailableResponseBody</p>
*/
public class CheckAccountNameAvailableResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
private CheckAccountNameAvailableResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static CheckAccountNameAvailableResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
public static final class Builder {
private String requestId;
private String resourceGroupId;
private Builder() {
}
private Builder(CheckAccountNameAvailableResponseBody model) {
this.requestId = model.requestId;
this.resourceGroupId = model.resourceGroupId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>5E4AA101-1EE5-41C0-AE6D-0F066331AC1C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
public CheckAccountNameAvailableResponseBody build() {
return new CheckAccountNameAvailableResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckCloudResourceAuthorizedRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckCloudResourceAuthorizedRequest} extends {@link RequestModel}
*
* <p>CheckCloudResourceAuthorizedRequest</p>
*/
public class CheckCloudResourceAuthorizedRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@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("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetRegionId")
private String targetRegionId;
private CheckCloudResourceAuthorizedRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.securityToken = builder.securityToken;
this.targetRegionId = builder.targetRegionId;
}
public static Builder builder() {
return new Builder();
}
public static CheckCloudResourceAuthorizedRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
/**
* @return targetRegionId
*/
public String getTargetRegionId() {
return this.targetRegionId;
}
public static final class Builder extends Request.Builder<CheckCloudResourceAuthorizedRequest, Builder> {
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String securityToken;
private String targetRegionId;
private Builder() {
super();
}
private Builder(CheckCloudResourceAuthorizedRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.securityToken = request.securityToken;
this.targetRegionId = request.targetRegionId;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-t4n7j9eb52y7c1960</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID. You can call the DescribeRegions operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy**********</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
/**
* <p>The destination region ID. You can call the DescribeRegions operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>us-east-1</p>
*/
public Builder targetRegionId(String targetRegionId) {
this.putQueryParameter("TargetRegionId", targetRegionId);
this.targetRegionId = targetRegionId;
return this;
}
@Override
public CheckCloudResourceAuthorizedRequest build() {
return new CheckCloudResourceAuthorizedRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckCloudResourceAuthorizedResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckCloudResourceAuthorizedResponse} extends {@link TeaModel}
*
* <p>CheckCloudResourceAuthorizedResponse</p>
*/
public class CheckCloudResourceAuthorizedResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CheckCloudResourceAuthorizedResponseBody body;
private CheckCloudResourceAuthorizedResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CheckCloudResourceAuthorizedResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CheckCloudResourceAuthorizedResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CheckCloudResourceAuthorizedResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CheckCloudResourceAuthorizedResponseBody body);
@Override
CheckCloudResourceAuthorizedResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CheckCloudResourceAuthorizedResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CheckCloudResourceAuthorizedResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CheckCloudResourceAuthorizedResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CheckCloudResourceAuthorizedResponseBody body) {
this.body = body;
return this;
}
@Override
public CheckCloudResourceAuthorizedResponse build() {
return new CheckCloudResourceAuthorizedResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckCloudResourceAuthorizedResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckCloudResourceAuthorizedResponseBody} extends {@link TeaModel}
*
* <p>CheckCloudResourceAuthorizedResponseBody</p>
*/
public class CheckCloudResourceAuthorizedResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AuthorizationState")
private Integer authorizationState;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RoleArn")
private String roleArn;
private CheckCloudResourceAuthorizedResponseBody(Builder builder) {
this.authorizationState = builder.authorizationState;
this.requestId = builder.requestId;
this.roleArn = builder.roleArn;
}
public static Builder builder() {
return new Builder();
}
public static CheckCloudResourceAuthorizedResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return authorizationState
*/
public Integer getAuthorizationState() {
return this.authorizationState;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return roleArn
*/
public String getRoleArn() {
return this.roleArn;
}
public static final class Builder {
private Integer authorizationState;
private String requestId;
private String roleArn;
private Builder() {
}
private Builder(CheckCloudResourceAuthorizedResponseBody model) {
this.authorizationState = model.authorizationState;
this.requestId = model.requestId;
this.roleArn = model.roleArn;
}
/**
* <p>The authorization status. Valid values:</p>
* <ul>
* <li><strong>1</strong>: authorized</li>
* <li><strong>0</strong>: not authorized</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder authorizationState(Integer authorizationState) {
this.authorizationState = authorizationState;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>8B993DA9-5272-5414-94E3-4CA8BA0146C2</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The Alibaba Cloud Resource Name (ARN) of the RAM role. A RAM role is a virtual identity that you can create within your Alibaba Cloud account. For more information, see <a href="https://help.aliyun.com/document_detail/93689.html">RAM role overview</a>.</p>
*
* <strong>example:</strong>
* <p>acs:ram::1406926****:role/aliyunrdsinstanceencryptiondefaultrole</p>
*/
public Builder roleArn(String roleArn) {
this.roleArn = roleArn;
return this;
}
public CheckCloudResourceAuthorizedResponseBody build() {
return new CheckCloudResourceAuthorizedResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckCreateDdrDBInstanceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckCreateDdrDBInstanceRequest} extends {@link RequestModel}
*
* <p>CheckCreateDdrDBInstanceRequest</p>
*/
public class CheckCreateDdrDBInstanceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackupSetId")
private String backupSetId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceClass")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceClass;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceStorage")
@com.aliyun.core.annotation.Validation(required = true)
private Integer DBInstanceStorage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Engine")
@com.aliyun.core.annotation.Validation(required = true)
private String engine;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EngineVersion")
@com.aliyun.core.annotation.Validation(required = true)
private String engineVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
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("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RestoreTime")
private String restoreTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RestoreType")
@com.aliyun.core.annotation.Validation(required = true)
private String restoreType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceDBInstanceName")
private String sourceDBInstanceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceRegion")
private String sourceRegion;
private CheckCreateDdrDBInstanceRequest(Builder builder) {
super(builder);
this.backupSetId = builder.backupSetId;
this.DBInstanceClass = builder.DBInstanceClass;
this.DBInstanceStorage = builder.DBInstanceStorage;
this.engine = builder.engine;
this.engineVersion = builder.engineVersion;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.restoreTime = builder.restoreTime;
this.restoreType = builder.restoreType;
this.sourceDBInstanceName = builder.sourceDBInstanceName;
this.sourceRegion = builder.sourceRegion;
}
public static Builder builder() {
return new Builder();
}
public static CheckCreateDdrDBInstanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backupSetId
*/
public String getBackupSetId() {
return this.backupSetId;
}
/**
* @return DBInstanceClass
*/
public String getDBInstanceClass() {
return this.DBInstanceClass;
}
/**
* @return DBInstanceStorage
*/
public Integer getDBInstanceStorage() {
return this.DBInstanceStorage;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return engineVersion
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return restoreTime
*/
public String getRestoreTime() {
return this.restoreTime;
}
/**
* @return restoreType
*/
public String getRestoreType() {
return this.restoreType;
}
/**
* @return sourceDBInstanceName
*/
public String getSourceDBInstanceName() {
return this.sourceDBInstanceName;
}
/**
* @return sourceRegion
*/
public String getSourceRegion() {
return this.sourceRegion;
}
public static final class Builder extends Request.Builder<CheckCreateDdrDBInstanceRequest, Builder> {
private String backupSetId;
private String DBInstanceClass;
private Integer DBInstanceStorage;
private String engine;
private String engineVersion;
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String restoreTime;
private String restoreType;
private String sourceDBInstanceName;
private String sourceRegion;
private Builder() {
super();
}
private Builder(CheckCreateDdrDBInstanceRequest request) {
super(request);
this.backupSetId = request.backupSetId;
this.DBInstanceClass = request.DBInstanceClass;
this.DBInstanceStorage = request.DBInstanceStorage;
this.engine = request.engine;
this.engineVersion = request.engineVersion;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.restoreTime = request.restoreTime;
this.restoreType = request.restoreType;
this.sourceDBInstanceName = request.sourceDBInstanceName;
this.sourceRegion = request.sourceRegion;
}
/**
* <p>The ID of the backup set that is used for the restoration. You can call the DescribeCrossRegionBackups operation to query the backup set ID.</p>
* <blockquote>
* <p> This parameter must be specified when the <strong>RestoreType</strong> parameter is set to <strong>0</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>14358</p>
*/
public Builder backupSetId(String backupSetId) {
this.putQueryParameter("BackupSetId", backupSetId);
this.backupSetId = backupSetId;
return this;
}
/**
* <p>The instance type of the destination instance. For more information, see <a href="https://help.aliyun.com/document_detail/26312.html">Primary ApsaraDB RDS instance types</a>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rds.mysql.s1.small</p>
*/
public Builder DBInstanceClass(String DBInstanceClass) {
this.putQueryParameter("DBInstanceClass", DBInstanceClass);
this.DBInstanceClass = DBInstanceClass;
return this;
}
/**
* <p>The storage capacity of the destination instance. Valid values: <strong>5 to 2000</strong>. Unit: GB. You can increase the storage capacity in increments of 5 GB. For more information, see <a href="https://help.aliyun.com/document_detail/26312.html">Primary instance types</a>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder DBInstanceStorage(Integer DBInstanceStorage) {
this.putQueryParameter("DBInstanceStorage", DBInstanceStorage);
this.DBInstanceStorage = DBInstanceStorage;
return this;
}
/**
* <p>The database engine of the destination instance. Valid values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>SQLServer</strong></li>
* <li><strong>PostgreSQL</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engine(String engine) {
this.putQueryParameter("Engine", engine);
this.engine = engine;
return this;
}
/**
* <p>The major engine version of the destination instance. The value of this parameter varies based on the value of <strong>Engine</strong>.</p>
* <ul>
* <li>Valid values when Engine is set to MySQL: <strong>5.5, 5.6, 5.7, and 8.0</strong></li>
* <li>Valid values when Engine is set to SQLServer: <strong>2008r2, 08r2_ent_ha, 2012, 2012_ent_ha, 2012_std_ha, 2012_web, 2014_std_ha, 2016_ent_ha, 2016_std_ha, 2016_web, 2017_std_ha, 2017_ent, 2019_std_ha, and 2019_ent</strong></li>
* <li>PostgreSQL: <strong>10.0, 11.0, 12.0, 13.0, 14.0, and 15.0</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>5.6</p>
*/
public Builder engineVersion(String engineVersion) {
this.putQueryParameter("EngineVersion", engineVersion);
this.engineVersion = engineVersion;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the destination instance. You can call the DescribeRegions operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID. You can call the DescribeDBInstanceAttribute to query the resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The point in time to which you want to restore data. The point in time that you specify must be earlier than the current time. The time follows the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time is displayed in UTC.</p>
* <blockquote>
* <p>If you set <strong>RestoreType</strong> to <strong>1</strong>, you must also specify this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2019-05-30T03:29:10Z</p>
*/
public Builder restoreTime(String restoreTime) {
this.putQueryParameter("RestoreTime", restoreTime);
this.restoreTime = restoreTime;
return this;
}
/**
* <p>The method that is used to restore data. Valid values:</p>
* <ul>
* <li><strong>0</strong>: restores data from a backup set. If you set this parameter to 0, you must also specify the <strong>BackupSetId</strong> parameter.</li>
* <li><strong>1</strong>: restores data to a point in time. If you set this parameter to 1, you must also specify the <strong>RestoreTime</strong>, <strong>SourceRegion</strong>, and <strong>SourceDBInstanceName</strong> parameters.</li>
* </ul>
* <p>Default value: <strong>0</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder restoreType(String restoreType) {
this.putQueryParameter("RestoreType", restoreType);
this.restoreType = restoreType;
return this;
}
/**
* <p>The ID of the source instance if you want to restore data to a point in time.</p>
* <blockquote>
* <p> This parameter must be specified when the <strong>RestoreType</strong> parameter is set to <strong>1</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder sourceDBInstanceName(String sourceDBInstanceName) {
this.putQueryParameter("SourceDBInstanceName", sourceDBInstanceName);
this.sourceDBInstanceName = sourceDBInstanceName;
return this;
}
/**
* <p>The region ID of the source instance if you want to restore data to a point in time.</p>
* <blockquote>
* <p>If you set <strong>RestoreType</strong> to <strong>1</strong>, you must also specify this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder sourceRegion(String sourceRegion) {
this.putQueryParameter("SourceRegion", sourceRegion);
this.sourceRegion = sourceRegion;
return this;
}
@Override
public CheckCreateDdrDBInstanceRequest build() {
return new CheckCreateDdrDBInstanceRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckCreateDdrDBInstanceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckCreateDdrDBInstanceResponse} extends {@link TeaModel}
*
* <p>CheckCreateDdrDBInstanceResponse</p>
*/
public class CheckCreateDdrDBInstanceResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CheckCreateDdrDBInstanceResponseBody body;
private CheckCreateDdrDBInstanceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CheckCreateDdrDBInstanceResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CheckCreateDdrDBInstanceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CheckCreateDdrDBInstanceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CheckCreateDdrDBInstanceResponseBody body);
@Override
CheckCreateDdrDBInstanceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CheckCreateDdrDBInstanceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CheckCreateDdrDBInstanceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CheckCreateDdrDBInstanceResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CheckCreateDdrDBInstanceResponseBody body) {
this.body = body;
return this;
}
@Override
public CheckCreateDdrDBInstanceResponse build() {
return new CheckCreateDdrDBInstanceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckCreateDdrDBInstanceResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckCreateDdrDBInstanceResponseBody} extends {@link TeaModel}
*
* <p>CheckCreateDdrDBInstanceResponseBody</p>
*/
public class CheckCreateDdrDBInstanceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IsValid")
private String isValid;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CheckCreateDdrDBInstanceResponseBody(Builder builder) {
this.isValid = builder.isValid;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CheckCreateDdrDBInstanceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return isValid
*/
public String getIsValid() {
return this.isValid;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String isValid;
private String requestId;
private Builder() {
}
private Builder(CheckCreateDdrDBInstanceResponseBody model) {
this.isValid = model.isValid;
this.requestId = model.requestId;
}
/**
* <p>Indicates whether the data of the source instance can be restored across regions. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder isValid(String isValid) {
this.isValid = isValid;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>1E43AAE0-BEE8-43DA-860D-EAF2AA0724DC</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CheckCreateDdrDBInstanceResponseBody build() {
return new CheckCreateDdrDBInstanceResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckDBNameAvailableRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckDBNameAvailableRequest} extends {@link RequestModel}
*
* <p>CheckDBNameAvailableRequest</p>
*/
public class CheckDBNameAvailableRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBName")
@com.aliyun.core.annotation.Validation(required = true)
private String DBName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private CheckDBNameAvailableRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.DBInstanceId = builder.DBInstanceId;
this.DBName = builder.DBName;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static CheckDBNameAvailableRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBName
*/
public String getDBName() {
return this.DBName;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<CheckDBNameAvailableRequest, Builder> {
private String clientToken;
private String DBInstanceId;
private String DBName;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(CheckDBNameAvailableRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
this.DBName = request.DBName;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCzxxxxxxxxxx</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-t4n3axxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The database name that you want to check.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test1</p>
*/
public Builder DBName(String DBName) {
this.putQueryParameter("DBName", DBName);
this.DBName = DBName;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public CheckDBNameAvailableRequest build() {
return new CheckDBNameAvailableRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckDBNameAvailableResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckDBNameAvailableResponse} extends {@link TeaModel}
*
* <p>CheckDBNameAvailableResponse</p>
*/
public class CheckDBNameAvailableResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CheckDBNameAvailableResponseBody body;
private CheckDBNameAvailableResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CheckDBNameAvailableResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CheckDBNameAvailableResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CheckDBNameAvailableResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CheckDBNameAvailableResponseBody body);
@Override
CheckDBNameAvailableResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CheckDBNameAvailableResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CheckDBNameAvailableResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CheckDBNameAvailableResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CheckDBNameAvailableResponseBody body) {
this.body = body;
return this;
}
@Override
public CheckDBNameAvailableResponse build() {
return new CheckDBNameAvailableResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckDBNameAvailableResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckDBNameAvailableResponseBody} extends {@link TeaModel}
*
* <p>CheckDBNameAvailableResponseBody</p>
*/
public class CheckDBNameAvailableResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CheckDBNameAvailableResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CheckDBNameAvailableResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(CheckDBNameAvailableResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
* <blockquote>
* <p> If this operation returns only the ID of the request, the database name conforms to the naming conventions. If an error message is returned, the database name is duplicate or does not conform to the naming conventions.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>6EF82B07-28D2-48D1-B5D6-7E78FED277C7</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CheckDBNameAvailableResponseBody build() {
return new CheckDBNameAvailableResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckInstanceExistRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckInstanceExistRequest} extends {@link RequestModel}
*
* <p>CheckInstanceExistRequest</p>
*/
public class CheckInstanceExistRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private CheckInstanceExistRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static CheckInstanceExistRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<CheckInstanceExistRequest, Builder> {
private String DBInstanceId;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(CheckInstanceExistRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public CheckInstanceExistRequest build() {
return new CheckInstanceExistRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckInstanceExistResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckInstanceExistResponse} extends {@link TeaModel}
*
* <p>CheckInstanceExistResponse</p>
*/
public class CheckInstanceExistResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CheckInstanceExistResponseBody body;
private CheckInstanceExistResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CheckInstanceExistResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CheckInstanceExistResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CheckInstanceExistResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CheckInstanceExistResponseBody body);
@Override
CheckInstanceExistResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CheckInstanceExistResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CheckInstanceExistResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CheckInstanceExistResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CheckInstanceExistResponseBody body) {
this.body = body;
return this;
}
@Override
public CheckInstanceExistResponse build() {
return new CheckInstanceExistResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckInstanceExistResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckInstanceExistResponseBody} extends {@link TeaModel}
*
* <p>CheckInstanceExistResponseBody</p>
*/
public class CheckInstanceExistResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IsExistInstance")
private Boolean isExistInstance;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CheckInstanceExistResponseBody(Builder builder) {
this.isExistInstance = builder.isExistInstance;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CheckInstanceExistResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return isExistInstance
*/
public Boolean getIsExistInstance() {
return this.isExistInstance;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Boolean isExistInstance;
private String requestId;
private Builder() {
}
private Builder(CheckInstanceExistResponseBody model) {
this.isExistInstance = model.isExistInstance;
this.requestId = model.requestId;
}
/**
* <p>Indicates whether the instance exists. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The instance exists.</li>
* <li><strong>false</strong>: The instance does not exist.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder isExistInstance(Boolean isExistInstance) {
this.isExistInstance = isExistInstance;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>11439B36-F703-49EB-8656-D3C87BE28B57</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CheckInstanceExistResponseBody build() {
return new CheckInstanceExistResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckServiceLinkedRoleRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckServiceLinkedRoleRequest} extends {@link RequestModel}
*
* <p>CheckServiceLinkedRoleRequest</p>
*/
public class CheckServiceLinkedRoleRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
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("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServiceLinkedRole")
@com.aliyun.core.annotation.Validation(required = true)
private String serviceLinkedRole;
private CheckServiceLinkedRoleRequest(Builder builder) {
super(builder);
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.serviceLinkedRole = builder.serviceLinkedRole;
}
public static Builder builder() {
return new Builder();
}
public static CheckServiceLinkedRoleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return serviceLinkedRole
*/
public String getServiceLinkedRole() {
return this.serviceLinkedRole;
}
public static final class Builder extends Request.Builder<CheckServiceLinkedRoleRequest, Builder> {
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String serviceLinkedRole;
private Builder() {
super();
}
private Builder(CheckServiceLinkedRoleRequest request) {
super(request);
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.serviceLinkedRole = request.serviceLinkedRole;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID.</p>
* <blockquote>
* <p> You can specify any region for this parameter, which does not affect your query results. You can call the <a href="https://help.aliyun.com/document_detail/26243.html">DescribeRegions</a> operation to query the most recent region list.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4p****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The SLR name.</p>
* <blockquote>
* <p> For more information about the SLRs supported by ApsaraDB RDS, see <a href="https://help.aliyun.com/document_detail/342840.html">Service-linked roles</a>.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>AliyunServiceRoleForRdsPgsqlOnEcs</p>
*/
public Builder serviceLinkedRole(String serviceLinkedRole) {
this.putQueryParameter("ServiceLinkedRole", serviceLinkedRole);
this.serviceLinkedRole = serviceLinkedRole;
return this;
}
@Override
public CheckServiceLinkedRoleRequest build() {
return new CheckServiceLinkedRoleRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckServiceLinkedRoleResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckServiceLinkedRoleResponse} extends {@link TeaModel}
*
* <p>CheckServiceLinkedRoleResponse</p>
*/
public class CheckServiceLinkedRoleResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CheckServiceLinkedRoleResponseBody body;
private CheckServiceLinkedRoleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CheckServiceLinkedRoleResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CheckServiceLinkedRoleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CheckServiceLinkedRoleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CheckServiceLinkedRoleResponseBody body);
@Override
CheckServiceLinkedRoleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CheckServiceLinkedRoleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CheckServiceLinkedRoleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CheckServiceLinkedRoleResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CheckServiceLinkedRoleResponseBody body) {
this.body = body;
return this;
}
@Override
public CheckServiceLinkedRoleResponse build() {
return new CheckServiceLinkedRoleResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CheckServiceLinkedRoleResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CheckServiceLinkedRoleResponseBody} extends {@link TeaModel}
*
* <p>CheckServiceLinkedRoleResponseBody</p>
*/
public class CheckServiceLinkedRoleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HasServiceLinkedRole")
private String hasServiceLinkedRole;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RequireServiceLinkedRole")
private String requireServiceLinkedRole;
private CheckServiceLinkedRoleResponseBody(Builder builder) {
this.hasServiceLinkedRole = builder.hasServiceLinkedRole;
this.requestId = builder.requestId;
this.requireServiceLinkedRole = builder.requireServiceLinkedRole;
}
public static Builder builder() {
return new Builder();
}
public static CheckServiceLinkedRoleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hasServiceLinkedRole
*/
public String getHasServiceLinkedRole() {
return this.hasServiceLinkedRole;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return requireServiceLinkedRole
*/
public String getRequireServiceLinkedRole() {
return this.requireServiceLinkedRole;
}
public static final class Builder {
private String hasServiceLinkedRole;
private String requestId;
private String requireServiceLinkedRole;
private Builder() {
}
private Builder(CheckServiceLinkedRoleResponseBody model) {
this.hasServiceLinkedRole = model.hasServiceLinkedRole;
this.requestId = model.requestId;
this.requireServiceLinkedRole = model.requireServiceLinkedRole;
}
/**
* <p>Indicates whether an SLR is created.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder hasServiceLinkedRole(String hasServiceLinkedRole) {
this.hasServiceLinkedRole = hasServiceLinkedRole;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>AB44DC0A-7E77-442A-97A9-C6418694CB22</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the service-linked role is required. Default value: true.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder requireServiceLinkedRole(String requireServiceLinkedRole) {
this.requireServiceLinkedRole = requireServiceLinkedRole;
return this;
}
public CheckServiceLinkedRoleResponseBody build() {
return new CheckServiceLinkedRoleResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CloneDBInstanceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CloneDBInstanceRequest} extends {@link RequestModel}
*
* <p>CloneDBInstanceRequest</p>
*/
public class CloneDBInstanceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoPay")
private Boolean autoPay;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackupId")
private String backupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackupType")
private String backupType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BpeEnabled")
private String bpeEnabled;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BurstingEnabled")
private Boolean burstingEnabled;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Category")
private String category;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceClass")
private String DBInstanceClass;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceDescription")
private String DBInstanceDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true, maxLength = 65535, minLength = 1)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceStorage")
private Integer DBInstanceStorage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceStorageType")
private String DBInstanceStorageType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DbNames")
private String dbNames;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DedicatedHostGroupId")
private String dedicatedHostGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DeletionProtection")
private Boolean deletionProtection;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceNetworkType")
private String instanceNetworkType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IoAccelerationEnabled")
private String ioAccelerationEnabled;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PayType")
@com.aliyun.core.annotation.Validation(required = true)
private String payType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Period")
private String period;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PrivateIpAddress")
private String privateIpAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RestoreTable")
private String restoreTable;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RestoreTime")
private String restoreTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServerlessConfig")
private ServerlessConfig serverlessConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TableMeta")
private String tableMeta;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UsedTime")
private Integer usedTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VPCId")
private String VPCId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneIdSlave1")
private String zoneIdSlave1;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneIdSlave2")
private String zoneIdSlave2;
private CloneDBInstanceRequest(Builder builder) {
super(builder);
this.autoPay = builder.autoPay;
this.backupId = builder.backupId;
this.backupType = builder.backupType;
this.bpeEnabled = builder.bpeEnabled;
this.burstingEnabled = builder.burstingEnabled;
this.category = builder.category;
this.clientToken = builder.clientToken;
this.DBInstanceClass = builder.DBInstanceClass;
this.DBInstanceDescription = builder.DBInstanceDescription;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceStorage = builder.DBInstanceStorage;
this.DBInstanceStorageType = builder.DBInstanceStorageType;
this.dbNames = builder.dbNames;
this.dedicatedHostGroupId = builder.dedicatedHostGroupId;
this.deletionProtection = builder.deletionProtection;
this.instanceNetworkType = builder.instanceNetworkType;
this.ioAccelerationEnabled = builder.ioAccelerationEnabled;
this.payType = builder.payType;
this.period = builder.period;
this.privateIpAddress = builder.privateIpAddress;
this.regionId = builder.regionId;
this.resourceOwnerId = builder.resourceOwnerId;
this.restoreTable = builder.restoreTable;
this.restoreTime = builder.restoreTime;
this.serverlessConfig = builder.serverlessConfig;
this.tableMeta = builder.tableMeta;
this.usedTime = builder.usedTime;
this.VPCId = builder.VPCId;
this.vSwitchId = builder.vSwitchId;
this.zoneId = builder.zoneId;
this.zoneIdSlave1 = builder.zoneIdSlave1;
this.zoneIdSlave2 = builder.zoneIdSlave2;
}
public static Builder builder() {
return new Builder();
}
public static CloneDBInstanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return autoPay
*/
public Boolean getAutoPay() {
return this.autoPay;
}
/**
* @return backupId
*/
public String getBackupId() {
return this.backupId;
}
/**
* @return backupType
*/
public String getBackupType() {
return this.backupType;
}
/**
* @return bpeEnabled
*/
public String getBpeEnabled() {
return this.bpeEnabled;
}
/**
* @return burstingEnabled
*/
public Boolean getBurstingEnabled() {
return this.burstingEnabled;
}
/**
* @return category
*/
public String getCategory() {
return this.category;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return DBInstanceClass
*/
public String getDBInstanceClass() {
return this.DBInstanceClass;
}
/**
* @return DBInstanceDescription
*/
public String getDBInstanceDescription() {
return this.DBInstanceDescription;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBInstanceStorage
*/
public Integer getDBInstanceStorage() {
return this.DBInstanceStorage;
}
/**
* @return DBInstanceStorageType
*/
public String getDBInstanceStorageType() {
return this.DBInstanceStorageType;
}
/**
* @return dbNames
*/
public String getDbNames() {
return this.dbNames;
}
/**
* @return dedicatedHostGroupId
*/
public String getDedicatedHostGroupId() {
return this.dedicatedHostGroupId;
}
/**
* @return deletionProtection
*/
public Boolean getDeletionProtection() {
return this.deletionProtection;
}
/**
* @return instanceNetworkType
*/
public String getInstanceNetworkType() {
return this.instanceNetworkType;
}
/**
* @return ioAccelerationEnabled
*/
public String getIoAccelerationEnabled() {
return this.ioAccelerationEnabled;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return period
*/
public String getPeriod() {
return this.period;
}
/**
* @return privateIpAddress
*/
public String getPrivateIpAddress() {
return this.privateIpAddress;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return restoreTable
*/
public String getRestoreTable() {
return this.restoreTable;
}
/**
* @return restoreTime
*/
public String getRestoreTime() {
return this.restoreTime;
}
/**
* @return serverlessConfig
*/
public ServerlessConfig getServerlessConfig() {
return this.serverlessConfig;
}
/**
* @return tableMeta
*/
public String getTableMeta() {
return this.tableMeta;
}
/**
* @return usedTime
*/
public Integer getUsedTime() {
return this.usedTime;
}
/**
* @return VPCId
*/
public String getVPCId() {
return this.VPCId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
/**
* @return zoneIdSlave1
*/
public String getZoneIdSlave1() {
return this.zoneIdSlave1;
}
/**
* @return zoneIdSlave2
*/
public String getZoneIdSlave2() {
return this.zoneIdSlave2;
}
public static final class Builder extends Request.Builder<CloneDBInstanceRequest, Builder> {
private Boolean autoPay;
private String backupId;
private String backupType;
private String bpeEnabled;
private Boolean burstingEnabled;
private String category;
private String clientToken;
private String DBInstanceClass;
private String DBInstanceDescription;
private String DBInstanceId;
private Integer DBInstanceStorage;
private String DBInstanceStorageType;
private String dbNames;
private String dedicatedHostGroupId;
private Boolean deletionProtection;
private String instanceNetworkType;
private String ioAccelerationEnabled;
private String payType;
private String period;
private String privateIpAddress;
private String regionId;
private Long resourceOwnerId;
private String restoreTable;
private String restoreTime;
private ServerlessConfig serverlessConfig;
private String tableMeta;
private Integer usedTime;
private String VPCId;
private String vSwitchId;
private String zoneId;
private String zoneIdSlave1;
private String zoneIdSlave2;
private Builder() {
super();
}
private Builder(CloneDBInstanceRequest request) {
super(request);
this.autoPay = request.autoPay;
this.backupId = request.backupId;
this.backupType = request.backupType;
this.bpeEnabled = request.bpeEnabled;
this.burstingEnabled = request.burstingEnabled;
this.category = request.category;
this.clientToken = request.clientToken;
this.DBInstanceClass = request.DBInstanceClass;
this.DBInstanceDescription = request.DBInstanceDescription;
this.DBInstanceId = request.DBInstanceId;
this.DBInstanceStorage = request.DBInstanceStorage;
this.DBInstanceStorageType = request.DBInstanceStorageType;
this.dbNames = request.dbNames;
this.dedicatedHostGroupId = request.dedicatedHostGroupId;
this.deletionProtection = request.deletionProtection;
this.instanceNetworkType = request.instanceNetworkType;
this.ioAccelerationEnabled = request.ioAccelerationEnabled;
this.payType = request.payType;
this.period = request.period;
this.privateIpAddress = request.privateIpAddress;
this.regionId = request.regionId;
this.resourceOwnerId = request.resourceOwnerId;
this.restoreTable = request.restoreTable;
this.restoreTime = request.restoreTime;
this.serverlessConfig = request.serverlessConfig;
this.tableMeta = request.tableMeta;
this.usedTime = request.usedTime;
this.VPCId = request.VPCId;
this.vSwitchId = request.vSwitchId;
this.zoneId = request.zoneId;
this.zoneIdSlave1 = request.zoneIdSlave1;
this.zoneIdSlave2 = request.zoneIdSlave2;
}
/**
* <p>Specifies whether to enable the automatic payment feature for the new instance. Valid values:</p>
* <ol>
* <li><strong>true</strong>: enables the feature. You must make sure that your account balance is sufficient.</li>
* <li><strong>false</strong>: disables the feature. An unpaid order is generated.</li>
* </ol>
* <blockquote>
* <p> Default value: true. If your account balance is insufficient, you can set the AutoPay parameter to false to generate an unpaid order. Then, you can log on to the ApsaraDB RDS console to complete the payment.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder autoPay(Boolean autoPay) {
this.putQueryParameter("AutoPay", autoPay);
this.autoPay = autoPay;
return this;
}
/**
* <p>The backup set ID.</p>
* <p>You can call the DescribeBackups operation to query the backup set ID.</p>
* <blockquote>
* <p> You must specify at least one of the <strong>BackupId</strong> or <strong>RestoreTime</strong> parameters.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>902****</p>
*/
public Builder backupId(String backupId) {
this.putQueryParameter("BackupId", backupId);
this.backupId = backupId;
return this;
}
/**
* <p>The type of backup that is used to restore the data of the original instance. Valid values:</p>
* <ul>
* <li><strong>FullBackup</strong></li>
* <li><strong>IncrementalBackup</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>FullBackup</p>
*/
public Builder backupType(String backupType) {
this.putQueryParameter("BackupType", backupType);
this.backupType = backupType;
return this;
}
/**
* <p>A reserved parameter. You do not need to specify this parameter.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder bpeEnabled(String bpeEnabled) {
this.putQueryParameter("BpeEnabled", bpeEnabled);
this.bpeEnabled = bpeEnabled;
return this;
}
/**
* <p>An invalid parameter. You do not need to specify this parameter.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder burstingEnabled(Boolean burstingEnabled) {
this.putQueryParameter("BurstingEnabled", burstingEnabled);
this.burstingEnabled = burstingEnabled;
return this;
}
/**
* <p>The RDS edition of the instance. Valid values:</p>
* <ul>
* <li><strong>Basic</strong>: RDS Basic Edition.</li>
* <li><strong>HighAvailability</strong>: RDS High-availability Edition.</li>
* <li><strong>AlwaysOn</strong>: RDS Cluster Edition for ApsaraDB RDS for SQL Server.</li>
* <li><strong>cluster</strong>: RDS Cluster Edition for ApsaraDB RDS for MySQL.</li>
* <li><strong>Finance</strong>: RDS Enterprise Edition. This edition is available only on the China site (aliyun.com).</li>
* </ul>
* <p><strong>Serverless instances</strong></p>
* <ul>
* <li><strong>serverless_basic</strong>: RDS Basic Edition. This edition is available only for serverless instances that run MySQL and PostgreSQL.</li>
* <li><strong>serverless_standard</strong>: RDS High-availability Edition for ApsaraDB RDS for MySQL</li>
* <li><strong>serverless_ha</strong>: RDS High-availability Edition for ApsaraDB RDS for SQL Server</li>
* </ul>
* <blockquote>
* <p> You do not need to configure this parameter. The value of this parameter is the same as that of the original instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>HighAvailability</p>
*/
public Builder category(String category) {
this.putQueryParameter("Category", category);
this.category = category;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>0c593ea1-3bea-11e9-b96b-88**********</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The instance type of the new instance. For information, see <a href="https://help.aliyun.com/document_detail/26312.html">Primary ApsaraDB RDS instance types</a>.</p>
* <blockquote>
* <p>By default, the new instance uses the same instance type as the original primary instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>mysql.n1.micro.1</p>
*/
public Builder DBInstanceClass(String DBInstanceClass) {
this.putQueryParameter("DBInstanceClass", DBInstanceClass);
this.DBInstanceClass = DBInstanceClass;
return this;
}
/**
* <p>The instance name. The value must be 2 to 255 characters in length The value can contain letters, digits, underscores (_), and hyphens (-), and must start with a letter.</p>
* <blockquote>
* <p> The value cannot start with http:// or https://.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>testInstance</p>
*/
public Builder DBInstanceDescription(String DBInstanceDescription) {
this.putQueryParameter("DBInstanceDescription", DBInstanceDescription);
this.DBInstanceDescription = DBInstanceDescription;
return this;
}
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The storage capacity of the new instance. Unit: GB. You can increase the storage capacity in increments of 5 GB. For more information, see <a href="https://help.aliyun.com/document_detail/26312.html">Primary ApsaraDB RDS instance types</a>.</p>
* <blockquote>
* <p>By default, the new instance has the same storage capacity as the original primary instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1000</p>
*/
public Builder DBInstanceStorage(Integer DBInstanceStorage) {
this.putQueryParameter("DBInstanceStorage", DBInstanceStorage);
this.DBInstanceStorage = DBInstanceStorage;
return this;
}
/**
* <p>The storage type of the new instance. Valid values:</p>
* <ul>
* <li><strong>general_essd</strong> (recommend): general Enterprise SSD (ESSD)</li>
* <li><strong>local_ssd</strong>: local SSD</li>
* <li><strong>cloud_ssd</strong>: standard SSD</li>
* <li><strong>cloud_essd</strong>: performance level 1 (PL1) ESSD</li>
* <li><strong>cloud_essd2</strong>: PL2 ESSD</li>
* <li><strong>cloud_essd3</strong>: PL3 ESSD</li>
* </ul>
* <blockquote>
* <p> Serverless instances support only PL1 ESSDs and general ESSDs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cloud_essd</p>
*/
public Builder DBInstanceStorageType(String DBInstanceStorageType) {
this.putQueryParameter("DBInstanceStorageType", DBInstanceStorageType);
this.DBInstanceStorageType = DBInstanceStorageType;
return this;
}
/**
* <p>The name of the database. If you specify more than one database, the value is in the following format: <code>Original database name 1,Original database name 2</code>.</p>
*
* <strong>example:</strong>
* <p>test1,test2</p>
*/
public Builder dbNames(String dbNames) {
this.putQueryParameter("DbNames", dbNames);
this.dbNames = dbNames;
return this;
}
/**
* <p>The ID of the dedicated cluster.</p>
*
* <strong>example:</strong>
* <p>dhg-7a9xxxxxxxx</p>
*/
public Builder dedicatedHostGroupId(String dedicatedHostGroupId) {
this.putQueryParameter("DedicatedHostGroupId", dedicatedHostGroupId);
this.dedicatedHostGroupId = dedicatedHostGroupId;
return this;
}
/**
* <p>Specifies whether to enable the release protection feature for the new instance. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong> (default)</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder deletionProtection(Boolean deletionProtection) {
this.putQueryParameter("DeletionProtection", deletionProtection);
this.deletionProtection = deletionProtection;
return this;
}
/**
* <p>The network type of the new instance. Valid values:</p>
* <ul>
* <li><strong>VPC</strong></li>
* <li><strong>Classic</strong></li>
* </ul>
* <blockquote>
* <p>By default, the new instance has the same network type as the original primary instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>VPC</p>
*/
public Builder instanceNetworkType(String instanceNetworkType) {
this.putQueryParameter("InstanceNetworkType", instanceNetworkType);
this.instanceNetworkType = instanceNetworkType;
return this;
}
/**
* <p>A reserved parameter.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder ioAccelerationEnabled(String ioAccelerationEnabled) {
this.putQueryParameter("IoAccelerationEnabled", ioAccelerationEnabled);
this.ioAccelerationEnabled = ioAccelerationEnabled;
return this;
}
/**
* <p>The billing method of the instance. Valid values:</p>
* <ul>
* <li><strong>Postpaid</strong>: pay-as-you-go.</li>
* <li><strong>Prepaid</strong>: subscription.</li>
* <li><strong>Serverless</strong>: serverless. This value is not supported for instances that run MariaDB. For more information, see <a href="https://help.aliyun.com/document_detail/411291.html">Overview of serverless ApsaraDB RDS for MySQL instances</a>, <a href="https://help.aliyun.com/document_detail/604344.html">Overview of serverless ApsaraDB RDS for SQL Server instances</a>, and <a href="https://help.aliyun.com/document_detail/607742.html">Overview of serverless ApsaraDB RDS for PostgreSQL instances</a>.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Postpaid</p>
*/
public Builder payType(String payType) {
this.putQueryParameter("PayType", payType);
this.payType = payType;
return this;
}
/**
* <p>The unit that is used to calculate the billing cycle of the new instance. This parameter takes effect only when you select the subscription billing method for the new instance. Valid values:</p>
* <ul>
* <li><strong>Year</strong></li>
* <li><strong>Month</strong></li>
* </ul>
* <blockquote>
* <p> If you set the PayType parameter to <strong>Prepaid</strong>, you must specify this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Year</p>
*/
public Builder period(String period) {
this.putQueryParameter("Period", period);
this.period = period;
return this;
}
/**
* <p>The internal IP address of the new instance, which must be within the CIDR block supported by the specified vSwitch. The system automatically assigns an internal IP address based on the values of the <strong>VPCId</strong> and <strong>VSwitchId</strong> parameters.</p>
*
* <strong>example:</strong>
* <p>172.XX.XXX.69</p>
*/
public Builder privateIpAddress(String privateIpAddress) {
this.putQueryParameter("PrivateIpAddress", privateIpAddress);
this.privateIpAddress = privateIpAddress;
return this;
}
/**
* <p>The region ID. You can call the DescribeRegions operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>Specifies whether to restore only the databases and tables that you specify. The value <strong>1</strong> specifies to restore only the specified databases and tables. If you do not want to restore only the specified databases or tables, you do not need to specify this parameter.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder restoreTable(String restoreTable) {
this.putQueryParameter("RestoreTable", restoreTable);
this.restoreTable = restoreTable;
return this;
}
/**
* <p>The point in time to which you want to restore data. The point in time must fall within the specified backup retention period. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time must be in UTC.</p>
* <blockquote>
* <p>You must specify at least one of the <strong>BackupId</strong> and <strong>RestoreTime</strong> parameters.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2011-06-11T16:00:00Z</p>
*/
public Builder restoreTime(String restoreTime) {
this.putQueryParameter("RestoreTime", restoreTime);
this.restoreTime = restoreTime;
return this;
}
/**
* <p>The specifications for the serverless instance. You must specify this parameter only when you restore data to a new serverless instance.</p>
* <blockquote>
* <p> This parameter is available only on the China site (aliyun.com).</p>
* </blockquote>
*/
public Builder serverlessConfig(ServerlessConfig serverlessConfig) {
String serverlessConfigShrink = shrink(serverlessConfig, "ServerlessConfig", "json");
this.putQueryParameter("ServerlessConfig", serverlessConfigShrink);
this.serverlessConfig = serverlessConfig;
return this;
}
/**
* <p>The information about the database and table that you want to restore. The value is in the following format: <code>[{"type":"db","name":"Name of Database 1","newname":"New name of Database 1","tables":[{"type":"table","name":"Name of Table 1 in Database 1","newname":"New name of Table 1"},{"type":"table","name":"Name of Table 2 in Database 1","newname":"New name of Table 2"}]},{"type":"db","name":"Name of Database 2","newname":"New name of Database 2","tables":[{"type":"table","name":"Name of Table 1 in Database 2","newname":"New name of Table 1"},{"type":"table","name":"Name of Table 2 in Database 2","newname":"New name of Table 2"}]}]</code></p>
*
* <strong>example:</strong>
* <p>[{"type":"db","name":"testdb1","newname":"testdb1_new","tables":[{"type":"table","name":"testdb1table1","newname":"testdb1table1_new"}]}]</p>
*/
public Builder tableMeta(String tableMeta) {
this.putQueryParameter("TableMeta", tableMeta);
this.tableMeta = tableMeta;
return this;
}
/**
* <p>The subscription duration of the new instance. Valid values:</p>
* <ul>
* <li>If you set the <strong>Period</strong> parameter to <strong>Year</strong>, the value of the UsedTime parameter ranges from <strong>1 to 3</strong>.</li>
* <li>If you set the <strong>Period</strong> parameter to <strong>Month</strong>, the value of the UsedTime parameter ranges from <strong>1 to 9</strong>.</li>
* </ul>
* <blockquote>
* <p>If you set the PayType parameter to <strong>Prepaid</strong>, you must also specify this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder usedTime(Integer usedTime) {
this.putQueryParameter("UsedTime", usedTime);
this.usedTime = usedTime;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC).</p>
* <blockquote>
* <p> Make sure that the VPC belongs to the required region.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vpc-uf6f7l4fg90xxxxxxxxxx</p>
*/
public Builder VPCId(String VPCId) {
this.putQueryParameter("VPCId", VPCId);
this.VPCId = VPCId;
return this;
}
/**
* <p>The ID of the vSwitch. The vSwitch must belong to the zone that is specified by <strong>ZoneId</strong>.</p>
* <ul>
* <li>If you set <strong>InstanceNetworkType</strong> to <strong>VPC</strong>, you must also specify this parameter.</li>
* <li>If you specify the <strong>ZoneSlaveId1</strong> parameter, you must specify the IDs of two vSwitches for this parameter and separate the IDs with a comma (,).</li>
* </ul>
*
* <strong>example:</strong>
* <p>vsw-uf6adz52c2pxxxxxxxxxx</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The zone ID of the primary instance. You can call the DescribeRegions operation to query the zone ID.</p>
* <blockquote>
* <p> Set this value to the zone ID of the original instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cn-hangzhou-b</p>
*/
public Builder zoneId(String zoneId) {
this.putQueryParameter("ZoneId", zoneId);
this.zoneId = zoneId;
return this;
}
/**
* <p>The zone ID of the secondary instance. If you set the ZoneIdSlave1 parameter and the <strong>ZoneId</strong> parameter to the same value, the single-zone deployment method is used. If you set the ZoneIdSlave1 parameter and the <strong>ZoneId</strong> parameter to different values, the multi-zone deployment method is used.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-c</p>
*/
public Builder zoneIdSlave1(String zoneIdSlave1) {
this.putQueryParameter("ZoneIdSlave1", zoneIdSlave1);
this.zoneIdSlave1 = zoneIdSlave1;
return this;
}
/**
* <p>The zone ID of the logger instance. If you set the ZoneIdSlave2 parameter to the same value as the <strong>ZoneId</strong> parameter, the single-zone deployment method is used. If you set the ZoneIdSlave2 parameter to a different value from the <strong>ZoneId</strong> parameter, the multi-zone deployment method is used.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-d</p>
*/
public Builder zoneIdSlave2(String zoneIdSlave2) {
this.putQueryParameter("ZoneIdSlave2", zoneIdSlave2);
this.zoneIdSlave2 = zoneIdSlave2;
return this;
}
@Override
public CloneDBInstanceRequest build() {
return new CloneDBInstanceRequest(this);
}
}
/**
*
* {@link CloneDBInstanceRequest} extends {@link TeaModel}
*
* <p>CloneDBInstanceRequest</p>
*/
public static class ServerlessConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AutoPause")
private Boolean autoPause;
@com.aliyun.core.annotation.NameInMap("MaxCapacity")
private Double maxCapacity;
@com.aliyun.core.annotation.NameInMap("MinCapacity")
private Double minCapacity;
@com.aliyun.core.annotation.NameInMap("SwitchForce")
private Boolean switchForce;
private ServerlessConfig(Builder builder) {
this.autoPause = builder.autoPause;
this.maxCapacity = builder.maxCapacity;
this.minCapacity = builder.minCapacity;
this.switchForce = builder.switchForce;
}
public static Builder builder() {
return new Builder();
}
public static ServerlessConfig create() {
return builder().build();
}
/**
* @return autoPause
*/
public Boolean getAutoPause() {
return this.autoPause;
}
/**
* @return maxCapacity
*/
public Double getMaxCapacity() {
return this.maxCapacity;
}
/**
* @return minCapacity
*/
public Double getMinCapacity() {
return this.minCapacity;
}
/**
* @return switchForce
*/
public Boolean getSwitchForce() {
return this.switchForce;
}
public static final class Builder {
private Boolean autoPause;
private Double maxCapacity;
private Double minCapacity;
private Boolean switchForce;
private Builder() {
}
private Builder(ServerlessConfig model) {
this.autoPause = model.autoPause;
this.maxCapacity = model.maxCapacity;
this.minCapacity = model.minCapacity;
this.switchForce = model.switchForce;
}
/**
* <p>Specifies whether to enable the automatic start and stop feature for the serverless ApsaraDB RDS for MySQL instance. After the automatic start and stop feature is enabled, if no connections to the instance are established within 10 minutes, the instance is suspended. After a connection is established to the instance, the instance is automatically resumed. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong> (default)</li>
* </ul>
* <blockquote>
* <ul>
* <li>This parameter is supported only for serverless ApsaraDB RDS for MySQL instances.</li>
* <li>This parameter is available only on the China site (aliyun.com).</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder autoPause(Boolean autoPause) {
this.autoPause = autoPause;
return this;
}
/**
* <p>The maximum number of RDS Capacity Units (RCUs). Valid values:</p>
* <ul>
* <li>Serverless ApsaraDB RDS for MySQL instances: <strong>1 to 8</strong></li>
* <li>Serverless ApsaraDB RDS for SQL Server instances: <strong>2 to 8</strong></li>
* <li>Serverless ApsaraDB RDS for PostgreSQL instances: <strong>1 to 12</strong></li>
* </ul>
* <blockquote>
* <ul>
* <li>The value of this parameter must be greater than or equal to the value of <strong>MinCapacity</strong> and can be specified only to an <strong>integer</strong>.</li>
* <li>This parameter is available only on the China site (aliyun.com).</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>8</p>
*/
public Builder maxCapacity(Double maxCapacity) {
this.maxCapacity = maxCapacity;
return this;
}
/**
* <p>The minimum number of RCUs. Valid values:</p>
* <ul>
* <li>Serverless ApsaraDB RDS for MySQL instances: <strong>0.5 to 8</strong>.</li>
* <li>Serverless ApsaraDB RDS for SQL Server instances: <strong>2 to 8</strong>. Only integers are supported.</li>
* <li>Serverless ApsaraDB RDS for PostgreSQL instances: <strong>0.5 to 12</strong>.</li>
* </ul>
* <blockquote>
* <ul>
* <li>The value of this parameter must be less than or equal to the value of <strong>MaxCapacity</strong>.</li>
* <li>This parameter is available only on the China site (aliyun.com).</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>0.5</p>
*/
public Builder minCapacity(Double minCapacity) {
this.minCapacity = minCapacity;
return this;
}
/**
* <p>Specifies whether to enable the forced scaling feature for the serverless ApsaraDB RDS for MySQL instance. In most cases, ApsaraDB RDS automatically scales in or out the RCUs of a serverless instance based on business requirements in real time. In rare cases, the scaling does not take effect in real time. You can enable the forced scaling feature to forcefully scales in or out the RCUs of the instance. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong> (default)</li>
* </ul>
* <blockquote>
* </blockquote>
* <ul>
* <li><p>This parameter is supported only for serverless ApsaraDB RDS for MySQL instances.</p>
* </li>
* <li><p>This parameter is available only on the China site (aliyun.com).</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder switchForce(Boolean switchForce) {
this.switchForce = switchForce;
return this;
}
public ServerlessConfig build() {
return new ServerlessConfig(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CloneDBInstanceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CloneDBInstanceResponse} extends {@link TeaModel}
*
* <p>CloneDBInstanceResponse</p>
*/
public class CloneDBInstanceResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CloneDBInstanceResponseBody body;
private CloneDBInstanceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CloneDBInstanceResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CloneDBInstanceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CloneDBInstanceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CloneDBInstanceResponseBody body);
@Override
CloneDBInstanceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CloneDBInstanceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CloneDBInstanceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CloneDBInstanceResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CloneDBInstanceResponseBody body) {
this.body = body;
return this;
}
@Override
public CloneDBInstanceResponse build() {
return new CloneDBInstanceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CloneDBInstanceResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CloneDBInstanceResponseBody} extends {@link TeaModel}
*
* <p>CloneDBInstanceResponseBody</p>
*/
public class CloneDBInstanceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("OrderId")
private String orderId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CloneDBInstanceResponseBody(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.orderId = builder.orderId;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CloneDBInstanceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return orderId
*/
public String getOrderId() {
return this.orderId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String DBInstanceId;
private String orderId;
private String requestId;
private Builder() {
}
private Builder(CloneDBInstanceResponseBody model) {
this.DBInstanceId = model.DBInstanceId;
this.orderId = model.orderId;
this.requestId = model.requestId;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The ID of the order.</p>
*
* <strong>example:</strong>
* <p>100789370****</p>
*/
public Builder orderId(String orderId) {
this.orderId = orderId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>1E43AAE0-BEE8-43DA-860D-EAF2AA0724DC</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CloneDBInstanceResponseBody build() {
return new CloneDBInstanceResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CloneParameterGroupRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CloneParameterGroupRequest} extends {@link RequestModel}
*
* <p>CloneParameterGroupRequest</p>
*/
public class CloneParameterGroupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ParameterGroupDesc")
private String parameterGroupDesc;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ParameterGroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String parameterGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ParameterGroupName")
@com.aliyun.core.annotation.Validation(required = true)
private String parameterGroupName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
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("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetRegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String targetRegionId;
private CloneParameterGroupRequest(Builder builder) {
super(builder);
this.ownerId = builder.ownerId;
this.parameterGroupDesc = builder.parameterGroupDesc;
this.parameterGroupId = builder.parameterGroupId;
this.parameterGroupName = builder.parameterGroupName;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.targetRegionId = builder.targetRegionId;
}
public static Builder builder() {
return new Builder();
}
public static CloneParameterGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return parameterGroupDesc
*/
public String getParameterGroupDesc() {
return this.parameterGroupDesc;
}
/**
* @return parameterGroupId
*/
public String getParameterGroupId() {
return this.parameterGroupId;
}
/**
* @return parameterGroupName
*/
public String getParameterGroupName() {
return this.parameterGroupName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return targetRegionId
*/
public String getTargetRegionId() {
return this.targetRegionId;
}
public static final class Builder extends Request.Builder<CloneParameterGroupRequest, Builder> {
private Long ownerId;
private String parameterGroupDesc;
private String parameterGroupId;
private String parameterGroupName;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String targetRegionId;
private Builder() {
super();
}
private Builder(CloneParameterGroupRequest request) {
super(request);
this.ownerId = request.ownerId;
this.parameterGroupDesc = request.parameterGroupDesc;
this.parameterGroupId = request.parameterGroupId;
this.parameterGroupName = request.parameterGroupName;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.targetRegionId = request.targetRegionId;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The description of the parameter template in the destination region.</p>
*
* <strong>example:</strong>
* <p>CloneGroup1</p>
*/
public Builder parameterGroupDesc(String parameterGroupDesc) {
this.putQueryParameter("ParameterGroupDesc", parameterGroupDesc);
this.parameterGroupDesc = parameterGroupDesc;
return this;
}
/**
* <p>The ID of the parameter template. You can call the DescribeParameterGroups operation to query the parameter template ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rpg-13ppdh****</p>
*/
public Builder parameterGroupId(String parameterGroupId) {
this.putQueryParameter("ParameterGroupId", parameterGroupId);
this.parameterGroupId = parameterGroupId;
return this;
}
/**
* <p>The name of the parameter template in the destination region.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>tartestgroup</p>
*/
public Builder parameterGroupName(String parameterGroupName) {
this.putQueryParameter("ParameterGroupName", parameterGroupName);
this.parameterGroupName = parameterGroupName;
return this;
}
/**
* <p>The ID of the source region to which the parameter template belongs. You can call the DescribeRegions operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group. You can leave this parameter empty.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the destination region. You can call the DescribeRegions operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-qingdao</p>
*/
public Builder targetRegionId(String targetRegionId) {
this.putQueryParameter("TargetRegionId", targetRegionId);
this.targetRegionId = targetRegionId;
return this;
}
@Override
public CloneParameterGroupRequest build() {
return new CloneParameterGroupRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CloneParameterGroupResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CloneParameterGroupResponse} extends {@link TeaModel}
*
* <p>CloneParameterGroupResponse</p>
*/
public class CloneParameterGroupResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CloneParameterGroupResponseBody body;
private CloneParameterGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CloneParameterGroupResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CloneParameterGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CloneParameterGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CloneParameterGroupResponseBody body);
@Override
CloneParameterGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CloneParameterGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CloneParameterGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CloneParameterGroupResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CloneParameterGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public CloneParameterGroupResponse build() {
return new CloneParameterGroupResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CloneParameterGroupResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CloneParameterGroupResponseBody} extends {@link TeaModel}
*
* <p>CloneParameterGroupResponseBody</p>
*/
public class CloneParameterGroupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CloneParameterGroupResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CloneParameterGroupResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(CloneParameterGroupResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>1D3D5995-6BDD-43B5-93B8-2C41A2ACD6AA</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CloneParameterGroupResponseBody build() {
return new CloneParameterGroupResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/ConfirmNotifyRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ConfirmNotifyRequest} extends {@link RequestModel}
*
* <p>ConfirmNotifyRequest</p>
*/
public class ConfirmNotifyRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Confirmor")
@com.aliyun.core.annotation.Validation(required = true)
private Long confirmor;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("NotifyIdList")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<Long> notifyIdList;
private ConfirmNotifyRequest(Builder builder) {
super(builder);
this.confirmor = builder.confirmor;
this.notifyIdList = builder.notifyIdList;
}
public static Builder builder() {
return new Builder();
}
public static ConfirmNotifyRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return confirmor
*/
public Long getConfirmor() {
return this.confirmor;
}
/**
* @return notifyIdList
*/
public java.util.List<Long> getNotifyIdList() {
return this.notifyIdList;
}
public static final class Builder extends Request.Builder<ConfirmNotifyRequest, Builder> {
private Long confirmor;
private java.util.List<Long> notifyIdList;
private Builder() {
super();
}
private Builder(ConfirmNotifyRequest request) {
super(request);
this.confirmor = request.confirmor;
this.notifyIdList = request.notifyIdList;
}
/**
* <p>The ID of the Alibaba Cloud account that is used to confirm the notification. You can set this parameter to <strong>0</strong>, which indicates that the notification is confirmed by the system.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder confirmor(Long confirmor) {
this.putBodyParameter("Confirmor", confirmor);
this.confirmor = confirmor;
return this;
}
/**
* <p>The notification IDs.</p>
* <p>This parameter is required.</p>
*/
public Builder notifyIdList(java.util.List<Long> notifyIdList) {
String notifyIdListShrink = shrink(notifyIdList, "NotifyIdList", "json");
this.putBodyParameter("NotifyIdList", notifyIdListShrink);
this.notifyIdList = notifyIdList;
return this;
}
@Override
public ConfirmNotifyRequest build() {
return new ConfirmNotifyRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/ConfirmNotifyResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ConfirmNotifyResponse} extends {@link TeaModel}
*
* <p>ConfirmNotifyResponse</p>
*/
public class ConfirmNotifyResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private ConfirmNotifyResponseBody body;
private ConfirmNotifyResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ConfirmNotifyResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public ConfirmNotifyResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ConfirmNotifyResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ConfirmNotifyResponseBody body);
@Override
ConfirmNotifyResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ConfirmNotifyResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ConfirmNotifyResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ConfirmNotifyResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(ConfirmNotifyResponseBody body) {
this.body = body;
return this;
}
@Override
public ConfirmNotifyResponse build() {
return new ConfirmNotifyResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/ConfirmNotifyResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ConfirmNotifyResponseBody} extends {@link TeaModel}
*
* <p>ConfirmNotifyResponseBody</p>
*/
public class ConfirmNotifyResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ConfirmNotifyResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ConfirmNotifyResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(ConfirmNotifyResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>6919FA39-04CF-571F-A6B0-DCC7AECB4170</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ConfirmNotifyResponseBody build() {
return new ConfirmNotifyResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CopyDatabaseBetweenInstancesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CopyDatabaseBetweenInstancesRequest} extends {@link RequestModel}
*
* <p>CopyDatabaseBetweenInstancesRequest</p>
*/
public class CopyDatabaseBetweenInstancesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackupId")
private String backupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DbNames")
@com.aliyun.core.annotation.Validation(required = true)
private String dbNames;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RestoreTime")
private String restoreTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SyncUserPrivilege")
private String syncUserPrivilege;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetDBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String targetDBInstanceId;
private CopyDatabaseBetweenInstancesRequest(Builder builder) {
super(builder);
this.backupId = builder.backupId;
this.DBInstanceId = builder.DBInstanceId;
this.dbNames = builder.dbNames;
this.resourceOwnerId = builder.resourceOwnerId;
this.restoreTime = builder.restoreTime;
this.syncUserPrivilege = builder.syncUserPrivilege;
this.targetDBInstanceId = builder.targetDBInstanceId;
}
public static Builder builder() {
return new Builder();
}
public static CopyDatabaseBetweenInstancesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backupId
*/
public String getBackupId() {
return this.backupId;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return dbNames
*/
public String getDbNames() {
return this.dbNames;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return restoreTime
*/
public String getRestoreTime() {
return this.restoreTime;
}
/**
* @return syncUserPrivilege
*/
public String getSyncUserPrivilege() {
return this.syncUserPrivilege;
}
/**
* @return targetDBInstanceId
*/
public String getTargetDBInstanceId() {
return this.targetDBInstanceId;
}
public static final class Builder extends Request.Builder<CopyDatabaseBetweenInstancesRequest, Builder> {
private String backupId;
private String DBInstanceId;
private String dbNames;
private Long resourceOwnerId;
private String restoreTime;
private String syncUserPrivilege;
private String targetDBInstanceId;
private Builder() {
super();
}
private Builder(CopyDatabaseBetweenInstancesRequest request) {
super(request);
this.backupId = request.backupId;
this.DBInstanceId = request.DBInstanceId;
this.dbNames = request.dbNames;
this.resourceOwnerId = request.resourceOwnerId;
this.restoreTime = request.restoreTime;
this.syncUserPrivilege = request.syncUserPrivilege;
this.targetDBInstanceId = request.targetDBInstanceId;
}
/**
* <p>The ID of the backup set based on which you want to restore databases of the source instance. When you replicate databases by backup set, you can call the DescribeBackups operation to obtain the ID of the backup set.</p>
* <blockquote>
* <p> You must specify one of the <strong>BackupId</strong> and <strong>RestoreTime</strong> parameters.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>106523874****</p>
*/
public Builder backupId(String backupId) {
this.putQueryParameter("BackupId", backupId);
this.backupId = backupId;
return this;
}
/**
* <p>The source instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The names of the databases that you want to copy. Format: <code>Source database name 1,Source database name 2</code>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>{"test1":"newtest1","test2":"newtest2"}</p>
*/
public Builder dbNames(String dbNames) {
this.putQueryParameter("DbNames", dbNames);
this.dbNames = dbNames;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The point in time when the system replicates databases. You can select a point in time within the backup retention period. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time must be in UTC.</p>
* <blockquote>
* <p>You must specify one of the <strong>BackupId</strong> and <strong>RestoreTime</strong> parameters.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2011-06-11T16:00:00Z</p>
*/
public Builder restoreTime(String restoreTime) {
this.putQueryParameter("RestoreTime", restoreTime);
this.restoreTime = restoreTime;
return this;
}
/**
* <p>Specifies whether to copy users and permissions.</p>
* <ul>
* <li><strong>YES</strong>: copies users and permissions. If the destination instance has a user whose name is the same as a user in the source instance, the permissions of the user in the source instance will also be granted to the user in the destination instance after you copy user permissions.</li>
* <li><strong>NO</strong>: does not copy users and permissions.</li>
* </ul>
* <p>Default value: <strong>NO</strong>.</p>
*
* <strong>example:</strong>
* <p>NO</p>
*/
public Builder syncUserPrivilege(String syncUserPrivilege) {
this.putQueryParameter("SyncUserPrivilege", syncUserPrivilege);
this.syncUserPrivilege = syncUserPrivilege;
return this;
}
/**
* <p>The destination instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-ut5ajk3xxxxxxx</p>
*/
public Builder targetDBInstanceId(String targetDBInstanceId) {
this.putQueryParameter("TargetDBInstanceId", targetDBInstanceId);
this.targetDBInstanceId = targetDBInstanceId;
return this;
}
@Override
public CopyDatabaseBetweenInstancesRequest build() {
return new CopyDatabaseBetweenInstancesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CopyDatabaseBetweenInstancesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CopyDatabaseBetweenInstancesResponse} extends {@link TeaModel}
*
* <p>CopyDatabaseBetweenInstancesResponse</p>
*/
public class CopyDatabaseBetweenInstancesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CopyDatabaseBetweenInstancesResponseBody body;
private CopyDatabaseBetweenInstancesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CopyDatabaseBetweenInstancesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CopyDatabaseBetweenInstancesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CopyDatabaseBetweenInstancesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CopyDatabaseBetweenInstancesResponseBody body);
@Override
CopyDatabaseBetweenInstancesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CopyDatabaseBetweenInstancesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CopyDatabaseBetweenInstancesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CopyDatabaseBetweenInstancesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CopyDatabaseBetweenInstancesResponseBody body) {
this.body = body;
return this;
}
@Override
public CopyDatabaseBetweenInstancesResponse build() {
return new CopyDatabaseBetweenInstancesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CopyDatabaseBetweenInstancesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CopyDatabaseBetweenInstancesResponseBody} extends {@link TeaModel}
*
* <p>CopyDatabaseBetweenInstancesResponseBody</p>
*/
public class CopyDatabaseBetweenInstancesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CopyDatabaseBetweenInstancesResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CopyDatabaseBetweenInstancesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(CopyDatabaseBetweenInstancesResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>803D11AF-C370-465B-AB46-CB3A642DC303</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CopyDatabaseBetweenInstancesResponseBody build() {
return new CopyDatabaseBetweenInstancesResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CopyDatabaseRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CopyDatabaseRequest} extends {@link RequestModel}
*
* <p>CopyDatabaseRequest</p>
*/
public class CopyDatabaseRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
private String DBInstanceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DstDBName")
private String dstDBName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ReserveAccount")
private Integer reserveAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SrcDBName")
private String srcDBName;
private CopyDatabaseRequest(Builder builder) {
super(builder);
this.DBInstanceName = builder.DBInstanceName;
this.dstDBName = builder.dstDBName;
this.ownerId = builder.ownerId;
this.reserveAccount = builder.reserveAccount;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.srcDBName = builder.srcDBName;
}
public static Builder builder() {
return new Builder();
}
public static CopyDatabaseRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return dstDBName
*/
public String getDstDBName() {
return this.dstDBName;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return reserveAccount
*/
public Integer getReserveAccount() {
return this.reserveAccount;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return srcDBName
*/
public String getSrcDBName() {
return this.srcDBName;
}
public static final class Builder extends Request.Builder<CopyDatabaseRequest, Builder> {
private String DBInstanceName;
private String dstDBName;
private Long ownerId;
private Integer reserveAccount;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String srcDBName;
private Builder() {
super();
}
private Builder(CopyDatabaseRequest request) {
super(request);
this.DBInstanceName = request.DBInstanceName;
this.dstDBName = request.dstDBName;
this.ownerId = request.ownerId;
this.reserveAccount = request.reserveAccount;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.srcDBName = request.srcDBName;
}
/**
* <p>The instance name.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5******</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.putQueryParameter("DBInstanceName", DBInstanceName);
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* <p>The destination database name.</p>
*
* <strong>example:</strong>
* <p>db2***</p>
*/
public Builder dstDBName(String dstDBName) {
this.putQueryParameter("DstDBName", dstDBName);
this.dstDBName = dstDBName;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The reserved account.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder reserveAccount(Integer reserveAccount) {
this.putQueryParameter("ReserveAccount", reserveAccount);
this.reserveAccount = reserveAccount;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy*****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The source database name.</p>
*
* <strong>example:</strong>
* <p>db1***</p>
*/
public Builder srcDBName(String srcDBName) {
this.putQueryParameter("SrcDBName", srcDBName);
this.srcDBName = srcDBName;
return this;
}
@Override
public CopyDatabaseRequest build() {
return new CopyDatabaseRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CopyDatabaseResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CopyDatabaseResponse} extends {@link TeaModel}
*
* <p>CopyDatabaseResponse</p>
*/
public class CopyDatabaseResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CopyDatabaseResponseBody body;
private CopyDatabaseResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CopyDatabaseResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CopyDatabaseResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CopyDatabaseResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CopyDatabaseResponseBody body);
@Override
CopyDatabaseResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CopyDatabaseResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CopyDatabaseResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CopyDatabaseResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CopyDatabaseResponseBody body) {
this.body = body;
return this;
}
@Override
public CopyDatabaseResponse build() {
return new CopyDatabaseResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CopyDatabaseResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CopyDatabaseResponseBody} extends {@link TeaModel}
*
* <p>CopyDatabaseResponseBody</p>
*/
public class CopyDatabaseResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBName")
private String DBName;
@com.aliyun.core.annotation.NameInMap("DBStatus")
private String DBStatus;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
private CopyDatabaseResponseBody(Builder builder) {
this.DBName = builder.DBName;
this.DBStatus = builder.DBStatus;
this.requestId = builder.requestId;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static CopyDatabaseResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBName
*/
public String getDBName() {
return this.DBName;
}
/**
* @return DBStatus
*/
public String getDBStatus() {
return this.DBStatus;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
public static final class Builder {
private String DBName;
private String DBStatus;
private String requestId;
private String taskId;
private Builder() {
}
private Builder(CopyDatabaseResponseBody model) {
this.DBName = model.DBName;
this.DBStatus = model.DBStatus;
this.requestId = model.requestId;
this.taskId = model.taskId;
}
/**
* <p>The name of the database.</p>
*
* <strong>example:</strong>
* <p>test02</p>
*/
public Builder DBName(String DBName) {
this.DBName = DBName;
return this;
}
/**
* <p>The status of the database. Valid values:</p>
* <ul>
* <li><strong>Creating</strong></li>
* <li><strong>Running</strong></li>
* <li><strong>Deleting</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Creating</p>
*/
public Builder DBStatus(String DBStatus) {
this.DBStatus = DBStatus;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>1AD222E9-E606-4A42-BF6D-8A4442913CEF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the task.</p>
*
* <strong>example:</strong>
* <p>2562****</p>
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
public CopyDatabaseResponseBody build() {
return new CopyDatabaseResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateAccountRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateAccountRequest} extends {@link RequestModel}
*
* <p>CreateAccountRequest</p>
*/
public class CreateAccountRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AccountDescription")
private String accountDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AccountName")
@com.aliyun.core.annotation.Validation(required = true)
private String accountName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AccountPassword")
@com.aliyun.core.annotation.Validation(required = true)
private String accountPassword;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AccountType")
private String accountType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CheckPolicy")
private Boolean checkPolicy;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private CreateAccountRequest(Builder builder) {
super(builder);
this.accountDescription = builder.accountDescription;
this.accountName = builder.accountName;
this.accountPassword = builder.accountPassword;
this.accountType = builder.accountType;
this.checkPolicy = builder.checkPolicy;
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static CreateAccountRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accountDescription
*/
public String getAccountDescription() {
return this.accountDescription;
}
/**
* @return accountName
*/
public String getAccountName() {
return this.accountName;
}
/**
* @return accountPassword
*/
public String getAccountPassword() {
return this.accountPassword;
}
/**
* @return accountType
*/
public String getAccountType() {
return this.accountType;
}
/**
* @return checkPolicy
*/
public Boolean getCheckPolicy() {
return this.checkPolicy;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<CreateAccountRequest, Builder> {
private String accountDescription;
private String accountName;
private String accountPassword;
private String accountType;
private Boolean checkPolicy;
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(CreateAccountRequest request) {
super(request);
this.accountDescription = request.accountDescription;
this.accountName = request.accountName;
this.accountPassword = request.accountPassword;
this.accountType = request.accountType;
this.checkPolicy = request.checkPolicy;
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The description of the account. The value must be 2 to 256 characters in length. The value can contain letters, digits, underscores (_), and hyphens (-), and must start with a letter.</p>
* <blockquote>
* <p>: The name cannot start with http:// or https://.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Test Account A</p>
*/
public Builder accountDescription(String accountDescription) {
this.putQueryParameter("AccountDescription", accountDescription);
this.accountDescription = accountDescription;
return this;
}
/**
* <p>The name of the database account.</p>
* <ul>
* <li><p>The name must be unique.</p>
* </li>
* <li><p>The name can contain lowercase letters, digits, and underscores (_). For MySQL databases, the name can contain uppercase letters.</p>
* </li>
* <li><p>The name must start with a letter and end with a letter or digit.</p>
* </li>
* <li><p>For MySQL databases, the name of the privileged account cannot be the same as that of the standard account. For example, if the name of the privileged account is <code>Test1</code>, the name of the standard account cannot be <code>test1</code>.</p>
* </li>
* <li><p>The length of the value must meet the following requirements:</p>
* <ul>
* <li>If the instance runs MySQL 5.7 or MySQL 8.0, the value must be 2 to 32 characters in length.</li>
* <li>If the instance runs MySQL 5.6, the value must be 2 to 16 characters in length.</li>
* <li>If the instance runs SQL Server, the value must be 2 to 64 characters in length.</li>
* <li>If the instance runs PostgreSQL with cloud disks, the value must be 2 to 63 characters in length.</li>
* <li>If the instance runs PostgreSQL with local disks, the value must be 2 to 16 characters in length.</li>
* <li>If the instance runs MariaDB, the value must be 2 to 16 characters in length.</li>
* </ul>
* </li>
* <li><p>For more information about invalid characters, see <a href="https://help.aliyun.com/document_detail/26317.html">Forbidden keywords</a>.</p>
* </li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test1</p>
*/
public Builder accountName(String accountName) {
this.putQueryParameter("AccountName", accountName);
this.accountName = accountName;
return this;
}
/**
* <p>The password of the account.</p>
* <ul>
* <li><p>The value must be 8 to 32 characters in length.</p>
* </li>
* <li><p>The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.</p>
* </li>
* <li><p>Special characters include <code>! @ # $ % ^ & * ( ) _ + - =</code></p>
* </li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Test123456</p>
*/
public Builder accountPassword(String accountPassword) {
this.putQueryParameter("AccountPassword", accountPassword);
this.accountPassword = accountPassword;
return this;
}
/**
* <p>The account type. Valid values:</p>
* <ul>
* <li><strong>Normal</strong> (default): standard account.</li>
* <li><strong>Super</strong>: privileged account.</li>
* <li><strong>Sysadmin</strong>: system admin account. The account type is available only for ApsaraDB RDS for SQL Server instances.</li>
* </ul>
* <p>Before you create a system admin account, check whether the instance meets all prerequisites. For more information, see <a href="https://help.aliyun.com/document_detail/170736.html">Create a system admin account</a>.</p>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder accountType(String accountType) {
this.putQueryParameter("AccountType", accountType);
this.accountType = accountType;
return this;
}
/**
* <p>Specifies whether to use a password policy.</p>
* <blockquote>
* </blockquote>
* <ul>
* <li><p>This parameter is available only for ApsaraDB RDS for SQL Server instances that do not belong to the shared instance family and do not run SQL Server 2008 R2.</p>
* </li>
* <li><p>Before you call this operation, you must configure a password policy for the account of your instance. For more information, see <a href="https://help.aliyun.com/document_detail/2848317.html">Configure a password policy for the account of an ApsaraDB RDS for SQL Server instance</a>.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder checkPolicy(Boolean checkPolicy) {
this.putQueryParameter("CheckPolicy", checkPolicy);
this.checkPolicy = checkPolicy;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public CreateAccountRequest build() {
return new CreateAccountRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateAccountResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateAccountResponse} extends {@link TeaModel}
*
* <p>CreateAccountResponse</p>
*/
public class CreateAccountResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateAccountResponseBody body;
private CreateAccountResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateAccountResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateAccountResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateAccountResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateAccountResponseBody body);
@Override
CreateAccountResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateAccountResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateAccountResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateAccountResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateAccountResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateAccountResponse build() {
return new CreateAccountResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateAccountResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateAccountResponseBody} extends {@link TeaModel}
*
* <p>CreateAccountResponseBody</p>
*/
public class CreateAccountResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateAccountResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateAccountResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(CreateAccountResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>D4D4BE8A-DD46-440A-BFCD-EE31DA81C9DD</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateAccountResponseBody build() {
return new CreateAccountResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateBackupRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateBackupRequest} extends {@link RequestModel}
*
* <p>CreateBackupRequest</p>
*/
public class CreateBackupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackupMethod")
private String backupMethod;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackupRetentionPeriod")
private Long backupRetentionPeriod;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackupStrategy")
private String backupStrategy;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackupType")
private String backupType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBName")
private String DBName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private CreateBackupRequest(Builder builder) {
super(builder);
this.backupMethod = builder.backupMethod;
this.backupRetentionPeriod = builder.backupRetentionPeriod;
this.backupStrategy = builder.backupStrategy;
this.backupType = builder.backupType;
this.DBInstanceId = builder.DBInstanceId;
this.DBName = builder.DBName;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static CreateBackupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backupMethod
*/
public String getBackupMethod() {
return this.backupMethod;
}
/**
* @return backupRetentionPeriod
*/
public Long getBackupRetentionPeriod() {
return this.backupRetentionPeriod;
}
/**
* @return backupStrategy
*/
public String getBackupStrategy() {
return this.backupStrategy;
}
/**
* @return backupType
*/
public String getBackupType() {
return this.backupType;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBName
*/
public String getDBName() {
return this.DBName;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<CreateBackupRequest, Builder> {
private String backupMethod;
private Long backupRetentionPeriod;
private String backupStrategy;
private String backupType;
private String DBInstanceId;
private String DBName;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(CreateBackupRequest request) {
super(request);
this.backupMethod = request.backupMethod;
this.backupRetentionPeriod = request.backupRetentionPeriod;
this.backupStrategy = request.backupStrategy;
this.backupType = request.backupType;
this.DBInstanceId = request.DBInstanceId;
this.DBName = request.DBName;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The backup type of the instance. Valid values:</p>
* <ul>
* <li><strong>Logical</strong>: logical backup</li>
* <li><strong>Physical</strong>: physical backup</li>
* <li><strong>Snapshot</strong>: snapshot backup</li>
* </ul>
* <p>Default value: <strong>Physical</strong>.</p>
* <blockquote>
* <ul>
* <li>You can perform a logical backup only when databases are created on the instance.</li>
* <li>When you perform a snapshot backup on an ApsaraDB RDS for MariaDB instance, you must set this parameter to <strong>Physical</strong>.</li>
* <li>For more information about the supported backup types, see <a href="https://help.aliyun.com/document_detail/98818.html">Use the data backup feature</a>.</li>
* <li>When you perform a snapshot backup on an ApsaraDB RDS for SQL Server instance that uses cloud disks, you must set this parameter to <strong>Snapshot</strong>.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>Physical</p>
*/
public Builder backupMethod(String backupMethod) {
this.putQueryParameter("BackupMethod", backupMethod);
this.backupMethod = backupMethod;
return this;
}
/**
* BackupRetentionPeriod.
*/
public Builder backupRetentionPeriod(Long backupRetentionPeriod) {
this.putQueryParameter("BackupRetentionPeriod", backupRetentionPeriod);
this.backupRetentionPeriod = backupRetentionPeriod;
return this;
}
/**
* <p>The backup policy. Valid values:</p>
* <ul>
* <li><strong>db</strong>: a database-level backup.</li>
* <li><strong>instance</strong>: an instance-level backup.</li>
* </ul>
* <blockquote>
* <p>You can specify this parameter when you perform a logical backup on an ApsaraDB RDS for MySQL instance. You can also specify this parameter when you perform a full physical backup on an ApsaraDB RDS for SQL Server instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>db</p>
*/
public Builder backupStrategy(String backupStrategy) {
this.putQueryParameter("BackupStrategy", backupStrategy);
this.backupStrategy = backupStrategy;
return this;
}
/**
* <p>The backup method. Valid values:</p>
* <ul>
* <li><strong>Auto</strong>: full or incremental backup that is automatically selected</li>
* <li><strong>FullBackup</strong>: full backup</li>
* </ul>
* <p>Default value: <strong>Auto</strong>.</p>
* <blockquote>
* <ul>
* <li>You must set this parameter only when the instance runs SQL Server.</li>
* <li>This parameter is valid only when you set the <strong>BackupMethod</strong> parameter to <strong>Physical</strong>.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>Auto</p>
*/
public Builder backupType(String backupType) {
this.putQueryParameter("BackupType", backupType);
this.backupType = backupType;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The names of the databases whose data you want to back up. Separate the names of the databases with commas (,).</p>
* <blockquote>
* <p>You can specify this parameter when you perform a logical backup on individual databases of an ApsaraDB RDS for MySQL instance. You can also specify this parameter when you perform a full physical backup on individual databases of an ApsaraDB RDS for SQL Server instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>rds_mysql</p>
*/
public Builder DBName(String DBName) {
this.putQueryParameter("DBName", DBName);
this.DBName = DBName;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public CreateBackupRequest build() {
return new CreateBackupRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateBackupResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateBackupResponse} extends {@link TeaModel}
*
* <p>CreateBackupResponse</p>
*/
public class CreateBackupResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateBackupResponseBody body;
private CreateBackupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateBackupResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateBackupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateBackupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateBackupResponseBody body);
@Override
CreateBackupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateBackupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateBackupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateBackupResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateBackupResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateBackupResponse build() {
return new CreateBackupResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateBackupResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateBackupResponseBody} extends {@link TeaModel}
*
* <p>CreateBackupResponseBody</p>
*/
public class CreateBackupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BackupJobId")
private String backupJobId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateBackupResponseBody(Builder builder) {
this.backupJobId = builder.backupJobId;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateBackupResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backupJobId
*/
public String getBackupJobId() {
return this.backupJobId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String backupJobId;
private String requestId;
private Builder() {
}
private Builder(CreateBackupResponseBody model) {
this.backupJobId = model.backupJobId;
this.requestId = model.requestId;
}
/**
* <p>The ID of the backup task.</p>
*
* <strong>example:</strong>
* <p>5073731</p>
*/
public Builder backupJobId(String backupJobId) {
this.backupJobId = backupJobId;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>2C125605-266F-41CA-8AC5-3A643D4F42C5</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateBackupResponseBody build() {
return new CreateBackupResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateCloudMigrationPrecheckTaskRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateCloudMigrationPrecheckTaskRequest} extends {@link RequestModel}
*
* <p>CreateCloudMigrationPrecheckTaskRequest</p>
*/
public class CreateCloudMigrationPrecheckTaskRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceAccount")
@com.aliyun.core.annotation.Validation(required = true)
private String sourceAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceCategory")
@com.aliyun.core.annotation.Validation(required = true)
private String sourceCategory;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIpAddress")
@com.aliyun.core.annotation.Validation(required = true)
private String sourceIpAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourcePassword")
@com.aliyun.core.annotation.Validation(required = true)
private String sourcePassword;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourcePort")
@com.aliyun.core.annotation.Validation(required = true)
private Long sourcePort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskName")
private String taskName;
private CreateCloudMigrationPrecheckTaskRequest(Builder builder) {
super(builder);
this.DBInstanceName = builder.DBInstanceName;
this.resourceOwnerId = builder.resourceOwnerId;
this.sourceAccount = builder.sourceAccount;
this.sourceCategory = builder.sourceCategory;
this.sourceIpAddress = builder.sourceIpAddress;
this.sourcePassword = builder.sourcePassword;
this.sourcePort = builder.sourcePort;
this.taskName = builder.taskName;
}
public static Builder builder() {
return new Builder();
}
public static CreateCloudMigrationPrecheckTaskRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sourceAccount
*/
public String getSourceAccount() {
return this.sourceAccount;
}
/**
* @return sourceCategory
*/
public String getSourceCategory() {
return this.sourceCategory;
}
/**
* @return sourceIpAddress
*/
public String getSourceIpAddress() {
return this.sourceIpAddress;
}
/**
* @return sourcePassword
*/
public String getSourcePassword() {
return this.sourcePassword;
}
/**
* @return sourcePort
*/
public Long getSourcePort() {
return this.sourcePort;
}
/**
* @return taskName
*/
public String getTaskName() {
return this.taskName;
}
public static final class Builder extends Request.Builder<CreateCloudMigrationPrecheckTaskRequest, Builder> {
private String DBInstanceName;
private Long resourceOwnerId;
private String sourceAccount;
private String sourceCategory;
private String sourceIpAddress;
private String sourcePassword;
private Long sourcePort;
private String taskName;
private Builder() {
super();
}
private Builder(CreateCloudMigrationPrecheckTaskRequest request) {
super(request);
this.DBInstanceName = request.DBInstanceName;
this.resourceOwnerId = request.resourceOwnerId;
this.sourceAccount = request.sourceAccount;
this.sourceCategory = request.sourceCategory;
this.sourceIpAddress = request.sourceIpAddress;
this.sourcePassword = request.sourcePassword;
this.sourcePort = request.sourcePort;
this.taskName = request.taskName;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pgm-bp102g323jd4****</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.putQueryParameter("DBInstanceName", DBInstanceName);
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The username of the account that is used to connect to the self-managed PostgreSQL instance. Enter the username of the account that you created in the <a href="https://help.aliyun.com/document_detail/369500.html">Create an account for cloud migration on a self-managed PostgreSQL instance</a> topic.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>migratetest</p>
*/
public Builder sourceAccount(String sourceAccount) {
this.putQueryParameter("SourceAccount", sourceAccount);
this.sourceAccount = sourceAccount;
return this;
}
/**
* <p>The environment in which the self-managed PostgreSQL instance runs.</p>
* <ul>
* <li><strong>idcOnVpc</strong>: The self-managed PostgreSQL instance resides in a data center. The data center can communicate with the VPC to which the ApsaraDB RDS for PostgreSQL instance belongs.</li>
* <li><strong>ecsOnVpc</strong>: The self-managed PostgreSQL instance resides on an ECS instance.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ecsOnVpc</p>
*/
public Builder sourceCategory(String sourceCategory) {
this.putQueryParameter("SourceCategory", sourceCategory);
this.sourceCategory = sourceCategory;
return this;
}
/**
* <p>The private IP address that is used to connect to the self-managed PostgreSQL instance.</p>
* <ul>
* <li>If the self-managed PostgreSQL instance resides on an ECS instance, enter the private IP address of the ECS instance. For more information about how to obtain the private IP address of an ECS instance, see <a href="https://help.aliyun.com/document_detail/273914.html">View IP addresses</a>.</li>
* <li>If the self-managed PostgreSQL instance resides in an on-premises data center, enter the private IP address of the on-premises data center.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>172.2.XX.XX</p>
*/
public Builder sourceIpAddress(String sourceIpAddress) {
this.putQueryParameter("SourceIpAddress", sourceIpAddress);
this.sourceIpAddress = sourceIpAddress;
return this;
}
/**
* <p>The password of the account that is used to connect to the self-managed PostgreSQL instance. Enter the password of the account that you created in the <a href="https://help.aliyun.com/document_detail/369500.html">Create an account for cloud migration on a self-managed PostgreSQL instance</a> topic.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>123456</p>
*/
public Builder sourcePassword(String sourcePassword) {
this.putQueryParameter("SourcePassword", sourcePassword);
this.sourcePassword = sourcePassword;
return this;
}
/**
* <p>The port that is used to connect to the self-managed PostgreSQL instance. You can run the <code>netstat -a | grep PGSQL</code> command to view the port.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>5432</p>
*/
public Builder sourcePort(Long sourcePort) {
this.putQueryParameter("SourcePort", sourcePort);
this.sourcePort = sourcePort;
return this;
}
/**
* <p>The name of the task. If you do not specify this parameter, ApsaraDB RDS automatically generates a name for the cloud migration task.</p>
*
* <strong>example:</strong>
* <p>slf7w7wj3g</p>
*/
public Builder taskName(String taskName) {
this.putQueryParameter("TaskName", taskName);
this.taskName = taskName;
return this;
}
@Override
public CreateCloudMigrationPrecheckTaskRequest build() {
return new CreateCloudMigrationPrecheckTaskRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateCloudMigrationPrecheckTaskResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateCloudMigrationPrecheckTaskResponse} extends {@link TeaModel}
*
* <p>CreateCloudMigrationPrecheckTaskResponse</p>
*/
public class CreateCloudMigrationPrecheckTaskResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateCloudMigrationPrecheckTaskResponseBody body;
private CreateCloudMigrationPrecheckTaskResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateCloudMigrationPrecheckTaskResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateCloudMigrationPrecheckTaskResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateCloudMigrationPrecheckTaskResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateCloudMigrationPrecheckTaskResponseBody body);
@Override
CreateCloudMigrationPrecheckTaskResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateCloudMigrationPrecheckTaskResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateCloudMigrationPrecheckTaskResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateCloudMigrationPrecheckTaskResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateCloudMigrationPrecheckTaskResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateCloudMigrationPrecheckTaskResponse build() {
return new CreateCloudMigrationPrecheckTaskResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateCloudMigrationPrecheckTaskResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateCloudMigrationPrecheckTaskResponseBody} extends {@link TeaModel}
*
* <p>CreateCloudMigrationPrecheckTaskResponseBody</p>
*/
public class CreateCloudMigrationPrecheckTaskResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
private String DBInstanceName;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TaskId")
private Long taskId;
@com.aliyun.core.annotation.NameInMap("TaskName")
private String taskName;
private CreateCloudMigrationPrecheckTaskResponseBody(Builder builder) {
this.DBInstanceName = builder.DBInstanceName;
this.requestId = builder.requestId;
this.taskId = builder.taskId;
this.taskName = builder.taskName;
}
public static Builder builder() {
return new Builder();
}
public static CreateCloudMigrationPrecheckTaskResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return taskId
*/
public Long getTaskId() {
return this.taskId;
}
/**
* @return taskName
*/
public String getTaskName() {
return this.taskName;
}
public static final class Builder {
private String DBInstanceName;
private String requestId;
private Long taskId;
private String taskName;
private Builder() {
}
private Builder(CreateCloudMigrationPrecheckTaskResponseBody model) {
this.DBInstanceName = model.DBInstanceName;
this.requestId = model.requestId;
this.taskId = model.taskId;
this.taskName = model.taskName;
}
/**
* <p>The name of the instance.</p>
*
* <strong>example:</strong>
* <p>pgm-bp102g323jd4****</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>60F9A12A-16B8-4728-B099-4CA38D32C31C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the task.</p>
*
* <strong>example:</strong>
* <p>439946016</p>
*/
public Builder taskId(Long taskId) {
this.taskId = taskId;
return this;
}
/**
* <p>The name of the task.</p>
*
* <strong>example:</strong>
* <p>slf7w7wj3g</p>
*/
public Builder taskName(String taskName) {
this.taskName = taskName;
return this;
}
public CreateCloudMigrationPrecheckTaskResponseBody build() {
return new CreateCloudMigrationPrecheckTaskResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateCloudMigrationTaskRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateCloudMigrationTaskRequest} extends {@link RequestModel}
*
* <p>CreateCloudMigrationTaskRequest</p>
*/
public class CreateCloudMigrationTaskRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceAccount")
@com.aliyun.core.annotation.Validation(required = true)
private String sourceAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceCategory")
@com.aliyun.core.annotation.Validation(required = true)
private String sourceCategory;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIpAddress")
@com.aliyun.core.annotation.Validation(required = true)
private String sourceIpAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourcePassword")
@com.aliyun.core.annotation.Validation(required = true)
private String sourcePassword;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourcePort")
@com.aliyun.core.annotation.Validation(required = true)
private Long sourcePort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskName")
private String taskName;
private CreateCloudMigrationTaskRequest(Builder builder) {
super(builder);
this.DBInstanceName = builder.DBInstanceName;
this.resourceOwnerId = builder.resourceOwnerId;
this.sourceAccount = builder.sourceAccount;
this.sourceCategory = builder.sourceCategory;
this.sourceIpAddress = builder.sourceIpAddress;
this.sourcePassword = builder.sourcePassword;
this.sourcePort = builder.sourcePort;
this.taskName = builder.taskName;
}
public static Builder builder() {
return new Builder();
}
public static CreateCloudMigrationTaskRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sourceAccount
*/
public String getSourceAccount() {
return this.sourceAccount;
}
/**
* @return sourceCategory
*/
public String getSourceCategory() {
return this.sourceCategory;
}
/**
* @return sourceIpAddress
*/
public String getSourceIpAddress() {
return this.sourceIpAddress;
}
/**
* @return sourcePassword
*/
public String getSourcePassword() {
return this.sourcePassword;
}
/**
* @return sourcePort
*/
public Long getSourcePort() {
return this.sourcePort;
}
/**
* @return taskName
*/
public String getTaskName() {
return this.taskName;
}
public static final class Builder extends Request.Builder<CreateCloudMigrationTaskRequest, Builder> {
private String DBInstanceName;
private Long resourceOwnerId;
private String sourceAccount;
private String sourceCategory;
private String sourceIpAddress;
private String sourcePassword;
private Long sourcePort;
private String taskName;
private Builder() {
super();
}
private Builder(CreateCloudMigrationTaskRequest request) {
super(request);
this.DBInstanceName = request.DBInstanceName;
this.resourceOwnerId = request.resourceOwnerId;
this.sourceAccount = request.sourceAccount;
this.sourceCategory = request.sourceCategory;
this.sourceIpAddress = request.sourceIpAddress;
this.sourcePassword = request.sourcePassword;
this.sourcePort = request.sourcePort;
this.taskName = request.taskName;
}
/**
* <p>The ID of the destination instance. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pgm-bp102g323jd4****</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.putQueryParameter("DBInstanceName", DBInstanceName);
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The username of the account that is used to connect to the self-managed PostgreSQL instance. Enter the username of the account that you created in the <a href="https://help.aliyun.com/document_detail/369500.html">Create an account for cloud migration on a self-managed PostgreSQL instance</a> topic.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>migratetest</p>
*/
public Builder sourceAccount(String sourceAccount) {
this.putQueryParameter("SourceAccount", sourceAccount);
this.sourceAccount = sourceAccount;
return this;
}
/**
* <p>The environment in which the self-managed PostgreSQL instance runs.</p>
* <ul>
* <li><strong>idcOnVpc</strong>: The self-managed PostgreSQL instance resides in a data center. The data center can communicate with the VPC to which the ApsaraDB RDS for PostgreSQL instance belongs.</li>
* <li><strong>ecsOnVpc</strong>: The self-managed PostgreSQL instance resides on an ECS instance.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ecsOnVpc</p>
*/
public Builder sourceCategory(String sourceCategory) {
this.putQueryParameter("SourceCategory", sourceCategory);
this.sourceCategory = sourceCategory;
return this;
}
/**
* <p>The private or public IP address that is used to connect to the self-managed PostgreSQL instance.</p>
* <ul>
* <li>If the self-managed PostgreSQL instance resides on an Elastic Compute Service (ECS) instance, enter the private IP address of the ECS instance. For more information about how to obtain the private IP address of an ECS instance, see <a href="https://help.aliyun.com/document_detail/273914.html">View IP addresses</a>.</li>
* <li>If the self-managed PostgreSQL instance resides in a data center, enter the private IP address of the data center.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>172.16.XX.XX</p>
*/
public Builder sourceIpAddress(String sourceIpAddress) {
this.putQueryParameter("SourceIpAddress", sourceIpAddress);
this.sourceIpAddress = sourceIpAddress;
return this;
}
/**
* <p>The password of the account that is used to connect to the self-managed PostgreSQL instance. Enter the password of the account that you created in the <a href="https://help.aliyun.com/document_detail/369500.html">Create an account for cloud migration on a self-managed PostgreSQL instance</a> topic.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>123456</p>
*/
public Builder sourcePassword(String sourcePassword) {
this.putQueryParameter("SourcePassword", sourcePassword);
this.sourcePassword = sourcePassword;
return this;
}
/**
* <p>The port number that is used to connect to the self-managed PostgreSQL instance. You can run the <code>netstat -a | grep PGSQL</code> command to obtain the port number.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>5432</p>
*/
public Builder sourcePort(Long sourcePort) {
this.putQueryParameter("SourcePort", sourcePort);
this.sourcePort = sourcePort;
return this;
}
/**
* <p>The name of the task. If you do not specify this parameter, ApsaraDB RDS automatically generates a name for the cloud migration task.</p>
*
* <strong>example:</strong>
* <p>362c6c7a-4d20-4eac-898c-1495ceab374c</p>
*/
public Builder taskName(String taskName) {
this.putQueryParameter("TaskName", taskName);
this.taskName = taskName;
return this;
}
@Override
public CreateCloudMigrationTaskRequest build() {
return new CreateCloudMigrationTaskRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateCloudMigrationTaskResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateCloudMigrationTaskResponse} extends {@link TeaModel}
*
* <p>CreateCloudMigrationTaskResponse</p>
*/
public class CreateCloudMigrationTaskResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateCloudMigrationTaskResponseBody body;
private CreateCloudMigrationTaskResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateCloudMigrationTaskResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateCloudMigrationTaskResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateCloudMigrationTaskResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateCloudMigrationTaskResponseBody body);
@Override
CreateCloudMigrationTaskResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateCloudMigrationTaskResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateCloudMigrationTaskResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateCloudMigrationTaskResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateCloudMigrationTaskResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateCloudMigrationTaskResponse build() {
return new CreateCloudMigrationTaskResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateCloudMigrationTaskResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateCloudMigrationTaskResponseBody} extends {@link TeaModel}
*
* <p>CreateCloudMigrationTaskResponseBody</p>
*/
public class CreateCloudMigrationTaskResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
private String DBInstanceName;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TaskId")
private Long taskId;
@com.aliyun.core.annotation.NameInMap("TaskName")
private String taskName;
private CreateCloudMigrationTaskResponseBody(Builder builder) {
this.DBInstanceName = builder.DBInstanceName;
this.requestId = builder.requestId;
this.taskId = builder.taskId;
this.taskName = builder.taskName;
}
public static Builder builder() {
return new Builder();
}
public static CreateCloudMigrationTaskResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return taskId
*/
public Long getTaskId() {
return this.taskId;
}
/**
* @return taskName
*/
public String getTaskName() {
return this.taskName;
}
public static final class Builder {
private String DBInstanceName;
private String requestId;
private Long taskId;
private String taskName;
private Builder() {
}
private Builder(CreateCloudMigrationTaskResponseBody model) {
this.DBInstanceName = model.DBInstanceName;
this.requestId = model.requestId;
this.taskId = model.taskId;
this.taskName = model.taskName;
}
/**
* <p>The name of the instance.</p>
*
* <strong>example:</strong>
* <p>pgm-bp102g323jd4****</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>8B993DA9-5272-5414-94E3-4CA8BA0146C2</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the task.</p>
*
* <strong>example:</strong>
* <p>440437220</p>
*/
public Builder taskId(Long taskId) {
this.taskId = taskId;
return this;
}
/**
* <p>The name of the task.</p>
*
* <strong>example:</strong>
* <p>362c6c7a-4d20-4eac-898c-1495ceab374c</p>
*/
public Builder taskName(String taskName) {
this.taskName = taskName;
return this;
}
public CreateCloudMigrationTaskResponseBody build() {
return new CreateCloudMigrationTaskResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBInstanceEndpointAddressRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBInstanceEndpointAddressRequest} extends {@link RequestModel}
*
* <p>CreateDBInstanceEndpointAddressRequest</p>
*/
public class CreateDBInstanceEndpointAddressRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ConnectionStringPrefix")
@com.aliyun.core.annotation.Validation(required = true)
private String connectionStringPrefix;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceEndpointId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceEndpointId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IpType")
@com.aliyun.core.annotation.Validation(required = true)
private String ipType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Port")
@com.aliyun.core.annotation.Validation(required = true)
private String port;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private CreateDBInstanceEndpointAddressRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.connectionStringPrefix = builder.connectionStringPrefix;
this.DBInstanceEndpointId = builder.DBInstanceEndpointId;
this.DBInstanceId = builder.DBInstanceId;
this.ipType = builder.ipType;
this.port = builder.port;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDBInstanceEndpointAddressRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return connectionStringPrefix
*/
public String getConnectionStringPrefix() {
return this.connectionStringPrefix;
}
/**
* @return DBInstanceEndpointId
*/
public String getDBInstanceEndpointId() {
return this.DBInstanceEndpointId;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ipType
*/
public String getIpType() {
return this.ipType;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<CreateDBInstanceEndpointAddressRequest, Builder> {
private String clientToken;
private String connectionStringPrefix;
private String DBInstanceEndpointId;
private String DBInstanceId;
private String ipType;
private String port;
private String resourceGroupId;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(CreateDBInstanceEndpointAddressRequest request) {
super(request);
this.clientToken = request.clientToken;
this.connectionStringPrefix = request.connectionStringPrefix;
this.DBInstanceEndpointId = request.DBInstanceEndpointId;
this.DBInstanceId = request.DBInstanceId;
this.ipType = request.ipType;
this.port = request.port;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests.</p>
* <p>The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>6000170000591aed949d0f****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The prefix of the public endpoint.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-*****</p>
*/
public Builder connectionStringPrefix(String connectionStringPrefix) {
this.putQueryParameter("ConnectionStringPrefix", connectionStringPrefix);
this.connectionStringPrefix = connectionStringPrefix;
return this;
}
/**
* <p>The endpoint ID of the instance. You can call the DescribeDBInstanceEndpoints operation to query the endpoint ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ep-****</p>
*/
public Builder DBInstanceEndpointId(String DBInstanceEndpointId) {
this.putQueryParameter("DBInstanceEndpointId", DBInstanceEndpointId);
this.DBInstanceEndpointId = DBInstanceEndpointId;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The network type of the endpoint. Only Internet is supported. Set the value to <strong>Public</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Public</p>
*/
public Builder ipType(String ipType) {
this.putQueryParameter("IpType", ipType);
this.ipType = ipType;
return this;
}
/**
* <p>The port number of the public endpoint.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>3306</p>
*/
public Builder port(String port) {
this.putQueryParameter("Port", port);
this.port = port;
return this;
}
/**
* <p>The resource group ID. You can call the DescribeDBInstanceAttribute operation to obtain the ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public CreateDBInstanceEndpointAddressRequest build() {
return new CreateDBInstanceEndpointAddressRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBInstanceEndpointAddressResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBInstanceEndpointAddressResponse} extends {@link TeaModel}
*
* <p>CreateDBInstanceEndpointAddressResponse</p>
*/
public class CreateDBInstanceEndpointAddressResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateDBInstanceEndpointAddressResponseBody body;
private CreateDBInstanceEndpointAddressResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateDBInstanceEndpointAddressResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateDBInstanceEndpointAddressResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateDBInstanceEndpointAddressResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateDBInstanceEndpointAddressResponseBody body);
@Override
CreateDBInstanceEndpointAddressResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateDBInstanceEndpointAddressResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateDBInstanceEndpointAddressResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateDBInstanceEndpointAddressResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateDBInstanceEndpointAddressResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateDBInstanceEndpointAddressResponse build() {
return new CreateDBInstanceEndpointAddressResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBInstanceEndpointAddressResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBInstanceEndpointAddressResponseBody} extends {@link TeaModel}
*
* <p>CreateDBInstanceEndpointAddressResponseBody</p>
*/
public class CreateDBInstanceEndpointAddressResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateDBInstanceEndpointAddressResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDBInstanceEndpointAddressResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(CreateDBInstanceEndpointAddressResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The data returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>08A3B71B-FE08-4B03-974F-CC7EA6DB1828</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateDBInstanceEndpointAddressResponseBody build() {
return new CreateDBInstanceEndpointAddressResponseBody(this);
}
}
/**
*
* {@link CreateDBInstanceEndpointAddressResponseBody} extends {@link TeaModel}
*
* <p>CreateDBInstanceEndpointAddressResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConnectionString")
private String connectionString;
@com.aliyun.core.annotation.NameInMap("DBInstanceEndpointId")
private String DBInstanceEndpointId;
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
private String DBInstanceName;
private Data(Builder builder) {
this.connectionString = builder.connectionString;
this.DBInstanceEndpointId = builder.DBInstanceEndpointId;
this.DBInstanceName = builder.DBInstanceName;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return connectionString
*/
public String getConnectionString() {
return this.connectionString;
}
/**
* @return DBInstanceEndpointId
*/
public String getDBInstanceEndpointId() {
return this.DBInstanceEndpointId;
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
public static final class Builder {
private String connectionString;
private String DBInstanceEndpointId;
private String DBInstanceName;
private Builder() {
}
private Builder(Data model) {
this.connectionString = model.connectionString;
this.DBInstanceEndpointId = model.DBInstanceEndpointId;
this.DBInstanceName = model.DBInstanceName;
}
/**
* <p>The public endpoint.</p>
*
* <strong>example:</strong>
* <p>rm-******.mysql.rds.aliyuncs.com</p>
*/
public Builder connectionString(String connectionString) {
this.connectionString = connectionString;
return this;
}
/**
* <p>The endpoint ID of the instance.</p>
*
* <strong>example:</strong>
* <p>ep-****</p>
*/
public Builder DBInstanceEndpointId(String DBInstanceEndpointId) {
this.DBInstanceEndpointId = DBInstanceEndpointId;
return this;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-****</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBInstanceEndpointRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBInstanceEndpointRequest} extends {@link RequestModel}
*
* <p>CreateDBInstanceEndpointRequest</p>
*/
public class CreateDBInstanceEndpointRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ConnectionStringPrefix")
@com.aliyun.core.annotation.Validation(required = true)
private String connectionStringPrefix;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceEndpointDescription")
private String DBInstanceEndpointDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceEndpointType")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceEndpointType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NodeItems")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<NodeItems> nodeItems;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Port")
@com.aliyun.core.annotation.Validation(required = true)
private String port;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PrivateIpAddress")
private String privateIpAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
@com.aliyun.core.annotation.Validation(required = true)
private String vSwitchId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpcId;
private CreateDBInstanceEndpointRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.connectionStringPrefix = builder.connectionStringPrefix;
this.DBInstanceEndpointDescription = builder.DBInstanceEndpointDescription;
this.DBInstanceEndpointType = builder.DBInstanceEndpointType;
this.DBInstanceId = builder.DBInstanceId;
this.nodeItems = builder.nodeItems;
this.port = builder.port;
this.privateIpAddress = builder.privateIpAddress;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerId = builder.resourceOwnerId;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDBInstanceEndpointRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return connectionStringPrefix
*/
public String getConnectionStringPrefix() {
return this.connectionStringPrefix;
}
/**
* @return DBInstanceEndpointDescription
*/
public String getDBInstanceEndpointDescription() {
return this.DBInstanceEndpointDescription;
}
/**
* @return DBInstanceEndpointType
*/
public String getDBInstanceEndpointType() {
return this.DBInstanceEndpointType;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return nodeItems
*/
public java.util.List<NodeItems> getNodeItems() {
return this.nodeItems;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return privateIpAddress
*/
public String getPrivateIpAddress() {
return this.privateIpAddress;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<CreateDBInstanceEndpointRequest, Builder> {
private String clientToken;
private String connectionStringPrefix;
private String DBInstanceEndpointDescription;
private String DBInstanceEndpointType;
private String DBInstanceId;
private java.util.List<NodeItems> nodeItems;
private String port;
private String privateIpAddress;
private String resourceGroupId;
private Long resourceOwnerId;
private String vSwitchId;
private String vpcId;
private Builder() {
super();
}
private Builder(CreateDBInstanceEndpointRequest request) {
super(request);
this.clientToken = request.clientToken;
this.connectionStringPrefix = request.connectionStringPrefix;
this.DBInstanceEndpointDescription = request.DBInstanceEndpointDescription;
this.DBInstanceEndpointType = request.DBInstanceEndpointType;
this.DBInstanceId = request.DBInstanceId;
this.nodeItems = request.nodeItems;
this.port = request.port;
this.privateIpAddress = request.privateIpAddress;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerId = request.resourceOwnerId;
this.vSwitchId = request.vSwitchId;
this.vpcId = request.vpcId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests.</p>
* <p>The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>6000170000591aed949d0f****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The prefix of the internal endpoint.</p>
* <p>When you create any type of endpoint, an internal endpoint is automatically created for the endpoint. This parameter specifies the prefix of the internal endpoint.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-****-ro</p>
*/
public Builder connectionStringPrefix(String connectionStringPrefix) {
this.putQueryParameter("ConnectionStringPrefix", connectionStringPrefix);
this.connectionStringPrefix = connectionStringPrefix;
return this;
}
/**
* <p>The user-defined description of the endpoint.</p>
*
* <strong>example:</strong>
* <p>for readonly business</p>
*/
public Builder DBInstanceEndpointDescription(String DBInstanceEndpointDescription) {
this.putQueryParameter("DBInstanceEndpointDescription", DBInstanceEndpointDescription);
this.DBInstanceEndpointDescription = DBInstanceEndpointDescription;
return this;
}
/**
* <p>The endpoint type. Valid values:</p>
* <ul>
* <li>Primary: read/write endpoint of the instance</li>
* <li>Readonly: read-only endpoint of the instance</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Readonly</p>
*/
public Builder DBInstanceEndpointType(String DBInstanceEndpointType) {
this.putQueryParameter("DBInstanceEndpointType", DBInstanceEndpointType);
this.DBInstanceEndpointType = DBInstanceEndpointType;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The information about the endpoint.</p>
* <p>This parameter is required.</p>
*/
public Builder nodeItems(java.util.List<NodeItems> nodeItems) {
String nodeItemsShrink = shrink(nodeItems, "NodeItems", "json");
this.putQueryParameter("NodeItems", nodeItemsShrink);
this.nodeItems = nodeItems;
return this;
}
/**
* <p>The port number of the internal endpoint. You can specify the port number for the internal endpoint.</p>
* <p>Valid values: 3000 to 5999.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>3306</p>
*/
public Builder port(String port) {
this.putQueryParameter("Port", port);
this.port = port;
return this;
}
/**
* <p>The IP address of the internal endpoint.</p>
*
* <strong>example:</strong>
* <p>172.16.XX.XX</p>
*/
public Builder privateIpAddress(String privateIpAddress) {
this.putQueryParameter("PrivateIpAddress", privateIpAddress);
this.privateIpAddress = privateIpAddress;
return this;
}
/**
* <p>The resource group ID. You can call the DescribeDBInstanceAttribute operation to obtain the ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The vSwitch ID of the internal endpoint.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vsw-bp1kqp****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The VPC ID of the internal endpoint.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-xxxmmxjqqi****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public CreateDBInstanceEndpointRequest build() {
return new CreateDBInstanceEndpointRequest(this);
}
}
/**
*
* {@link CreateDBInstanceEndpointRequest} extends {@link TeaModel}
*
* <p>CreateDBInstanceEndpointRequest</p>
*/
public static class NodeItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("NodeId")
@com.aliyun.core.annotation.Validation(required = true)
private String nodeId;
@com.aliyun.core.annotation.NameInMap("Weight")
private Long weight;
private NodeItems(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.nodeId = builder.nodeId;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static NodeItems create() {
return builder().build();
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return weight
*/
public Long getWeight() {
return this.weight;
}
public static final class Builder {
private String DBInstanceId;
private String nodeId;
private Long weight;
private Builder() {
}
private Builder(NodeItems model) {
this.DBInstanceId = model.DBInstanceId;
this.nodeId = model.nodeId;
this.weight = model.weight;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The node ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rn-xxxx-****</p>
*/
public Builder nodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
/**
* <p>The weight of the node. Read requests are distributed based on the weight.</p>
* <p>Valid values: 0 to 100.</p>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder weight(Long weight) {
this.weight = weight;
return this;
}
public NodeItems build() {
return new NodeItems(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBInstanceEndpointResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBInstanceEndpointResponse} extends {@link TeaModel}
*
* <p>CreateDBInstanceEndpointResponse</p>
*/
public class CreateDBInstanceEndpointResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateDBInstanceEndpointResponseBody body;
private CreateDBInstanceEndpointResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateDBInstanceEndpointResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateDBInstanceEndpointResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateDBInstanceEndpointResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateDBInstanceEndpointResponseBody body);
@Override
CreateDBInstanceEndpointResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateDBInstanceEndpointResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateDBInstanceEndpointResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateDBInstanceEndpointResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateDBInstanceEndpointResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateDBInstanceEndpointResponse build() {
return new CreateDBInstanceEndpointResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBInstanceEndpointResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBInstanceEndpointResponseBody} extends {@link TeaModel}
*
* <p>CreateDBInstanceEndpointResponseBody</p>
*/
public class CreateDBInstanceEndpointResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateDBInstanceEndpointResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDBInstanceEndpointResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(CreateDBInstanceEndpointResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The data returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>C8E88DED-533F-4B3C-9207-731FBF394CCA</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateDBInstanceEndpointResponseBody build() {
return new CreateDBInstanceEndpointResponseBody(this);
}
}
/**
*
* {@link CreateDBInstanceEndpointResponseBody} extends {@link TeaModel}
*
* <p>CreateDBInstanceEndpointResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConnectionString")
private String connectionString;
@com.aliyun.core.annotation.NameInMap("DBInstanceEndpointId")
private String DBInstanceEndpointId;
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
private String DBInstanceName;
private Data(Builder builder) {
this.connectionString = builder.connectionString;
this.DBInstanceEndpointId = builder.DBInstanceEndpointId;
this.DBInstanceName = builder.DBInstanceName;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return connectionString
*/
public String getConnectionString() {
return this.connectionString;
}
/**
* @return DBInstanceEndpointId
*/
public String getDBInstanceEndpointId() {
return this.DBInstanceEndpointId;
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
public static final class Builder {
private String connectionString;
private String DBInstanceEndpointId;
private String DBInstanceName;
private Builder() {
}
private Builder(Data model) {
this.connectionString = model.connectionString;
this.DBInstanceEndpointId = model.DBInstanceEndpointId;
this.DBInstanceName = model.DBInstanceName;
}
/**
* <p>The internal endpoint.</p>
*
* <strong>example:</strong>
* <p>rm-****.mysql.rds.aliyuncs.com</p>
*/
public Builder connectionString(String connectionString) {
this.connectionString = connectionString;
return this;
}
/**
* <p>The endpoint ID of the instance.</p>
*
* <strong>example:</strong>
* <p>ep-****</p>
*/
public Builder DBInstanceEndpointId(String DBInstanceEndpointId) {
this.DBInstanceEndpointId = DBInstanceEndpointId;
return this;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-****</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBInstanceForRebuildRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBInstanceForRebuildRequest} extends {@link RequestModel}
*
* <p>CreateDBInstanceForRebuildRequest</p>
*/
public class CreateDBInstanceForRebuildRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceDescription")
private String DBInstanceDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceNetType")
private String DBInstanceNetType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceNetworkType")
private String instanceNetworkType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PayType")
@com.aliyun.core.annotation.Validation(required = true)
private String payType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Period")
private String period;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
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("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityIPList")
private String securityIPList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UsedTime")
private String usedTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VPCId")
private String VPCId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneIdSlave1")
private String zoneIdSlave1;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneIdSlave2")
private String zoneIdSlave2;
private CreateDBInstanceForRebuildRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.DBInstanceDescription = builder.DBInstanceDescription;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceNetType = builder.DBInstanceNetType;
this.instanceNetworkType = builder.instanceNetworkType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.payType = builder.payType;
this.period = builder.period;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.securityIPList = builder.securityIPList;
this.securityToken = builder.securityToken;
this.usedTime = builder.usedTime;
this.VPCId = builder.VPCId;
this.vSwitchId = builder.vSwitchId;
this.zoneId = builder.zoneId;
this.zoneIdSlave1 = builder.zoneIdSlave1;
this.zoneIdSlave2 = builder.zoneIdSlave2;
}
public static Builder builder() {
return new Builder();
}
public static CreateDBInstanceForRebuildRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return DBInstanceDescription
*/
public String getDBInstanceDescription() {
return this.DBInstanceDescription;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBInstanceNetType
*/
public String getDBInstanceNetType() {
return this.DBInstanceNetType;
}
/**
* @return instanceNetworkType
*/
public String getInstanceNetworkType() {
return this.instanceNetworkType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return period
*/
public String getPeriod() {
return this.period;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return securityIPList
*/
public String getSecurityIPList() {
return this.securityIPList;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
/**
* @return usedTime
*/
public String getUsedTime() {
return this.usedTime;
}
/**
* @return VPCId
*/
public String getVPCId() {
return this.VPCId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
/**
* @return zoneIdSlave1
*/
public String getZoneIdSlave1() {
return this.zoneIdSlave1;
}
/**
* @return zoneIdSlave2
*/
public String getZoneIdSlave2() {
return this.zoneIdSlave2;
}
public static final class Builder extends Request.Builder<CreateDBInstanceForRebuildRequest, Builder> {
private String clientToken;
private String DBInstanceDescription;
private String DBInstanceId;
private String DBInstanceNetType;
private String instanceNetworkType;
private String ownerAccount;
private Long ownerId;
private String payType;
private String period;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String securityIPList;
private String securityToken;
private String usedTime;
private String VPCId;
private String vSwitchId;
private String zoneId;
private String zoneIdSlave1;
private String zoneIdSlave2;
private Builder() {
super();
}
private Builder(CreateDBInstanceForRebuildRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBInstanceDescription = request.DBInstanceDescription;
this.DBInstanceId = request.DBInstanceId;
this.DBInstanceNetType = request.DBInstanceNetType;
this.instanceNetworkType = request.instanceNetworkType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.payType = request.payType;
this.period = request.period;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.securityIPList = request.securityIPList;
this.securityToken = request.securityToken;
this.usedTime = request.usedTime;
this.VPCId = request.VPCId;
this.vSwitchId = request.vSwitchId;
this.zoneId = request.zoneId;
this.zoneIdSlave1 = request.zoneIdSlave1;
this.zoneIdSlave2 = request.zoneIdSlave2;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests.</p>
* <p>The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCzxxxxxxx</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The name of the instance. The name must be 2 to 256 characters in length. The name can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.</p>
* <blockquote>
* <p>: The name cannot start with http:// or https://.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Test database</p>
*/
public Builder DBInstanceDescription(String DBInstanceDescription) {
this.putQueryParameter("DBInstanceDescription", DBInstanceDescription);
this.DBInstanceDescription = DBInstanceDescription;
return this;
}
/**
* <p>The instance ID. You can call the <a href="https://help.aliyun.com/document_detail/610396.html">DescribeDBInstances</a> operation to query the ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The type of the network connection to the instance. Valid values:</p>
* <ul>
* <li><strong>Internet</strong></li>
* <li><strong>Intranet</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Internet</p>
*/
public Builder DBInstanceNetType(String DBInstanceNetType) {
this.putQueryParameter("DBInstanceNetType", DBInstanceNetType);
this.DBInstanceNetType = DBInstanceNetType;
return this;
}
/**
* <p>The network type of the instance. Valid values:</p>
* <ul>
* <li><strong>VPC</strong></li>
* <li><strong>Classic</strong></li>
* </ul>
* <p>Default value: Classic.</p>
* <blockquote>
* <p> If the instance uses cloud disks, this parameter is required. Set the value to <strong>VPC</strong>. The <strong>VpcId</strong> and <strong>VSwitchId</strong> parameters must be specified when this parameter is set to <strong>VPC</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>VPC</p>
*/
public Builder instanceNetworkType(String instanceNetworkType) {
this.putQueryParameter("InstanceNetworkType", instanceNetworkType);
this.instanceNetworkType = instanceNetworkType;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The billing method of the destination instance. Valid values:</p>
* <ul>
* <li><strong>Postpaid</strong>: pay-as-you-go</li>
* <li><strong>Prepaid</strong>: subscription</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Postpaid</p>
*/
public Builder payType(String payType) {
this.putQueryParameter("PayType", payType);
this.payType = payType;
return this;
}
/**
* <p>The unit of the subscription duration. Valid values:</p>
* <ul>
* <li><strong>Year</strong></li>
* <li><strong>Month</strong></li>
* </ul>
* <blockquote>
* <p> If you set the PayType parameter to <strong>Prepaid</strong>, you must also specify this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Month</p>
*/
public Builder period(String period) {
this.putQueryParameter("Period", period);
this.period = period;
return this;
}
/**
* <p>The region ID. You can call the <a href="https://help.aliyun.com/document_detail/610399.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group. The value of this parameter can be NULL.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy*****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The IP address whitelist of the serverless instance. For more information, see <a href="https://help.aliyun.com/document_detail/43185.html">Use a database client or the CLI to connect to an ApsaraDB RDS for PostgreSQL instance</a>. If the IP address whitelist contains more than one entry, separate the entries with commas (,). Each entry must be unique. You can specify up to 1,000 entries. The entries in the IP address whitelist must be in one of the following formats:</p>
* <ul>
* <li>IP addresses, such as 10.10.XX.XX.</li>
* <li>CIDR blocks, such as 10.10.XX.XX/24. In this example, 24 indicates that the prefix of each IP address in the IP address whitelist is 24 bits in length. You can replace 24 with a value within the range of 1 to 32.</li>
* </ul>
* <p>If this parameter is not specified, the default IP address whitelist is used.</p>
*
* <strong>example:</strong>
* <p>127.0.0.1</p>
*/
public Builder securityIPList(String securityIPList) {
this.putQueryParameter("SecurityIPList", securityIPList);
this.securityIPList = securityIPList;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
/**
* <p>The subscription duration of the instance. Valid values:</p>
* <ul>
* <li>If you set <strong>Period</strong> to <strong>Year</strong>, the value of <strong>UsedTime</strong> ranges from <strong>1</strong> to <strong>5</strong>.</li>
* <li>If you set <strong>Period</strong> to <strong>Month</strong>, the value of <strong>UsedTime</strong> ranges from <strong>1</strong> to <strong>11</strong>.</li>
* </ul>
* <blockquote>
* <p>If you set <strong>PayType</strong> to <strong>Prepaid</strong>, you must specify this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder usedTime(String usedTime) {
this.putQueryParameter("UsedTime", usedTime);
this.usedTime = usedTime;
return this;
}
/**
* <p>The VPC ID of the instance. If you set <strong>InstanceNetworkType</strong> to <strong>VPC</strong>, you must specify this parameter.</p>
* <blockquote>
* <p>: If you specify this parameter, you must also specify <strong>ZoneId</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vpc-uf6f7l4fg90xxxxxx</p>
*/
public Builder VPCId(String VPCId) {
this.putQueryParameter("VPCId", VPCId);
this.VPCId = VPCId;
return this;
}
/**
* <p>The ID of the vSwitch. The vSwitch must belong to the zone that is specified by <strong>ZoneId</strong>.</p>
* <blockquote>
* </blockquote>
* <ul>
* <li><p>If you set <strong>InstanceNetworkType</strong> to <strong>VPC</strong>, you must also specify this parameter.</p>
* </li>
* <li><p>If you specify the ZoneSlaveId1 parameter, you must specify the IDs of two vSwitches for this parameter and separate the IDs with a comma (,).</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>vsw-uf6adz52c2pxxxxx</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The zone ID of the primary instance. You can call the <a href="https://help.aliyun.com/document_detail/26243.html">DescribeRegions</a> operation to query the most recent zone list.</p>
* <blockquote>
* <p>If you specify a virtual private cloud (VPC) and a vSwitch, you must specify this parameter to identify the zone for the vSwitch.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cn-hangzhou-e</p>
*/
public Builder zoneId(String zoneId) {
this.putQueryParameter("ZoneId", zoneId);
this.zoneId = zoneId;
return this;
}
/**
* <p>The zone ID of the secondary instance.</p>
* <blockquote>
* <p> If the instance does not run RDS Basic Edition, you must specify this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cn-hangzhou-c</p>
*/
public Builder zoneIdSlave1(String zoneIdSlave1) {
this.putQueryParameter("ZoneIdSlave1", zoneIdSlave1);
this.zoneIdSlave1 = zoneIdSlave1;
return this;
}
/**
* <p>The zone ID of the logger instance.</p>
* <blockquote>
* <p> This parameter is available only when the instance runs RDS Enterprise Edition.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cn-hangzhou-d</p>
*/
public Builder zoneIdSlave2(String zoneIdSlave2) {
this.putQueryParameter("ZoneIdSlave2", zoneIdSlave2);
this.zoneIdSlave2 = zoneIdSlave2;
return this;
}
@Override
public CreateDBInstanceForRebuildRequest build() {
return new CreateDBInstanceForRebuildRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBInstanceForRebuildResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBInstanceForRebuildResponse} extends {@link TeaModel}
*
* <p>CreateDBInstanceForRebuildResponse</p>
*/
public class CreateDBInstanceForRebuildResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateDBInstanceForRebuildResponseBody body;
private CreateDBInstanceForRebuildResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateDBInstanceForRebuildResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateDBInstanceForRebuildResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateDBInstanceForRebuildResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateDBInstanceForRebuildResponseBody body);
@Override
CreateDBInstanceForRebuildResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateDBInstanceForRebuildResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateDBInstanceForRebuildResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateDBInstanceForRebuildResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateDBInstanceForRebuildResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateDBInstanceForRebuildResponse build() {
return new CreateDBInstanceForRebuildResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBInstanceForRebuildResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBInstanceForRebuildResponseBody} extends {@link TeaModel}
*
* <p>CreateDBInstanceForRebuildResponseBody</p>
*/
public class CreateDBInstanceForRebuildResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("OrderId")
private String orderId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
private CreateDBInstanceForRebuildResponseBody(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.message = builder.message;
this.orderId = builder.orderId;
this.requestId = builder.requestId;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDBInstanceForRebuildResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return orderId
*/
public String getOrderId() {
return this.orderId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
public static final class Builder {
private String DBInstanceId;
private String message;
private String orderId;
private String requestId;
private String taskId;
private Builder() {
}
private Builder(CreateDBInstanceForRebuildResponseBody model) {
this.DBInstanceId = model.DBInstanceId;
this.message = model.message;
this.orderId = model.orderId;
this.requestId = model.requestId;
this.taskId = model.taskId;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The response parameters.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the order.</p>
*
* <strong>example:</strong>
* <p>20793850608****</p>
*/
public Builder orderId(String orderId) {
this.orderId = orderId;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>1AD222E9-E606-4A42-BF6D-8A4442913CEF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the task.</p>
*
* <strong>example:</strong>
* <p>417450000</p>
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
public CreateDBInstanceForRebuildResponseBody build() {
return new CreateDBInstanceForRebuildResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBInstanceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBInstanceRequest} extends {@link RequestModel}
*
* <p>CreateDBInstanceRequest</p>
*/
public class CreateDBInstanceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Amount")
private Integer amount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoCreateProxy")
private Boolean autoCreateProxy;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoPay")
private Boolean autoPay;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoRenew")
private String autoRenew;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoUseCoupon")
private Boolean autoUseCoupon;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BabelfishConfig")
private String babelfishConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BpeEnabled")
private String bpeEnabled;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BurstingEnabled")
private Boolean burstingEnabled;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BusinessInfo")
private String businessInfo;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Category")
private String category;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ColdDataEnabled")
private Boolean coldDataEnabled;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ConnectionMode")
private String connectionMode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ConnectionString")
private String connectionString;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CreateStrategy")
private String createStrategy;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceClass")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceClass;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceDescription")
private String DBInstanceDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceNetType")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceNetType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceStorage")
@com.aliyun.core.annotation.Validation(required = true)
private Integer DBInstanceStorage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceStorageType")
private String DBInstanceStorageType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBIsIgnoreCase")
private String DBIsIgnoreCase;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBParamGroupId")
private String DBParamGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBTimeZone")
private String DBTimeZone;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DedicatedHostGroupId")
private String dedicatedHostGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DeletionProtection")
private Boolean deletionProtection;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EncryptionKey")
private String encryptionKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Engine")
@com.aliyun.core.annotation.Validation(required = true)
private String engine;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EngineVersion")
@com.aliyun.core.annotation.Validation(required = true)
private String engineVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ExternalReplication")
private Boolean externalReplication;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceNetworkType")
private String instanceNetworkType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IoAccelerationEnabled")
private String ioAccelerationEnabled;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OptimizedWrites")
private String optimizedWrites;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PayType")
@com.aliyun.core.annotation.Validation(required = true)
private String payType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Period")
private String period;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PrivateIpAddress")
private String privateIpAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PromotionCode")
private String promotionCode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
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("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RoleARN")
private String roleARN;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityIPList")
@com.aliyun.core.annotation.Validation(required = true)
private String securityIPList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServerlessConfig")
private ServerlessConfig serverlessConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StorageAutoScale")
private String storageAutoScale;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StorageThreshold")
private Integer storageThreshold;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StorageUpperBound")
private Integer storageUpperBound;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SystemDBCharset")
private String systemDBCharset;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetDedicatedHostIdForLog")
private String targetDedicatedHostIdForLog;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetDedicatedHostIdForMaster")
private String targetDedicatedHostIdForMaster;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetDedicatedHostIdForSlave")
private String targetDedicatedHostIdForSlave;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetMinorVersion")
private String targetMinorVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UsedTime")
private String usedTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UserBackupId")
private String userBackupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VPCId")
private String VPCId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("WhitelistTemplateList")
private String whitelistTemplateList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneIdSlave1")
private String zoneIdSlave1;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneIdSlave2")
private String zoneIdSlave2;
private CreateDBInstanceRequest(Builder builder) {
super(builder);
this.amount = builder.amount;
this.autoCreateProxy = builder.autoCreateProxy;
this.autoPay = builder.autoPay;
this.autoRenew = builder.autoRenew;
this.autoUseCoupon = builder.autoUseCoupon;
this.babelfishConfig = builder.babelfishConfig;
this.bpeEnabled = builder.bpeEnabled;
this.burstingEnabled = builder.burstingEnabled;
this.businessInfo = builder.businessInfo;
this.category = builder.category;
this.clientToken = builder.clientToken;
this.coldDataEnabled = builder.coldDataEnabled;
this.connectionMode = builder.connectionMode;
this.connectionString = builder.connectionString;
this.createStrategy = builder.createStrategy;
this.DBInstanceClass = builder.DBInstanceClass;
this.DBInstanceDescription = builder.DBInstanceDescription;
this.DBInstanceNetType = builder.DBInstanceNetType;
this.DBInstanceStorage = builder.DBInstanceStorage;
this.DBInstanceStorageType = builder.DBInstanceStorageType;
this.DBIsIgnoreCase = builder.DBIsIgnoreCase;
this.DBParamGroupId = builder.DBParamGroupId;
this.DBTimeZone = builder.DBTimeZone;
this.dedicatedHostGroupId = builder.dedicatedHostGroupId;
this.deletionProtection = builder.deletionProtection;
this.dryRun = builder.dryRun;
this.encryptionKey = builder.encryptionKey;
this.engine = builder.engine;
this.engineVersion = builder.engineVersion;
this.externalReplication = builder.externalReplication;
this.instanceNetworkType = builder.instanceNetworkType;
this.ioAccelerationEnabled = builder.ioAccelerationEnabled;
this.optimizedWrites = builder.optimizedWrites;
this.payType = builder.payType;
this.period = builder.period;
this.port = builder.port;
this.privateIpAddress = builder.privateIpAddress;
this.promotionCode = builder.promotionCode;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerId = builder.resourceOwnerId;
this.roleARN = builder.roleARN;
this.securityIPList = builder.securityIPList;
this.serverlessConfig = builder.serverlessConfig;
this.storageAutoScale = builder.storageAutoScale;
this.storageThreshold = builder.storageThreshold;
this.storageUpperBound = builder.storageUpperBound;
this.systemDBCharset = builder.systemDBCharset;
this.tag = builder.tag;
this.targetDedicatedHostIdForLog = builder.targetDedicatedHostIdForLog;
this.targetDedicatedHostIdForMaster = builder.targetDedicatedHostIdForMaster;
this.targetDedicatedHostIdForSlave = builder.targetDedicatedHostIdForSlave;
this.targetMinorVersion = builder.targetMinorVersion;
this.usedTime = builder.usedTime;
this.userBackupId = builder.userBackupId;
this.VPCId = builder.VPCId;
this.vSwitchId = builder.vSwitchId;
this.whitelistTemplateList = builder.whitelistTemplateList;
this.zoneId = builder.zoneId;
this.zoneIdSlave1 = builder.zoneIdSlave1;
this.zoneIdSlave2 = builder.zoneIdSlave2;
}
public static Builder builder() {
return new Builder();
}
public static CreateDBInstanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return amount
*/
public Integer getAmount() {
return this.amount;
}
/**
* @return autoCreateProxy
*/
public Boolean getAutoCreateProxy() {
return this.autoCreateProxy;
}
/**
* @return autoPay
*/
public Boolean getAutoPay() {
return this.autoPay;
}
/**
* @return autoRenew
*/
public String getAutoRenew() {
return this.autoRenew;
}
/**
* @return autoUseCoupon
*/
public Boolean getAutoUseCoupon() {
return this.autoUseCoupon;
}
/**
* @return babelfishConfig
*/
public String getBabelfishConfig() {
return this.babelfishConfig;
}
/**
* @return bpeEnabled
*/
public String getBpeEnabled() {
return this.bpeEnabled;
}
/**
* @return burstingEnabled
*/
public Boolean getBurstingEnabled() {
return this.burstingEnabled;
}
/**
* @return businessInfo
*/
public String getBusinessInfo() {
return this.businessInfo;
}
/**
* @return category
*/
public String getCategory() {
return this.category;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return coldDataEnabled
*/
public Boolean getColdDataEnabled() {
return this.coldDataEnabled;
}
/**
* @return connectionMode
*/
public String getConnectionMode() {
return this.connectionMode;
}
/**
* @return connectionString
*/
public String getConnectionString() {
return this.connectionString;
}
/**
* @return createStrategy
*/
public String getCreateStrategy() {
return this.createStrategy;
}
/**
* @return DBInstanceClass
*/
public String getDBInstanceClass() {
return this.DBInstanceClass;
}
/**
* @return DBInstanceDescription
*/
public String getDBInstanceDescription() {
return this.DBInstanceDescription;
}
/**
* @return DBInstanceNetType
*/
public String getDBInstanceNetType() {
return this.DBInstanceNetType;
}
/**
* @return DBInstanceStorage
*/
public Integer getDBInstanceStorage() {
return this.DBInstanceStorage;
}
/**
* @return DBInstanceStorageType
*/
public String getDBInstanceStorageType() {
return this.DBInstanceStorageType;
}
/**
* @return DBIsIgnoreCase
*/
public String getDBIsIgnoreCase() {
return this.DBIsIgnoreCase;
}
/**
* @return DBParamGroupId
*/
public String getDBParamGroupId() {
return this.DBParamGroupId;
}
/**
* @return DBTimeZone
*/
public String getDBTimeZone() {
return this.DBTimeZone;
}
/**
* @return dedicatedHostGroupId
*/
public String getDedicatedHostGroupId() {
return this.dedicatedHostGroupId;
}
/**
* @return deletionProtection
*/
public Boolean getDeletionProtection() {
return this.deletionProtection;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return encryptionKey
*/
public String getEncryptionKey() {
return this.encryptionKey;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return engineVersion
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
* @return externalReplication
*/
public Boolean getExternalReplication() {
return this.externalReplication;
}
/**
* @return instanceNetworkType
*/
public String getInstanceNetworkType() {
return this.instanceNetworkType;
}
/**
* @return ioAccelerationEnabled
*/
public String getIoAccelerationEnabled() {
return this.ioAccelerationEnabled;
}
/**
* @return optimizedWrites
*/
public String getOptimizedWrites() {
return this.optimizedWrites;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return period
*/
public String getPeriod() {
return this.period;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return privateIpAddress
*/
public String getPrivateIpAddress() {
return this.privateIpAddress;
}
/**
* @return promotionCode
*/
public String getPromotionCode() {
return this.promotionCode;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return roleARN
*/
public String getRoleARN() {
return this.roleARN;
}
/**
* @return securityIPList
*/
public String getSecurityIPList() {
return this.securityIPList;
}
/**
* @return serverlessConfig
*/
public ServerlessConfig getServerlessConfig() {
return this.serverlessConfig;
}
/**
* @return storageAutoScale
*/
public String getStorageAutoScale() {
return this.storageAutoScale;
}
/**
* @return storageThreshold
*/
public Integer getStorageThreshold() {
return this.storageThreshold;
}
/**
* @return storageUpperBound
*/
public Integer getStorageUpperBound() {
return this.storageUpperBound;
}
/**
* @return systemDBCharset
*/
public String getSystemDBCharset() {
return this.systemDBCharset;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return targetDedicatedHostIdForLog
*/
public String getTargetDedicatedHostIdForLog() {
return this.targetDedicatedHostIdForLog;
}
/**
* @return targetDedicatedHostIdForMaster
*/
public String getTargetDedicatedHostIdForMaster() {
return this.targetDedicatedHostIdForMaster;
}
/**
* @return targetDedicatedHostIdForSlave
*/
public String getTargetDedicatedHostIdForSlave() {
return this.targetDedicatedHostIdForSlave;
}
/**
* @return targetMinorVersion
*/
public String getTargetMinorVersion() {
return this.targetMinorVersion;
}
/**
* @return usedTime
*/
public String getUsedTime() {
return this.usedTime;
}
/**
* @return userBackupId
*/
public String getUserBackupId() {
return this.userBackupId;
}
/**
* @return VPCId
*/
public String getVPCId() {
return this.VPCId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return whitelistTemplateList
*/
public String getWhitelistTemplateList() {
return this.whitelistTemplateList;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
/**
* @return zoneIdSlave1
*/
public String getZoneIdSlave1() {
return this.zoneIdSlave1;
}
/**
* @return zoneIdSlave2
*/
public String getZoneIdSlave2() {
return this.zoneIdSlave2;
}
public static final class Builder extends Request.Builder<CreateDBInstanceRequest, Builder> {
private Integer amount;
private Boolean autoCreateProxy;
private Boolean autoPay;
private String autoRenew;
private Boolean autoUseCoupon;
private String babelfishConfig;
private String bpeEnabled;
private Boolean burstingEnabled;
private String businessInfo;
private String category;
private String clientToken;
private Boolean coldDataEnabled;
private String connectionMode;
private String connectionString;
private String createStrategy;
private String DBInstanceClass;
private String DBInstanceDescription;
private String DBInstanceNetType;
private Integer DBInstanceStorage;
private String DBInstanceStorageType;
private String DBIsIgnoreCase;
private String DBParamGroupId;
private String DBTimeZone;
private String dedicatedHostGroupId;
private Boolean deletionProtection;
private Boolean dryRun;
private String encryptionKey;
private String engine;
private String engineVersion;
private Boolean externalReplication;
private String instanceNetworkType;
private String ioAccelerationEnabled;
private String optimizedWrites;
private String payType;
private String period;
private String port;
private String privateIpAddress;
private String promotionCode;
private String regionId;
private String resourceGroupId;
private Long resourceOwnerId;
private String roleARN;
private String securityIPList;
private ServerlessConfig serverlessConfig;
private String storageAutoScale;
private Integer storageThreshold;
private Integer storageUpperBound;
private String systemDBCharset;
private java.util.List<Tag> tag;
private String targetDedicatedHostIdForLog;
private String targetDedicatedHostIdForMaster;
private String targetDedicatedHostIdForSlave;
private String targetMinorVersion;
private String usedTime;
private String userBackupId;
private String VPCId;
private String vSwitchId;
private String whitelistTemplateList;
private String zoneId;
private String zoneIdSlave1;
private String zoneIdSlave2;
private Builder() {
super();
}
private Builder(CreateDBInstanceRequest request) {
super(request);
this.amount = request.amount;
this.autoCreateProxy = request.autoCreateProxy;
this.autoPay = request.autoPay;
this.autoRenew = request.autoRenew;
this.autoUseCoupon = request.autoUseCoupon;
this.babelfishConfig = request.babelfishConfig;
this.bpeEnabled = request.bpeEnabled;
this.burstingEnabled = request.burstingEnabled;
this.businessInfo = request.businessInfo;
this.category = request.category;
this.clientToken = request.clientToken;
this.coldDataEnabled = request.coldDataEnabled;
this.connectionMode = request.connectionMode;
this.connectionString = request.connectionString;
this.createStrategy = request.createStrategy;
this.DBInstanceClass = request.DBInstanceClass;
this.DBInstanceDescription = request.DBInstanceDescription;
this.DBInstanceNetType = request.DBInstanceNetType;
this.DBInstanceStorage = request.DBInstanceStorage;
this.DBInstanceStorageType = request.DBInstanceStorageType;
this.DBIsIgnoreCase = request.DBIsIgnoreCase;
this.DBParamGroupId = request.DBParamGroupId;
this.DBTimeZone = request.DBTimeZone;
this.dedicatedHostGroupId = request.dedicatedHostGroupId;
this.deletionProtection = request.deletionProtection;
this.dryRun = request.dryRun;
this.encryptionKey = request.encryptionKey;
this.engine = request.engine;
this.engineVersion = request.engineVersion;
this.externalReplication = request.externalReplication;
this.instanceNetworkType = request.instanceNetworkType;
this.ioAccelerationEnabled = request.ioAccelerationEnabled;
this.optimizedWrites = request.optimizedWrites;
this.payType = request.payType;
this.period = request.period;
this.port = request.port;
this.privateIpAddress = request.privateIpAddress;
this.promotionCode = request.promotionCode;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerId = request.resourceOwnerId;
this.roleARN = request.roleARN;
this.securityIPList = request.securityIPList;
this.serverlessConfig = request.serverlessConfig;
this.storageAutoScale = request.storageAutoScale;
this.storageThreshold = request.storageThreshold;
this.storageUpperBound = request.storageUpperBound;
this.systemDBCharset = request.systemDBCharset;
this.tag = request.tag;
this.targetDedicatedHostIdForLog = request.targetDedicatedHostIdForLog;
this.targetDedicatedHostIdForMaster = request.targetDedicatedHostIdForMaster;
this.targetDedicatedHostIdForSlave = request.targetDedicatedHostIdForSlave;
this.targetMinorVersion = request.targetMinorVersion;
this.usedTime = request.usedTime;
this.userBackupId = request.userBackupId;
this.VPCId = request.VPCId;
this.vSwitchId = request.vSwitchId;
this.whitelistTemplateList = request.whitelistTemplateList;
this.zoneId = request.zoneId;
this.zoneIdSlave1 = request.zoneIdSlave1;
this.zoneIdSlave2 = request.zoneIdSlave2;
}
/**
* <p>The number of ApsaraDB RDS for MySQL instances that you want to create. The parameter takes effect only when you create multiple ApsaraDB RDS for MySQL instances at a time by using a single request.</p>
* <p>Valid values: <strong>1</strong> to <strong>20</strong>. Default value: <strong>1</strong>.</p>
* <blockquote>
* <ul>
* <li>If you want to create multiple ApsaraDB RDS for MySQL instances at a time by using a single request, you can add tags to all the instances by using the <strong>Tag.Key</strong> parameter and the <strong>Tag.Value</strong> parameter. After the instances are created, you can manage the instances based on the tags.</li>
* <li>After you submit a request to create multiple ApsaraDB RDS for MySQL instances, this operation returns <strong>TaskId</strong>, <strong>RequestId</strong>, and <strong>Message</strong>. You can call the DescribeDBInstanceAttribute operation to query the information about an instance.</li>
* <li>If the value of the <strong>Engine</strong> parameter is not <strong>MySQL</strong> and the value of the Amount parameter is greater than <strong>1</strong>, this operation fails and returns an error code <code>InvalidParam.Engine</code>.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder amount(Integer amount) {
this.putQueryParameter("Amount", amount);
this.amount = amount;
return this;
}
/**
* <p>Specifies whether to automatically create a database proxy. Valid values:</p>
* <ul>
* <li><strong>true</strong>: automatically creates a database proxy. By default, a general-purpose database proxy is created.</li>
* <li><strong>false</strong>: does not automatically create a database proxy.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder autoCreateProxy(Boolean autoCreateProxy) {
this.putQueryParameter("AutoCreateProxy", autoCreateProxy);
this.autoCreateProxy = autoCreateProxy;
return this;
}
/**
* <p>Specifies whether to enable automatic payment. Valid values:</p>
* <ul>
* <li><strong>true</strong>: enables the feature. Make sure that your account balance is sufficient when you enable automatic payment.</li>
* <li><strong>false</strong>: does not automatically complete the payment. An unpaid order is generated.</li>
* </ul>
* <blockquote>
* <p> Default value: true. If your account balance is insufficient, you can set AutoPay to false to generate an unpaid order. Then, you can log on to the ApsaraDB RDS console to complete the payment.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder autoPay(Boolean autoPay) {
this.putQueryParameter("AutoPay", autoPay);
this.autoPay = autoPay;
return this;
}
/**
* <p>Specifies whether to enable auto-renewal for the instance. You must specify this parameter only if the instance uses the subscription billing method. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
* <blockquote>
* <ul>
* <li>The auto-renewal cycle is one month for a monthly subscription.</li>
* <li>The auto-renewal cycle is one year for a yearly subscription.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder autoRenew(String autoRenew) {
this.putQueryParameter("AutoRenew", autoRenew);
this.autoRenew = autoRenew;
return this;
}
/**
* <p>Specifies whether to use a coupon. Default value: false. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
* <blockquote>
* <p> If you downgrade the specifications of an instance after you use coupons, the used coupons cannot be refunded.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder autoUseCoupon(Boolean autoUseCoupon) {
this.putQueryParameter("AutoUseCoupon", autoUseCoupon);
this.autoUseCoupon = autoUseCoupon;
return this;
}
/**
* <p>The configuration of the Babelfish feature for the instance that runs PostgreSQL.</p>
* <p>Format:{"babelfishEnabled":"true","migrationMode":"xxxxxxx","masterUsername":"xxxxxxx","masterUserPassword":"xxxxxxxx"}</p>
* <p>The following list describes the fields in the format:</p>
* <ul>
* <li><strong>babelfishEnabled</strong>: specifies whether to enable Babelfish for the instance. If you set this field to <strong>true</strong>, you enable Babelfish for the instance. If you leave this parameter empty, Babelfish is disabled for the instance.</li>
* <li><strong>migrationMode</strong>: The migration mode of the instance. Valid values: <strong>single-db</strong> and <strong>multi-db</strong>.</li>
* <li><strong>masterUsername</strong>: The username of the administrator account. The username can contain lowercase letters, digits, and underscores (_). It must start with a letter and end with a letter or digit. It can be up to 63 characters in length and cannot start with pg.</li>
* <li><strong>masterUserPassword</strong>: The password of the administrator account. The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. It must be 8 to 32 characters in length. The password can contain any of the following characters: <code>! @ # $ % ^ & * ( ) _ + - =</code>.</li>
* </ul>
* <blockquote>
* <p>This parameter applies only to ApsaraDB RDS for PostgreSQL instances. For more information about Babelfish for ApsaraDB RDS for PostgreSQL, see <a href="https://help.aliyun.com/document_detail/428613.html">Introduction to Babelfish</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>{"babelfishEnabled":"true","migrationMode":"single-db","masterUsername":"babelfish_user","masterUserPassword":"Babelfish123!"}</p>
*/
public Builder babelfishConfig(String babelfishConfig) {
this.putQueryParameter("BabelfishConfig", babelfishConfig);
this.babelfishConfig = babelfishConfig;
return this;
}
/**
* <p>A deprecated parameter. You do not need to specify this parameter.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder bpeEnabled(String bpeEnabled) {
this.putQueryParameter("BpeEnabled", bpeEnabled);
this.bpeEnabled = bpeEnabled;
return this;
}
/**
* <p>Specifies whether to enable the I/O burst feature of Premium ESSDs. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
* <blockquote>
* <p> For more information about the I/O burst feature of general ESSDs, see <a href="https://help.aliyun.com/document_detail/2340501.html">What are Premium ESSDs?</a></p>
* </blockquote>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder burstingEnabled(Boolean burstingEnabled) {
this.putQueryParameter("BurstingEnabled", burstingEnabled);
this.burstingEnabled = burstingEnabled;
return this;
}
/**
* <p>The additional business information about the instance.</p>
*
* <strong>example:</strong>
* <p>121436975448952</p>
*/
public Builder businessInfo(String businessInfo) {
this.putQueryParameter("BusinessInfo", businessInfo);
this.businessInfo = businessInfo;
return this;
}
/**
* <p>The RDS edition of the instance. Valid values:</p>
* <ul>
* <li><p>Regular RDS instance</p>
* <ul>
* <li><strong>Basic</strong>: RDS Basic Edition</li>
* <li><strong>HighAvailability</strong>: RDS High-availability Edition</li>
* <li><strong>cluster</strong>: RDS Cluster Edition for ApsaraDB RDS for MySQL or PostgreSQL</li>
* <li><strong>AlwaysOn</strong>: RDS Cluster Edition for ApsaraDB RDS for SQL Server</li>
* <li><strong>Finance</strong>: RDS Basic Edition for serverless instances</li>
* </ul>
* </li>
* <li><p>Serverless RDS instance</p>
* <ul>
* <li><strong>serverless_basic</strong>: RDS Basic Edition for serverless instances. This edition is available only for instances that run MySQL and PostgreSQL.</li>
* <li><strong>serverless_standard</strong>: RDS High-availability Edition for serverless instances. This edition is available only for instances that run MySQL and PostgreSQL.</li>
* <li><strong>serverless_ha</strong>: RDS High-availability Edition for serverless instances. This edition is available only for instances that run SQL Server.</li>
* </ul>
* </li>
* </ul>
* <blockquote>
* <p>This parameter is required if PayType is set to Serverless.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>HighAvailability</p>
*/
public Builder category(String category) {
this.putQueryParameter("Category", category);
this.category = category;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCz*****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to enable the data archiving feature of Premium ESSDs. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
* <blockquote>
* <p> For more information about the data archiving feature of Premium ESSDs, see <a href="https://help.aliyun.com/document_detail/2701832.html">Use the data archiving feature</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder coldDataEnabled(Boolean coldDataEnabled) {
this.putQueryParameter("ColdDataEnabled", coldDataEnabled);
this.coldDataEnabled = coldDataEnabled;
return this;
}
/**
* <p>The connection mode of the instance. Valid values:</p>
* <ul>
* <li><strong>Standard</strong>: standard mode</li>
* <li><strong>Safe</strong>: database proxy mode</li>
* </ul>
* <p>ApsaraDB RDS automatically assigns a connection mode to the instance.</p>
* <blockquote>
* <p>SQL Server 2012, SQL Server 2016, and SQL Server 2017 support only the standard mode.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Standard</p>
*/
public Builder connectionMode(String connectionMode) {
this.putQueryParameter("ConnectionMode", connectionMode);
this.connectionMode = connectionMode;
return this;
}
/**
* <p>The internal endpoint that is used to connect to the instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5*****.mysql.rds.aliyuncs.com</p>
*/
public Builder connectionString(String connectionString) {
this.putQueryParameter("ConnectionString", connectionString);
this.connectionString = connectionString;
return this;
}
/**
* <p>The policy based on which multiple instances are created. The parameter takes effect only when the value of the <strong>Amount</strong> parameter is greater than 1. Valid values:</p>
* <ul>
* <li><strong>Atomicity</strong> (default): atomicity. The instances are all created together. If one instance cannot be created, none of the instances are created.</li>
* <li><strong>Partial</strong>: non-atomicity. Each instance is independently created. The failure in creating an instance does not affect the creation of the other instances.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Atomicity</p>
*/
public Builder createStrategy(String createStrategy) {
this.putQueryParameter("CreateStrategy", createStrategy);
this.createStrategy = createStrategy;
return this;
}
/**
* <p>The instance type of the instance. You can specify an instance type of the standard or YiTian product type. For more information, see <a href="https://help.aliyun.com/document_detail/26312.html">Primary ApsaraDB RDS instance types</a>.</p>
* <p>To create a serverless instance, set this parameter to one of the following values:</p>
* <ul>
* <li>If you want to create a serverless instance that runs MySQL on RDS Basic Edition, set this parameter to <strong>mysql.n2.serverless.1c</strong>.</li>
* <li>If you want to create a serverless instance that runs MySQL on RDS High-availability Edition, set this parameter to <strong>mysql.n2.serverless.2c</strong>.</li>
* <li>If you want to create a serverless instance that runs SQL Server, set this parameter to <strong>mssql.mem2.serverless.s2</strong>.</li>
* <li>If you want to create a serverless instance that runs PostgreSQL on RDS Basic Edition, set this parameter to <strong>pg.n2.serverless.1c</strong>.</li>
* <li>If you want to create a serverless instance that runs PostgreSQL on RDS High-availability Edition, set this parameter to <strong>pg.n2.serverless.2c</strong>.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rds.mysql.s1.small</p>
*/
public Builder DBInstanceClass(String DBInstanceClass) {
this.putQueryParameter("DBInstanceClass", DBInstanceClass);
this.DBInstanceClass = DBInstanceClass;
return this;
}
/**
* <p>The instance name. The name must be 2 to 255 characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.</p>
* <blockquote>
* <p>The name cannot start with http:// or https://.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Test database</p>
*/
public Builder DBInstanceDescription(String DBInstanceDescription) {
this.putQueryParameter("DBInstanceDescription", DBInstanceDescription);
this.DBInstanceDescription = DBInstanceDescription;
return this;
}
/**
* <p>The network connection type of the instance. The value of this parameter is fixed as <strong>Intranet</strong>, indicating an internal network connection.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Internet</p>
*/
public Builder DBInstanceNetType(String DBInstanceNetType) {
this.putQueryParameter("DBInstanceNetType", DBInstanceNetType);
this.DBInstanceNetType = DBInstanceNetType;
return this;
}
/**
* <p>The storage capacity of the instance. Unit: GB. The storage capacity increases in increments of 5 GB. For more information, see <a href="https://help.aliyun.com/document_detail/26312.html">Primary ApsaraDB RDS instance types</a>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder DBInstanceStorage(Integer DBInstanceStorage) {
this.putQueryParameter("DBInstanceStorage", DBInstanceStorage);
this.DBInstanceStorage = DBInstanceStorage;
return this;
}
/**
* <p>The storage type of the instance. Valid values:</p>
* <ul>
* <li><strong>local_ssd</strong>: Premium Local SSD (recommended)</li>
* <li><strong>general_essd</strong>: Premium Enterprise SSD (ESSD) (recommend)</li>
* <li><strong>cloud_essd</strong>: PL1 ESSD</li>
* <li><strong>cloud_essd2</strong>: PL2 ESSD</li>
* <li><strong>cloud_essd3</strong>: PL3 ESSD</li>
* <li><strong>cloud_ssd</strong>: standard SSD. This storage type is not recommended. Standard SSDs are no longer available for purchase in some Alibaba Cloud regions.</li>
* </ul>
* <p>The default value of this parameter is determined by the instance type specified by the <strong>DBInstanceClass</strong> parameter.</p>
* <ul>
* <li>If the instance type specifies the Premium Local SSD storage type, the default value of this parameter is <strong>local_ssd</strong>.</li>
* <li>If the instance type specifies the cloud disk storage type, the default value of this parameter is <strong>cloud_essd</strong>.</li>
* </ul>
* <blockquote>
* <p> Serverless instances support only PL1 ESSDs and Premium ESSDs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cloud_essd</p>
*/
public Builder DBInstanceStorageType(String DBInstanceStorageType) {
this.putQueryParameter("DBInstanceStorageType", DBInstanceStorageType);
this.DBInstanceStorageType = DBInstanceStorageType;
return this;
}
/**
* <p>Specifies whether the table name is case-sensitive. Valid values:</p>
* <ul>
* <li><strong>true</strong>: Table names are not case-sensitive. This is the default value.</li>
* <li><strong>false</strong>: Table names are case-sensitive.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder DBIsIgnoreCase(String DBIsIgnoreCase) {
this.putQueryParameter("DBIsIgnoreCase", DBIsIgnoreCase);
this.DBIsIgnoreCase = DBIsIgnoreCase;
return this;
}
/**
* <p>The parameter template ID. You can call the DescribeParameterGroups operation to query the parameter template ID.</p>
* <blockquote>
* <p> This parameter is available if you want to create an instance that runs MySQL or PostgreSQL. If you do not configure this parameter, the default parameter template is used. If you want to use a custom parameter template, you can customize a parameter template and set this parameter to the ID of the custom template.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>rpg-sys-*****</p>
*/
public Builder DBParamGroupId(String DBParamGroupId) {
this.putQueryParameter("DBParamGroupId", DBParamGroupId);
this.DBParamGroupId = DBParamGroupId;
return this;
}
/**
* <p>The time zone of the instance. This parameter takes effect only when you set <strong>Engine</strong> to <strong>MySQL</strong> or <strong>PostgreSQL</strong>.</p>
* <ul>
* <li><p><strong>Engine</strong> is set to <strong>MySQL</strong>:</p>
* <ul>
* <li>This time zone is in UTC. Valid values: **-12:59** to <strong>+13:00</strong>.</li>
* <li>If the instance uses Premium Local SSDs, you can specify the name of the time zone. For example, you can specify the Asia/Hong_Kong time zone. For more information, see <a href="https://help.aliyun.com/document_detail/297356.html">Time zones</a>.</li>
* </ul>
* </li>
* <li><p><strong>Engine</strong> is set to <strong>PostgreSQL</strong>.</p>
* <ul>
* <li>This time zone is not in UTC. For more information, see <a href="https://help.aliyun.com/document_detail/297356.html">Time zones</a>.</li>
* <li>You can configure this parameter only when the RDS instance uses cloud disks.</li>
* </ul>
* </li>
* </ul>
* <blockquote>
* <ul>
* <li>You can specify the time zone when you create a primary instance. You cannot specify the time zone when you create a read-only instance. Read-only instances inherit the time zone of their primary instance.</li>
* <li>If you do not specify this parameter, the system automatically assigns the default time zone of the region in which the instance resides.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>+08:00</p>
*/
public Builder DBTimeZone(String DBTimeZone) {
this.putQueryParameter("DBTimeZone", DBTimeZone);
this.DBTimeZone = DBTimeZone;
return this;
}
/**
* <p>The ID of the dedicated cluster to which the instance belongs.</p>
* <p>If you create the instance in a dedicated cluster, you must specify this parameter.</p>
* <ul>
* <li>You can call the DescribeDedicatedHostGroups operation to query the information about the dedicated cluster.</li>
* <li>If no dedicated clusters are created, you can call the CreateDedicatedHostGroup operation to create a dedicated cluster.</li>
* </ul>
*
* <strong>example:</strong>
* <p>dhg-4n*****</p>
*/
public Builder dedicatedHostGroupId(String dedicatedHostGroupId) {
this.putQueryParameter("DedicatedHostGroupId", dedicatedHostGroupId);
this.dedicatedHostGroupId = dedicatedHostGroupId;
return this;
}
/**
* <p>Specifies whether to enable the release protection feature for the instance. This feature is available only for pay-as-you-go instances. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong> (default)</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder deletionProtection(Boolean deletionProtection) {
this.putQueryParameter("DeletionProtection", deletionProtection);
this.deletionProtection = deletionProtection;
return this;
}
/**
* <p>Specifies whether to perform a dry run. Default value: false. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, service limits, and insufficient inventory errors.</li>
* <li><strong>false</strong> (default): performs a dry run and sends the request. If the request passes the dry run, the instance is created.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The ID of the key that is used for cloud disk encryption in the region in which the instance is deployed. If this parameter is specified, cloud disk encryption is enabled and you must also specify the <strong>RoleARN</strong> parameter. Cloud disk encryption cannot be disabled after it is enabled.</p>
* <p>You can obtain the ID of the key in the Key Management Service (KMS) console or create a key. For more information, see <a href="https://help.aliyun.com/document_detail/181610.html">Create a key</a>.</p>
* <blockquote>
* <ul>
* <li>This parameter is not required when you create an instance that runs MySQL, PostgreSQL, or SQL Server. You need to only specify the <strong>RoleARN</strong> parameter to create an instance that has cloud disk encryption enabled by using the obtained key ID.</li>
* <li>You can configure RAM authorization to require a RAM user to enable cloud disk encryption when the RAM user is used to create an instance. If cloud disk encryption is disabled during the instance creation, the creation operation fails. To complete the configuration, you can attach the following policy to the RAM user: <code>{"Version":"1","Statement":[{"Effect":"Deny","Action":"rds:CreateDBInstance","Resource":"*","Condition":{"StringEquals":{"rds:DiskEncryptionRequired":"false"}}}]}</code></li>
* </ul>
* </blockquote>
* <blockquote>
* <p>Warning: The configuration also affects the CreateOrder operation that is called to create instances in the console.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0d24*****-da7b-4786-b981-9a164dxxxxxx</p>
*/
public Builder encryptionKey(String encryptionKey) {
this.putQueryParameter("EncryptionKey", encryptionKey);
this.encryptionKey = encryptionKey;
return this;
}
/**
* <p>The database engine of the instance. Valid values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>SQLServer</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>MariaDB</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engine(String engine) {
this.putQueryParameter("Engine", engine);
this.engine = engine;
return this;
}
/**
* <p>The database engine version of the instance.</p>
* <ul>
* <li><p>Regular RDS instance</p>
* <ul>
* <li>Valid values when you set Engine to MySQL: <strong>5.5</strong>, <strong>5.6</strong>, <strong>5.7</strong>, and <strong>8.0</strong></li>
* <li>Valid values when you set Engine to SQLServer: <strong>08r2_ent_ha</strong>(cloud disks, discontinued), <strong>2008r2</strong>(premium local disks, discontinued), <strong>2012</strong>(SQL Server EE Basic), <strong>2012_ent_ha</strong>, <strong>2012_std_ha</strong>, <strong>2012_web</strong>, <strong>2014_ent_ha</strong>, <strong>2014_std_ha</strong>, <strong>2016_ent_ha</strong>, <strong>2016_std_ha</strong>, <strong>2016_web</strong>, <strong>2017_ent</strong>, <strong>2017_std_ha</strong>, <strong>2017_web</strong>, <strong>2019_ent</strong>, <strong>2019_std_ha</strong>, <strong>2019_web</strong>, <strong>2022_ent</strong>, <strong>2022_std_ha</strong>, and <strong>2022_web</strong></li>
* <li>Valid values when you set Engine to PostgreSQL: <strong>10.0</strong>, <strong>11.0</strong>, <strong>12.0</strong>, <strong>13.0</strong>, <strong>14.0</strong>, <strong>15.0</strong>, <strong>16.0</strong>, and <strong>17.0</strong></li>
* <li>Valid values when you set Engine to MariaDB: <strong>10.3</strong> and <strong>10.6</strong></li>
* </ul>
* </li>
* <li><p>Serverless RDS instance</p>
* <ul>
* <li>Valid values when you set Engine to MySQL: <strong>5.7</strong> and <strong>8.0</strong></li>
* <li>Valid values when you set Engine to SQLServer: <strong>2016_std_sl</strong>, <strong>2017_std_sl</strong>, and <strong>2019_std_sl</strong></li>
* <li>Valid values when you set Engine to PostgreSQL: <strong>14.0</strong>, <strong>15.0</strong>, <strong>16.0</strong>, and <strong>17.0</strong></li>
* </ul>
* </li>
* </ul>
* <blockquote>
* </blockquote>
* <ul>
* <li><p>ApsaraDB RDS for MariaDB does not support serverless instances.</p>
* </li>
* <li><p>RDS instances that run SQL Server: <code>_ent</code> specifies SQL Server EE (Always On), <code>_ent_ha</code> specifies SQL Server EE, <code>_std_ha</code> specifies SQL Server SE, and <code>_web</code> specifies SQL Server Web.</p>
* </li>
* <li><p>RDS instances that run SQL Server 2014 are not available for purchase on the international site (alibabacloud.com).</p>
* </li>
* <li><p>Babelfish is supported only for RDS instances that run PostgreSQL 15.</p>
* </li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>5.6</p>
*/
public Builder engineVersion(String engineVersion) {
this.putQueryParameter("EngineVersion", engineVersion);
this.engineVersion = engineVersion;
return this;
}
/**
* ExternalReplication.
*/
public Builder externalReplication(Boolean externalReplication) {
this.putQueryParameter("ExternalReplication", externalReplication);
this.externalReplication = externalReplication;
return this;
}
/**
* <p>The network type of the instance. Valid values:</p>
* <ul>
* <li><strong>VPC</strong>: a virtual private cloud (VPC)</li>
* <li><strong>Classic</strong>: the classic network</li>
* </ul>
* <blockquote>
* <ul>
* <li>If the instance runs MySQL and uses cloud disks, you must set this parameter to <strong>VPC</strong>.</li>
* <li>If the instance runs PostgreSQL or MariaDB, you must set this parameter to <strong>VPC</strong>.</li>
* <li>If the instance runs SQL Server Basic or SQL Server Web, you can set this parameter to VPC or Classic. If the instance runs other database engine, you must set this parameter to <strong>VPC</strong>.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>Classic</p>
*/
public Builder instanceNetworkType(String instanceNetworkType) {
this.putQueryParameter("InstanceNetworkType", instanceNetworkType);
this.instanceNetworkType = instanceNetworkType;
return this;
}
/**
* <p>Specifies whether to enable Buffer Pool Extension (BPE) of Premium ESSDs. Valid values:</p>
* <ul>
* <li><strong>1</strong>: enables BPE.</li>
* <li><strong>0</strong>: disables BPE.</li>
* </ul>
* <blockquote>
* <p> For more information about Buffer Pool Extension(BPE) of Premium ESSDs, see <a href="https://help.aliyun.com/document_detail/2527067.html">Buffer Pool Extension(BPE)</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder ioAccelerationEnabled(String ioAccelerationEnabled) {
this.putQueryParameter("IoAccelerationEnabled", ioAccelerationEnabled);
this.ioAccelerationEnabled = ioAccelerationEnabled;
return this;
}
/**
* <p>Specifies whether to enable the 16K atomic write feature. Valid values:</p>
* <ul>
* <li><strong>optimized</strong>: enables the 16K atomic write feature.</li>
* <li><strong>none</strong> (default): does not enable the 16K atomic write feature.</li>
* </ul>
* <blockquote>
* <p> For more information, see <a href="https://help.aliyun.com/document_detail/2858761.html">Use the 16K atomic write feature</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>optimized</p>
*/
public Builder optimizedWrites(String optimizedWrites) {
this.putQueryParameter("OptimizedWrites", optimizedWrites);
this.optimizedWrites = optimizedWrites;
return this;
}
/**
* <p>The billing method of the instance. Valid values:</p>
* <ul>
* <li><strong>Postpaid</strong>: pay-as-you-go.</li>
* <li><strong>Prepaid</strong>: subscription.</li>
* <li><strong>Serverless</strong>: serverless. This value is not supported for instances that run MariaDB. For more information, see <a href="https://help.aliyun.com/document_detail/411291.html">Overview of serverless ApsaraDB RDS for MySQL instances</a>, <a href="https://help.aliyun.com/document_detail/604344.html">Overview of serverless ApsaraDB RDS for SQL Server instances</a>, and <a href="https://help.aliyun.com/document_detail/607742.html">Overview of serverless ApsaraDB RDS for PostgreSQL instances</a>.</li>
* </ul>
* <blockquote>
* <p>The system automatically generates a purchase order and completes the payment.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Postpaid</p>
*/
public Builder payType(String payType) {
this.putQueryParameter("PayType", payType);
this.payType = payType;
return this;
}
/**
* <p>The unit of the subscription duration. Valid values:</p>
* <ul>
* <li><strong>Year</strong></li>
* <li><strong>Month</strong></li>
* </ul>
* <blockquote>
* <p> If you set the PayType parameter to <strong>Prepaid</strong>, you must also specify this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Year</p>
*/
public Builder period(String period) {
this.putQueryParameter("Period", period);
this.period = period;
return this;
}
/**
* <p>The port. You can initialize the port when you create the instance.</p>
* <ul>
* <li>Valid values if the instance runs MySQL: 1000 to 65534</li>
* <li>Valid values if the instance runs PostgreSQL, SQL Server, or MariaDB: 1000 to 5999</li>
* </ul>
*
* <strong>example:</strong>
* <p>3306</p>
*/
public Builder port(String port) {
this.putQueryParameter("Port", port);
this.port = port;
return this;
}
/**
* <p>The private IP address of the instance. The private IP address must be within the CIDR block that is supported by the specified vSwitch. ApsaraDB RDS automatically assigns a private IP address to the instance based on the values of the <strong>VPCId</strong> and <strong>vSwitchId</strong> parameters.</p>
*
* <strong>example:</strong>
* <p>172.16.XX.XX</p>
*/
public Builder privateIpAddress(String privateIpAddress) {
this.putQueryParameter("PrivateIpAddress", privateIpAddress);
this.privateIpAddress = privateIpAddress;
return this;
}
/**
* <p>The coupon code.</p>
*
* <strong>example:</strong>
* <p>aliwood-1688-mobile-promotion</p>
*/
public Builder promotionCode(String promotionCode) {
this.putQueryParameter("PromotionCode", promotionCode);
this.promotionCode = promotionCode;
return this;
}
/**
* <p>The region ID. You can call the <a href="https://help.aliyun.com/document_detail/610399.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy*****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The Alibaba Cloud Resource Name (ARN) that is provided by your Alibaba Cloud account for Resource Access Management (RAM) users. RAM users can use the ARN to connect to ApsaraDB RDS to Key Management Service (KMS). You can call the CheckCloudResourceAuthorized operation to query the ARN.</p>
* <blockquote>
* <p> When you enable the encryption, you must specify the RoleARN.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>acs:ram::1406xxxxxx:role/aliyunrdsinstanceencryptiondefaultrole</p>
*/
public Builder roleARN(String roleARN) {
this.putQueryParameter("RoleARN", roleARN);
this.roleARN = roleARN;
return this;
}
/**
* <p>The IP address whitelist of the instance. For more information, see <a href="https://help.aliyun.com/document_detail/43185.html">Configure an IP address whitelist</a>. Separate multiple IP addresses or CIDR blocks with commas (,). You can add up to 1,000 IP addresses or CIDR blocks to the whitelist. The entries in the IP address whitelist must be in one of the following formats:</p>
* <ul>
* <li>IP addresses, such as 10.10.XX.XX.</li>
* <li>CIDR blocks, such as 10.10.XX.XX/24. In this example, 24 indicates that the prefix of each IP address in the IP address whitelist is 24 bits in length. You can replace 24 with a value within the range of 1 to 32.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10.10.XX.XX/24</p>
*/
public Builder securityIPList(String securityIPList) {
this.putQueryParameter("SecurityIPList", securityIPList);
this.securityIPList = securityIPList;
return this;
}
/**
* <p>The settings of the serverless instance. These parameters are required only when you create a serverless instance.</p>
* <blockquote>
* <p> ApsaraDB RDS for MariaDB does not support serverless instances.</p>
* </blockquote>
*/
public Builder serverlessConfig(ServerlessConfig serverlessConfig) {
String serverlessConfigShrink = shrink(serverlessConfig, "ServerlessConfig", "json");
this.putQueryParameter("ServerlessConfig", serverlessConfigShrink);
this.serverlessConfig = serverlessConfig;
return this;
}
/**
* <p>Specifies whether to enable the automatic storage expansion feature for the instance. If the instance runs MySQL or PostgreSQL, this feature is supported. Valid values:</p>
* <ul>
* <li><strong>Enable</strong></li>
* <li><strong>Disable</strong> (default)</li>
* </ul>
* <blockquote>
* <p> After the instance is created, you can call the ModifyDasInstanceConfig operation to adjust the settings. For more information, see <a href="https://help.aliyun.com/document_detail/173826.html">Configure automatic storage expansion</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Disable</p>
*/
public Builder storageAutoScale(String storageAutoScale) {
this.putQueryParameter("StorageAutoScale", storageAutoScale);
this.storageAutoScale = storageAutoScale;
return this;
}
/**
* <p>The threshold in percentage based on which automatic storage expansion is triggered. Valid values:</p>
* <ul>
* <li><strong>10</strong></li>
* <li><strong>20</strong></li>
* <li><strong>30</strong></li>
* <li><strong>40</strong></li>
* <li><strong>50</strong></li>
* </ul>
* <blockquote>
* <p> If you set the <strong>StorageAutoScale</strong> parameter to <strong>Enable</strong>, you must also specify this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder storageThreshold(Integer storageThreshold) {
this.putQueryParameter("StorageThreshold", storageThreshold);
this.storageThreshold = storageThreshold;
return this;
}
/**
* <p>The maximum storage capacity that is allowed for automatic storage expansion. The storage capacity of the instance cannot exceed the maximum storage capacity. Unit: GB.</p>
* <blockquote>
* <ul>
* <li>Valid values: an integer greater than or equal to 0.</li>
* <li>If you set <strong>StorageAutoScale</strong> to <strong>Enable</strong>, you must specify this parameter.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>2000</p>
*/
public Builder storageUpperBound(Integer storageUpperBound) {
this.putQueryParameter("StorageUpperBound", storageUpperBound);
this.storageUpperBound = storageUpperBound;
return this;
}
/**
* <p>A deprecated parameter. You do not need to specify this parameter.</p>
*
* <strong>example:</strong>
* <p>gbk</p>
*/
public Builder systemDBCharset(String systemDBCharset) {
this.putQueryParameter("SystemDBCharset", systemDBCharset);
this.systemDBCharset = systemDBCharset;
return this;
}
/**
* <p>The tags that are added to instances.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The ID of the host to which the logger instance belongs in the specified dedicated cluster.</p>
* <p>If you want to create an instance that runs RDS Enterprise Edition in a dedicated cluster, you must specify this parameter. If you do not specify this parameter, the system automatically assigns a host.</p>
* <ul>
* <li>You can call the DescribeDedicatedHosts operation to query the host in the dedicated cluster.</li>
* <li>If no hosts are created, you can call the CreateDedicatedHost operation to create a host.</li>
* </ul>
*
* <strong>example:</strong>
* <p>i-bp*****3</p>
*/
public Builder targetDedicatedHostIdForLog(String targetDedicatedHostIdForLog) {
this.putQueryParameter("TargetDedicatedHostIdForLog", targetDedicatedHostIdForLog);
this.targetDedicatedHostIdForLog = targetDedicatedHostIdForLog;
return this;
}
/**
* <p>The ID of the host to which the instance belongs in the specified dedicated cluster.</p>
* <p>If you create the instance in a dedicated cluster, you must specify this parameter. If you do not specify this parameter, the system automatically assigns a host.</p>
* <ul>
* <li>You can call the DescribeDedicatedHosts operation to query the host in the dedicated cluster.</li>
* <li>If no hosts are created, you can call the CreateDedicatedHost operation to create a host.</li>
* </ul>
*
* <strong>example:</strong>
* <p>i-bp*****1</p>
*/
public Builder targetDedicatedHostIdForMaster(String targetDedicatedHostIdForMaster) {
this.putQueryParameter("TargetDedicatedHostIdForMaster", targetDedicatedHostIdForMaster);
this.targetDedicatedHostIdForMaster = targetDedicatedHostIdForMaster;
return this;
}
/**
* <p>The ID of the host to which the secondary instance belongs in the specified dedicated cluster.</p>
* <p>If you want to create an instance that runs RDS High-availability Edition or RDS Enterprise Edition in a dedicated cluster, you must specify this parameter. If you do not specify this parameter, the system automatically assigns a host.</p>
* <ul>
* <li>You can call the DescribeDedicatedHosts operation to query the host in the dedicated cluster.</li>
* <li>If no hosts are created, you can call the CreateDedicatedHost operation to create a host.</li>
* </ul>
*
* <strong>example:</strong>
* <p>i-bp*****2</p>
*/
public Builder targetDedicatedHostIdForSlave(String targetDedicatedHostIdForSlave) {
this.putQueryParameter("TargetDedicatedHostIdForSlave", targetDedicatedHostIdForSlave);
this.targetDedicatedHostIdForSlave = targetDedicatedHostIdForSlave;
return this;
}
/**
* <p>The minor engine version of the instance. This parameter is required only when you create an instance that runs MySQL or PostgreSQL. The value format varies based on the database engine of the instance.</p>
* <ul>
* <li><p>If you create an instance that runs MySQL, the value is in the following format: <code><RDS edition>_<Minor engine version></code>. Examples: <code>rds_20200229</code>, <code>xcluster_20200229</code>, and <code>xcluster80_20200229</code>.</p>
* <ul>
* <li>rds: The instance runs RDS Basic Edition or RDS High-availability Edition.</li>
* <li>xcluster: The instance runs MySQL 5.7 on RDS Enterprise Edition.</li>
* <li>xcluster80: The instance runs MySQL 8.0 on RDS Enterprise Edition.</li>
* </ul>
* <blockquote>
* <p>You can call the DescribeDBMiniEngineVersions operation to query the minor engine version. For more information about the differences between minor engine versions of AliSQL, see <a href="https://help.aliyun.com/document_detail/96060.html">Release notes</a>.</p>
* </blockquote>
* </li>
* <li><p>If you create an instance that runs PostgreSQL, the value is in the following format: <code>rds_postgres_<Major engine version>00_<Minor engine version></code>. Example: <code>rds_postgres_1400_20220830</code>.</p>
* <ul>
* <li>1400: The major engine version is PostgreSQL 14.</li>
* <li>20220830: the AliPG version. You can call the DescribeDBMiniEngineVersions operation to query the AliPG version. For more information about minor engine versions, see <a href="https://help.aliyun.com/document_detail/126002.html">Release notes for AliPG</a>.</li>
* </ul>
* <blockquote>
* <p>If you configure the <strong>BabelfishConfig</strong> parameter for your instance that runs PostgreSQL and set the babelfishEnabled field to true, the value of this parameter is in the following format: <code>rds_postgres_Major engine version00_AliPG version_babelfish</code>.</p>
* </blockquote>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>rds_20200229</p>
*/
public Builder targetMinorVersion(String targetMinorVersion) {
this.putQueryParameter("TargetMinorVersion", targetMinorVersion);
this.targetMinorVersion = targetMinorVersion;
return this;
}
/**
* <p>The subscription duration of the instance. Valid values:</p>
* <ul>
* <li>If you set the <strong>Period</strong> parameter to <strong>Year</strong>, the value of the <strong>UsedTime</strong> parameter ranges from <strong>1 to 5</strong>.</li>
* <li>If you set the <strong>Period</strong> parameter to <strong>Month</strong>, the value of the <strong>UsedTime</strong> parameter ranges from <strong>1 to 11</strong>.</li>
* </ul>
* <blockquote>
* <p> If you set the PayType parameter to <strong>Prepaid</strong>, you must also specify this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder usedTime(String usedTime) {
this.putQueryParameter("UsedTime", usedTime);
this.usedTime = usedTime;
return this;
}
/**
* <p>The ID of the full backup file. You can call the ListUserBackupFiles operation to query the ID of the full backup file. If you want to create an instance by using the data of a backup file, you must specify this parameter.</p>
* <p>This parameter is supported only when the following requirements are met:</p>
* <ul>
* <li>The <strong>PayType</strong> parameter is set to <strong>Postpaid</strong>.</li>
* <li>The <strong>Engine</strong> parameter is set to <strong>MySQL</strong>.</li>
* <li>The <strong>EngineVersion</strong> parameter is set to <strong>5.7</strong>.</li>
* <li>The <strong>Category</strong> parameter is set to <strong>Basic</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>67798*****</p>
*/
public Builder userBackupId(String userBackupId) {
this.putQueryParameter("UserBackupId", userBackupId);
this.userBackupId = userBackupId;
return this;
}
/**
* <p>The ID of the VPC to which the instance belongs.</p>
* <blockquote>
* <p>This parameter is available when you set the <strong>InstanceNetworkType</strong> parameter to <strong>VPC</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vpc-*****</p>
*/
public Builder VPCId(String VPCId) {
this.putQueryParameter("VPCId", VPCId);
this.VPCId = VPCId;
return this;
}
/**
* <p>The vSwitch ID.</p>
* <ul>
* <li><strong>Relations with zones</strong>: Specify the vSwitch ID based on the zones in which the vSwitch belongs to. If you specify two vSwitch IDs, make sure that the vSwitch IDs match the zone IDs specified by the ZoneId and ZoneIdSlave1 parameters.</li>
* <li><strong>Limits on the network type</strong>: Set <strong>InstanceNetworkType</strong> to <strong>VPC</strong>.</li>
* <li><strong>Limits on multiple vSwitch IDs</strong>: If you set <strong>ZoneSlaveId1</strong> to a value that is not <strong>Auto</strong>, you must specify the IDs of two vSwitches for this parameter and separate the IDs with a comma (,).</li>
* <li><strong>Limits on characters</strong>: The value cannot contain <code>spaces</code> or the following characters: <code>!</code> <code>#</code> <code>¥</code> <code>&</code> <code>%</code></li>
* </ul>
*
* <strong>example:</strong>
* <p>vsw-*****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The entries in the whitelist. If you enter multiple IP addresses or CIDR blocks, you must separate the IP addresses or CIDR blocks with commas (,). Do not add spaces preceding or following the commas. Example: <code>192.168.0.1,172.16.213.9</code>.</p>
*
* <strong>example:</strong>
* <p>192.XXX.XX.1,172.XXX.XX.9</p>
*/
public Builder whitelistTemplateList(String whitelistTemplateList) {
this.putQueryParameter("WhitelistTemplateList", whitelistTemplateList);
this.whitelistTemplateList = whitelistTemplateList;
return this;
}
/**
* <p>The zone ID of the primary instance.</p>
* <ul>
* <li>If you specify a virtual private cloud (VPC) and a vSwitch, you must specify the ID of the zone to which the specified vSwitch belongs. Otherwise, the instance cannot be created.</li>
* <li>If the instance runs RDS High-availability Edition, you must specify the <strong>ZoneIdSlave1</strong> parameter. The ZoneIdSlave1 parameter specifies whether to use the single-zone deployment method or the multi-zone deployment method.</li>
* <li>If the instance runs RDS Enterprise Edition, you must specify the <strong>ZoneIdSlave1</strong> and <strong>ZoneIdSlave2</strong> parameters. The ZoneIdSlave1 and ZoneIdSlave2 parameters specify whether to use the single-zone deployment method or the multi-zone deployment method.</li>
* <li>If the instance runs MySQL on RDS Cluster Edition, you must specify the <strong>ZoneIdSlave1</strong> parameter for the RDS cluster that has two nodes and the <strong>ZoneIdSlave1</strong> and <strong>ZoneIdSlave2</strong> parameters for the RDS cluster that has three nodes.</li>
* </ul>
*
* <strong>example:</strong>
* <p>cn-hangzhou-b</p>
*/
public Builder zoneId(String zoneId) {
this.putQueryParameter("ZoneId", zoneId);
this.zoneId = zoneId;
return this;
}
/**
* <p>The zone ID of the secondary instance.</p>
* <ul>
* <li>If you set this parameter to <strong>Auto</strong>, the multi-zone deployment method is used and the zone of the secondary instance is automatically configured.</li>
* <li>If you set this parameter to the same value as the <strong>ZoneId</strong> parameter, the single-zone deployment method is used.</li>
* <li>If you set this parameter to a value that is different from the value of the <strong>ZoneId</strong> parameter, the multiple-zone deployment method is used.</li>
* </ul>
*
* <strong>example:</strong>
* <p>cn-hangzhou-c</p>
*/
public Builder zoneIdSlave1(String zoneIdSlave1) {
this.putQueryParameter("ZoneIdSlave1", zoneIdSlave1);
this.zoneIdSlave1 = zoneIdSlave1;
return this;
}
/**
* <p>The zone ID of the other secondary node. When you create an ApsaraDB RDS for MySQL cluster, you can create one to two secondary nodes for the cluster. This parameter applies if you create a cluster that contains two secondary nodes.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-d</p>
*/
public Builder zoneIdSlave2(String zoneIdSlave2) {
this.putQueryParameter("ZoneIdSlave2", zoneIdSlave2);
this.zoneIdSlave2 = zoneIdSlave2;
return this;
}
@Override
public CreateDBInstanceRequest build() {
return new CreateDBInstanceRequest(this);
}
}
/**
*
* {@link CreateDBInstanceRequest} extends {@link TeaModel}
*
* <p>CreateDBInstanceRequest</p>
*/
public static class ServerlessConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AutoPause")
private Boolean autoPause;
@com.aliyun.core.annotation.NameInMap("MaxCapacity")
private Double maxCapacity;
@com.aliyun.core.annotation.NameInMap("MinCapacity")
private Double minCapacity;
@com.aliyun.core.annotation.NameInMap("SwitchForce")
private Boolean switchForce;
private ServerlessConfig(Builder builder) {
this.autoPause = builder.autoPause;
this.maxCapacity = builder.maxCapacity;
this.minCapacity = builder.minCapacity;
this.switchForce = builder.switchForce;
}
public static Builder builder() {
return new Builder();
}
public static ServerlessConfig create() {
return builder().build();
}
/**
* @return autoPause
*/
public Boolean getAutoPause() {
return this.autoPause;
}
/**
* @return maxCapacity
*/
public Double getMaxCapacity() {
return this.maxCapacity;
}
/**
* @return minCapacity
*/
public Double getMinCapacity() {
return this.minCapacity;
}
/**
* @return switchForce
*/
public Boolean getSwitchForce() {
return this.switchForce;
}
public static final class Builder {
private Boolean autoPause;
private Double maxCapacity;
private Double minCapacity;
private Boolean switchForce;
private Builder() {
}
private Builder(ServerlessConfig model) {
this.autoPause = model.autoPause;
this.maxCapacity = model.maxCapacity;
this.minCapacity = model.minCapacity;
this.switchForce = model.switchForce;
}
/**
* <p>Specifies whether to enable the automatic startup and stop feature for the serverless instance. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong> (default)</li>
* </ul>
* <blockquote>
* <p> This parameter is required only for serverless instances that run MySQL and PostgreSQL. After the automatic start and stop feature is enabled, if no connections to the instance are established within 10 minutes, the instance is suspended. After a connection to the instance is established, the instance is resumed.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder autoPause(Boolean autoPause) {
this.autoPause = autoPause;
return this;
}
/**
* <p>The maximum number of RDS Capacity Units (RCUs). Valid values:</p>
* <ul>
* <li>Serverless ApsaraDB RDS for MySQL instances: <strong>1 to 32</strong></li>
* <li>Serverless ApsaraDB RDS for SQL Server instances: <strong>2 to 16</strong></li>
* <li>Serverless ApsaraDB RDS for PostgreSQL instances: <strong>1 to 14</strong></li>
* </ul>
* <blockquote>
* <p> The value of this parameter must be greater than or equal to the value of the <strong>MinCapacity</strong> parameter and can be set only to an <strong>integer</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>8</p>
*/
public Builder maxCapacity(Double maxCapacity) {
this.maxCapacity = maxCapacity;
return this;
}
/**
* <p>The minimum number of RCUs. Valid values:</p>
* <ul>
* <li>Serverless ApsaraDB RDS for MySQL instances: <strong>0.5 to 32</strong>.</li>
* <li>Serverless ApsaraDB RDS for SQL Server instances: <strong>2 to 16</strong>. Only integers are supported.</li>
* <li>Serverless ApsaraDB RDS for PostgreSQL instances: <strong>0.5 to 14</strong></li>
* </ul>
* <blockquote>
* <p> The value of this parameter must be less than or equal to the value of the <strong>MaxCapacity</strong> parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0.5</p>
*/
public Builder minCapacity(Double minCapacity) {
this.minCapacity = minCapacity;
return this;
}
/**
* <p>Specifies whether to enable the forced scaling feature for the serverless instance. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong> (default)</li>
* </ul>
* <blockquote>
* <ul>
* <li>This parameter is required only for serverless instances that run MySQL and PostgreSQL. If you set this parameter to true, a service interruption that lasts approximately 30 to 120 seconds occurs during forced scaling. Process with caution.</li>
* <li>The RCU scaling for a serverless instance immediately takes effect. In some cases, such as the execution of large transactions, the scaling does not immediately take effect. In this case, you can enable this feature to forcefully scale the RCUs of the instance.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder switchForce(Boolean switchForce) {
this.switchForce = switchForce;
return this;
}
public ServerlessConfig build() {
return new ServerlessConfig(this);
}
}
}
/**
*
* {@link CreateDBInstanceRequest} extends {@link TeaModel}
*
* <p>CreateDBInstanceRequest</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key. You can use this parameter to add tags to the instance.</p>
* <ul>
* <li>If the specified tag key is an existing key, the system directly adds the tag key to the instance. You can call the ListTagResources to query the existing tag.</li>
* <li>If the specified tag key does not exist, the system creates the tag key and adds the tag key to the instance.</li>
* <li>The value cannot be an empty string.</li>
* <li>This parameter must be used together with the <strong>Tag.Value</strong> parameter.</li>
* </ul>
*
* <strong>example:</strong>
* <p>testkey1</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value. You can use this parameter to add tags to the instance.</p>
* <ul>
* <li>If the specified tag value is found in the specified tag key, the system directly adds the tag value to the instance. You can call the ListTagResources to query the existing tag.</li>
* <li>If the specified tag value is not found in the specified tag key, the system creates the tag value and adds the tag value to the instance.</li>
* <li>This parameter must be used together with the <strong>Tag.Key</strong> parameter.</li>
* </ul>
*
* <strong>example:</strong>
* <p>testvalue1</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBInstanceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBInstanceResponse} extends {@link TeaModel}
*
* <p>CreateDBInstanceResponse</p>
*/
public class CreateDBInstanceResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateDBInstanceResponseBody body;
private CreateDBInstanceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateDBInstanceResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateDBInstanceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateDBInstanceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateDBInstanceResponseBody body);
@Override
CreateDBInstanceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateDBInstanceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateDBInstanceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateDBInstanceResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateDBInstanceResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateDBInstanceResponse build() {
return new CreateDBInstanceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBInstanceResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBInstanceResponseBody} extends {@link TeaModel}
*
* <p>CreateDBInstanceResponseBody</p>
*/
public class CreateDBInstanceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConnectionString")
private String connectionString;
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.NameInMap("DryRunResult")
private Boolean dryRunResult;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("OrderId")
private String orderId;
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TagResult")
private Boolean tagResult;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
private CreateDBInstanceResponseBody(Builder builder) {
this.connectionString = builder.connectionString;
this.DBInstanceId = builder.DBInstanceId;
this.dryRun = builder.dryRun;
this.dryRunResult = builder.dryRunResult;
this.message = builder.message;
this.orderId = builder.orderId;
this.port = builder.port;
this.requestId = builder.requestId;
this.tagResult = builder.tagResult;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDBInstanceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return connectionString
*/
public String getConnectionString() {
return this.connectionString;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return dryRunResult
*/
public Boolean getDryRunResult() {
return this.dryRunResult;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return orderId
*/
public String getOrderId() {
return this.orderId;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return tagResult
*/
public Boolean getTagResult() {
return this.tagResult;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
public static final class Builder {
private String connectionString;
private String DBInstanceId;
private Boolean dryRun;
private Boolean dryRunResult;
private String message;
private String orderId;
private String port;
private String requestId;
private Boolean tagResult;
private String taskId;
private Builder() {
}
private Builder(CreateDBInstanceResponseBody model) {
this.connectionString = model.connectionString;
this.DBInstanceId = model.DBInstanceId;
this.dryRun = model.dryRun;
this.dryRunResult = model.dryRunResult;
this.message = model.message;
this.orderId = model.orderId;
this.port = model.port;
this.requestId = model.requestId;
this.tagResult = model.tagResult;
this.taskId = model.taskId;
}
/**
* <p>The internal endpoint of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5*****.mysql.rds.aliyuncs.com</p>
*/
public Builder connectionString(String connectionString) {
this.connectionString = connectionString;
return this;
}
/**
* <p>The instance ID. If the value of the <strong>Amount</strong> parameter is greater than <strong>1</strong>, more than one instance ID is returned. The number of instance IDs that are returned is the same as the value of the Amount parameter. The returned instance IDs are separated by commas (,).</p>
* <p>For example, if the value of the <strong>Amount</strong> parameter is <strong>3</strong>, three instance IDs are returned. Examples: <code>rm-uf6wjk5*****1,rm-uf6wjk5*****2,rm-uf6wjk5*****3</code></p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5*****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>Indicates that the system performed a dry run.</p>
* <ul>
* <li>The value is fixed as <strong>true</strong>.</li>
* <li>If the system does not perform a dry run, this parameter is not returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder dryRun(Boolean dryRun) {
this.dryRun = dryRun;
return this;
}
/**
* <p>Indicates whether the request passed the dry run. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
* <blockquote>
* <ul>
* <li>If the system does not perform a dry run, this parameter is not returned.</li>
* <li>If the request failed the dry run, an error message is returned.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder dryRunResult(Boolean dryRunResult) {
this.dryRunResult = dryRunResult;
return this;
}
/**
* <p>The message that indicates whether multiple instances are created.</p>
* <blockquote>
* <p>The parameter is returned only when the value of the <strong>Amount</strong> parameter is greater than 1.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Batch Create DBInstance Task Is In Process.</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The order ID.</p>
*
* <strong>example:</strong>
* <p>1007893702*****</p>
*/
public Builder orderId(String orderId) {
this.orderId = orderId;
return this;
}
/**
* <p>The internal IP address and port number that are used to connect to the instance.</p>
*
* <strong>example:</strong>
* <p>3306</p>
*/
public Builder port(String port) {
this.port = port;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>1E43AAE0-BEE8-43DA-860D-EAF2AA0724DC</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the specified tag is added to the instance. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The specified tag is added to the instance.</li>
* <li><strong>false</strong>: The specified tag fails to be added to the instance.</li>
* </ul>
* <blockquote>
* <p>If you do not add a tag to the instance, this parameter is not returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder tagResult(Boolean tagResult) {
this.tagResult = tagResult;
return this;
}
/**
* <p>The ID of the task that is run to create multiple instances.</p>
* <ul>
* <li>This parameter is returned only when the value of <strong>Amount</strong> is greater than 1.</li>
* <li>The <strong>TaskID</strong> parameter cannot be used to query a task.</li>
* </ul>
*
* <strong>example:</strong>
* <p>s2365879-a9d0-55af-fgae-f2*****</p>
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
public CreateDBInstanceResponseBody build() {
return new CreateDBInstanceResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBInstanceSecurityGroupRuleRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBInstanceSecurityGroupRuleRequest} extends {@link RequestModel}
*
* <p>CreateDBInstanceSecurityGroupRuleRequest</p>
*/
public class CreateDBInstanceSecurityGroupRuleRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IpProtocol")
private String ipProtocol;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private String ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PortRange")
@com.aliyun.core.annotation.Validation(required = true)
private String portRange;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceCidrIp")
private String sourceCidrIp;
private CreateDBInstanceSecurityGroupRuleRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.description = builder.description;
this.ipProtocol = builder.ipProtocol;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.portRange = builder.portRange;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.sourceCidrIp = builder.sourceCidrIp;
}
public static Builder builder() {
return new Builder();
}
public static CreateDBInstanceSecurityGroupRuleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return ipProtocol
*/
public String getIpProtocol() {
return this.ipProtocol;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public String getOwnerId() {
return this.ownerId;
}
/**
* @return portRange
*/
public String getPortRange() {
return this.portRange;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sourceCidrIp
*/
public String getSourceCidrIp() {
return this.sourceCidrIp;
}
public static final class Builder extends Request.Builder<CreateDBInstanceSecurityGroupRuleRequest, Builder> {
private String DBInstanceId;
private String description;
private String ipProtocol;
private String ownerAccount;
private String ownerId;
private String portRange;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String sourceCidrIp;
private Builder() {
super();
}
private Builder(CreateDBInstanceSecurityGroupRuleRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.description = request.description;
this.ipProtocol = request.ipProtocol;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.portRange = request.portRange;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.sourceCidrIp = request.sourceCidrIp;
}
/**
* <p>The ID of the instance. You can call the <a href="https://help.aliyun.com/document_detail/2628785.html">DescribeDBInstances</a> operation to query the IDs of instances.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-bp15i4hn07r******</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The description of the security group rule.</p>
*
* <strong>example:</strong>
* <p>zht_test</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>The type of the transport layer protocol. Valid values:</p>
* <ul>
* <li>TCP</li>
* <li>UDP</li>
* </ul>
*
* <strong>example:</strong>
* <p>TCP</p>
*/
public Builder ipProtocol(String ipProtocol) {
this.putQueryParameter("IpProtocol", ipProtocol);
this.ipProtocol = ipProtocol;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(String ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The range of destination ports over which TCP and UDP traffic is allowed in the security group rule.</p>
* <p>Valid values: 1 to 65535. Separate the start port number and the end port number with a forward slash (/). Example: 1/200.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1/200</p>
*/
public Builder portRange(String portRange) {
this.putQueryParameter("PortRange", portRange);
this.portRange = portRange;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The range of source IP addresses. CIDR blocks and IPv4 addresses are supported.</p>
*
* <strong>example:</strong>
* <p>192.XX.XX.100</p>
*/
public Builder sourceCidrIp(String sourceCidrIp) {
this.putQueryParameter("SourceCidrIp", sourceCidrIp);
this.sourceCidrIp = sourceCidrIp;
return this;
}
@Override
public CreateDBInstanceSecurityGroupRuleRequest build() {
return new CreateDBInstanceSecurityGroupRuleRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBInstanceSecurityGroupRuleResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBInstanceSecurityGroupRuleResponse} extends {@link TeaModel}
*
* <p>CreateDBInstanceSecurityGroupRuleResponse</p>
*/
public class CreateDBInstanceSecurityGroupRuleResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateDBInstanceSecurityGroupRuleResponseBody body;
private CreateDBInstanceSecurityGroupRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateDBInstanceSecurityGroupRuleResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateDBInstanceSecurityGroupRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateDBInstanceSecurityGroupRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateDBInstanceSecurityGroupRuleResponseBody body);
@Override
CreateDBInstanceSecurityGroupRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateDBInstanceSecurityGroupRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateDBInstanceSecurityGroupRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateDBInstanceSecurityGroupRuleResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateDBInstanceSecurityGroupRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateDBInstanceSecurityGroupRuleResponse build() {
return new CreateDBInstanceSecurityGroupRuleResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBInstanceSecurityGroupRuleResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBInstanceSecurityGroupRuleResponseBody} extends {@link TeaModel}
*
* <p>CreateDBInstanceSecurityGroupRuleResponseBody</p>
*/
public class CreateDBInstanceSecurityGroupRuleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateDBInstanceSecurityGroupRuleResponseBody(Builder builder) {
this.code = builder.code;
this.message = builder.message;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDBInstanceSecurityGroupRuleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String code;
private String message;
private String requestId;
private Builder() {
}
private Builder(CreateDBInstanceSecurityGroupRuleResponseBody model) {
this.code = model.code;
this.message = model.message;
this.requestId = model.requestId;
}
/**
* <p>The status code returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The information about the status code.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>07F6177E-6DE4-408A-BB4F-0723301340F4</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateDBInstanceSecurityGroupRuleResponseBody build() {
return new CreateDBInstanceSecurityGroupRuleResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBNodesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBNodesRequest} extends {@link RequestModel}
*
* <p>CreateDBNodesRequest</p>
*/
public class CreateDBNodesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBNode")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<DBNode> DBNode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private CreateDBNodesRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.DBInstanceId = builder.DBInstanceId;
this.DBNode = builder.DBNode;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDBNodesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBNode
*/
public java.util.List<DBNode> getDBNode() {
return this.DBNode;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<CreateDBNodesRequest, Builder> {
private String clientToken;
private String DBInstanceId;
private java.util.List<DBNode> DBNode;
private String ownerAccount;
private Long ownerId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(CreateDBNodesRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
this.DBNode = request.DBNode;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests.</p>
* <p>The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCz****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The instance ID You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-2ze450g4ctg6t****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The details of the node.</p>
* <p>This parameter is required.</p>
*/
public Builder DBNode(java.util.List<DBNode> DBNode) {
String DBNodeShrink = shrink(DBNode, "DBNode", "json");
this.putQueryParameter("DBNode", DBNodeShrink);
this.DBNode = DBNode;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The resource group ID. You can call the DescribeDBInstanceAttribute operation to query the resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy*****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public CreateDBNodesRequest build() {
return new CreateDBNodesRequest(this);
}
}
/**
*
* {@link CreateDBNodesRequest} extends {@link TeaModel}
*
* <p>CreateDBNodesRequest</p>
*/
public static class DBNode extends TeaModel {
@com.aliyun.core.annotation.NameInMap("classCode")
@com.aliyun.core.annotation.Validation(required = true)
private String classCode;
@com.aliyun.core.annotation.NameInMap("vswitchId")
private String vswitchId;
@com.aliyun.core.annotation.NameInMap("zoneId")
@com.aliyun.core.annotation.Validation(required = true)
private String zoneId;
private DBNode(Builder builder) {
this.classCode = builder.classCode;
this.vswitchId = builder.vswitchId;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static DBNode create() {
return builder().build();
}
/**
* @return classCode
*/
public String getClassCode() {
return this.classCode;
}
/**
* @return vswitchId
*/
public String getVswitchId() {
return this.vswitchId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private String classCode;
private String vswitchId;
private String zoneId;
private Builder() {
}
private Builder(DBNode model) {
this.classCode = model.classCode;
this.vswitchId = model.vswitchId;
this.zoneId = model.zoneId;
}
/**
* <p>The specification information of the node.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>mysql.n2.medium.xc</p>
*/
public Builder classCode(String classCode) {
this.classCode = classCode;
return this;
}
/**
* <p>The vSwitch ID of the node.</p>
*
* <strong>example:</strong>
* <p>vsw-bp1sxxsodv28ey5dl****</p>
*/
public Builder vswitchId(String vswitchId) {
this.vswitchId = vswitchId;
return this;
}
/**
* <p>The ID of the zone in which the node is deployed.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-zhangjiakou-a</p>
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public DBNode build() {
return new DBNode(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBNodesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBNodesResponse} extends {@link TeaModel}
*
* <p>CreateDBNodesResponse</p>
*/
public class CreateDBNodesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateDBNodesResponseBody body;
private CreateDBNodesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateDBNodesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateDBNodesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateDBNodesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateDBNodesResponseBody body);
@Override
CreateDBNodesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateDBNodesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateDBNodesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateDBNodesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateDBNodesResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateDBNodesResponse build() {
return new CreateDBNodesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBNodesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBNodesResponseBody} extends {@link TeaModel}
*
* <p>CreateDBNodesResponseBody</p>
*/
public class CreateDBNodesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("NodeIds")
private String nodeIds;
@com.aliyun.core.annotation.NameInMap("OrderId")
private Long orderId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateDBNodesResponseBody(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.nodeIds = builder.nodeIds;
this.orderId = builder.orderId;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDBNodesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return nodeIds
*/
public String getNodeIds() {
return this.nodeIds;
}
/**
* @return orderId
*/
public Long getOrderId() {
return this.orderId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String DBInstanceId;
private String nodeIds;
private Long orderId;
private String requestId;
private Builder() {
}
private Builder(CreateDBNodesResponseBody model) {
this.DBInstanceId = model.DBInstanceId;
this.nodeIds = model.nodeIds;
this.orderId = model.orderId;
this.requestId = model.requestId;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-2ze450g4ctg6t****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The ID of the created node. The value is a string. Multiple values are separated by commas (<code>,</code>).</p>
*
* <strong>example:</strong>
* <p>rn-abcd2*****</p>
*/
public Builder nodeIds(String nodeIds) {
this.nodeIds = nodeIds;
return this;
}
/**
* <p>The ID of the order.</p>
*
* <strong>example:</strong>
* <p>2133400000*****</p>
*/
public Builder orderId(Long orderId) {
this.orderId = orderId;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>7A41C147-C8D0-4DAE-A1A2-17EBCD60DFA1</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateDBNodesResponseBody build() {
return new CreateDBNodesResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBProxyEndpointAddressRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBProxyEndpointAddressRequest} extends {@link RequestModel}
*
* <p>CreateDBProxyEndpointAddressRequest</p>
*/
public class CreateDBProxyEndpointAddressRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ConnectionStringPrefix")
@com.aliyun.core.annotation.Validation(required = true)
private String connectionStringPrefix;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBProxyConnectStringNetType")
@com.aliyun.core.annotation.Validation(required = true)
private String DBProxyConnectStringNetType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBProxyEndpointId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBProxyEndpointId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBProxyEngineType")
private String DBProxyEngineType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBProxyNewConnectStringPort")
private String DBProxyNewConnectStringPort;
@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("VPCId")
private String VPCId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
private CreateDBProxyEndpointAddressRequest(Builder builder) {
super(builder);
this.connectionStringPrefix = builder.connectionStringPrefix;
this.DBInstanceId = builder.DBInstanceId;
this.DBProxyConnectStringNetType = builder.DBProxyConnectStringNetType;
this.DBProxyEndpointId = builder.DBProxyEndpointId;
this.DBProxyEngineType = builder.DBProxyEngineType;
this.DBProxyNewConnectStringPort = builder.DBProxyNewConnectStringPort;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.VPCId = builder.VPCId;
this.vSwitchId = builder.vSwitchId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDBProxyEndpointAddressRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return connectionStringPrefix
*/
public String getConnectionStringPrefix() {
return this.connectionStringPrefix;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBProxyConnectStringNetType
*/
public String getDBProxyConnectStringNetType() {
return this.DBProxyConnectStringNetType;
}
/**
* @return DBProxyEndpointId
*/
public String getDBProxyEndpointId() {
return this.DBProxyEndpointId;
}
/**
* @return DBProxyEngineType
*/
public String getDBProxyEngineType() {
return this.DBProxyEngineType;
}
/**
* @return DBProxyNewConnectStringPort
*/
public String getDBProxyNewConnectStringPort() {
return this.DBProxyNewConnectStringPort;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return VPCId
*/
public String getVPCId() {
return this.VPCId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
public static final class Builder extends Request.Builder<CreateDBProxyEndpointAddressRequest, Builder> {
private String connectionStringPrefix;
private String DBInstanceId;
private String DBProxyConnectStringNetType;
private String DBProxyEndpointId;
private String DBProxyEngineType;
private String DBProxyNewConnectStringPort;
private String regionId;
private String resourceGroupId;
private String VPCId;
private String vSwitchId;
private Builder() {
super();
}
private Builder(CreateDBProxyEndpointAddressRequest request) {
super(request);
this.connectionStringPrefix = request.connectionStringPrefix;
this.DBInstanceId = request.DBInstanceId;
this.DBProxyConnectStringNetType = request.DBProxyConnectStringNetType;
this.DBProxyEndpointId = request.DBProxyEndpointId;
this.DBProxyEngineType = request.DBProxyEngineType;
this.DBProxyNewConnectStringPort = request.DBProxyNewConnectStringPort;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.VPCId = request.VPCId;
this.vSwitchId = request.vSwitchId;
}
/**
* <p>The prefix of the proxy endpoint Enter a custom prefix.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test1234</p>
*/
public Builder connectionStringPrefix(String connectionStringPrefix) {
this.putQueryParameter("ConnectionStringPrefix", connectionStringPrefix);
this.connectionStringPrefix = connectionStringPrefix;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-t4n3axxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The network type of the proxy endpoint. Valid values:</p>
* <ul>
* <li><strong>Public</strong>: Internet</li>
* <li><strong>VPC</strong>: Virtual Private Cloud (VPC)</li>
* <li><strong>Classic</strong>: classic network</li>
* </ul>
* <p>Default value: <strong>Classic</strong></p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Public</p>
*/
public Builder DBProxyConnectStringNetType(String DBProxyConnectStringNetType) {
this.putQueryParameter("DBProxyConnectStringNetType", DBProxyConnectStringNetType);
this.DBProxyConnectStringNetType = DBProxyConnectStringNetType;
return this;
}
/**
* <p>The proxy endpoint ID. You can call the DescribeDBProxyEndpoint operation to query the proxy endpoint ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ta9um4xxxxx</p>
*/
public Builder DBProxyEndpointId(String DBProxyEndpointId) {
this.putQueryParameter("DBProxyEndpointId", DBProxyEndpointId);
this.DBProxyEndpointId = DBProxyEndpointId;
return this;
}
/**
* <p>A reserved parameter. You do not need to specify this parameter.</p>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder DBProxyEngineType(String DBProxyEngineType) {
this.putQueryParameter("DBProxyEngineType", DBProxyEngineType);
this.DBProxyEngineType = DBProxyEngineType;
return this;
}
/**
* <p>The port number that is associated with the proxy endpoint.</p>
* <ul>
* <li>If the instance runs MySQL, the default value is <strong>3306</strong>.</li>
* <li>If the instance runs PostgreSQL, the default value is <strong>5432</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>3306</p>
*/
public Builder DBProxyNewConnectStringPort(String DBProxyNewConnectStringPort) {
this.putQueryParameter("DBProxyNewConnectStringPort", DBProxyNewConnectStringPort);
this.DBProxyNewConnectStringPort = DBProxyNewConnectStringPort;
return this;
}
/**
* <p>The region ID. You can call the DescribeRegions operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy*****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The ID of the VPC to which the proxy endpoint belongs. You can call the DescribeDBInstanceAttribute operation to query the information.</p>
* <blockquote>
* <p> This parameter must be specified when <strong>DBProxyConnectStringNetType</strong> is set to <strong>VPC</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vpc-bpxxxxxx</p>
*/
public Builder VPCId(String VPCId) {
this.putQueryParameter("VPCId", VPCId);
this.VPCId = VPCId;
return this;
}
/**
* <p>The ID of the vSwitch that is associated with the specified VPC. You can call the DescribeDBInstanceAttribute operation to query the vSwitch ID.</p>
* <blockquote>
* <p> This parameter must be specified when <strong>DBProxyConnectStringNetType</strong> is set to <strong>VPC</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vsw-bpxxxxxx</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
@Override
public CreateDBProxyEndpointAddressRequest build() {
return new CreateDBProxyEndpointAddressRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBProxyEndpointAddressResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBProxyEndpointAddressResponse} extends {@link TeaModel}
*
* <p>CreateDBProxyEndpointAddressResponse</p>
*/
public class CreateDBProxyEndpointAddressResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateDBProxyEndpointAddressResponseBody body;
private CreateDBProxyEndpointAddressResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateDBProxyEndpointAddressResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateDBProxyEndpointAddressResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateDBProxyEndpointAddressResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateDBProxyEndpointAddressResponseBody body);
@Override
CreateDBProxyEndpointAddressResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateDBProxyEndpointAddressResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateDBProxyEndpointAddressResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateDBProxyEndpointAddressResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateDBProxyEndpointAddressResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateDBProxyEndpointAddressResponse build() {
return new CreateDBProxyEndpointAddressResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDBProxyEndpointAddressResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBProxyEndpointAddressResponseBody} extends {@link TeaModel}
*
* <p>CreateDBProxyEndpointAddressResponseBody</p>
*/
public class CreateDBProxyEndpointAddressResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateDBProxyEndpointAddressResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDBProxyEndpointAddressResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(CreateDBProxyEndpointAddressResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>F2911788-25E8-42E5-A3A3-1B38D263F01E</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateDBProxyEndpointAddressResponseBody build() {
return new CreateDBProxyEndpointAddressResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDatabaseRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDatabaseRequest} extends {@link RequestModel}
*
* <p>CreateDatabaseRequest</p>
*/
public class CreateDatabaseRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CharacterSetName")
@com.aliyun.core.annotation.Validation(required = true)
private String characterSetName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBDescription")
private String DBDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBName")
@com.aliyun.core.annotation.Validation(required = true)
private String DBName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private CreateDatabaseRequest(Builder builder) {
super(builder);
this.characterSetName = builder.characterSetName;
this.DBDescription = builder.DBDescription;
this.DBInstanceId = builder.DBInstanceId;
this.DBName = builder.DBName;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDatabaseRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return characterSetName
*/
public String getCharacterSetName() {
return this.characterSetName;
}
/**
* @return DBDescription
*/
public String getDBDescription() {
return this.DBDescription;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBName
*/
public String getDBName() {
return this.DBName;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<CreateDatabaseRequest, Builder> {
private String characterSetName;
private String DBDescription;
private String DBInstanceId;
private String DBName;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(CreateDatabaseRequest request) {
super(request);
this.characterSetName = request.characterSetName;
this.DBDescription = request.DBDescription;
this.DBInstanceId = request.DBInstanceId;
this.DBName = request.DBName;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The character set.</p>
* <ul>
* <li><p>Valid values for MySQL or MariaDB databases: <strong>utf8, gbk, latin1, and utf8mb4</strong></p>
* </li>
* <li><p>Valid values for SQL Server databases: <strong>Chinese_PRC_CI_AS, Chinese_PRC_CS_AS, SQL_Latin1_General_CP1_CI_AS, SQL_Latin1_General_CP1_CS_AS, and Chinese_PRC_BIN</strong></p>
* </li>
* <li><p>Valid values for PostgreSQL databases: a value in the <code>Character set,<Collate>,<Ctype></code> format. Example: <code>UTF8,C,en_US.utf8</code>.</p>
* <ul>
* <li>Valid values for the character set: <strong>KOI8U, UTF8, WIN866, WIN874, WIN1250, WIN1251, WIN1252, WIN1253, WIN1254, WIN1255, WIN1256, WIN1257, WIN1258, EUC_CN, EUC_KR, EUC_TW, EUC_JP, EUC_JIS_2004, KOI8R, MULE_INTERNAL, LATIN1, LATIN2, LATIN3, LATIN4, LATIN5, LATIN6, LATIN7, LATIN8, LATIN9, LATIN10, ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8, and SQL_ASCII</strong></li>
* <li>Valid values for the <strong>Collate</strong> field: You can execute the <code>SELECT DISTINCT collname FROM pg_collation;</code> statement to obtain the field value. The default value is <strong>C</strong>.</li>
* <li>Valid values for the <strong>Ctype</strong> field: You can execute the <code>SELECT DISTINCT collctype FROM pg_collation;</code> statement to obtain the field value. The default value is <strong>en_US.utf8</strong>.</li>
* </ul>
* </li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>gbk</p>
*/
public Builder characterSetName(String characterSetName) {
this.putQueryParameter("CharacterSetName", characterSetName);
this.characterSetName = characterSetName;
return this;
}
/**
* <p>The description of the database. The description must be 2 to 256 characters in length and can contain letters, digits, underscores (_), and hyphens (-). The description must start with a letter.</p>
* <blockquote>
* <p>The value cannot start with <code>http://</code> or <code>https://</code>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Database for testing</p>
*/
public Builder DBDescription(String DBDescription) {
this.putQueryParameter("DBDescription", DBDescription);
this.DBDescription = DBDescription;
return this;
}
/**
* <p>The instance ID. You can call the <a href="https://help.aliyun.com/document_detail/610396.html">DescribeDBInstances</a> operation to query the ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The name of the database.</p>
* <blockquote>
* <ul>
* <li>The name must be 2 to 64 characters in length.</li>
* <li>The name must start with a lowercase letter and end with a lowercase letter or digit.</li>
* <li>The name can contain lowercase letters, digits, underscores (_), and hyphens (-).</li>
* <li>The name must be unique within the instance.</li>
* <li>For more information about invalid characters, see <a href="https://help.aliyun.com/document_detail/26317.html">Forbidden keywords table</a>.</li>
* </ul>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rds_mysql</p>
*/
public Builder DBName(String DBName) {
this.putQueryParameter("DBName", DBName);
this.DBName = DBName;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public CreateDatabaseRequest build() {
return new CreateDatabaseRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDatabaseResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDatabaseResponse} extends {@link TeaModel}
*
* <p>CreateDatabaseResponse</p>
*/
public class CreateDatabaseResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateDatabaseResponseBody body;
private CreateDatabaseResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateDatabaseResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateDatabaseResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateDatabaseResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateDatabaseResponseBody body);
@Override
CreateDatabaseResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateDatabaseResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateDatabaseResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateDatabaseResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateDatabaseResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateDatabaseResponse build() {
return new CreateDatabaseResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDatabaseResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDatabaseResponseBody} extends {@link TeaModel}
*
* <p>CreateDatabaseResponseBody</p>
*/
public class CreateDatabaseResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateDatabaseResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDatabaseResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(CreateDatabaseResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>5A77D650-27A1-4E08-AD9E-59008EDB6927</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateDatabaseResponseBody build() {
return new CreateDatabaseResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/CreateDdrInstanceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDdrInstanceRequest} extends {@link RequestModel}
*
* <p>CreateDdrInstanceRequest</p>
*/
public class CreateDdrInstanceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackupSetId")
private String backupSetId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackupSetRegion")
private String backupSetRegion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ConnectionMode")
private String connectionMode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceClass")
private String DBInstanceClass;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceDescription")
private String DBInstanceDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceNetType")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceNetType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceStorage")
private Integer DBInstanceStorage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceStorageType")
private String DBInstanceStorageType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EncryptionKey")
private String encryptionKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Engine")
@com.aliyun.core.annotation.Validation(required = true)
private String engine;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EngineVersion")
@com.aliyun.core.annotation.Validation(required = true)
private String engineVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceNetworkType")
private String instanceNetworkType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PayType")
@com.aliyun.core.annotation.Validation(required = true)
private String payType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Period")
private String period;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PrivateIpAddress")
private String privateIpAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
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("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RestoreTime")
private String restoreTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RestoreType")
@com.aliyun.core.annotation.Validation(required = true)
private String restoreType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RoleARN")
private String roleARN;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityIPList")
@com.aliyun.core.annotation.Validation(required = true)
private String securityIPList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceDBInstanceName")
private String sourceDBInstanceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceRegion")
private String sourceRegion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SystemDBCharset")
private String systemDBCharset;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UsedTime")
private String usedTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VPCId")
private String VPCId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private CreateDdrInstanceRequest(Builder builder) {
super(builder);
this.backupSetId = builder.backupSetId;
this.backupSetRegion = builder.backupSetRegion;
this.clientToken = builder.clientToken;
this.connectionMode = builder.connectionMode;
this.DBInstanceClass = builder.DBInstanceClass;
this.DBInstanceDescription = builder.DBInstanceDescription;
this.DBInstanceNetType = builder.DBInstanceNetType;
this.DBInstanceStorage = builder.DBInstanceStorage;
this.DBInstanceStorageType = builder.DBInstanceStorageType;
this.encryptionKey = builder.encryptionKey;
this.engine = builder.engine;
this.engineVersion = builder.engineVersion;
this.instanceNetworkType = builder.instanceNetworkType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.payType = builder.payType;
this.period = builder.period;
this.privateIpAddress = builder.privateIpAddress;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.restoreTime = builder.restoreTime;
this.restoreType = builder.restoreType;
this.roleARN = builder.roleARN;
this.securityIPList = builder.securityIPList;
this.sourceDBInstanceName = builder.sourceDBInstanceName;
this.sourceRegion = builder.sourceRegion;
this.systemDBCharset = builder.systemDBCharset;
this.usedTime = builder.usedTime;
this.VPCId = builder.VPCId;
this.vSwitchId = builder.vSwitchId;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDdrInstanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backupSetId
*/
public String getBackupSetId() {
return this.backupSetId;
}
/**
* @return backupSetRegion
*/
public String getBackupSetRegion() {
return this.backupSetRegion;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return connectionMode
*/
public String getConnectionMode() {
return this.connectionMode;
}
/**
* @return DBInstanceClass
*/
public String getDBInstanceClass() {
return this.DBInstanceClass;
}
/**
* @return DBInstanceDescription
*/
public String getDBInstanceDescription() {
return this.DBInstanceDescription;
}
/**
* @return DBInstanceNetType
*/
public String getDBInstanceNetType() {
return this.DBInstanceNetType;
}
/**
* @return DBInstanceStorage
*/
public Integer getDBInstanceStorage() {
return this.DBInstanceStorage;
}
/**
* @return DBInstanceStorageType
*/
public String getDBInstanceStorageType() {
return this.DBInstanceStorageType;
}
/**
* @return encryptionKey
*/
public String getEncryptionKey() {
return this.encryptionKey;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return engineVersion
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
* @return instanceNetworkType
*/
public String getInstanceNetworkType() {
return this.instanceNetworkType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return period
*/
public String getPeriod() {
return this.period;
}
/**
* @return privateIpAddress
*/
public String getPrivateIpAddress() {
return this.privateIpAddress;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return restoreTime
*/
public String getRestoreTime() {
return this.restoreTime;
}
/**
* @return restoreType
*/
public String getRestoreType() {
return this.restoreType;
}
/**
* @return roleARN
*/
public String getRoleARN() {
return this.roleARN;
}
/**
* @return securityIPList
*/
public String getSecurityIPList() {
return this.securityIPList;
}
/**
* @return sourceDBInstanceName
*/
public String getSourceDBInstanceName() {
return this.sourceDBInstanceName;
}
/**
* @return sourceRegion
*/
public String getSourceRegion() {
return this.sourceRegion;
}
/**
* @return systemDBCharset
*/
public String getSystemDBCharset() {
return this.systemDBCharset;
}
/**
* @return usedTime
*/
public String getUsedTime() {
return this.usedTime;
}
/**
* @return VPCId
*/
public String getVPCId() {
return this.VPCId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder extends Request.Builder<CreateDdrInstanceRequest, Builder> {
private String backupSetId;
private String backupSetRegion;
private String clientToken;
private String connectionMode;
private String DBInstanceClass;
private String DBInstanceDescription;
private String DBInstanceNetType;
private Integer DBInstanceStorage;
private String DBInstanceStorageType;
private String encryptionKey;
private String engine;
private String engineVersion;
private String instanceNetworkType;
private String ownerAccount;
private Long ownerId;
private String payType;
private String period;
private String privateIpAddress;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String restoreTime;
private String restoreType;
private String roleARN;
private String securityIPList;
private String sourceDBInstanceName;
private String sourceRegion;
private String systemDBCharset;
private String usedTime;
private String VPCId;
private String vSwitchId;
private String zoneId;
private Builder() {
super();
}
private Builder(CreateDdrInstanceRequest request) {
super(request);
this.backupSetId = request.backupSetId;
this.backupSetRegion = request.backupSetRegion;
this.clientToken = request.clientToken;
this.connectionMode = request.connectionMode;
this.DBInstanceClass = request.DBInstanceClass;
this.DBInstanceDescription = request.DBInstanceDescription;
this.DBInstanceNetType = request.DBInstanceNetType;
this.DBInstanceStorage = request.DBInstanceStorage;
this.DBInstanceStorageType = request.DBInstanceStorageType;
this.encryptionKey = request.encryptionKey;
this.engine = request.engine;
this.engineVersion = request.engineVersion;
this.instanceNetworkType = request.instanceNetworkType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.payType = request.payType;
this.period = request.period;
this.privateIpAddress = request.privateIpAddress;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.restoreTime = request.restoreTime;
this.restoreType = request.restoreType;
this.roleARN = request.roleARN;
this.securityIPList = request.securityIPList;
this.sourceDBInstanceName = request.sourceDBInstanceName;
this.sourceRegion = request.sourceRegion;
this.systemDBCharset = request.systemDBCharset;
this.usedTime = request.usedTime;
this.VPCId = request.VPCId;
this.vSwitchId = request.vSwitchId;
this.zoneId = request.zoneId;
}
/**
* <p>The backup set ID that you want to use for the restoration. You can call the DescribeCrossRegionBackups operation to query backup set ID.</p>
* <blockquote>
* <p> This parameter is required when you set the <strong>RestoreType</strong> parameter to <strong>BackupSet</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>14***</p>
*/
public Builder backupSetId(String backupSetId) {
this.putQueryParameter("BackupSetId", backupSetId);
this.backupSetId = backupSetId;
return this;
}
/**
* <p>The region where the backup set is located.</p>
*
* <strong>example:</strong>
* <p>cn-beijing</p>
*/
public Builder backupSetRegion(String backupSetRegion) {
this.putQueryParameter("BackupSetRegion", backupSetRegion);
this.backupSetRegion = backupSetRegion;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCzxxxxxxxxxx</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The connection mode of the destination instance. Valid values:</p>
* <ul>
* <li><strong>Standard</strong>: standard mode</li>
* <li><strong>Safe</strong>: database proxy mode</li>
* </ul>
* <p>Default value: <strong>Standard</strong>.</p>
*
* <strong>example:</strong>
* <p>Standard</p>
*/
public Builder connectionMode(String connectionMode) {
this.putQueryParameter("ConnectionMode", connectionMode);
this.connectionMode = connectionMode;
return this;
}
/**
* <p>The instance type of the destination instance. For more information, see <a href="https://help.aliyun.com/document_detail/26312.html">Primary ApsaraDB RDS instance types</a>.</p>
*
* <strong>example:</strong>
* <p>rds.mysql.s1.small</p>
*/
public Builder DBInstanceClass(String DBInstanceClass) {
this.putQueryParameter("DBInstanceClass", DBInstanceClass);
this.DBInstanceClass = DBInstanceClass;
return this;
}
/**
* <p>The instance name. The name must be 2 to 256 characters in length. The value can contain letters, digits, underscores (_), and hyphens (-), and must start with a letter.</p>
* <blockquote>
* <p> The value cannot start with http:// or https://.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Test database</p>
*/
public Builder DBInstanceDescription(String DBInstanceDescription) {
this.putQueryParameter("DBInstanceDescription", DBInstanceDescription);
this.DBInstanceDescription = DBInstanceDescription;
return this;
}
/**
* <p>The network connection type of the destination instance. Valid values:</p>
* <ul>
* <li><strong>Internet</strong></li>
* <li><strong>Intranet</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Intranet</p>
*/
public Builder DBInstanceNetType(String DBInstanceNetType) {
this.putQueryParameter("DBInstanceNetType", DBInstanceNetType);
this.DBInstanceNetType = DBInstanceNetType;
return this;
}
/**
* <p>The storage capacity of the destination instance. Valid values: <strong>5 to 2000</strong>. Unit: GB. You can increase the storage capacity at a step size of 5 GB. For more information, see <a href="https://help.aliyun.com/document_detail/26312.html">Primary instance types</a>.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder DBInstanceStorage(Integer DBInstanceStorage) {
this.putQueryParameter("DBInstanceStorage", DBInstanceStorage);
this.DBInstanceStorage = DBInstanceStorage;
return this;
}
/**
* <p>The storage type of the destination instance. Only the local SSD storage type is supported. Default value: <strong>local_ssd</strong>.</p>
*
* <strong>example:</strong>
* <p>local_ssd</p>
*/
public Builder DBInstanceStorageType(String DBInstanceStorageType) {
this.putQueryParameter("DBInstanceStorageType", DBInstanceStorageType);
this.DBInstanceStorageType = DBInstanceStorageType;
return this;
}
/**
* <p>The ID of the customer master key (CMK) for cloud disk encryption. If this parameter is specified, cloud disk encryption is enabled and you must also specify the <strong>RoleARN</strong> parameter. Cloud disk encryption cannot be disabled after it is enabled. You can obtain the ID of the key in the KMS console or create a key. For more information, see <a href="https://help.aliyun.com/document_detail/181610.html">Create a key</a>.</p>
* <p>**</p>
* <p><strong>Notes</strong></p>
* <ul>
* <li><p>This parameter is applicable only to ApsaraDB RDS for SQL Server instances.</p>
* </li>
* <li><p>You can leave this parameter empty. If you do not specify this parameter, you only need to specify the <strong>RoleARN</strong> to use the service key that is managed by ApsaraDB RDS to encrypt cloud disks.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>749c1df7-<strong><strong>-</strong></strong>-<strong><strong>-</strong></strong></p>
*/
public Builder encryptionKey(String encryptionKey) {
this.putQueryParameter("EncryptionKey", encryptionKey);
this.encryptionKey = encryptionKey;
return this;
}
/**
* <p>The database engine of the destination instance. Valid values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>SQLServer</strong></li>
* <li><strong>PostgreSQL</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engine(String engine) {
this.putQueryParameter("Engine", engine);
this.engine = engine;
return this;
}
/**
* <p>The major engine version of the destination instance. The value of this parameter varies based on the value of <strong>Engine</strong>.</p>
* <ul>
* <li>Valid values when Engine is set to MySQL: <strong>5.5, 5.6, 5.7, and 8.0</strong></li>
* <li>Valid values when Engine is set to SQLServer: <strong>2008r2, 08r2_ent_ha, 2012, 2012_ent_ha, 2012_std_ha, 2012_web, 2014_std_ha, 2016_ent_ha, 2016_std_ha, 2016_web, 2017_std_ha, 2017_ent, 2019_std_ha, and 2019_ent</strong></li>
* <li>Valid values when Engine is set to PostgreSQL: <strong>9.4, 10.0, 11.0, 12.0, and 13.0</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>5.6</p>
*/
public Builder engineVersion(String engineVersion) {
this.putQueryParameter("EngineVersion", engineVersion);
this.engineVersion = engineVersion;
return this;
}
/**
* <p>The network type of the instance. Valid values:</p>
* <ul>
* <li><strong>VPC</strong></li>
* <li><strong>Classic</strong></li>
* </ul>
* <p>Default value: Classic.</p>
* <blockquote>
* <p>If you set this parameter to <strong>VPC</strong>, you must also specify <strong>VpcId</strong> and <strong>VSwitchId</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Classic</p>
*/
public Builder instanceNetworkType(String instanceNetworkType) {
this.putQueryParameter("InstanceNetworkType", instanceNetworkType);
this.instanceNetworkType = instanceNetworkType;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The billing method of the instance. Valid values:</p>
* <ul>
* <li><strong>Postpaid</strong>: pay-as-you-go</li>
* <li><strong>Prepaid</strong>: subscription</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Prepaid</p>
*/
public Builder payType(String payType) {
this.putQueryParameter("PayType", payType);
this.payType = payType;
return this;
}
/**
* <p>The unit that is used to measure the subscription duration of the destination instance. Valid values:</p>
* <ul>
* <li><strong>Year</strong></li>
* <li><strong>Month</strong></li>
* </ul>
* <blockquote>
* <p>If you set PayType to <strong>Prepaid</strong>, you must specify UsedTime.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Year</p>
*/
public Builder period(String period) {
this.putQueryParameter("Period", period);
this.period = period;
return this;
}
/**
* <p>The private IP address of the destination instance. The private IP address must be within the CIDR block that is supported by the specified vSwitch. The system automatically assigns an internal IP address based on the values of the <strong>VPCId</strong> and <strong>VSwitchId</strong> parameters.</p>
*
* <strong>example:</strong>
* <p>172.XXX.XXX.69</p>
*/
public Builder privateIpAddress(String privateIpAddress) {
this.putQueryParameter("PrivateIpAddress", privateIpAddress);
this.privateIpAddress = privateIpAddress;
return this;
}
/**
* <p>The region ID of the destination instance. You can call the DescribeRegions operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmyxxxxxxxxxx</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The point in time to which you want to restore data. The point in time that you specify must be earlier than the current time. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time must be in UTC.</p>
* <blockquote>
* <p>If <strong>RestoreType</strong> is set to <strong>BackupTime</strong>, you must specify this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2019-05-30T03:29:10Z</p>
*/
public Builder restoreTime(String restoreTime) {
this.putQueryParameter("RestoreTime", restoreTime);
this.restoreTime = restoreTime;
return this;
}
/**
* <p>The restoration method that you want to use. Valid values:</p>
* <ul>
* <li><strong>BackupSet</strong>: restores data from a backup set. If you use this value, you must also specify <strong>BackupSetId</strong>.</li>
* <li><strong>BackupTime</strong>: restores data to a point in time. If you use this value, you must also specify <strong>RestoreTime</strong>, <strong>SourceRegion</strong>, and <strong>SourceDBInstanceName</strong>.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>BackupSet</p>
*/
public Builder restoreType(String restoreType) {
this.putQueryParameter("RestoreType", restoreType);
this.restoreType = restoreType;
return this;
}
/**
* <p>The Alibaba Cloud Resource Name (ARN) that is provided by your Alibaba Cloud account for Resource Access Management (RAM) users. RAM users can use the ARN to connect to ApsaraDB RDS to Key Management Service (KMS). You can call the <a href="https://help.aliyun.com/document_detail/2628797.html">CheckCloudResourceAuthorized</a> operation to query the ARN.</p>
* <blockquote>
* <p> This parameter is applicable only to ApsaraDB RDS for SQL Server instances.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>acs:ram::1406****:role/aliyunrdsinstanceencryptiondefaultrole</p>
*/
public Builder roleARN(String roleARN) {
this.putQueryParameter("RoleARN", roleARN);
this.roleARN = roleARN;
return this;
}
/**
* <p>The IP address whitelist of the destination instance. If you want to add more than one entry to the IP address whitelist, separate the entries with commas (,). Each entry must be unique. You can add a maximum of 1,000 entries. For more information, see <a href="https://help.aliyun.com/document_detail/43185.html">Configure an IP address whitelist for an ApsaraDB RDS for MySQL instance</a>. The entries in the IP address whitelist must be in one of the following formats:</p>
* <ul>
* <li>IP address. Example: 10.23.12.24.</li>
* <li>CIDR block. Example: 10.23.12.24/24. In this example, 24 indicates that the prefix of the CIDR block is 24 bits in length. You can replace 24 with a value that ranges from 1 to 32.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>127.0.0.1</p>
*/
public Builder securityIPList(String securityIPList) {
this.putQueryParameter("SecurityIPList", securityIPList);
this.securityIPList = securityIPList;
return this;
}
/**
* <p>The source instance ID, which is used if you want to restore data to a point in time.</p>
* <blockquote>
* <p> This parameter is required when you set the <strong>RestoreType</strong> parameter to <strong>BackupTime</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder sourceDBInstanceName(String sourceDBInstanceName) {
this.putQueryParameter("SourceDBInstanceName", sourceDBInstanceName);
this.sourceDBInstanceName = sourceDBInstanceName;
return this;
}
/**
* <p>The region ID of the source instance if you want to restore data to a point in time.</p>
* <blockquote>
* <p>If you set <strong>RestoreType</strong> to <strong>BackupTime</strong>, you must specify this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder sourceRegion(String sourceRegion) {
this.putQueryParameter("SourceRegion", sourceRegion);
this.sourceRegion = sourceRegion;
return this;
}
/**
* <p>The character set of the destination instance. Valid values:</p>
* <ul>
* <li><strong>utf8</strong></li>
* <li><strong>gbk</strong></li>
* <li><strong>latin1</strong></li>
* <li><strong>utf8mb4</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>uft8</p>
*/
public Builder systemDBCharset(String systemDBCharset) {
this.putQueryParameter("SystemDBCharset", systemDBCharset);
this.systemDBCharset = systemDBCharset;
return this;
}
/**
* <p>The subscription duration of the instance.</p>
* <ul>
* <li>If you set <strong>Period</strong> to <strong>Year</strong>, the value of UsedTime ranges from <strong>1 to 3</strong>.</li>
* <li>If you set <strong>Period</strong> to <strong>Month</strong>, the value of UsedTime ranges from <strong>1 to 9</strong>.</li>
* </ul>
* <blockquote>
* <p>If you set PayType to <strong>Prepaid</strong>, you must specify UsedTime.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder usedTime(String usedTime) {
this.putQueryParameter("UsedTime", usedTime);
this.usedTime = usedTime;
return this;
}
/**
* <p>The VPC ID of the destination instance. This parameter is available only when you set the <strong>InstanceNetworkType</strong> parameter to <strong>VPC</strong>.</p>
* <blockquote>
* <p> If you specify this parameter, you must also specify the <strong>ZoneId</strong> parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vpc-xxxxxxxxxxxx</p>
*/
public Builder VPCId(String VPCId) {
this.putQueryParameter("VPCId", VPCId);
this.VPCId = VPCId;
return this;
}
/**
* <p>The vSwitch ID of the destination instance. If you specify more than one vSwitch, separate the IDs of the vSwitches with commas (,). This parameter is available only when you set the <strong>InstanceNetworkType</strong> parameter to <strong>VPC</strong>.</p>
* <blockquote>
* <p> If you specify this parameter, you must also specify the <strong>ZoneId</strong> parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vsw-xxxxxxxxxxx</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The zone ID of the destination instance. If the destination instance is deployed in multiple zones, separate the IDs of the zones with colons (:).</p>
* <blockquote>
* <p>If you specify a virtual private cloud (VPC) and a vSwitch, you must specify this parameter to identify the zone for the vSwitch.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cn-hangzhou-b</p>
*/
public Builder zoneId(String zoneId) {
this.putQueryParameter("ZoneId", zoneId);
this.zoneId = zoneId;
return this;
}
@Override
public CreateDdrInstanceRequest build() {
return new CreateDdrInstanceRequest(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.