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/DescribeCloudMigrationResultRequest.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 DescribeCloudMigrationResultRequest} extends {@link RequestModel}
*
* <p>DescribeCloudMigrationResultRequest</p>
*/
public class DescribeCloudMigrationResultRequest 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("PageNumber")
@com.aliyun.core.annotation.Validation(required = true)
private Long pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(required = true)
private Long pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIpAddress")
private String sourceIpAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourcePort")
private Long sourcePort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskId")
private Long taskId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskName")
private String taskName;
private DescribeCloudMigrationResultRequest(Builder builder) {
super(builder);
this.DBInstanceName = builder.DBInstanceName;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.resourceOwnerId = builder.resourceOwnerId;
this.sourceIpAddress = builder.sourceIpAddress;
this.sourcePort = builder.sourcePort;
this.taskId = builder.taskId;
this.taskName = builder.taskName;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCloudMigrationResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return pageNumber
*/
public Long getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Long getPageSize() {
return this.pageSize;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sourceIpAddress
*/
public String getSourceIpAddress() {
return this.sourceIpAddress;
}
/**
* @return sourcePort
*/
public Long getSourcePort() {
return this.sourcePort;
}
/**
* @return taskId
*/
public Long getTaskId() {
return this.taskId;
}
/**
* @return taskName
*/
public String getTaskName() {
return this.taskName;
}
public static final class Builder extends Request.Builder<DescribeCloudMigrationResultRequest, Builder> {
private String DBInstanceName;
private Long pageNumber;
private Long pageSize;
private Long resourceOwnerId;
private String sourceIpAddress;
private Long sourcePort;
private Long taskId;
private String taskName;
private Builder() {
super();
}
private Builder(DescribeCloudMigrationResultRequest request) {
super(request);
this.DBInstanceName = request.DBInstanceName;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.resourceOwnerId = request.resourceOwnerId;
this.sourceIpAddress = request.sourceIpAddress;
this.sourcePort = request.sourcePort;
this.taskId = request.taskId;
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;
}
/**
* <p>The number of entries per page.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageNumber(Long pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The page number.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageSize(Long pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
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 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>
*
* <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 port number that is used to connect to the self-managed PostgreSQL instance. You can run the netstat -a | grep PGSQL command to obtain the port number.</p>
*
* <strong>example:</strong>
* <p>5432</p>
*/
public Builder sourcePort(Long sourcePort) {
this.putQueryParameter("SourcePort", sourcePort);
this.sourcePort = sourcePort;
return this;
}
/**
* <p>The task ID. You can obtain the task ID from the response that is returned when you call the CreateCloudMigrationTask operation to create the task.</p>
*
* <strong>example:</strong>
* <p>440437220</p>
*/
public Builder taskId(Long taskId) {
this.putQueryParameter("TaskId", taskId);
this.taskId = taskId;
return this;
}
/**
* <p>The task name. You can obtain the task name from the response that is returned when you call the CreateCloudMigrationTask operation to create the 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 DescribeCloudMigrationResultRequest build() {
return new DescribeCloudMigrationResultRequest(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/DescribeCloudMigrationResultResponse.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 DescribeCloudMigrationResultResponse} extends {@link TeaModel}
*
* <p>DescribeCloudMigrationResultResponse</p>
*/
public class DescribeCloudMigrationResultResponse 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 DescribeCloudMigrationResultResponseBody body;
private DescribeCloudMigrationResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeCloudMigrationResultResponse 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 DescribeCloudMigrationResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeCloudMigrationResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeCloudMigrationResultResponseBody body);
@Override
DescribeCloudMigrationResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeCloudMigrationResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeCloudMigrationResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeCloudMigrationResultResponse 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(DescribeCloudMigrationResultResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeCloudMigrationResultResponse build() {
return new DescribeCloudMigrationResultResponse(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/DescribeCloudMigrationResultResponseBody.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 DescribeCloudMigrationResultResponseBody} extends {@link TeaModel}
*
* <p>DescribeCloudMigrationResultResponseBody</p>
*/
public class DescribeCloudMigrationResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Long pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Long pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalSize")
private Integer totalSize;
private DescribeCloudMigrationResultResponseBody(Builder builder) {
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalSize = builder.totalSize;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCloudMigrationResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Long getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Long getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalSize
*/
public Integer getTotalSize() {
return this.totalSize;
}
public static final class Builder {
private java.util.List<Items> items;
private Long pageNumber;
private Long pageSize;
private String requestId;
private Integer totalSize;
private Builder() {
}
private Builder(DescribeCloudMigrationResultResponseBody model) {
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalSize = model.totalSize;
}
/**
* <p>The details about the cloud migration task.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Long pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Long pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>1B983C48-9793-5EAA-8F7F-00EAEC517675</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalSize(Integer totalSize) {
this.totalSize = totalSize;
return this;
}
public DescribeCloudMigrationResultResponseBody build() {
return new DescribeCloudMigrationResultResponseBody(this);
}
}
/**
*
* {@link DescribeCloudMigrationResultResponseBody} extends {@link TeaModel}
*
* <p>DescribeCloudMigrationResultResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Detail")
private String detail;
@com.aliyun.core.annotation.NameInMap("GmtCreated")
private String gmtCreated;
@com.aliyun.core.annotation.NameInMap("GmtModified")
private String gmtModified;
@com.aliyun.core.annotation.NameInMap("MigrateStage")
private String migrateStage;
@com.aliyun.core.annotation.NameInMap("ReplicationInfo")
private String replicationInfo;
@com.aliyun.core.annotation.NameInMap("ReplicationState")
private String replicationState;
@com.aliyun.core.annotation.NameInMap("SourceAccount")
private String sourceAccount;
@com.aliyun.core.annotation.NameInMap("SourceCategory")
private String sourceCategory;
@com.aliyun.core.annotation.NameInMap("SourceIpAddress")
private String sourceIpAddress;
@com.aliyun.core.annotation.NameInMap("SourcePassword")
private String sourcePassword;
@com.aliyun.core.annotation.NameInMap("SourcePort")
private Long sourcePort;
@com.aliyun.core.annotation.NameInMap("SwitchTime")
private String switchTime;
@com.aliyun.core.annotation.NameInMap("TargetEip")
private String targetEip;
@com.aliyun.core.annotation.NameInMap("TargetInstanceName")
private String targetInstanceName;
@com.aliyun.core.annotation.NameInMap("TaskId")
private Long taskId;
@com.aliyun.core.annotation.NameInMap("TaskName")
private String taskName;
private Items(Builder builder) {
this.detail = builder.detail;
this.gmtCreated = builder.gmtCreated;
this.gmtModified = builder.gmtModified;
this.migrateStage = builder.migrateStage;
this.replicationInfo = builder.replicationInfo;
this.replicationState = builder.replicationState;
this.sourceAccount = builder.sourceAccount;
this.sourceCategory = builder.sourceCategory;
this.sourceIpAddress = builder.sourceIpAddress;
this.sourcePassword = builder.sourcePassword;
this.sourcePort = builder.sourcePort;
this.switchTime = builder.switchTime;
this.targetEip = builder.targetEip;
this.targetInstanceName = builder.targetInstanceName;
this.taskId = builder.taskId;
this.taskName = builder.taskName;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return detail
*/
public String getDetail() {
return this.detail;
}
/**
* @return gmtCreated
*/
public String getGmtCreated() {
return this.gmtCreated;
}
/**
* @return gmtModified
*/
public String getGmtModified() {
return this.gmtModified;
}
/**
* @return migrateStage
*/
public String getMigrateStage() {
return this.migrateStage;
}
/**
* @return replicationInfo
*/
public String getReplicationInfo() {
return this.replicationInfo;
}
/**
* @return replicationState
*/
public String getReplicationState() {
return this.replicationState;
}
/**
* @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 switchTime
*/
public String getSwitchTime() {
return this.switchTime;
}
/**
* @return targetEip
*/
public String getTargetEip() {
return this.targetEip;
}
/**
* @return targetInstanceName
*/
public String getTargetInstanceName() {
return this.targetInstanceName;
}
/**
* @return taskId
*/
public Long getTaskId() {
return this.taskId;
}
/**
* @return taskName
*/
public String getTaskName() {
return this.taskName;
}
public static final class Builder {
private String detail;
private String gmtCreated;
private String gmtModified;
private String migrateStage;
private String replicationInfo;
private String replicationState;
private String sourceAccount;
private String sourceCategory;
private String sourceIpAddress;
private String sourcePassword;
private Long sourcePort;
private String switchTime;
private String targetEip;
private String targetInstanceName;
private Long taskId;
private String taskName;
private Builder() {
}
private Builder(Items model) {
this.detail = model.detail;
this.gmtCreated = model.gmtCreated;
this.gmtModified = model.gmtModified;
this.migrateStage = model.migrateStage;
this.replicationInfo = model.replicationInfo;
this.replicationState = model.replicationState;
this.sourceAccount = model.sourceAccount;
this.sourceCategory = model.sourceCategory;
this.sourceIpAddress = model.sourceIpAddress;
this.sourcePassword = model.sourcePassword;
this.sourcePort = model.sourcePort;
this.switchTime = model.switchTime;
this.targetEip = model.targetEip;
this.targetInstanceName = model.targetInstanceName;
this.taskId = model.taskId;
this.taskName = model.taskName;
}
/**
* <p>The details about the migration task.</p>
*
* <strong>example:</strong>
* <p>[Check rds empty]\nCheck rds databases: success\n[Check source connectivity]\nCheck ip connectable: success\nCheck port connectable: success\nCheck database connectable: success\nCheck account replication privilege: success\nCheck account createrole privilege: success\nCheck account monitor privilege: success\n[Check source version]\nCheck major version consistent: success\n[Check source glibc version]\nCheck source glibc version compatible: warning(warning:source glibc version is not compatible with rds pg)\n[Check disk size]\nCheck disk size enough: success\n[Check wal keep size]\nCheck wal keep size large enough: success\n[Check spec params]\nCheck if spec params too large: success\n[Start RDS instance]\n2022-02-25 17:00:29 --- Start RDS instance as slave for data replication\n[Synchronize data]\n2022-02-25 17:01:05 --- Synchronize data from source to RDS by streaming replication \n</p>
*/
public Builder detail(String detail) {
this.detail = detail;
return this;
}
/**
* <p>The time when the task was created.</p>
*
* <strong>example:</strong>
* <p>2022-02-25T08:53:13Z</p>
*/
public Builder gmtCreated(String gmtCreated) {
this.gmtCreated = gmtCreated;
return this;
}
/**
* <p>The time when the task was modified.</p>
*
* <strong>example:</strong>
* <p>2022-03-01T06:39:51Z</p>
*/
public Builder gmtModified(String gmtModified) {
this.gmtModified = gmtModified;
return this;
}
/**
* <p>The migration phase of the migration task.</p>
* <ul>
* <li><strong>precheck</strong>: precheck</li>
* <li><strong>basebackup</strong>: full data backup</li>
* <li><strong>startup</strong>: link establishment</li>
* <li><strong>increment</strong>: incremental data synchronization</li>
* <li><strong>switch</strong>: cloud migration-triggered switchover</li>
* <li><strong>success</strong>: cloud migration completed</li>
* </ul>
*
* <strong>example:</strong>
* <p>switch</p>
*/
public Builder migrateStage(String migrateStage) {
this.migrateStage = migrateStage;
return this;
}
/**
* <p>The information about the replication link.</p>
*
* <strong>example:</strong>
* <p>{"Status":"streaming","ReceiveStartLsn":"0/3000000","ReceivedTli":"1","LatestEndTime":"2022-02-25 17:03:59.3344+08","Synced":"true","IsSlave":"true","ReplayTimestamp":"null","LastMsgSendTime":"2022-03-01 14:42:57.967537+08","Conninfo":"user=migratetest password=******** channel_binding=prefer dbname=replication host=172.16.254.203 port=5432 application_name=rds_db_instance fallback_application_name=walreceiver sslmode=prefer sslcompression=1 sslsni=1 ssl_min_protocol_version=TLSv1.2 gssencmode=prefer krbsrvname=postgres target_session_attrs=any","LastMsgReceiptTime":"2022-03-01 14:42:57.96727+08","LatestEndLsn":"0/3000148","ReceivedLsn":"0/3000148","ReplayLsn":"0/3000148","ReceiveStartTli":"1","ReplayLag":"0"}</p>
*/
public Builder replicationInfo(String replicationInfo) {
this.replicationInfo = replicationInfo;
return this;
}
/**
* <p>The status of data replication.</p>
* <ul>
* <li><strong>unstarted</strong></li>
* <li><strong>catchup</strong></li>
* <li><strong>streaming</strong></li>
* <li><strong>disconnect</strong></li>
* <li><strong>finish</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>streaming</p>
*/
public Builder replicationState(String replicationState) {
this.replicationState = replicationState;
return this;
}
/**
* <p>The username.</p>
*
* <strong>example:</strong>
* <p>migratetest</p>
*/
public Builder sourceAccount(String 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>
*
* <strong>example:</strong>
* <p>ecsonvpc</p>
*/
public Builder sourceCategory(String sourceCategory) {
this.sourceCategory = sourceCategory;
return this;
}
/**
* <p>The private IP address that is used to connect to the self-managed PostgreSQL instance.</p>
*
* <strong>example:</strong>
* <p>172.16.XX.XX</p>
*/
public Builder sourceIpAddress(String sourceIpAddress) {
this.sourceIpAddress = sourceIpAddress;
return this;
}
/**
* <p>The password.</p>
*
* <strong>example:</strong>
* <p>123456</p>
*/
public Builder sourcePassword(String sourcePassword) {
this.sourcePassword = sourcePassword;
return this;
}
/**
* <p>The port number that is used to connect to the self-managed PostgreSQL instance.</p>
*
* <strong>example:</strong>
* <p>5432</p>
*/
public Builder sourcePort(Long sourcePort) {
this.sourcePort = sourcePort;
return this;
}
/**
* <p>The time when the switchover was performed.</p>
*
* <strong>example:</strong>
* <p>2022-03-01T06:40:51Z</p>
*/
public Builder switchTime(String switchTime) {
this.switchTime = switchTime;
return this;
}
/**
* <p>A reserved parameter. The return value of this parameter is empty.</p>
*
* <strong>example:</strong>
* <p>null</p>
*/
public Builder targetEip(String targetEip) {
this.targetEip = targetEip;
return this;
}
/**
* <p>The ID of the destination instance.</p>
*
* <strong>example:</strong>
* <p>pgm-bp102g323jd4****</p>
*/
public Builder targetInstanceName(String targetInstanceName) {
this.targetInstanceName = targetInstanceName;
return this;
}
/**
* <p>The task ID.</p>
*
* <strong>example:</strong>
* <p>440437220</p>
*/
public Builder taskId(Long taskId) {
this.taskId = taskId;
return this;
}
/**
* <p>The task name.</p>
*
* <strong>example:</strong>
* <p>362c6c7a-4d20-4eac-898c-1495ceab374c</p>
*/
public Builder taskName(String taskName) {
this.taskName = taskName;
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/DescribeCollationTimeZonesRequest.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 DescribeCollationTimeZonesRequest} extends {@link RequestModel}
*
* <p>DescribeCollationTimeZonesRequest</p>
*/
public class DescribeCollationTimeZonesRequest 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("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeCollationTimeZonesRequest(Builder builder) {
super(builder);
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCollationTimeZonesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @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<DescribeCollationTimeZonesRequest, Builder> {
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeCollationTimeZonesRequest request) {
super(request);
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* 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 DescribeCollationTimeZonesRequest build() {
return new DescribeCollationTimeZonesRequest(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/DescribeCollationTimeZonesResponse.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 DescribeCollationTimeZonesResponse} extends {@link TeaModel}
*
* <p>DescribeCollationTimeZonesResponse</p>
*/
public class DescribeCollationTimeZonesResponse 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 DescribeCollationTimeZonesResponseBody body;
private DescribeCollationTimeZonesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeCollationTimeZonesResponse 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 DescribeCollationTimeZonesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeCollationTimeZonesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeCollationTimeZonesResponseBody body);
@Override
DescribeCollationTimeZonesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeCollationTimeZonesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeCollationTimeZonesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeCollationTimeZonesResponse 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(DescribeCollationTimeZonesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeCollationTimeZonesResponse build() {
return new DescribeCollationTimeZonesResponse(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/DescribeCollationTimeZonesResponseBody.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 DescribeCollationTimeZonesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCollationTimeZonesResponseBody</p>
*/
public class DescribeCollationTimeZonesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CollationTimeZones")
private CollationTimeZones collationTimeZones;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeCollationTimeZonesResponseBody(Builder builder) {
this.collationTimeZones = builder.collationTimeZones;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCollationTimeZonesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return collationTimeZones
*/
public CollationTimeZones getCollationTimeZones() {
return this.collationTimeZones;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private CollationTimeZones collationTimeZones;
private String requestId;
private Builder() {
}
private Builder(DescribeCollationTimeZonesResponseBody model) {
this.collationTimeZones = model.collationTimeZones;
this.requestId = model.requestId;
}
/**
* <p>The list of the character set collations and time zones that are available.</p>
*/
public Builder collationTimeZones(CollationTimeZones collationTimeZones) {
this.collationTimeZones = collationTimeZones;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>4EAED246-DB18-4C8D-9EB5-C319626F2A77</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeCollationTimeZonesResponseBody build() {
return new DescribeCollationTimeZonesResponseBody(this);
}
}
/**
*
* {@link DescribeCollationTimeZonesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCollationTimeZonesResponseBody</p>
*/
public static class CollationTimeZone extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("StandardTimeOffset")
private String standardTimeOffset;
@com.aliyun.core.annotation.NameInMap("TimeZone")
private String timeZone;
private CollationTimeZone(Builder builder) {
this.description = builder.description;
this.standardTimeOffset = builder.standardTimeOffset;
this.timeZone = builder.timeZone;
}
public static Builder builder() {
return new Builder();
}
public static CollationTimeZone create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return standardTimeOffset
*/
public String getStandardTimeOffset() {
return this.standardTimeOffset;
}
/**
* @return timeZone
*/
public String getTimeZone() {
return this.timeZone;
}
public static final class Builder {
private String description;
private String standardTimeOffset;
private String timeZone;
private Builder() {
}
private Builder(CollationTimeZone model) {
this.description = model.description;
this.standardTimeOffset = model.standardTimeOffset;
this.timeZone = model.timeZone;
}
/**
* <p>The description.</p>
*
* <strong>example:</strong>
* <p>Kabul</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The offset of the UTC time. The offset is in the following format: (UTC+<em>HH:mm</em>).</p>
*
* <strong>example:</strong>
* <p>(UTC+04:30)</p>
*/
public Builder standardTimeOffset(String standardTimeOffset) {
this.standardTimeOffset = standardTimeOffset;
return this;
}
/**
* <p>The time zone.</p>
*
* <strong>example:</strong>
* <p>Afghanistan Standard Time</p>
*/
public Builder timeZone(String timeZone) {
this.timeZone = timeZone;
return this;
}
public CollationTimeZone build() {
return new CollationTimeZone(this);
}
}
}
/**
*
* {@link DescribeCollationTimeZonesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCollationTimeZonesResponseBody</p>
*/
public static class CollationTimeZones extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CollationTimeZone")
private java.util.List<CollationTimeZone> collationTimeZone;
private CollationTimeZones(Builder builder) {
this.collationTimeZone = builder.collationTimeZone;
}
public static Builder builder() {
return new Builder();
}
public static CollationTimeZones create() {
return builder().build();
}
/**
* @return collationTimeZone
*/
public java.util.List<CollationTimeZone> getCollationTimeZone() {
return this.collationTimeZone;
}
public static final class Builder {
private java.util.List<CollationTimeZone> collationTimeZone;
private Builder() {
}
private Builder(CollationTimeZones model) {
this.collationTimeZone = model.collationTimeZone;
}
/**
* CollationTimeZone.
*/
public Builder collationTimeZone(java.util.List<CollationTimeZone> collationTimeZone) {
this.collationTimeZone = collationTimeZone;
return this;
}
public CollationTimeZones build() {
return new CollationTimeZones(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/DescribeComputeBurstConfigRequest.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 DescribeComputeBurstConfigRequest} extends {@link RequestModel}
*
* <p>DescribeComputeBurstConfigRequest</p>
*/
public class DescribeComputeBurstConfigRequest 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("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 byte[] 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;
private DescribeComputeBurstConfigRequest(Builder builder) {
super(builder);
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;
}
public static Builder builder() {
return new Builder();
}
public static DescribeComputeBurstConfigRequest 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 ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public byte[] getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public static final class Builder extends Request.Builder<DescribeComputeBurstConfigRequest, Builder> {
private String clientToken;
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private byte[] regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Builder() {
super();
}
private Builder(DescribeComputeBurstConfigRequest request) {
super(request);
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;
}
/**
* ClientToken.
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pgm-2ze63v2p3o3k****</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;
}
/**
* RegionId.
*/
public Builder regionId(byte[] regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceGroupId.
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
@Override
public DescribeComputeBurstConfigRequest build() {
return new DescribeComputeBurstConfigRequest(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/DescribeComputeBurstConfigResponse.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 DescribeComputeBurstConfigResponse} extends {@link TeaModel}
*
* <p>DescribeComputeBurstConfigResponse</p>
*/
public class DescribeComputeBurstConfigResponse 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 DescribeComputeBurstConfigResponseBody body;
private DescribeComputeBurstConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeComputeBurstConfigResponse 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 DescribeComputeBurstConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeComputeBurstConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeComputeBurstConfigResponseBody body);
@Override
DescribeComputeBurstConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeComputeBurstConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeComputeBurstConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeComputeBurstConfigResponse 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(DescribeComputeBurstConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeComputeBurstConfigResponse build() {
return new DescribeComputeBurstConfigResponse(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/DescribeComputeBurstConfigResponseBody.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 DescribeComputeBurstConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeComputeBurstConfigResponseBody</p>
*/
public class DescribeComputeBurstConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ComputeBurstConfig")
private java.util.Map<String, ?> computeBurstConfig;
@com.aliyun.core.annotation.NameInMap("ComputeBurstEnabled")
private Boolean computeBurstEnabled;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeComputeBurstConfigResponseBody(Builder builder) {
this.computeBurstConfig = builder.computeBurstConfig;
this.computeBurstEnabled = builder.computeBurstEnabled;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeComputeBurstConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return computeBurstConfig
*/
public java.util.Map<String, ?> getComputeBurstConfig() {
return this.computeBurstConfig;
}
/**
* @return computeBurstEnabled
*/
public Boolean getComputeBurstEnabled() {
return this.computeBurstEnabled;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.Map<String, ?> computeBurstConfig;
private Boolean computeBurstEnabled;
private String requestId;
private Builder() {
}
private Builder(DescribeComputeBurstConfigResponseBody model) {
this.computeBurstConfig = model.computeBurstConfig;
this.computeBurstEnabled = model.computeBurstEnabled;
this.requestId = model.requestId;
}
/**
* ComputeBurstConfig.
*/
public Builder computeBurstConfig(java.util.Map<String, ?> computeBurstConfig) {
this.computeBurstConfig = computeBurstConfig;
return this;
}
/**
* ComputeBurstEnabled.
*/
public Builder computeBurstEnabled(Boolean computeBurstEnabled) {
this.computeBurstEnabled = computeBurstEnabled;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeComputeBurstConfigResponseBody build() {
return new DescribeComputeBurstConfigResponseBody(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/DescribeCrossBackupMetaListRequest.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 DescribeCrossBackupMetaListRequest} extends {@link RequestModel}
*
* <p>DescribeCrossBackupMetaListRequest</p>
*/
public class DescribeCrossBackupMetaListRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackupSetId")
@com.aliyun.core.annotation.Validation(required = true)
private String backupSetId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GetDbName")
private String getDbName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageIndex")
private String pageIndex;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Pattern")
private String pattern;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Region")
private String region;
@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 DescribeCrossBackupMetaListRequest(Builder builder) {
super(builder);
this.backupSetId = builder.backupSetId;
this.getDbName = builder.getDbName;
this.ownerId = builder.ownerId;
this.pageIndex = builder.pageIndex;
this.pageSize = builder.pageSize;
this.pattern = builder.pattern;
this.region = builder.region;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCrossBackupMetaListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backupSetId
*/
public String getBackupSetId() {
return this.backupSetId;
}
/**
* @return getDbName
*/
public String getGetDbName() {
return this.getDbName;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageIndex
*/
public String getPageIndex() {
return this.pageIndex;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return pattern
*/
public String getPattern() {
return this.pattern;
}
/**
* @return region
*/
public String getRegion() {
return this.region;
}
/**
* @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<DescribeCrossBackupMetaListRequest, Builder> {
private String backupSetId;
private String getDbName;
private Long ownerId;
private String pageIndex;
private String pageSize;
private String pattern;
private String region;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeCrossBackupMetaListRequest request) {
super(request);
this.backupSetId = request.backupSetId;
this.getDbName = request.getDbName;
this.ownerId = request.ownerId;
this.pageIndex = request.pageIndex;
this.pageSize = request.pageSize;
this.pattern = request.pattern;
this.region = request.region;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The ID of the cross-region backup file that you want to use. You can call the <a href="https://help.aliyun.com/document_detail/121733.html">DescribeCrossRegionBackups</a> operation to query the ID of the cross-region backup file.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>123456</p>
*/
public Builder backupSetId(String backupSetId) {
this.putQueryParameter("BackupSetId", backupSetId);
this.backupSetId = backupSetId;
return this;
}
/**
* <p>The name of the database that you want to query. The system implements exact match based on the value of this parameter and returns the name of the matched database and the names of the tables in the matched database.</p>
*
* <strong>example:</strong>
* <p>testdb1</p>
*/
public Builder getDbName(String getDbName) {
this.putQueryParameter("GetDbName", getDbName);
this.getDbName = getDbName;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The number of the page to return. Valid values: any non-zero positive integer.</p>
* <blockquote>
* <p>This parameter only takes effect when you specify the <strong>PageSize</strong> parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageIndex(String pageIndex) {
this.putQueryParameter("PageIndex", pageIndex);
this.pageIndex = pageIndex;
return this;
}
/**
* <p>The number of entries to return per page. Default value: <strong>1</strong>.</p>
* <blockquote>
* <p>This parameter only takes effect when you specify the <strong>PageIndex</strong> parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The name of the database that you want to query. The system implements fuzzy match based on the value of this parameter and returns only the name of the matched database.</p>
* <blockquote>
* <p>You can implement fuzzy match and then exact match. For example, you can set the Pattern parameter to test to query the testdb1 and testdb2 databases. Then, you can specify the <strong>GetDbName</strong> parameter to query only the matched database and the tables in the matched database.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder pattern(String pattern) {
this.putQueryParameter("Pattern", pattern);
this.pattern = pattern;
return this;
}
/**
* <p>The region ID of the instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder region(String region) {
this.putQueryParameter("Region", region);
this.region = region;
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;
}
@Override
public DescribeCrossBackupMetaListRequest build() {
return new DescribeCrossBackupMetaListRequest(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/DescribeCrossBackupMetaListResponse.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 DescribeCrossBackupMetaListResponse} extends {@link TeaModel}
*
* <p>DescribeCrossBackupMetaListResponse</p>
*/
public class DescribeCrossBackupMetaListResponse 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 DescribeCrossBackupMetaListResponseBody body;
private DescribeCrossBackupMetaListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeCrossBackupMetaListResponse 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 DescribeCrossBackupMetaListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeCrossBackupMetaListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeCrossBackupMetaListResponseBody body);
@Override
DescribeCrossBackupMetaListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeCrossBackupMetaListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeCrossBackupMetaListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeCrossBackupMetaListResponse 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(DescribeCrossBackupMetaListResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeCrossBackupMetaListResponse build() {
return new DescribeCrossBackupMetaListResponse(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/DescribeCrossBackupMetaListResponseBody.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 DescribeCrossBackupMetaListResponseBody} extends {@link TeaModel}
*
* <p>DescribeCrossBackupMetaListResponseBody</p>
*/
public class DescribeCrossBackupMetaListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
private String DBInstanceName;
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalPageCount")
private Integer totalPageCount;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeCrossBackupMetaListResponseBody(Builder builder) {
this.DBInstanceName = builder.DBInstanceName;
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.requestId = builder.requestId;
this.totalPageCount = builder.totalPageCount;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCrossBackupMetaListResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalPageCount
*/
public Integer getTotalPageCount() {
return this.totalPageCount;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private String DBInstanceName;
private Items items;
private Integer pageNumber;
private Integer pageRecordCount;
private String requestId;
private Integer totalPageCount;
private Integer totalRecordCount;
private Builder() {
}
private Builder(DescribeCrossBackupMetaListResponseBody model) {
this.DBInstanceName = model.DBInstanceName;
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageRecordCount = model.pageRecordCount;
this.requestId = model.requestId;
this.totalPageCount = model.totalPageCount;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>The instance to which the cross-region backup file belongs.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* <p>An array that consists of the information about the databases and tables whose data is included in the cross-region backup file.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
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 total number of pages returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalPageCount(Integer totalPageCount) {
this.totalPageCount = totalPageCount;
return this;
}
/**
* <p>The total number of returned entries.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeCrossBackupMetaListResponseBody build() {
return new DescribeCrossBackupMetaListResponseBody(this);
}
}
/**
*
* {@link DescribeCrossBackupMetaListResponseBody} extends {@link TeaModel}
*
* <p>DescribeCrossBackupMetaListResponseBody</p>
*/
public static class Meta extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Database")
private String database;
@com.aliyun.core.annotation.NameInMap("Size")
private String size;
@com.aliyun.core.annotation.NameInMap("Tables")
private String tables;
private Meta(Builder builder) {
this.database = builder.database;
this.size = builder.size;
this.tables = builder.tables;
}
public static Builder builder() {
return new Builder();
}
public static Meta create() {
return builder().build();
}
/**
* @return database
*/
public String getDatabase() {
return this.database;
}
/**
* @return size
*/
public String getSize() {
return this.size;
}
/**
* @return tables
*/
public String getTables() {
return this.tables;
}
public static final class Builder {
private String database;
private String size;
private String tables;
private Builder() {
}
private Builder(Meta model) {
this.database = model.database;
this.size = model.size;
this.tables = model.tables;
}
/**
* <p>The name of the database.</p>
*
* <strong>example:</strong>
* <p>testdb1</p>
*/
public Builder database(String database) {
this.database = database;
return this;
}
/**
* <p>The size of the table. Unit: KB. If the database contains more than one table, the names of these tables are separated by commas (,).</p>
*
* <strong>example:</strong>
* <p>1000</p>
*/
public Builder size(String size) {
this.size = size;
return this;
}
/**
* <p>An array that consists of the names of the tables that the database contains. If the database contains more than one table, the names of these tables are separated by commas (,).</p>
*
* <strong>example:</strong>
* <p>test1,test2</p>
*/
public Builder tables(String tables) {
this.tables = tables;
return this;
}
public Meta build() {
return new Meta(this);
}
}
}
/**
*
* {@link DescribeCrossBackupMetaListResponseBody} extends {@link TeaModel}
*
* <p>DescribeCrossBackupMetaListResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Meta")
private java.util.List<Meta> meta;
private Items(Builder builder) {
this.meta = builder.meta;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return meta
*/
public java.util.List<Meta> getMeta() {
return this.meta;
}
public static final class Builder {
private java.util.List<Meta> meta;
private Builder() {
}
private Builder(Items model) {
this.meta = model.meta;
}
/**
* Meta.
*/
public Builder meta(java.util.List<Meta> meta) {
this.meta = meta;
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/DescribeCrossRegionBackupDBInstanceRequest.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 DescribeCrossRegionBackupDBInstanceRequest} extends {@link RequestModel}
*
* <p>DescribeCrossRegionBackupDBInstanceRequest</p>
*/
public class DescribeCrossRegionBackupDBInstanceRequest 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("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@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("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeCrossRegionBackupDBInstanceRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCrossRegionBackupDBInstanceRequest 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 pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeCrossRegionBackupDBInstanceRequest, Builder> {
private String DBInstanceId;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeCrossRegionBackupDBInstanceRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The instance ID. Up to 30 instance IDs are allowed in a single request. If you enter more than one instance ID, separate them with commas (,).</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</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;
}
/**
* <p>The number of the page to return. Valid values: any non-zero positive integer.</p>
* <p>Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return per page. Default value: 30.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the region.</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;
}
/**
* 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 DescribeCrossRegionBackupDBInstanceRequest build() {
return new DescribeCrossRegionBackupDBInstanceRequest(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/DescribeCrossRegionBackupDBInstanceResponse.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 DescribeCrossRegionBackupDBInstanceResponse} extends {@link TeaModel}
*
* <p>DescribeCrossRegionBackupDBInstanceResponse</p>
*/
public class DescribeCrossRegionBackupDBInstanceResponse 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 DescribeCrossRegionBackupDBInstanceResponseBody body;
private DescribeCrossRegionBackupDBInstanceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeCrossRegionBackupDBInstanceResponse 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 DescribeCrossRegionBackupDBInstanceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeCrossRegionBackupDBInstanceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeCrossRegionBackupDBInstanceResponseBody body);
@Override
DescribeCrossRegionBackupDBInstanceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeCrossRegionBackupDBInstanceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeCrossRegionBackupDBInstanceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeCrossRegionBackupDBInstanceResponse 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(DescribeCrossRegionBackupDBInstanceResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeCrossRegionBackupDBInstanceResponse build() {
return new DescribeCrossRegionBackupDBInstanceResponse(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/DescribeCrossRegionBackupDBInstanceResponseBody.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 DescribeCrossRegionBackupDBInstanceResponseBody} extends {@link TeaModel}
*
* <p>DescribeCrossRegionBackupDBInstanceResponseBody</p>
*/
public class DescribeCrossRegionBackupDBInstanceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("ItemsNumbers")
private Integer itemsNumbers;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalRecords")
private Integer totalRecords;
private DescribeCrossRegionBackupDBInstanceResponseBody(Builder builder) {
this.items = builder.items;
this.itemsNumbers = builder.itemsNumbers;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.requestId = builder.requestId;
this.totalRecords = builder.totalRecords;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCrossRegionBackupDBInstanceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return itemsNumbers
*/
public Integer getItemsNumbers() {
return this.itemsNumbers;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalRecords
*/
public Integer getTotalRecords() {
return this.totalRecords;
}
public static final class Builder {
private Items items;
private Integer itemsNumbers;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String requestId;
private Integer totalRecords;
private Builder() {
}
private Builder(DescribeCrossRegionBackupDBInstanceResponseBody model) {
this.items = model.items;
this.itemsNumbers = model.itemsNumbers;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.regionId = model.regionId;
this.requestId = model.requestId;
this.totalRecords = model.totalRecords;
}
/**
* <p>The cross-region backup settings.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The total number of items returned for cross-region backup settings.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder itemsNumbers(Integer itemsNumbers) {
this.itemsNumbers = itemsNumbers;
return this;
}
/**
* <p>The page number. Pages start from page 1.</p>
* <p>Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Default value: 30.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>33517002-182D-40BE-93EC-610BD3381045</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder totalRecords(Integer totalRecords) {
this.totalRecords = totalRecords;
return this;
}
public DescribeCrossRegionBackupDBInstanceResponseBody build() {
return new DescribeCrossRegionBackupDBInstanceResponseBody(this);
}
}
/**
*
* {@link DescribeCrossRegionBackupDBInstanceResponseBody} extends {@link TeaModel}
*
* <p>DescribeCrossRegionBackupDBInstanceResponseBody</p>
*/
public static class Item extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BackupEnabled")
private String backupEnabled;
@com.aliyun.core.annotation.NameInMap("BackupEnabledTime")
private String backupEnabledTime;
@com.aliyun.core.annotation.NameInMap("CrossBackupRegion")
private String crossBackupRegion;
@com.aliyun.core.annotation.NameInMap("CrossBackupType")
private String crossBackupType;
@com.aliyun.core.annotation.NameInMap("DBInstanceDescription")
private String DBInstanceDescription;
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("DBInstanceStatus")
private String DBInstanceStatus;
@com.aliyun.core.annotation.NameInMap("Engine")
private String engine;
@com.aliyun.core.annotation.NameInMap("EngineVersion")
private String engineVersion;
@com.aliyun.core.annotation.NameInMap("LockMode")
private String lockMode;
@com.aliyun.core.annotation.NameInMap("LogBackupEnabled")
private String logBackupEnabled;
@com.aliyun.core.annotation.NameInMap("LogBackupEnabledTime")
private String logBackupEnabledTime;
@com.aliyun.core.annotation.NameInMap("RetentType")
private Integer retentType;
@com.aliyun.core.annotation.NameInMap("Retention")
private Integer retention;
private Item(Builder builder) {
this.backupEnabled = builder.backupEnabled;
this.backupEnabledTime = builder.backupEnabledTime;
this.crossBackupRegion = builder.crossBackupRegion;
this.crossBackupType = builder.crossBackupType;
this.DBInstanceDescription = builder.DBInstanceDescription;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceStatus = builder.DBInstanceStatus;
this.engine = builder.engine;
this.engineVersion = builder.engineVersion;
this.lockMode = builder.lockMode;
this.logBackupEnabled = builder.logBackupEnabled;
this.logBackupEnabledTime = builder.logBackupEnabledTime;
this.retentType = builder.retentType;
this.retention = builder.retention;
}
public static Builder builder() {
return new Builder();
}
public static Item create() {
return builder().build();
}
/**
* @return backupEnabled
*/
public String getBackupEnabled() {
return this.backupEnabled;
}
/**
* @return backupEnabledTime
*/
public String getBackupEnabledTime() {
return this.backupEnabledTime;
}
/**
* @return crossBackupRegion
*/
public String getCrossBackupRegion() {
return this.crossBackupRegion;
}
/**
* @return crossBackupType
*/
public String getCrossBackupType() {
return this.crossBackupType;
}
/**
* @return DBInstanceDescription
*/
public String getDBInstanceDescription() {
return this.DBInstanceDescription;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBInstanceStatus
*/
public String getDBInstanceStatus() {
return this.DBInstanceStatus;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return engineVersion
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
* @return lockMode
*/
public String getLockMode() {
return this.lockMode;
}
/**
* @return logBackupEnabled
*/
public String getLogBackupEnabled() {
return this.logBackupEnabled;
}
/**
* @return logBackupEnabledTime
*/
public String getLogBackupEnabledTime() {
return this.logBackupEnabledTime;
}
/**
* @return retentType
*/
public Integer getRetentType() {
return this.retentType;
}
/**
* @return retention
*/
public Integer getRetention() {
return this.retention;
}
public static final class Builder {
private String backupEnabled;
private String backupEnabledTime;
private String crossBackupRegion;
private String crossBackupType;
private String DBInstanceDescription;
private String DBInstanceId;
private String DBInstanceStatus;
private String engine;
private String engineVersion;
private String lockMode;
private String logBackupEnabled;
private String logBackupEnabledTime;
private Integer retentType;
private Integer retention;
private Builder() {
}
private Builder(Item model) {
this.backupEnabled = model.backupEnabled;
this.backupEnabledTime = model.backupEnabledTime;
this.crossBackupRegion = model.crossBackupRegion;
this.crossBackupType = model.crossBackupType;
this.DBInstanceDescription = model.DBInstanceDescription;
this.DBInstanceId = model.DBInstanceId;
this.DBInstanceStatus = model.DBInstanceStatus;
this.engine = model.engine;
this.engineVersion = model.engineVersion;
this.lockMode = model.lockMode;
this.logBackupEnabled = model.logBackupEnabled;
this.logBackupEnabledTime = model.logBackupEnabledTime;
this.retentType = model.retentType;
this.retention = model.retention;
}
/**
* <p>The status of the cross-region backup feature on the instance. Valid values:</p>
* <ul>
* <li><strong>Disable</strong></li>
* <li><strong>Enable</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder backupEnabled(String backupEnabled) {
this.backupEnabled = backupEnabled;
return this;
}
/**
* <p>The time when cross-region backup was enabled on the instance. 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>
*
* <strong>example:</strong>
* <p>2019-06-12T05:44:21Z</p>
*/
public Builder backupEnabledTime(String backupEnabledTime) {
this.backupEnabledTime = backupEnabledTime;
return this;
}
/**
* <p>The ID of the destination region within which the cross-region backup file is stored.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder crossBackupRegion(String crossBackupRegion) {
this.crossBackupRegion = crossBackupRegion;
return this;
}
/**
* <p>The policy that is used to save the cross-region backup files of the instance. Default value: <strong>1</strong>. The value 1 indicates that all cross-region backup files are saved.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder crossBackupType(String crossBackupType) {
this.crossBackupType = crossBackupType;
return this;
}
/**
* <p>The name of the instance. It 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.DBInstanceDescription = DBInstanceDescription;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The instance status. For more information, see <a href="https://help.aliyun.com/document_detail/26315.html">Instance statuses</a>.</p>
*
* <strong>example:</strong>
* <p>Running</p>
*/
public Builder DBInstanceStatus(String DBInstanceStatus) {
this.DBInstanceStatus = DBInstanceStatus;
return this;
}
/**
* <p>The database engine of the instance.</p>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engine(String engine) {
this.engine = engine;
return this;
}
/**
* <p>The database engine version.</p>
*
* <strong>example:</strong>
* <p>5.6</p>
*/
public Builder engineVersion(String engineVersion) {
this.engineVersion = engineVersion;
return this;
}
/**
* <p>The lock status of the instance. Valid values:</p>
* <ul>
* <li><strong>Unlock</strong>: The instance is not locked.</li>
* <li><strong>ManualLock</strong>: The instance is manually locked.</li>
* <li><strong>LockByExpiration</strong>: The instance is automatically locked after it expires.</li>
* <li><strong>LockByRestoration</strong>: The instance is automatically locked before it is rolled back.</li>
* <li><strong>LockByDiskQuota</strong>: The instance is automatically locked because its storage capacity is exhausted and the instance is inaccessible.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Unlock</p>
*/
public Builder lockMode(String lockMode) {
this.lockMode = lockMode;
return this;
}
/**
* <p>The status of the cross-region log backup feature on the instance. Valid values:</p>
* <ul>
* <li><strong>Disable</strong></li>
* <li><strong>Enable</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder logBackupEnabled(String logBackupEnabled) {
this.logBackupEnabled = logBackupEnabled;
return this;
}
/**
* <p>The time when the cross-region log backup feature was enabled on the instance. 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>
*
* <strong>example:</strong>
* <p>2019-06-12T05:44:21Z</p>
*/
public Builder logBackupEnabledTime(String logBackupEnabledTime) {
this.logBackupEnabledTime = logBackupEnabledTime;
return this;
}
/**
* <p>The policy that is used to retain the cross-region backup files of the instance. Cross-region backups can be retained only based on the specified retention period. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder retentType(Integer retentType) {
this.retentType = retentType;
return this;
}
/**
* <p>The number of days for which the cross-region backup files of the instance are retained. Valid values: <strong>7 to 1825</strong>.</p>
*
* <strong>example:</strong>
* <p>15</p>
*/
public Builder retention(Integer retention) {
this.retention = retention;
return this;
}
public Item build() {
return new Item(this);
}
}
}
/**
*
* {@link DescribeCrossRegionBackupDBInstanceResponseBody} extends {@link TeaModel}
*
* <p>DescribeCrossRegionBackupDBInstanceResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Item")
private java.util.List<Item> item;
private Items(Builder builder) {
this.item = builder.item;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return item
*/
public java.util.List<Item> getItem() {
return this.item;
}
public static final class Builder {
private java.util.List<Item> item;
private Builder() {
}
private Builder(Items model) {
this.item = model.item;
}
/**
* Item.
*/
public Builder item(java.util.List<Item> item) {
this.item = item;
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/DescribeCrossRegionBackupsRequest.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 DescribeCrossRegionBackupsRequest} extends {@link RequestModel}
*
* <p>DescribeCrossRegionBackupsRequest</p>
*/
public class DescribeCrossRegionBackupsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackupId")
private Integer backupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CrossBackupId")
private Integer crossBackupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CrossBackupRegion")
private String crossBackupRegion;
@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("EndTime")
private String endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@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("StartTime")
private String startTime;
private DescribeCrossRegionBackupsRequest(Builder builder) {
super(builder);
this.backupId = builder.backupId;
this.crossBackupId = builder.crossBackupId;
this.crossBackupRegion = builder.crossBackupRegion;
this.DBInstanceId = builder.DBInstanceId;
this.endTime = builder.endTime;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCrossRegionBackupsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backupId
*/
public Integer getBackupId() {
return this.backupId;
}
/**
* @return crossBackupId
*/
public Integer getCrossBackupId() {
return this.crossBackupId;
}
/**
* @return crossBackupRegion
*/
public String getCrossBackupRegion() {
return this.crossBackupRegion;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @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 startTime
*/
public String getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder<DescribeCrossRegionBackupsRequest, Builder> {
private Integer backupId;
private Integer crossBackupId;
private String crossBackupRegion;
private String DBInstanceId;
private String endTime;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String startTime;
private Builder() {
super();
}
private Builder(DescribeCrossRegionBackupsRequest request) {
super(request);
this.backupId = request.backupId;
this.crossBackupId = request.crossBackupId;
this.crossBackupRegion = request.crossBackupRegion;
this.DBInstanceId = request.DBInstanceId;
this.endTime = request.endTime;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.startTime = request.startTime;
}
/**
* <p>The ID of the backup file.</p>
*
* <strong>example:</strong>
* <p>603524***</p>
*/
public Builder backupId(Integer backupId) {
this.putQueryParameter("BackupId", backupId);
this.backupId = backupId;
return this;
}
/**
* <p>The ID of the cross-region data backup file.</p>
* <blockquote>
* <p> You must specify the <strong>CrossBackupId</strong> parameter. Alternatively, you must specify the <strong>StartTime</strong> and <strong>EndTime</strong> parameters.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>14562</p>
*/
public Builder crossBackupId(Integer crossBackupId) {
this.putQueryParameter("CrossBackupId", crossBackupId);
this.crossBackupId = crossBackupId;
return this;
}
/**
* <p>The ID of the region in which the cross-region data backup file is stored.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder crossBackupRegion(String crossBackupRegion) {
this.putQueryParameter("CrossBackupRegion", crossBackupRegion);
this.crossBackupRegion = crossBackupRegion;
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 end of the time range to query. 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>
*
* <strong>example:</strong>
* <p>2019-06-15T12:10:00Z</p>
*/
public Builder endTime(String endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Valid values: any non-zero positive integer.</p>
* <p>Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Valid values:</p>
* <ul>
* <li><strong>30</strong></li>
* <li><strong>50</strong></li>
* <li><strong>100</strong></li>
* </ul>
* <p>Default value: 30.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID.</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-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 beginning of the time range to query. 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>
*
* <strong>example:</strong>
* <p>2019-05-30T12:10:00Z</p>
*/
public Builder startTime(String startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public DescribeCrossRegionBackupsRequest build() {
return new DescribeCrossRegionBackupsRequest(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/DescribeCrossRegionBackupsResponse.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 DescribeCrossRegionBackupsResponse} extends {@link TeaModel}
*
* <p>DescribeCrossRegionBackupsResponse</p>
*/
public class DescribeCrossRegionBackupsResponse 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 DescribeCrossRegionBackupsResponseBody body;
private DescribeCrossRegionBackupsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeCrossRegionBackupsResponse 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 DescribeCrossRegionBackupsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeCrossRegionBackupsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeCrossRegionBackupsResponseBody body);
@Override
DescribeCrossRegionBackupsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeCrossRegionBackupsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeCrossRegionBackupsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeCrossRegionBackupsResponse 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(DescribeCrossRegionBackupsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeCrossRegionBackupsResponse build() {
return new DescribeCrossRegionBackupsResponse(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/DescribeCrossRegionBackupsResponseBody.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 DescribeCrossRegionBackupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeCrossRegionBackupsResponseBody</p>
*/
public class DescribeCrossRegionBackupsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EndTime")
private String endTime;
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeCrossRegionBackupsResponseBody(Builder builder) {
this.endTime = builder.endTime;
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.regionId = builder.regionId;
this.requestId = builder.requestId;
this.startTime = builder.startTime;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCrossRegionBackupsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private String endTime;
private Items items;
private Integer pageNumber;
private Integer pageRecordCount;
private String regionId;
private String requestId;
private String startTime;
private Integer totalRecordCount;
private Builder() {
}
private Builder(DescribeCrossRegionBackupsResponseBody model) {
this.endTime = model.endTime;
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageRecordCount = model.pageRecordCount;
this.regionId = model.regionId;
this.requestId = model.requestId;
this.startTime = model.startTime;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>The end of the time range to query.</p>
*
* <strong>example:</strong>
* <p>2019-06-15T12:10:00Z</p>
*/
public Builder endTime(String endTime) {
this.endTime = endTime;
return this;
}
/**
* <p>The cross-region data backup files.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The page number. Pages start from page 1.</p>
* <p>Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of cross-region data backup files on the current page.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
return this;
}
/**
* <p>The region ID of the instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>60912B41-7579-4B5D-B289-8856030F0A6A</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The beginning of the time range to query.</p>
*
* <strong>example:</strong>
* <p>2019-05-30T12:10:00Z</p>
*/
public Builder startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The total number of entries that are returned.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeCrossRegionBackupsResponseBody build() {
return new DescribeCrossRegionBackupsResponseBody(this);
}
}
/**
*
* {@link DescribeCrossRegionBackupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeCrossRegionBackupsResponseBody</p>
*/
public static class RestoreRegions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RestoreRegion")
private java.util.List<String> restoreRegion;
private RestoreRegions(Builder builder) {
this.restoreRegion = builder.restoreRegion;
}
public static Builder builder() {
return new Builder();
}
public static RestoreRegions create() {
return builder().build();
}
/**
* @return restoreRegion
*/
public java.util.List<String> getRestoreRegion() {
return this.restoreRegion;
}
public static final class Builder {
private java.util.List<String> restoreRegion;
private Builder() {
}
private Builder(RestoreRegions model) {
this.restoreRegion = model.restoreRegion;
}
/**
* RestoreRegion.
*/
public Builder restoreRegion(java.util.List<String> restoreRegion) {
this.restoreRegion = restoreRegion;
return this;
}
public RestoreRegions build() {
return new RestoreRegions(this);
}
}
}
/**
*
* {@link DescribeCrossRegionBackupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeCrossRegionBackupsResponseBody</p>
*/
public static class Item extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BackupEndTime")
private String backupEndTime;
@com.aliyun.core.annotation.NameInMap("BackupMethod")
private String backupMethod;
@com.aliyun.core.annotation.NameInMap("BackupSetScale")
private Integer backupSetScale;
@com.aliyun.core.annotation.NameInMap("BackupSetStatus")
private Integer backupSetStatus;
@com.aliyun.core.annotation.NameInMap("BackupStartTime")
private String backupStartTime;
@com.aliyun.core.annotation.NameInMap("BackupType")
private String backupType;
@com.aliyun.core.annotation.NameInMap("Category")
private String category;
@com.aliyun.core.annotation.NameInMap("ConsistentTime")
private String consistentTime;
@com.aliyun.core.annotation.NameInMap("CrossBackupDownloadLink")
private String crossBackupDownloadLink;
@com.aliyun.core.annotation.NameInMap("CrossBackupId")
private Integer crossBackupId;
@com.aliyun.core.annotation.NameInMap("CrossBackupRegion")
private String crossBackupRegion;
@com.aliyun.core.annotation.NameInMap("CrossBackupSetFile")
private String crossBackupSetFile;
@com.aliyun.core.annotation.NameInMap("CrossBackupSetLocation")
private String crossBackupSetLocation;
@com.aliyun.core.annotation.NameInMap("CrossBackupSetSize")
private Long crossBackupSetSize;
@com.aliyun.core.annotation.NameInMap("DBInstanceStorageType")
private String DBInstanceStorageType;
@com.aliyun.core.annotation.NameInMap("Engine")
private String engine;
@com.aliyun.core.annotation.NameInMap("EngineVersion")
private String engineVersion;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private Integer instanceId;
@com.aliyun.core.annotation.NameInMap("RestoreRegions")
private RestoreRegions restoreRegions;
private Item(Builder builder) {
this.backupEndTime = builder.backupEndTime;
this.backupMethod = builder.backupMethod;
this.backupSetScale = builder.backupSetScale;
this.backupSetStatus = builder.backupSetStatus;
this.backupStartTime = builder.backupStartTime;
this.backupType = builder.backupType;
this.category = builder.category;
this.consistentTime = builder.consistentTime;
this.crossBackupDownloadLink = builder.crossBackupDownloadLink;
this.crossBackupId = builder.crossBackupId;
this.crossBackupRegion = builder.crossBackupRegion;
this.crossBackupSetFile = builder.crossBackupSetFile;
this.crossBackupSetLocation = builder.crossBackupSetLocation;
this.crossBackupSetSize = builder.crossBackupSetSize;
this.DBInstanceStorageType = builder.DBInstanceStorageType;
this.engine = builder.engine;
this.engineVersion = builder.engineVersion;
this.instanceId = builder.instanceId;
this.restoreRegions = builder.restoreRegions;
}
public static Builder builder() {
return new Builder();
}
public static Item create() {
return builder().build();
}
/**
* @return backupEndTime
*/
public String getBackupEndTime() {
return this.backupEndTime;
}
/**
* @return backupMethod
*/
public String getBackupMethod() {
return this.backupMethod;
}
/**
* @return backupSetScale
*/
public Integer getBackupSetScale() {
return this.backupSetScale;
}
/**
* @return backupSetStatus
*/
public Integer getBackupSetStatus() {
return this.backupSetStatus;
}
/**
* @return backupStartTime
*/
public String getBackupStartTime() {
return this.backupStartTime;
}
/**
* @return backupType
*/
public String getBackupType() {
return this.backupType;
}
/**
* @return category
*/
public String getCategory() {
return this.category;
}
/**
* @return consistentTime
*/
public String getConsistentTime() {
return this.consistentTime;
}
/**
* @return crossBackupDownloadLink
*/
public String getCrossBackupDownloadLink() {
return this.crossBackupDownloadLink;
}
/**
* @return crossBackupId
*/
public Integer getCrossBackupId() {
return this.crossBackupId;
}
/**
* @return crossBackupRegion
*/
public String getCrossBackupRegion() {
return this.crossBackupRegion;
}
/**
* @return crossBackupSetFile
*/
public String getCrossBackupSetFile() {
return this.crossBackupSetFile;
}
/**
* @return crossBackupSetLocation
*/
public String getCrossBackupSetLocation() {
return this.crossBackupSetLocation;
}
/**
* @return crossBackupSetSize
*/
public Long getCrossBackupSetSize() {
return this.crossBackupSetSize;
}
/**
* @return DBInstanceStorageType
*/
public String getDBInstanceStorageType() {
return this.DBInstanceStorageType;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return engineVersion
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
* @return instanceId
*/
public Integer getInstanceId() {
return this.instanceId;
}
/**
* @return restoreRegions
*/
public RestoreRegions getRestoreRegions() {
return this.restoreRegions;
}
public static final class Builder {
private String backupEndTime;
private String backupMethod;
private Integer backupSetScale;
private Integer backupSetStatus;
private String backupStartTime;
private String backupType;
private String category;
private String consistentTime;
private String crossBackupDownloadLink;
private Integer crossBackupId;
private String crossBackupRegion;
private String crossBackupSetFile;
private String crossBackupSetLocation;
private Long crossBackupSetSize;
private String DBInstanceStorageType;
private String engine;
private String engineVersion;
private Integer instanceId;
private RestoreRegions restoreRegions;
private Builder() {
}
private Builder(Item model) {
this.backupEndTime = model.backupEndTime;
this.backupMethod = model.backupMethod;
this.backupSetScale = model.backupSetScale;
this.backupSetStatus = model.backupSetStatus;
this.backupStartTime = model.backupStartTime;
this.backupType = model.backupType;
this.category = model.category;
this.consistentTime = model.consistentTime;
this.crossBackupDownloadLink = model.crossBackupDownloadLink;
this.crossBackupId = model.crossBackupId;
this.crossBackupRegion = model.crossBackupRegion;
this.crossBackupSetFile = model.crossBackupSetFile;
this.crossBackupSetLocation = model.crossBackupSetLocation;
this.crossBackupSetSize = model.crossBackupSetSize;
this.DBInstanceStorageType = model.DBInstanceStorageType;
this.engine = model.engine;
this.engineVersion = model.engineVersion;
this.instanceId = model.instanceId;
this.restoreRegions = model.restoreRegions;
}
/**
* <p>The time when the cross-region data backup file was generated.</p>
*
* <strong>example:</strong>
* <p>2019-06-15T12:10:00Z</p>
*/
public Builder backupEndTime(String backupEndTime) {
this.backupEndTime = backupEndTime;
return this;
}
/**
* <p>The method that is used to generate the cross-region data backup file. Valid values:</p>
* <ul>
* <li><strong>L</strong>: logical backup</li>
* <li><strong>P</strong>: physical backup</li>
* </ul>
*
* <strong>example:</strong>
* <p>P</p>
*/
public Builder backupMethod(String backupMethod) {
this.backupMethod = backupMethod;
return this;
}
/**
* <p>The level at which the cross-region data backup file is generated.</p>
* <ul>
* <li><strong>0</strong>: instance-level backup</li>
* <li><strong>1</strong>: database-level backup</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder backupSetScale(Integer backupSetScale) {
this.backupSetScale = backupSetScale;
return this;
}
/**
* <p>The status of the cross-region data backup. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The cross-region data backup is successful.</li>
* <li><strong>1</strong>: The cross-region data backup failed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder backupSetStatus(Integer backupSetStatus) {
this.backupSetStatus = backupSetStatus;
return this;
}
/**
* <p>The time when the cross-region data backup started.</p>
*
* <strong>example:</strong>
* <p>2019-05-30T12:10:00Z</p>
*/
public Builder backupStartTime(String backupStartTime) {
this.backupStartTime = backupStartTime;
return this;
}
/**
* <p>The type of the cross-region data backup. Valid values:</p>
* <ul>
* <li><strong>F</strong>: full data backup</li>
* <li><strong>I</strong>: incremental data backup</li>
* </ul>
*
* <strong>example:</strong>
* <p>F</p>
*/
public Builder backupType(String backupType) {
this.backupType = backupType;
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>Finance</strong>: RDS Enterprise Edition. This edition is available only for the China site (aliyun.com).</li>
* </ul>
*
* <strong>example:</strong>
* <p>HighAvailability</p>
*/
public Builder category(String category) {
this.category = category;
return this;
}
/**
* <p>The point in time that is indicated by the data in the cross-region data backup file.</p>
*
* <strong>example:</strong>
* <p>2019-06-12T05:44:46Z</p>
*/
public Builder consistentTime(String consistentTime) {
this.consistentTime = consistentTime;
return this;
}
/**
* <p>The external URL from which you can download the cross-region data backup file.</p>
*
* <strong>example:</strong>
* <p><a href="http://rdsddrbak-shanghai.oss-cn-shanghai.aliyuncs.com/xxxxx">http://rdsddrbak-shanghai.oss-cn-shanghai.aliyuncs.com/xxxxx</a></p>
*/
public Builder crossBackupDownloadLink(String crossBackupDownloadLink) {
this.crossBackupDownloadLink = crossBackupDownloadLink;
return this;
}
/**
* <p>The ID of the cross-region data backup file.</p>
*
* <strong>example:</strong>
* <p>14377</p>
*/
public Builder crossBackupId(Integer crossBackupId) {
this.crossBackupId = crossBackupId;
return this;
}
/**
* <p>The ID of the region in which the cross-region backup files of the instance are stored.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder crossBackupRegion(String crossBackupRegion) {
this.crossBackupRegion = crossBackupRegion;
return this;
}
/**
* <p>The name of the compressed package that contains the cross-region data backup file.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou_rm-xxxxx_hins81xxx_data_20190612134426_qp.xb</p>
*/
public Builder crossBackupSetFile(String crossBackupSetFile) {
this.crossBackupSetFile = crossBackupSetFile;
return this;
}
/**
* <p>The location where the cross-region data backup file is stored.</p>
*
* <strong>example:</strong>
* <p>oss</p>
*/
public Builder crossBackupSetLocation(String crossBackupSetLocation) {
this.crossBackupSetLocation = crossBackupSetLocation;
return this;
}
/**
* <p>The size of the cross-region data backup file. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>5312836</p>
*/
public Builder crossBackupSetSize(Long crossBackupSetSize) {
this.crossBackupSetSize = crossBackupSetSize;
return this;
}
/**
* <p>The storage type. Valid values:</p>
* <ul>
* <li><strong>local_ssd</strong>: local SSDs. This is the recommended storage type.</li>
* <li><strong>cloud_ssd</strong>: standard SSD.</li>
* <li><strong>cloud_essd</strong>: enhanced SSD (ESSD).</li>
* </ul>
*
* <strong>example:</strong>
* <p>ssd</p>
*/
public Builder DBInstanceStorageType(String DBInstanceStorageType) {
this.DBInstanceStorageType = DBInstanceStorageType;
return this;
}
/**
* <p>The database engine of the instance.</p>
*
* <strong>example:</strong>
* <p>mysql</p>
*/
public Builder engine(String engine) {
this.engine = engine;
return this;
}
/**
* <p>The database engine version.</p>
*
* <strong>example:</strong>
* <p>5.6</p>
*/
public Builder engineVersion(String engineVersion) {
this.engineVersion = engineVersion;
return this;
}
/**
* <p>The instance ID. This parameter is used to determine whether the instance that generates the cross-region data backup file is a primary or secondary instance.</p>
*
* <strong>example:</strong>
* <p>8161055</p>
*/
public Builder instanceId(Integer instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The regions to which the cross-region data backup file can be restored.</p>
*/
public Builder restoreRegions(RestoreRegions restoreRegions) {
this.restoreRegions = restoreRegions;
return this;
}
public Item build() {
return new Item(this);
}
}
}
/**
*
* {@link DescribeCrossRegionBackupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeCrossRegionBackupsResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Item")
private java.util.List<Item> item;
private Items(Builder builder) {
this.item = builder.item;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return item
*/
public java.util.List<Item> getItem() {
return this.item;
}
public static final class Builder {
private java.util.List<Item> item;
private Builder() {
}
private Builder(Items model) {
this.item = model.item;
}
/**
* Item.
*/
public Builder item(java.util.List<Item> item) {
this.item = item;
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/DescribeCrossRegionLogBackupFilesRequest.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 DescribeCrossRegionLogBackupFilesRequest} extends {@link RequestModel}
*
* <p>DescribeCrossRegionLogBackupFilesRequest</p>
*/
public class DescribeCrossRegionLogBackupFilesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CrossBackupRegion")
private String crossBackupRegion;
@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("EndTime")
@com.aliyun.core.annotation.Validation(required = true)
private String endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@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("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("StartTime")
@com.aliyun.core.annotation.Validation(required = true)
private String startTime;
private DescribeCrossRegionLogBackupFilesRequest(Builder builder) {
super(builder);
this.crossBackupRegion = builder.crossBackupRegion;
this.DBInstanceId = builder.DBInstanceId;
this.endTime = builder.endTime;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCrossRegionLogBackupFilesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return crossBackupRegion
*/
public String getCrossBackupRegion() {
return this.crossBackupRegion;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder<DescribeCrossRegionLogBackupFilesRequest, Builder> {
private String crossBackupRegion;
private String DBInstanceId;
private String endTime;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String startTime;
private Builder() {
super();
}
private Builder(DescribeCrossRegionLogBackupFilesRequest request) {
super(request);
this.crossBackupRegion = request.crossBackupRegion;
this.DBInstanceId = request.DBInstanceId;
this.endTime = request.endTime;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.startTime = request.startTime;
}
/**
* <p>The ID of the destination region within which the cross-region backup file is stored. You can call the DescribeCrossRegionBackupDBInstance operation to query the region ID.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder crossBackupRegion(String crossBackupRegion) {
this.putQueryParameter("CrossBackupRegion", crossBackupRegion);
this.crossBackupRegion = crossBackupRegion;
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 end of the time range to query. 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>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2019-06-15T12:10:00Z</p>
*/
public Builder endTime(String endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Valid values: any non-zero positive integer.</p>
* <p>Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page. Valid values:</p>
* <ul>
* <li><strong>30</strong></li>
* <li><strong>50</strong></li>
* <li><strong>100</strong></li>
* </ul>
* <p>Default value: 30.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
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 beginning of the time range to query. 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>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2019-05-30T12:10:00Z</p>
*/
public Builder startTime(String startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public DescribeCrossRegionLogBackupFilesRequest build() {
return new DescribeCrossRegionLogBackupFilesRequest(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/DescribeCrossRegionLogBackupFilesResponse.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 DescribeCrossRegionLogBackupFilesResponse} extends {@link TeaModel}
*
* <p>DescribeCrossRegionLogBackupFilesResponse</p>
*/
public class DescribeCrossRegionLogBackupFilesResponse 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 DescribeCrossRegionLogBackupFilesResponseBody body;
private DescribeCrossRegionLogBackupFilesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeCrossRegionLogBackupFilesResponse 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 DescribeCrossRegionLogBackupFilesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeCrossRegionLogBackupFilesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeCrossRegionLogBackupFilesResponseBody body);
@Override
DescribeCrossRegionLogBackupFilesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeCrossRegionLogBackupFilesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeCrossRegionLogBackupFilesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeCrossRegionLogBackupFilesResponse 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(DescribeCrossRegionLogBackupFilesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeCrossRegionLogBackupFilesResponse build() {
return new DescribeCrossRegionLogBackupFilesResponse(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/DescribeCrossRegionLogBackupFilesResponseBody.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 DescribeCrossRegionLogBackupFilesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCrossRegionLogBackupFilesResponseBody</p>
*/
public class DescribeCrossRegionLogBackupFilesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("EndTime")
private String endTime;
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeCrossRegionLogBackupFilesResponseBody(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.endTime = builder.endTime;
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.regionId = builder.regionId;
this.requestId = builder.requestId;
this.startTime = builder.startTime;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCrossRegionLogBackupFilesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private String DBInstanceId;
private String endTime;
private Items items;
private Integer pageNumber;
private Integer pageRecordCount;
private String regionId;
private String requestId;
private String startTime;
private Integer totalRecordCount;
private Builder() {
}
private Builder(DescribeCrossRegionLogBackupFilesResponseBody model) {
this.DBInstanceId = model.DBInstanceId;
this.endTime = model.endTime;
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageRecordCount = model.pageRecordCount;
this.regionId = model.regionId;
this.requestId = model.requestId;
this.startTime = model.startTime;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The end of the time range to query. 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>
*
* <strong>example:</strong>
* <p>2019-06-15T12:10:00Z</p>
*/
public Builder endTime(String endTime) {
this.endTime = endTime;
return this;
}
/**
* <p>The cross-region log backup files.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The page number. Pages start from page 1.</p>
* <p>Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of cross-region backup files on the current page.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
return this;
}
/**
* <p>The region ID of the instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>DAC241E8-28E6-49DA-BFB0-B2DD090885C1</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The beginning of the time range to query. 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>
*
* <strong>example:</strong>
* <p>2019-05-30T12:10:00Z</p>
*/
public Builder startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The total number of entries that are returned.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeCrossRegionLogBackupFilesResponseBody build() {
return new DescribeCrossRegionLogBackupFilesResponseBody(this);
}
}
/**
*
* {@link DescribeCrossRegionLogBackupFilesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCrossRegionLogBackupFilesResponseBody</p>
*/
public static class Item extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CrossBackupRegion")
private String crossBackupRegion;
@com.aliyun.core.annotation.NameInMap("CrossDownloadLink")
private String crossDownloadLink;
@com.aliyun.core.annotation.NameInMap("CrossIntranetDownloadLink")
private String crossIntranetDownloadLink;
@com.aliyun.core.annotation.NameInMap("CrossLogBackupId")
private Integer crossLogBackupId;
@com.aliyun.core.annotation.NameInMap("CrossLogBackupSize")
private Long crossLogBackupSize;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private Integer instanceId;
@com.aliyun.core.annotation.NameInMap("LinkExpiredTime")
private String linkExpiredTime;
@com.aliyun.core.annotation.NameInMap("LogBeginTime")
private String logBeginTime;
@com.aliyun.core.annotation.NameInMap("LogEndTime")
private String logEndTime;
@com.aliyun.core.annotation.NameInMap("LogFileName")
private String logFileName;
private Item(Builder builder) {
this.crossBackupRegion = builder.crossBackupRegion;
this.crossDownloadLink = builder.crossDownloadLink;
this.crossIntranetDownloadLink = builder.crossIntranetDownloadLink;
this.crossLogBackupId = builder.crossLogBackupId;
this.crossLogBackupSize = builder.crossLogBackupSize;
this.instanceId = builder.instanceId;
this.linkExpiredTime = builder.linkExpiredTime;
this.logBeginTime = builder.logBeginTime;
this.logEndTime = builder.logEndTime;
this.logFileName = builder.logFileName;
}
public static Builder builder() {
return new Builder();
}
public static Item create() {
return builder().build();
}
/**
* @return crossBackupRegion
*/
public String getCrossBackupRegion() {
return this.crossBackupRegion;
}
/**
* @return crossDownloadLink
*/
public String getCrossDownloadLink() {
return this.crossDownloadLink;
}
/**
* @return crossIntranetDownloadLink
*/
public String getCrossIntranetDownloadLink() {
return this.crossIntranetDownloadLink;
}
/**
* @return crossLogBackupId
*/
public Integer getCrossLogBackupId() {
return this.crossLogBackupId;
}
/**
* @return crossLogBackupSize
*/
public Long getCrossLogBackupSize() {
return this.crossLogBackupSize;
}
/**
* @return instanceId
*/
public Integer getInstanceId() {
return this.instanceId;
}
/**
* @return linkExpiredTime
*/
public String getLinkExpiredTime() {
return this.linkExpiredTime;
}
/**
* @return logBeginTime
*/
public String getLogBeginTime() {
return this.logBeginTime;
}
/**
* @return logEndTime
*/
public String getLogEndTime() {
return this.logEndTime;
}
/**
* @return logFileName
*/
public String getLogFileName() {
return this.logFileName;
}
public static final class Builder {
private String crossBackupRegion;
private String crossDownloadLink;
private String crossIntranetDownloadLink;
private Integer crossLogBackupId;
private Long crossLogBackupSize;
private Integer instanceId;
private String linkExpiredTime;
private String logBeginTime;
private String logEndTime;
private String logFileName;
private Builder() {
}
private Builder(Item model) {
this.crossBackupRegion = model.crossBackupRegion;
this.crossDownloadLink = model.crossDownloadLink;
this.crossIntranetDownloadLink = model.crossIntranetDownloadLink;
this.crossLogBackupId = model.crossLogBackupId;
this.crossLogBackupSize = model.crossLogBackupSize;
this.instanceId = model.instanceId;
this.linkExpiredTime = model.linkExpiredTime;
this.logBeginTime = model.logBeginTime;
this.logEndTime = model.logEndTime;
this.logFileName = model.logFileName;
}
/**
* <p>The ID of the destination region within which the cross-region backup file is stored.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder crossBackupRegion(String crossBackupRegion) {
this.crossBackupRegion = crossBackupRegion;
return this;
}
/**
* <p>The external URL from which you can download the cross-region log backup file.</p>
*
* <strong>example:</strong>
* <p><a href="http://rdsddrlog-zb.oss-cn-zhangjiakou.aliyuncs.com/xxxxx">http://rdsddrlog-zb.oss-cn-zhangjiakou.aliyuncs.com/xxxxx</a></p>
*/
public Builder crossDownloadLink(String crossDownloadLink) {
this.crossDownloadLink = crossDownloadLink;
return this;
}
/**
* <p>The internal URL from which you can download the cross-region log backup file.</p>
*
* <strong>example:</strong>
* <p><a href="http://rdsddrlog-zb.oss-cn-zhangjiakou-internal.aliyuncs.com/xxxxx">http://rdsddrlog-zb.oss-cn-zhangjiakou-internal.aliyuncs.com/xxxxx</a></p>
*/
public Builder crossIntranetDownloadLink(String crossIntranetDownloadLink) {
this.crossIntranetDownloadLink = crossIntranetDownloadLink;
return this;
}
/**
* <p>The ID of the cross-region log backup file.</p>
*
* <strong>example:</strong>
* <p>14567</p>
*/
public Builder crossLogBackupId(Integer crossLogBackupId) {
this.crossLogBackupId = crossLogBackupId;
return this;
}
/**
* <p>The size of the cross-region log backup file. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>5312836</p>
*/
public Builder crossLogBackupSize(Long crossLogBackupSize) {
this.crossLogBackupSize = crossLogBackupSize;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>8161055</p>
*/
public Builder instanceId(Integer instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The time when the URL expires. 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>
*
* <strong>example:</strong>
* <p>2019-06-30T15:00:00Z</p>
*/
public Builder linkExpiredTime(String linkExpiredTime) {
this.linkExpiredTime = linkExpiredTime;
return this;
}
/**
* <p>The start time of the cross-region log backup file. 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>
*
* <strong>example:</strong>
* <p>2019-05-30T12:10:00Z</p>
*/
public Builder logBeginTime(String logBeginTime) {
this.logBeginTime = logBeginTime;
return this;
}
/**
* <p>The end time of the cross-region log backup file. 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>
*
* <strong>example:</strong>
* <p>2019-05-30T20:10:00Z</p>
*/
public Builder logEndTime(String logEndTime) {
this.logEndTime = logEndTime;
return this;
}
/**
* <p>The name of the cross-region log backup file.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou_rm-bpxxxxx_7198739_mysql-bin.000230</p>
*/
public Builder logFileName(String logFileName) {
this.logFileName = logFileName;
return this;
}
public Item build() {
return new Item(this);
}
}
}
/**
*
* {@link DescribeCrossRegionLogBackupFilesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCrossRegionLogBackupFilesResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Item")
private java.util.List<Item> item;
private Items(Builder builder) {
this.item = builder.item;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return item
*/
public java.util.List<Item> getItem() {
return this.item;
}
public static final class Builder {
private java.util.List<Item> item;
private Builder() {
}
private Builder(Items model) {
this.item = model.item;
}
/**
* Item.
*/
public Builder item(java.util.List<Item> item) {
this.item = item;
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/DescribeCurrentModifyOrderRequest.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 DescribeCurrentModifyOrderRequest} extends {@link RequestModel}
*
* <p>DescribeCurrentModifyOrderRequest</p>
*/
public class DescribeCurrentModifyOrderRequest 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("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;
private DescribeCurrentModifyOrderRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dbInstanceId = builder.dbInstanceId;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCurrentModifyOrderRequest 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 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;
}
public static final class Builder extends Request.Builder<DescribeCurrentModifyOrderRequest, Builder> {
private String clientToken;
private String dbInstanceId;
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeCurrentModifyOrderRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dbInstanceId = request.dbInstanceId;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
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 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>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-bp1u775467ggm7j9j</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;
}
/**
* <p>The region ID of the instance.</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-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 DescribeCurrentModifyOrderRequest build() {
return new DescribeCurrentModifyOrderRequest(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/DescribeCurrentModifyOrderResponse.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 DescribeCurrentModifyOrderResponse} extends {@link TeaModel}
*
* <p>DescribeCurrentModifyOrderResponse</p>
*/
public class DescribeCurrentModifyOrderResponse 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 DescribeCurrentModifyOrderResponseBody body;
private DescribeCurrentModifyOrderResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeCurrentModifyOrderResponse 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 DescribeCurrentModifyOrderResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeCurrentModifyOrderResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeCurrentModifyOrderResponseBody body);
@Override
DescribeCurrentModifyOrderResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeCurrentModifyOrderResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeCurrentModifyOrderResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeCurrentModifyOrderResponse 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(DescribeCurrentModifyOrderResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeCurrentModifyOrderResponse build() {
return new DescribeCurrentModifyOrderResponse(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/DescribeCurrentModifyOrderResponseBody.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 DescribeCurrentModifyOrderResponseBody} extends {@link TeaModel}
*
* <p>DescribeCurrentModifyOrderResponseBody</p>
*/
public class DescribeCurrentModifyOrderResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ModifyOrder")
private java.util.List<ModifyOrder> modifyOrder;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeCurrentModifyOrderResponseBody(Builder builder) {
this.modifyOrder = builder.modifyOrder;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCurrentModifyOrderResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return modifyOrder
*/
public java.util.List<ModifyOrder> getModifyOrder() {
return this.modifyOrder;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<ModifyOrder> modifyOrder;
private String requestId;
private Builder() {
}
private Builder(DescribeCurrentModifyOrderResponseBody model) {
this.modifyOrder = model.modifyOrder;
this.requestId = model.requestId;
}
/**
* <p>The specification change order.</p>
*/
public Builder modifyOrder(java.util.List<ModifyOrder> modifyOrder) {
this.modifyOrder = modifyOrder;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>C87415BE-F5AB-55A4-A60E-A0A329EAF2A4</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeCurrentModifyOrderResponseBody build() {
return new DescribeCurrentModifyOrderResponseBody(this);
}
}
/**
*
* {@link DescribeCurrentModifyOrderResponseBody} extends {@link TeaModel}
*
* <p>DescribeCurrentModifyOrderResponseBody</p>
*/
public static class ModifyOrder extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClassGroup")
private String classGroup;
@com.aliyun.core.annotation.NameInMap("Cpu")
private String cpu;
@com.aliyun.core.annotation.NameInMap("DbInstanceId")
private String dbInstanceId;
@com.aliyun.core.annotation.NameInMap("EffectiveTime")
private String effectiveTime;
@com.aliyun.core.annotation.NameInMap("Mark")
private String mark;
@com.aliyun.core.annotation.NameInMap("MemoryClass")
private String memoryClass;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Storage")
private String storage;
@com.aliyun.core.annotation.NameInMap("TargetDBInstanceClass")
private String targetDBInstanceClass;
private ModifyOrder(Builder builder) {
this.classGroup = builder.classGroup;
this.cpu = builder.cpu;
this.dbInstanceId = builder.dbInstanceId;
this.effectiveTime = builder.effectiveTime;
this.mark = builder.mark;
this.memoryClass = builder.memoryClass;
this.status = builder.status;
this.storage = builder.storage;
this.targetDBInstanceClass = builder.targetDBInstanceClass;
}
public static Builder builder() {
return new Builder();
}
public static ModifyOrder create() {
return builder().build();
}
/**
* @return classGroup
*/
public String getClassGroup() {
return this.classGroup;
}
/**
* @return cpu
*/
public String getCpu() {
return this.cpu;
}
/**
* @return dbInstanceId
*/
public String getDbInstanceId() {
return this.dbInstanceId;
}
/**
* @return effectiveTime
*/
public String getEffectiveTime() {
return this.effectiveTime;
}
/**
* @return mark
*/
public String getMark() {
return this.mark;
}
/**
* @return memoryClass
*/
public String getMemoryClass() {
return this.memoryClass;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return storage
*/
public String getStorage() {
return this.storage;
}
/**
* @return targetDBInstanceClass
*/
public String getTargetDBInstanceClass() {
return this.targetDBInstanceClass;
}
public static final class Builder {
private String classGroup;
private String cpu;
private String dbInstanceId;
private String effectiveTime;
private String mark;
private String memoryClass;
private String status;
private String storage;
private String targetDBInstanceClass;
private Builder() {
}
private Builder(ModifyOrder model) {
this.classGroup = model.classGroup;
this.cpu = model.cpu;
this.dbInstanceId = model.dbInstanceId;
this.effectiveTime = model.effectiveTime;
this.mark = model.mark;
this.memoryClass = model.memoryClass;
this.status = model.status;
this.storage = model.storage;
this.targetDBInstanceClass = model.targetDBInstanceClass;
}
/**
* <p>The instance family of the instance.</p>
*
* <strong>example:</strong>
* <p>x</p>
*/
public Builder classGroup(String classGroup) {
this.classGroup = classGroup;
return this;
}
/**
* <p>The number of CPU cores that are supported by the instance type. Unit: cores.</p>
*
* <strong>example:</strong>
* <p>8</p>
*/
public Builder cpu(String cpu) {
this.cpu = cpu;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-cn-nwy39qeys0003r</p>
*/
public Builder dbInstanceId(String dbInstanceId) {
this.dbInstanceId = dbInstanceId;
return this;
}
/**
* <p>The effective time. Valid values:</p>
* <ul>
* <li><strong>Immediate</strong>: This is the default value.</li>
* <li><strong>MaintainTime</strong>: The effective time is within the maintenance window. For more information, see <a href="https://help.aliyun.com/document_detail/610402.html">ModifyDBInstanceMaintainTime</a>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>MaintainTime</p>
*/
public Builder effectiveTime(String effectiveTime) {
this.effectiveTime = effectiveTime;
return this;
}
/**
* <p>The description of the instance.</p>
*
* <strong>example:</strong>
* <p>eyJ2IjoibWV0YS5rOHMuaW8vdjEiLCJydiI6MTg2MjEwOTkwLCJzdGFydCI6InNob3BpZnktdXNlci1jb3JlXHUwMDAwIn0</p>
*/
public Builder mark(String mark) {
this.mark = mark;
return this;
}
/**
* <p>The memory capacity that is supported by the instance type. Unit: GB.</p>
*
* <strong>example:</strong>
* <p>1024</p>
*/
public Builder memoryClass(String memoryClass) {
this.memoryClass = memoryClass;
return this;
}
/**
* <p>The status of the task.</p>
*
* <strong>example:</strong>
* <p>Succeed,Scheduled,Running,Cancelling,Canceled,Waiting</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The storage capacity of the instance.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder storage(String storage) {
this.storage = storage;
return this;
}
/**
* <p>The new instance type of the instance. Valid values:</p>
*
* <strong>example:</strong>
* <p>mysql.x2.medium.2c</p>
*/
public Builder targetDBInstanceClass(String targetDBInstanceClass) {
this.targetDBInstanceClass = targetDBInstanceClass;
return this;
}
public ModifyOrder build() {
return new ModifyOrder(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/DescribeCustinsResourceInfoRequest.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 DescribeCustinsResourceInfoRequest} extends {@link RequestModel}
*
* <p>DescribeCustinsResourceInfoRequest</p>
*/
public class DescribeCustinsResourceInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceIds")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceIds;
@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 DescribeCustinsResourceInfoRequest(Builder builder) {
super(builder);
this.DBInstanceIds = builder.DBInstanceIds;
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 DescribeCustinsResourceInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceIds
*/
public String getDBInstanceIds() {
return this.DBInstanceIds;
}
/**
* @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<DescribeCustinsResourceInfoRequest, Builder> {
private String DBInstanceIds;
private Long ownerId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeCustinsResourceInfoRequest request) {
super(request);
this.DBInstanceIds = request.DBInstanceIds;
this.ownerId = request.ownerId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The instance ID. You can call the <a href="https://help.aliyun.com/document_detail/26232.html">DescribeDBInstances</a> operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-wz9s06u4drmqj4aqv</p>
*/
public Builder DBInstanceIds(String DBInstanceIds) {
this.putQueryParameter("DBInstanceIds", DBInstanceIds);
this.DBInstanceIds = DBInstanceIds;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
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;
}
@Override
public DescribeCustinsResourceInfoRequest build() {
return new DescribeCustinsResourceInfoRequest(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/DescribeCustinsResourceInfoResponse.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 DescribeCustinsResourceInfoResponse} extends {@link TeaModel}
*
* <p>DescribeCustinsResourceInfoResponse</p>
*/
public class DescribeCustinsResourceInfoResponse 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 DescribeCustinsResourceInfoResponseBody body;
private DescribeCustinsResourceInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeCustinsResourceInfoResponse 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 DescribeCustinsResourceInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeCustinsResourceInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeCustinsResourceInfoResponseBody body);
@Override
DescribeCustinsResourceInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeCustinsResourceInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeCustinsResourceInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeCustinsResourceInfoResponse 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(DescribeCustinsResourceInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeCustinsResourceInfoResponse build() {
return new DescribeCustinsResourceInfoResponse(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/DescribeCustinsResourceInfoResponseBody.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 DescribeCustinsResourceInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeCustinsResourceInfoResponseBody</p>
*/
public class DescribeCustinsResourceInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeCustinsResourceInfoResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCustinsResourceInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<Data> data;
private String requestId;
private Builder() {
}
private Builder(DescribeCustinsResourceInfoResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The returned data.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>D4D4BE8A-DD46-440A-BFCD-EE31DA81C9DD</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeCustinsResourceInfoResponseBody build() {
return new DescribeCustinsResourceInfoResponseBody(this);
}
}
/**
*
* {@link DescribeCustinsResourceInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeCustinsResourceInfoResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CpuAdjustDeadline")
private String cpuAdjustDeadline;
@com.aliyun.core.annotation.NameInMap("CpuAdjustableMaxRatio")
private String cpuAdjustableMaxRatio;
@com.aliyun.core.annotation.NameInMap("CpuAdjustableMaxValue")
private String cpuAdjustableMaxValue;
@com.aliyun.core.annotation.NameInMap("CpuIncreaseRatio")
private String cpuIncreaseRatio;
@com.aliyun.core.annotation.NameInMap("CpuIncreaseRatioValue")
private String cpuIncreaseRatioValue;
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("IopsAdjustableMaxValue")
private String iopsAdjustableMaxValue;
@com.aliyun.core.annotation.NameInMap("MaxConnAdjustDeadline")
private String maxConnAdjustDeadline;
@com.aliyun.core.annotation.NameInMap("MaxConnAdjustableMaxValue")
private String maxConnAdjustableMaxValue;
@com.aliyun.core.annotation.NameInMap("MaxConnIncreaseRatio")
private String maxConnIncreaseRatio;
@com.aliyun.core.annotation.NameInMap("MaxConnIncreaseRatioValue")
private String maxConnIncreaseRatioValue;
@com.aliyun.core.annotation.NameInMap("MaxIopsAdjustDeadline")
private String maxIopsAdjustDeadline;
@com.aliyun.core.annotation.NameInMap("MaxIopsIncreaseRatio")
private String maxIopsIncreaseRatio;
@com.aliyun.core.annotation.NameInMap("MaxIopsIncreaseRatioValue")
private String maxIopsIncreaseRatioValue;
@com.aliyun.core.annotation.NameInMap("MemAdjustableMaxRatio")
private String memAdjustableMaxRatio;
@com.aliyun.core.annotation.NameInMap("MemAdjustableMaxValue")
private String memAdjustableMaxValue;
@com.aliyun.core.annotation.NameInMap("MemoryAdjustDeadline")
private String memoryAdjustDeadline;
@com.aliyun.core.annotation.NameInMap("MemoryIncreaseRatio")
private String memoryIncreaseRatio;
@com.aliyun.core.annotation.NameInMap("MemoryIncreaseRatioValue")
private String memoryIncreaseRatioValue;
@com.aliyun.core.annotation.NameInMap("OriginCpu")
private String originCpu;
@com.aliyun.core.annotation.NameInMap("OriginMaxConn")
private String originMaxConn;
@com.aliyun.core.annotation.NameInMap("OriginMaxIops")
private String originMaxIops;
@com.aliyun.core.annotation.NameInMap("OriginMemory")
private String originMemory;
private Data(Builder builder) {
this.cpuAdjustDeadline = builder.cpuAdjustDeadline;
this.cpuAdjustableMaxRatio = builder.cpuAdjustableMaxRatio;
this.cpuAdjustableMaxValue = builder.cpuAdjustableMaxValue;
this.cpuIncreaseRatio = builder.cpuIncreaseRatio;
this.cpuIncreaseRatioValue = builder.cpuIncreaseRatioValue;
this.DBInstanceId = builder.DBInstanceId;
this.iopsAdjustableMaxValue = builder.iopsAdjustableMaxValue;
this.maxConnAdjustDeadline = builder.maxConnAdjustDeadline;
this.maxConnAdjustableMaxValue = builder.maxConnAdjustableMaxValue;
this.maxConnIncreaseRatio = builder.maxConnIncreaseRatio;
this.maxConnIncreaseRatioValue = builder.maxConnIncreaseRatioValue;
this.maxIopsAdjustDeadline = builder.maxIopsAdjustDeadline;
this.maxIopsIncreaseRatio = builder.maxIopsIncreaseRatio;
this.maxIopsIncreaseRatioValue = builder.maxIopsIncreaseRatioValue;
this.memAdjustableMaxRatio = builder.memAdjustableMaxRatio;
this.memAdjustableMaxValue = builder.memAdjustableMaxValue;
this.memoryAdjustDeadline = builder.memoryAdjustDeadline;
this.memoryIncreaseRatio = builder.memoryIncreaseRatio;
this.memoryIncreaseRatioValue = builder.memoryIncreaseRatioValue;
this.originCpu = builder.originCpu;
this.originMaxConn = builder.originMaxConn;
this.originMaxIops = builder.originMaxIops;
this.originMemory = builder.originMemory;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return cpuAdjustDeadline
*/
public String getCpuAdjustDeadline() {
return this.cpuAdjustDeadline;
}
/**
* @return cpuAdjustableMaxRatio
*/
public String getCpuAdjustableMaxRatio() {
return this.cpuAdjustableMaxRatio;
}
/**
* @return cpuAdjustableMaxValue
*/
public String getCpuAdjustableMaxValue() {
return this.cpuAdjustableMaxValue;
}
/**
* @return cpuIncreaseRatio
*/
public String getCpuIncreaseRatio() {
return this.cpuIncreaseRatio;
}
/**
* @return cpuIncreaseRatioValue
*/
public String getCpuIncreaseRatioValue() {
return this.cpuIncreaseRatioValue;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return iopsAdjustableMaxValue
*/
public String getIopsAdjustableMaxValue() {
return this.iopsAdjustableMaxValue;
}
/**
* @return maxConnAdjustDeadline
*/
public String getMaxConnAdjustDeadline() {
return this.maxConnAdjustDeadline;
}
/**
* @return maxConnAdjustableMaxValue
*/
public String getMaxConnAdjustableMaxValue() {
return this.maxConnAdjustableMaxValue;
}
/**
* @return maxConnIncreaseRatio
*/
public String getMaxConnIncreaseRatio() {
return this.maxConnIncreaseRatio;
}
/**
* @return maxConnIncreaseRatioValue
*/
public String getMaxConnIncreaseRatioValue() {
return this.maxConnIncreaseRatioValue;
}
/**
* @return maxIopsAdjustDeadline
*/
public String getMaxIopsAdjustDeadline() {
return this.maxIopsAdjustDeadline;
}
/**
* @return maxIopsIncreaseRatio
*/
public String getMaxIopsIncreaseRatio() {
return this.maxIopsIncreaseRatio;
}
/**
* @return maxIopsIncreaseRatioValue
*/
public String getMaxIopsIncreaseRatioValue() {
return this.maxIopsIncreaseRatioValue;
}
/**
* @return memAdjustableMaxRatio
*/
public String getMemAdjustableMaxRatio() {
return this.memAdjustableMaxRatio;
}
/**
* @return memAdjustableMaxValue
*/
public String getMemAdjustableMaxValue() {
return this.memAdjustableMaxValue;
}
/**
* @return memoryAdjustDeadline
*/
public String getMemoryAdjustDeadline() {
return this.memoryAdjustDeadline;
}
/**
* @return memoryIncreaseRatio
*/
public String getMemoryIncreaseRatio() {
return this.memoryIncreaseRatio;
}
/**
* @return memoryIncreaseRatioValue
*/
public String getMemoryIncreaseRatioValue() {
return this.memoryIncreaseRatioValue;
}
/**
* @return originCpu
*/
public String getOriginCpu() {
return this.originCpu;
}
/**
* @return originMaxConn
*/
public String getOriginMaxConn() {
return this.originMaxConn;
}
/**
* @return originMaxIops
*/
public String getOriginMaxIops() {
return this.originMaxIops;
}
/**
* @return originMemory
*/
public String getOriginMemory() {
return this.originMemory;
}
public static final class Builder {
private String cpuAdjustDeadline;
private String cpuAdjustableMaxRatio;
private String cpuAdjustableMaxValue;
private String cpuIncreaseRatio;
private String cpuIncreaseRatioValue;
private String DBInstanceId;
private String iopsAdjustableMaxValue;
private String maxConnAdjustDeadline;
private String maxConnAdjustableMaxValue;
private String maxConnIncreaseRatio;
private String maxConnIncreaseRatioValue;
private String maxIopsAdjustDeadline;
private String maxIopsIncreaseRatio;
private String maxIopsIncreaseRatioValue;
private String memAdjustableMaxRatio;
private String memAdjustableMaxValue;
private String memoryAdjustDeadline;
private String memoryIncreaseRatio;
private String memoryIncreaseRatioValue;
private String originCpu;
private String originMaxConn;
private String originMaxIops;
private String originMemory;
private Builder() {
}
private Builder(Data model) {
this.cpuAdjustDeadline = model.cpuAdjustDeadline;
this.cpuAdjustableMaxRatio = model.cpuAdjustableMaxRatio;
this.cpuAdjustableMaxValue = model.cpuAdjustableMaxValue;
this.cpuIncreaseRatio = model.cpuIncreaseRatio;
this.cpuIncreaseRatioValue = model.cpuIncreaseRatioValue;
this.DBInstanceId = model.DBInstanceId;
this.iopsAdjustableMaxValue = model.iopsAdjustableMaxValue;
this.maxConnAdjustDeadline = model.maxConnAdjustDeadline;
this.maxConnAdjustableMaxValue = model.maxConnAdjustableMaxValue;
this.maxConnIncreaseRatio = model.maxConnIncreaseRatio;
this.maxConnIncreaseRatioValue = model.maxConnIncreaseRatioValue;
this.maxIopsAdjustDeadline = model.maxIopsAdjustDeadline;
this.maxIopsIncreaseRatio = model.maxIopsIncreaseRatio;
this.maxIopsIncreaseRatioValue = model.maxIopsIncreaseRatioValue;
this.memAdjustableMaxRatio = model.memAdjustableMaxRatio;
this.memAdjustableMaxValue = model.memAdjustableMaxValue;
this.memoryAdjustDeadline = model.memoryAdjustDeadline;
this.memoryIncreaseRatio = model.memoryIncreaseRatio;
this.memoryIncreaseRatioValue = model.memoryIncreaseRatioValue;
this.originCpu = model.originCpu;
this.originMaxConn = model.originMaxConn;
this.originMaxIops = model.originMaxIops;
this.originMemory = model.originMemory;
}
/**
* <p>The deadline for the CPU adjustment.</p>
*
* <strong>example:</strong>
* <p>2023-10-25</p>
*/
public Builder cpuAdjustDeadline(String cpuAdjustDeadline) {
this.cpuAdjustDeadline = cpuAdjustDeadline;
return this;
}
/**
* <p>The maximum percentage of the system CPU resources that the instance can use.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder cpuAdjustableMaxRatio(String cpuAdjustableMaxRatio) {
this.cpuAdjustableMaxRatio = cpuAdjustableMaxRatio;
return this;
}
/**
* <p>The maximum CPU utilization.</p>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder cpuAdjustableMaxValue(String cpuAdjustableMaxValue) {
this.cpuAdjustableMaxValue = cpuAdjustableMaxValue;
return this;
}
/**
* <p>The CPU utilization.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder cpuIncreaseRatio(String cpuIncreaseRatio) {
this.cpuIncreaseRatio = cpuIncreaseRatio;
return this;
}
/**
* <p>The CPU utilization. Unit: percentage.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder cpuIncreaseRatioValue(String cpuIncreaseRatioValue) {
this.cpuIncreaseRatioValue = cpuIncreaseRatioValue;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-wz92gn1ll9fe5d3a4</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The maximum IOPS.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder iopsAdjustableMaxValue(String iopsAdjustableMaxValue) {
this.iopsAdjustableMaxValue = iopsAdjustableMaxValue;
return this;
}
/**
* <p>The deadline for the adjustment of the maximum number of connections.</p>
*
* <strong>example:</strong>
* <p>2023-10-25</p>
*/
public Builder maxConnAdjustDeadline(String maxConnAdjustDeadline) {
this.maxConnAdjustDeadline = maxConnAdjustDeadline;
return this;
}
/**
* <p>The maximum number of concurrent connections.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder maxConnAdjustableMaxValue(String maxConnAdjustableMaxValue) {
this.maxConnAdjustableMaxValue = maxConnAdjustableMaxValue;
return this;
}
/**
* <p>The maximum number of concurrent connections.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder maxConnIncreaseRatio(String maxConnIncreaseRatio) {
this.maxConnIncreaseRatio = maxConnIncreaseRatio;
return this;
}
/**
* <p>The maximum number of concurrent connections.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder maxConnIncreaseRatioValue(String maxConnIncreaseRatioValue) {
this.maxConnIncreaseRatioValue = maxConnIncreaseRatioValue;
return this;
}
/**
* <p>The deadline for the adjustment of the maximum IOPS.</p>
*
* <strong>example:</strong>
* <p>2023-10-25</p>
*/
public Builder maxIopsAdjustDeadline(String maxIopsAdjustDeadline) {
this.maxIopsAdjustDeadline = maxIopsAdjustDeadline;
return this;
}
/**
* <p>The maximum IOPS.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder maxIopsIncreaseRatio(String maxIopsIncreaseRatio) {
this.maxIopsIncreaseRatio = maxIopsIncreaseRatio;
return this;
}
/**
* <p>The maximum IOPS that can be supported by the instance.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder maxIopsIncreaseRatioValue(String maxIopsIncreaseRatioValue) {
this.maxIopsIncreaseRatioValue = maxIopsIncreaseRatioValue;
return this;
}
/**
* <p>The maximum percentage of the system memory that the instance can use.</p>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder memAdjustableMaxRatio(String memAdjustableMaxRatio) {
this.memAdjustableMaxRatio = memAdjustableMaxRatio;
return this;
}
/**
* <p>The maximum value of the resources to be evaluated.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder memAdjustableMaxValue(String memAdjustableMaxValue) {
this.memAdjustableMaxValue = memAdjustableMaxValue;
return this;
}
/**
* <p>The deadline for the memory adjustment.</p>
*
* <strong>example:</strong>
* <p>2023-10-25</p>
*/
public Builder memoryAdjustDeadline(String memoryAdjustDeadline) {
this.memoryAdjustDeadline = memoryAdjustDeadline;
return this;
}
/**
* <p>The memory increase percentage.</p>
*
* <strong>example:</strong>
* <p>2023-10-25</p>
*/
public Builder memoryIncreaseRatio(String memoryIncreaseRatio) {
this.memoryIncreaseRatio = memoryIncreaseRatio;
return this;
}
/**
* <p>The memory usage. Unit: MB.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder memoryIncreaseRatioValue(String memoryIncreaseRatioValue) {
this.memoryIncreaseRatioValue = memoryIncreaseRatioValue;
return this;
}
/**
* <p>The number of CPUs of the instance.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder originCpu(String originCpu) {
this.originCpu = originCpu;
return this;
}
/**
* <p>The maximum number of concurrent connections.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder originMaxConn(String originMaxConn) {
this.originMaxConn = originMaxConn;
return this;
}
/**
* <p>The maximum IOPS.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder originMaxIops(String originMaxIops) {
this.originMaxIops = originMaxIops;
return this;
}
/**
* <p>The actual memory used. Unit: MB.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder originMemory(String originMemory) {
this.originMemory = originMemory;
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/DescribeDBInstanceAttributeRequest.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 DescribeDBInstanceAttributeRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceAttributeRequest</p>
*/
public class DescribeDBInstanceAttributeRequest 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("Expired")
private String expired;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeDBInstanceAttributeRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.expired = builder.expired;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return expired
*/
public String getExpired() {
return this.expired;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeDBInstanceAttributeRequest, Builder> {
private String DBInstanceId;
private String expired;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDBInstanceAttributeRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.expired = request.expired;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <blockquote>
* <p>Notice: Do not query the details of multiple instances at a time by using multiple instance IDs. Otherwise, the query times out and fails.</p>
* </blockquote>
* <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>Specifies whether the instance expires. Valid values:</p>
* <ul>
* <li><strong>True</strong></li>
* <li><strong>False</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>False</p>
*/
public Builder expired(String expired) {
this.putQueryParameter("Expired", expired);
this.expired = expired;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeDBInstanceAttributeRequest build() {
return new DescribeDBInstanceAttributeRequest(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/DescribeDBInstanceAttributeResponse.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 DescribeDBInstanceAttributeResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceAttributeResponse</p>
*/
public class DescribeDBInstanceAttributeResponse 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 DescribeDBInstanceAttributeResponseBody body;
private DescribeDBInstanceAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceAttributeResponse 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 DescribeDBInstanceAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceAttributeResponseBody body);
@Override
DescribeDBInstanceAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceAttributeResponse 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(DescribeDBInstanceAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceAttributeResponse build() {
return new DescribeDBInstanceAttributeResponse(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/DescribeDBInstanceAttributeResponseBody.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 DescribeDBInstanceAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceAttributeResponseBody</p>
*/
public class DescribeDBInstanceAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDBInstanceAttributeResponseBody(Builder builder) {
this.items = builder.items;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceAttributeResponseBody 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(DescribeDBInstanceAttributeResponseBody model) {
this.items = model.items;
this.requestId = model.requestId;
}
/**
* <p>The details of instances.</p>
*/
public Builder items(Items items) {
this.items = items;
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;
}
public DescribeDBInstanceAttributeResponseBody build() {
return new DescribeDBInstanceAttributeResponseBody(this);
}
}
/**
*
* {@link DescribeDBInstanceAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceAttributeResponseBody</p>
*/
public static class BabelfishConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BabelfishEnabled")
private String babelfishEnabled;
@com.aliyun.core.annotation.NameInMap("MigrationMode")
private String migrationMode;
private BabelfishConfig(Builder builder) {
this.babelfishEnabled = builder.babelfishEnabled;
this.migrationMode = builder.migrationMode;
}
public static Builder builder() {
return new Builder();
}
public static BabelfishConfig create() {
return builder().build();
}
/**
* @return babelfishEnabled
*/
public String getBabelfishEnabled() {
return this.babelfishEnabled;
}
/**
* @return migrationMode
*/
public String getMigrationMode() {
return this.migrationMode;
}
public static final class Builder {
private String babelfishEnabled;
private String migrationMode;
private Builder() {
}
private Builder(BabelfishConfig model) {
this.babelfishEnabled = model.babelfishEnabled;
this.migrationMode = model.migrationMode;
}
/**
* <p>Indicates whether Babelfish is enabled.</p>
* <blockquote>
* <p> If Babelfish is enabled when you purchase an ApsaraDB RDS for PostgreSQL instance, this parameter is fixed as <strong>true</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder babelfishEnabled(String babelfishEnabled) {
this.babelfishEnabled = babelfishEnabled;
return this;
}
/**
* <p>The migration mode for Babelfish. Valid values:</p>
* <ul>
* <li><strong>single-db</strong></li>
* <li><strong>multi-db</strong></li>
* </ul>
* <blockquote>
* <p> For more information about migration modes for Babelfish, see <a href="https://help.aliyun.com/document_detail/428613.html">Migration modes</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>single-db</p>
*/
public Builder migrationMode(String migrationMode) {
this.migrationMode = migrationMode;
return this;
}
public BabelfishConfig build() {
return new BabelfishConfig(this);
}
}
}
/**
*
* {@link DescribeDBInstanceAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceAttributeResponseBody</p>
*/
public static class DBClusterNode extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClassCode")
private String classCode;
@com.aliyun.core.annotation.NameInMap("ClassType")
private String classType;
@com.aliyun.core.annotation.NameInMap("Cpu")
private String cpu;
@com.aliyun.core.annotation.NameInMap("Memory")
private String memory;
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.NameInMap("NodeRegionId")
private String nodeRegionId;
@com.aliyun.core.annotation.NameInMap("NodeRole")
private String nodeRole;
@com.aliyun.core.annotation.NameInMap("NodeZoneId")
private String nodeZoneId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private DBClusterNode(Builder builder) {
this.classCode = builder.classCode;
this.classType = builder.classType;
this.cpu = builder.cpu;
this.memory = builder.memory;
this.nodeId = builder.nodeId;
this.nodeRegionId = builder.nodeRegionId;
this.nodeRole = builder.nodeRole;
this.nodeZoneId = builder.nodeZoneId;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static DBClusterNode create() {
return builder().build();
}
/**
* @return classCode
*/
public String getClassCode() {
return this.classCode;
}
/**
* @return classType
*/
public String getClassType() {
return this.classType;
}
/**
* @return cpu
*/
public String getCpu() {
return this.cpu;
}
/**
* @return memory
*/
public String getMemory() {
return this.memory;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return nodeRegionId
*/
public String getNodeRegionId() {
return this.nodeRegionId;
}
/**
* @return nodeRole
*/
public String getNodeRole() {
return this.nodeRole;
}
/**
* @return nodeZoneId
*/
public String getNodeZoneId() {
return this.nodeZoneId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String classCode;
private String classType;
private String cpu;
private String memory;
private String nodeId;
private String nodeRegionId;
private String nodeRole;
private String nodeZoneId;
private String status;
private Builder() {
}
private Builder(DBClusterNode model) {
this.classCode = model.classCode;
this.classType = model.classType;
this.cpu = model.cpu;
this.memory = model.memory;
this.nodeId = model.nodeId;
this.nodeRegionId = model.nodeRegionId;
this.nodeRole = model.nodeRole;
this.nodeZoneId = model.nodeZoneId;
this.status = model.status;
}
/**
* <p>The node specification.</p>
*
* <strong>example:</strong>
* <p>mysql.n2.medium.xc</p>
*/
public Builder classCode(String classCode) {
this.classCode = classCode;
return this;
}
/**
* <p>The node type. Default value: true. Valid values:</p>
* <ul>
* <li>d: dedicated node type</li>
* <li>x: general-purpose node type</li>
* </ul>
*
* <strong>example:</strong>
* <p>x</p>
*/
public Builder classType(String classType) {
this.classType = classType;
return this;
}
/**
* <p>The number of CPU cores of the node.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder cpu(String cpu) {
this.cpu = cpu;
return this;
}
/**
* <p>The memory capacity of the node. Unit: MB.</p>
*
* <strong>example:</strong>
* <p>4096</p>
*/
public Builder memory(String memory) {
this.memory = memory;
return this;
}
/**
* <p>The node ID.</p>
*
* <strong>example:</strong>
* <p>rn-****</p>
*/
public Builder nodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-beijing</p>
*/
public Builder nodeRegionId(String nodeRegionId) {
this.nodeRegionId = nodeRegionId;
return this;
}
/**
* <p>The role of the node. Valid values:</p>
* <ul>
* <li><strong>primary</strong></li>
* <li><strong>secondary</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>primary</p>
*/
public Builder nodeRole(String nodeRole) {
this.nodeRole = nodeRole;
return this;
}
/**
* <p>The zone ID.</p>
*
* <strong>example:</strong>
* <p>cn-beijing-h</p>
*/
public Builder nodeZoneId(String nodeZoneId) {
this.nodeZoneId = nodeZoneId;
return this;
}
/**
* <p>The node status. Valid values:</p>
* <ul>
* <li>active</li>
* <li>creating</li>
* <li>deleting</li>
* <li>classchanging</li>
* <li>restarting</li>
* </ul>
*
* <strong>example:</strong>
* <p>active</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public DBClusterNode build() {
return new DBClusterNode(this);
}
}
}
/**
*
* {@link DescribeDBInstanceAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceAttributeResponseBody</p>
*/
public static class DBClusterNodes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBClusterNode")
private java.util.List<DBClusterNode> DBClusterNode;
private DBClusterNodes(Builder builder) {
this.DBClusterNode = builder.DBClusterNode;
}
public static Builder builder() {
return new Builder();
}
public static DBClusterNodes create() {
return builder().build();
}
/**
* @return DBClusterNode
*/
public java.util.List<DBClusterNode> getDBClusterNode() {
return this.DBClusterNode;
}
public static final class Builder {
private java.util.List<DBClusterNode> DBClusterNode;
private Builder() {
}
private Builder(DBClusterNodes model) {
this.DBClusterNode = model.DBClusterNode;
}
/**
* DBClusterNode.
*/
public Builder DBClusterNode(java.util.List<DBClusterNode> DBClusterNode) {
this.DBClusterNode = DBClusterNode;
return this;
}
public DBClusterNodes build() {
return new DBClusterNodes(this);
}
}
}
/**
*
* {@link DescribeDBInstanceAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceAttributeResponseBody</p>
*/
public static class DBInstanceIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private java.util.List<String> DBInstanceId;
private DBInstanceIds(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceIds create() {
return builder().build();
}
/**
* @return DBInstanceId
*/
public java.util.List<String> getDBInstanceId() {
return this.DBInstanceId;
}
public static final class Builder {
private java.util.List<String> DBInstanceId;
private Builder() {
}
private Builder(DBInstanceIds model) {
this.DBInstanceId = model.DBInstanceId;
}
/**
* DBInstanceId.
*/
public Builder DBInstanceId(java.util.List<String> DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
public DBInstanceIds build() {
return new DBInstanceIds(this);
}
}
}
/**
*
* {@link DescribeDBInstanceAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceAttributeResponseBody</p>
*/
public static class Extra extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccountSecurityPolicy")
private String accountSecurityPolicy;
@com.aliyun.core.annotation.NameInMap("DBInstanceIds")
private DBInstanceIds DBInstanceIds;
@com.aliyun.core.annotation.NameInMap("RecoveryModel")
private String recoveryModel;
private Extra(Builder builder) {
this.accountSecurityPolicy = builder.accountSecurityPolicy;
this.DBInstanceIds = builder.DBInstanceIds;
this.recoveryModel = builder.recoveryModel;
}
public static Builder builder() {
return new Builder();
}
public static Extra create() {
return builder().build();
}
/**
* @return accountSecurityPolicy
*/
public String getAccountSecurityPolicy() {
return this.accountSecurityPolicy;
}
/**
* @return DBInstanceIds
*/
public DBInstanceIds getDBInstanceIds() {
return this.DBInstanceIds;
}
/**
* @return recoveryModel
*/
public String getRecoveryModel() {
return this.recoveryModel;
}
public static final class Builder {
private String accountSecurityPolicy;
private DBInstanceIds DBInstanceIds;
private String recoveryModel;
private Builder() {
}
private Builder(Extra model) {
this.accountSecurityPolicy = model.accountSecurityPolicy;
this.DBInstanceIds = model.DBInstanceIds;
this.recoveryModel = model.recoveryModel;
}
/**
* <p>The group policy of the instance account.</p>
* <ul>
* <li>MaximumPasswordAge: maximum use time</li>
* <li>MinimumPasswordAge: minimum use time</li>
* </ul>
*
* <strong>example:</strong>
* <p>{"MaximumPasswordAge": 42,"MinimumPasswordAge": 30}</p>
*/
public Builder accountSecurityPolicy(String accountSecurityPolicy) {
this.accountSecurityPolicy = accountSecurityPolicy;
return this;
}
/**
* <p>The instance IDs.</p>
*/
public Builder DBInstanceIds(DBInstanceIds DBInstanceIds) {
this.DBInstanceIds = DBInstanceIds;
return this;
}
/**
* <p>The recovery model. Valid values: Simple and Full.</p>
*
* <strong>example:</strong>
* <p>Simple</p>
*/
public Builder recoveryModel(String recoveryModel) {
this.recoveryModel = recoveryModel;
return this;
}
public Extra build() {
return new Extra(this);
}
}
}
/**
*
* {@link DescribeDBInstanceAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceAttributeResponseBody</p>
*/
public static class ReadOnlyDBInstanceId extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
private ReadOnlyDBInstanceId(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
}
public static Builder builder() {
return new Builder();
}
public static ReadOnlyDBInstanceId create() {
return builder().build();
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
public static final class Builder {
private String DBInstanceId;
private Builder() {
}
private Builder(ReadOnlyDBInstanceId model) {
this.DBInstanceId = model.DBInstanceId;
}
/**
* <p>The read-only instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-bp*****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
public ReadOnlyDBInstanceId build() {
return new ReadOnlyDBInstanceId(this);
}
}
}
/**
*
* {@link DescribeDBInstanceAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceAttributeResponseBody</p>
*/
public static class ReadOnlyDBInstanceIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ReadOnlyDBInstanceId")
private java.util.List<ReadOnlyDBInstanceId> readOnlyDBInstanceId;
private ReadOnlyDBInstanceIds(Builder builder) {
this.readOnlyDBInstanceId = builder.readOnlyDBInstanceId;
}
public static Builder builder() {
return new Builder();
}
public static ReadOnlyDBInstanceIds create() {
return builder().build();
}
/**
* @return readOnlyDBInstanceId
*/
public java.util.List<ReadOnlyDBInstanceId> getReadOnlyDBInstanceId() {
return this.readOnlyDBInstanceId;
}
public static final class Builder {
private java.util.List<ReadOnlyDBInstanceId> readOnlyDBInstanceId;
private Builder() {
}
private Builder(ReadOnlyDBInstanceIds model) {
this.readOnlyDBInstanceId = model.readOnlyDBInstanceId;
}
/**
* ReadOnlyDBInstanceId.
*/
public Builder readOnlyDBInstanceId(java.util.List<ReadOnlyDBInstanceId> readOnlyDBInstanceId) {
this.readOnlyDBInstanceId = readOnlyDBInstanceId;
return this;
}
public ReadOnlyDBInstanceIds build() {
return new ReadOnlyDBInstanceIds(this);
}
}
}
/**
*
* {@link DescribeDBInstanceAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceAttributeResponseBody</p>
*/
public static class ServerlessConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AutoPause")
private Boolean autoPause;
@com.aliyun.core.annotation.NameInMap("ScaleMax")
private Double scaleMax;
@com.aliyun.core.annotation.NameInMap("ScaleMin")
private Double scaleMin;
@com.aliyun.core.annotation.NameInMap("SwitchForce")
private Boolean switchForce;
private ServerlessConfig(Builder builder) {
this.autoPause = builder.autoPause;
this.scaleMax = builder.scaleMax;
this.scaleMin = builder.scaleMin;
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 scaleMax
*/
public Double getScaleMax() {
return this.scaleMax;
}
/**
* @return scaleMin
*/
public Double getScaleMin() {
return this.scaleMin;
}
/**
* @return switchForce
*/
public Boolean getSwitchForce() {
return this.switchForce;
}
public static final class Builder {
private Boolean autoPause;
private Double scaleMax;
private Double scaleMin;
private Boolean switchForce;
private Builder() {
}
private Builder(ServerlessConfig model) {
this.autoPause = model.autoPause;
this.scaleMax = model.scaleMax;
this.scaleMin = model.scaleMin;
this.switchForce = model.switchForce;
}
/**
* <p>Indicates whether the automatic start and stop feature is enabled for the serverless instance. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong> (default)</li>
* </ul>
* <blockquote>
* <p> 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 automatically resumed.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder autoPause(Boolean autoPause) {
this.autoPause = autoPause;
return this;
}
/**
* <p>The maximum number of RCUs.</p>
*
* <strong>example:</strong>
* <p>8</p>
*/
public Builder scaleMax(Double scaleMax) {
this.scaleMax = scaleMax;
return this;
}
/**
* <p>The minimum number of RDS Capacity Units (RCUs).</p>
*
* <strong>example:</strong>
* <p>0.5</p>
*/
public Builder scaleMin(Double scaleMin) {
this.scaleMin = scaleMin;
return this;
}
/**
* <p>Indicates whether the forced scaling feature is enabled for the serverless instance. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong> (default)</li>
* </ul>
* <blockquote>
* <p> 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.</p>
* </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 DescribeDBInstanceAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceAttributeResponseBody</p>
*/
public static class SlaveZone extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private SlaveZone(Builder builder) {
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static SlaveZone create() {
return builder().build();
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private String zoneId;
private Builder() {
}
private Builder(SlaveZone model) {
this.zoneId = model.zoneId;
}
/**
* <p>The zone ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-a</p>
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public SlaveZone build() {
return new SlaveZone(this);
}
}
}
/**
*
* {@link DescribeDBInstanceAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceAttributeResponseBody</p>
*/
public static class SlaveZones extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SlaveZone")
private java.util.List<SlaveZone> slaveZone;
private SlaveZones(Builder builder) {
this.slaveZone = builder.slaveZone;
}
public static Builder builder() {
return new Builder();
}
public static SlaveZones create() {
return builder().build();
}
/**
* @return slaveZone
*/
public java.util.List<SlaveZone> getSlaveZone() {
return this.slaveZone;
}
public static final class Builder {
private java.util.List<SlaveZone> slaveZone;
private Builder() {
}
private Builder(SlaveZones model) {
this.slaveZone = model.slaveZone;
}
/**
* SlaveZone.
*/
public Builder slaveZone(java.util.List<SlaveZone> slaveZone) {
this.slaveZone = slaveZone;
return this;
}
public SlaveZones build() {
return new SlaveZones(this);
}
}
}
/**
*
* {@link DescribeDBInstanceAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceAttributeResponseBody</p>
*/
public static class DBInstanceAttribute extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccountMaxQuantity")
private Integer accountMaxQuantity;
@com.aliyun.core.annotation.NameInMap("AdvancedFeatures")
private String advancedFeatures;
@com.aliyun.core.annotation.NameInMap("AutoUpgradeMinorVersion")
private String autoUpgradeMinorVersion;
@com.aliyun.core.annotation.NameInMap("AvailabilityValue")
private String availabilityValue;
@com.aliyun.core.annotation.NameInMap("BabelfishConfig")
private BabelfishConfig babelfishConfig;
@com.aliyun.core.annotation.NameInMap("BlueGreenDeploymentName")
private String blueGreenDeploymentName;
@com.aliyun.core.annotation.NameInMap("BlueInstanceName")
private String blueInstanceName;
@com.aliyun.core.annotation.NameInMap("BpeEnabled")
private String bpeEnabled;
@com.aliyun.core.annotation.NameInMap("BurstingEnabled")
private Boolean burstingEnabled;
@com.aliyun.core.annotation.NameInMap("CanTempUpgrade")
private Boolean canTempUpgrade;
@com.aliyun.core.annotation.NameInMap("Category")
private String category;
@com.aliyun.core.annotation.NameInMap("ColdDataEnabled")
private Boolean coldDataEnabled;
@com.aliyun.core.annotation.NameInMap("Collation")
private String collation;
@com.aliyun.core.annotation.NameInMap("CompressionMode")
private String compressionMode;
@com.aliyun.core.annotation.NameInMap("CompressionRatio")
private String compressionRatio;
@com.aliyun.core.annotation.NameInMap("ComputeBurstEnabled")
private Boolean computeBurstEnabled;
@com.aliyun.core.annotation.NameInMap("ConnectionMode")
private String connectionMode;
@com.aliyun.core.annotation.NameInMap("ConnectionString")
private String connectionString;
@com.aliyun.core.annotation.NameInMap("ConsoleVersion")
private String consoleVersion;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("CurrentKernelVersion")
private String currentKernelVersion;
@com.aliyun.core.annotation.NameInMap("DBClusterNodes")
private DBClusterNodes DBClusterNodes;
@com.aliyun.core.annotation.NameInMap("DBInstanceCPU")
private String DBInstanceCPU;
@com.aliyun.core.annotation.NameInMap("DBInstanceClass")
private String DBInstanceClass;
@com.aliyun.core.annotation.NameInMap("DBInstanceClassType")
private String DBInstanceClassType;
@com.aliyun.core.annotation.NameInMap("DBInstanceDescription")
private String DBInstanceDescription;
@com.aliyun.core.annotation.NameInMap("DBInstanceDiskUsed")
private String DBInstanceDiskUsed;
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("DBInstanceMemory")
private Long DBInstanceMemory;
@com.aliyun.core.annotation.NameInMap("DBInstanceNetType")
private String DBInstanceNetType;
@com.aliyun.core.annotation.NameInMap("DBInstanceStatus")
private String DBInstanceStatus;
@com.aliyun.core.annotation.NameInMap("DBInstanceStorage")
private Integer DBInstanceStorage;
@com.aliyun.core.annotation.NameInMap("DBInstanceStorageType")
private String DBInstanceStorageType;
@com.aliyun.core.annotation.NameInMap("DBInstanceType")
private String DBInstanceType;
@com.aliyun.core.annotation.NameInMap("DBMaxQuantity")
private Integer DBMaxQuantity;
@com.aliyun.core.annotation.NameInMap("DedicatedHostGroupId")
private String dedicatedHostGroupId;
@com.aliyun.core.annotation.NameInMap("DeletionProtection")
private Boolean deletionProtection;
@com.aliyun.core.annotation.NameInMap("DisasterRecoveryInfo")
private String disasterRecoveryInfo;
@com.aliyun.core.annotation.NameInMap("DisasterRecoveryInstances")
private String disasterRecoveryInstances;
@com.aliyun.core.annotation.NameInMap("Engine")
private String engine;
@com.aliyun.core.annotation.NameInMap("EngineVersion")
private String engineVersion;
@com.aliyun.core.annotation.NameInMap("ExpireTime")
private String expireTime;
@com.aliyun.core.annotation.NameInMap("Extra")
private Extra extra;
@com.aliyun.core.annotation.NameInMap("GeneralGroupName")
private String generalGroupName;
@com.aliyun.core.annotation.NameInMap("GreenInstanceName")
private String greenInstanceName;
@com.aliyun.core.annotation.NameInMap("GuardDBInstanceId")
private String guardDBInstanceId;
@com.aliyun.core.annotation.NameInMap("IPType")
private String IPType;
@com.aliyun.core.annotation.NameInMap("IncrementSourceDBInstanceId")
private String incrementSourceDBInstanceId;
@com.aliyun.core.annotation.NameInMap("InstanceNetworkType")
private String instanceNetworkType;
@com.aliyun.core.annotation.NameInMap("InstructionSetArch")
private String instructionSetArch;
@com.aliyun.core.annotation.NameInMap("IoAccelerationEnabled")
private String ioAccelerationEnabled;
@com.aliyun.core.annotation.NameInMap("LatestKernelVersion")
private String latestKernelVersion;
@com.aliyun.core.annotation.NameInMap("LockMode")
private String lockMode;
@com.aliyun.core.annotation.NameInMap("LockReason")
private String lockReason;
@com.aliyun.core.annotation.NameInMap("MaintainTime")
private String maintainTime;
@com.aliyun.core.annotation.NameInMap("MasterInstanceId")
private String masterInstanceId;
@com.aliyun.core.annotation.NameInMap("MasterZone")
private String masterZone;
@com.aliyun.core.annotation.NameInMap("MaxConnections")
private Integer maxConnections;
@com.aliyun.core.annotation.NameInMap("MaxIOMBPS")
private Integer maxIOMBPS;
@com.aliyun.core.annotation.NameInMap("MaxIOPS")
private Integer maxIOPS;
@com.aliyun.core.annotation.NameInMap("MultipleTempUpgrade")
private Boolean multipleTempUpgrade;
@com.aliyun.core.annotation.NameInMap("OptimizedWritesInfo")
private String optimizedWritesInfo;
@com.aliyun.core.annotation.NameInMap("PGBouncerEnabled")
private String PGBouncerEnabled;
@com.aliyun.core.annotation.NameInMap("PayType")
private String payType;
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.NameInMap("ProxyType")
private Integer proxyType;
@com.aliyun.core.annotation.NameInMap("ReadOnlyDBInstanceIds")
private ReadOnlyDBInstanceIds readOnlyDBInstanceIds;
@com.aliyun.core.annotation.NameInMap("ReadOnlyStatus")
private String readOnlyStatus;
@com.aliyun.core.annotation.NameInMap("ReadonlyInstanceSQLDelayedTime")
private String readonlyInstanceSQLDelayedTime;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("SecurityIPList")
private String securityIPList;
@com.aliyun.core.annotation.NameInMap("SecurityIPMode")
private String securityIPMode;
@com.aliyun.core.annotation.NameInMap("ServerlessConfig")
private ServerlessConfig serverlessConfig;
@com.aliyun.core.annotation.NameInMap("SlaveZones")
private SlaveZones slaveZones;
@com.aliyun.core.annotation.NameInMap("SuperPermissionMode")
private String superPermissionMode;
@com.aliyun.core.annotation.NameInMap("SupportCompression")
private Boolean supportCompression;
@com.aliyun.core.annotation.NameInMap("TempDBInstanceId")
private String tempDBInstanceId;
@com.aliyun.core.annotation.NameInMap("TempUpgradeTimeEnd")
private String tempUpgradeTimeEnd;
@com.aliyun.core.annotation.NameInMap("TempUpgradeTimeStart")
private String tempUpgradeTimeStart;
@com.aliyun.core.annotation.NameInMap("TimeZone")
private String timeZone;
@com.aliyun.core.annotation.NameInMap("Tips")
private String tips;
@com.aliyun.core.annotation.NameInMap("TipsLevel")
private Integer tipsLevel;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("VpcCloudInstanceId")
private String vpcCloudInstanceId;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
@com.aliyun.core.annotation.NameInMap("kindCode")
private String kindCode;
private DBInstanceAttribute(Builder builder) {
this.accountMaxQuantity = builder.accountMaxQuantity;
this.advancedFeatures = builder.advancedFeatures;
this.autoUpgradeMinorVersion = builder.autoUpgradeMinorVersion;
this.availabilityValue = builder.availabilityValue;
this.babelfishConfig = builder.babelfishConfig;
this.blueGreenDeploymentName = builder.blueGreenDeploymentName;
this.blueInstanceName = builder.blueInstanceName;
this.bpeEnabled = builder.bpeEnabled;
this.burstingEnabled = builder.burstingEnabled;
this.canTempUpgrade = builder.canTempUpgrade;
this.category = builder.category;
this.coldDataEnabled = builder.coldDataEnabled;
this.collation = builder.collation;
this.compressionMode = builder.compressionMode;
this.compressionRatio = builder.compressionRatio;
this.computeBurstEnabled = builder.computeBurstEnabled;
this.connectionMode = builder.connectionMode;
this.connectionString = builder.connectionString;
this.consoleVersion = builder.consoleVersion;
this.creationTime = builder.creationTime;
this.currentKernelVersion = builder.currentKernelVersion;
this.DBClusterNodes = builder.DBClusterNodes;
this.DBInstanceCPU = builder.DBInstanceCPU;
this.DBInstanceClass = builder.DBInstanceClass;
this.DBInstanceClassType = builder.DBInstanceClassType;
this.DBInstanceDescription = builder.DBInstanceDescription;
this.DBInstanceDiskUsed = builder.DBInstanceDiskUsed;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceMemory = builder.DBInstanceMemory;
this.DBInstanceNetType = builder.DBInstanceNetType;
this.DBInstanceStatus = builder.DBInstanceStatus;
this.DBInstanceStorage = builder.DBInstanceStorage;
this.DBInstanceStorageType = builder.DBInstanceStorageType;
this.DBInstanceType = builder.DBInstanceType;
this.DBMaxQuantity = builder.DBMaxQuantity;
this.dedicatedHostGroupId = builder.dedicatedHostGroupId;
this.deletionProtection = builder.deletionProtection;
this.disasterRecoveryInfo = builder.disasterRecoveryInfo;
this.disasterRecoveryInstances = builder.disasterRecoveryInstances;
this.engine = builder.engine;
this.engineVersion = builder.engineVersion;
this.expireTime = builder.expireTime;
this.extra = builder.extra;
this.generalGroupName = builder.generalGroupName;
this.greenInstanceName = builder.greenInstanceName;
this.guardDBInstanceId = builder.guardDBInstanceId;
this.IPType = builder.IPType;
this.incrementSourceDBInstanceId = builder.incrementSourceDBInstanceId;
this.instanceNetworkType = builder.instanceNetworkType;
this.instructionSetArch = builder.instructionSetArch;
this.ioAccelerationEnabled = builder.ioAccelerationEnabled;
this.latestKernelVersion = builder.latestKernelVersion;
this.lockMode = builder.lockMode;
this.lockReason = builder.lockReason;
this.maintainTime = builder.maintainTime;
this.masterInstanceId = builder.masterInstanceId;
this.masterZone = builder.masterZone;
this.maxConnections = builder.maxConnections;
this.maxIOMBPS = builder.maxIOMBPS;
this.maxIOPS = builder.maxIOPS;
this.multipleTempUpgrade = builder.multipleTempUpgrade;
this.optimizedWritesInfo = builder.optimizedWritesInfo;
this.PGBouncerEnabled = builder.PGBouncerEnabled;
this.payType = builder.payType;
this.port = builder.port;
this.proxyType = builder.proxyType;
this.readOnlyDBInstanceIds = builder.readOnlyDBInstanceIds;
this.readOnlyStatus = builder.readOnlyStatus;
this.readonlyInstanceSQLDelayedTime = builder.readonlyInstanceSQLDelayedTime;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.securityIPList = builder.securityIPList;
this.securityIPMode = builder.securityIPMode;
this.serverlessConfig = builder.serverlessConfig;
this.slaveZones = builder.slaveZones;
this.superPermissionMode = builder.superPermissionMode;
this.supportCompression = builder.supportCompression;
this.tempDBInstanceId = builder.tempDBInstanceId;
this.tempUpgradeTimeEnd = builder.tempUpgradeTimeEnd;
this.tempUpgradeTimeStart = builder.tempUpgradeTimeStart;
this.timeZone = builder.timeZone;
this.tips = builder.tips;
this.tipsLevel = builder.tipsLevel;
this.vSwitchId = builder.vSwitchId;
this.vpcCloudInstanceId = builder.vpcCloudInstanceId;
this.vpcId = builder.vpcId;
this.zoneId = builder.zoneId;
this.kindCode = builder.kindCode;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceAttribute create() {
return builder().build();
}
/**
* @return accountMaxQuantity
*/
public Integer getAccountMaxQuantity() {
return this.accountMaxQuantity;
}
/**
* @return advancedFeatures
*/
public String getAdvancedFeatures() {
return this.advancedFeatures;
}
/**
* @return autoUpgradeMinorVersion
*/
public String getAutoUpgradeMinorVersion() {
return this.autoUpgradeMinorVersion;
}
/**
* @return availabilityValue
*/
public String getAvailabilityValue() {
return this.availabilityValue;
}
/**
* @return babelfishConfig
*/
public BabelfishConfig getBabelfishConfig() {
return this.babelfishConfig;
}
/**
* @return blueGreenDeploymentName
*/
public String getBlueGreenDeploymentName() {
return this.blueGreenDeploymentName;
}
/**
* @return blueInstanceName
*/
public String getBlueInstanceName() {
return this.blueInstanceName;
}
/**
* @return bpeEnabled
*/
public String getBpeEnabled() {
return this.bpeEnabled;
}
/**
* @return burstingEnabled
*/
public Boolean getBurstingEnabled() {
return this.burstingEnabled;
}
/**
* @return canTempUpgrade
*/
public Boolean getCanTempUpgrade() {
return this.canTempUpgrade;
}
/**
* @return category
*/
public String getCategory() {
return this.category;
}
/**
* @return coldDataEnabled
*/
public Boolean getColdDataEnabled() {
return this.coldDataEnabled;
}
/**
* @return collation
*/
public String getCollation() {
return this.collation;
}
/**
* @return compressionMode
*/
public String getCompressionMode() {
return this.compressionMode;
}
/**
* @return compressionRatio
*/
public String getCompressionRatio() {
return this.compressionRatio;
}
/**
* @return computeBurstEnabled
*/
public Boolean getComputeBurstEnabled() {
return this.computeBurstEnabled;
}
/**
* @return connectionMode
*/
public String getConnectionMode() {
return this.connectionMode;
}
/**
* @return connectionString
*/
public String getConnectionString() {
return this.connectionString;
}
/**
* @return consoleVersion
*/
public String getConsoleVersion() {
return this.consoleVersion;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return currentKernelVersion
*/
public String getCurrentKernelVersion() {
return this.currentKernelVersion;
}
/**
* @return DBClusterNodes
*/
public DBClusterNodes getDBClusterNodes() {
return this.DBClusterNodes;
}
/**
* @return DBInstanceCPU
*/
public String getDBInstanceCPU() {
return this.DBInstanceCPU;
}
/**
* @return DBInstanceClass
*/
public String getDBInstanceClass() {
return this.DBInstanceClass;
}
/**
* @return DBInstanceClassType
*/
public String getDBInstanceClassType() {
return this.DBInstanceClassType;
}
/**
* @return DBInstanceDescription
*/
public String getDBInstanceDescription() {
return this.DBInstanceDescription;
}
/**
* @return DBInstanceDiskUsed
*/
public String getDBInstanceDiskUsed() {
return this.DBInstanceDiskUsed;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBInstanceMemory
*/
public Long getDBInstanceMemory() {
return this.DBInstanceMemory;
}
/**
* @return DBInstanceNetType
*/
public String getDBInstanceNetType() {
return this.DBInstanceNetType;
}
/**
* @return DBInstanceStatus
*/
public String getDBInstanceStatus() {
return this.DBInstanceStatus;
}
/**
* @return DBInstanceStorage
*/
public Integer getDBInstanceStorage() {
return this.DBInstanceStorage;
}
/**
* @return DBInstanceStorageType
*/
public String getDBInstanceStorageType() {
return this.DBInstanceStorageType;
}
/**
* @return DBInstanceType
*/
public String getDBInstanceType() {
return this.DBInstanceType;
}
/**
* @return DBMaxQuantity
*/
public Integer getDBMaxQuantity() {
return this.DBMaxQuantity;
}
/**
* @return dedicatedHostGroupId
*/
public String getDedicatedHostGroupId() {
return this.dedicatedHostGroupId;
}
/**
* @return deletionProtection
*/
public Boolean getDeletionProtection() {
return this.deletionProtection;
}
/**
* @return disasterRecoveryInfo
*/
public String getDisasterRecoveryInfo() {
return this.disasterRecoveryInfo;
}
/**
* @return disasterRecoveryInstances
*/
public String getDisasterRecoveryInstances() {
return this.disasterRecoveryInstances;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return engineVersion
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
* @return expireTime
*/
public String getExpireTime() {
return this.expireTime;
}
/**
* @return extra
*/
public Extra getExtra() {
return this.extra;
}
/**
* @return generalGroupName
*/
public String getGeneralGroupName() {
return this.generalGroupName;
}
/**
* @return greenInstanceName
*/
public String getGreenInstanceName() {
return this.greenInstanceName;
}
/**
* @return guardDBInstanceId
*/
public String getGuardDBInstanceId() {
return this.guardDBInstanceId;
}
/**
* @return IPType
*/
public String getIPType() {
return this.IPType;
}
/**
* @return incrementSourceDBInstanceId
*/
public String getIncrementSourceDBInstanceId() {
return this.incrementSourceDBInstanceId;
}
/**
* @return instanceNetworkType
*/
public String getInstanceNetworkType() {
return this.instanceNetworkType;
}
/**
* @return instructionSetArch
*/
public String getInstructionSetArch() {
return this.instructionSetArch;
}
/**
* @return ioAccelerationEnabled
*/
public String getIoAccelerationEnabled() {
return this.ioAccelerationEnabled;
}
/**
* @return latestKernelVersion
*/
public String getLatestKernelVersion() {
return this.latestKernelVersion;
}
/**
* @return lockMode
*/
public String getLockMode() {
return this.lockMode;
}
/**
* @return lockReason
*/
public String getLockReason() {
return this.lockReason;
}
/**
* @return maintainTime
*/
public String getMaintainTime() {
return this.maintainTime;
}
/**
* @return masterInstanceId
*/
public String getMasterInstanceId() {
return this.masterInstanceId;
}
/**
* @return masterZone
*/
public String getMasterZone() {
return this.masterZone;
}
/**
* @return maxConnections
*/
public Integer getMaxConnections() {
return this.maxConnections;
}
/**
* @return maxIOMBPS
*/
public Integer getMaxIOMBPS() {
return this.maxIOMBPS;
}
/**
* @return maxIOPS
*/
public Integer getMaxIOPS() {
return this.maxIOPS;
}
/**
* @return multipleTempUpgrade
*/
public Boolean getMultipleTempUpgrade() {
return this.multipleTempUpgrade;
}
/**
* @return optimizedWritesInfo
*/
public String getOptimizedWritesInfo() {
return this.optimizedWritesInfo;
}
/**
* @return PGBouncerEnabled
*/
public String getPGBouncerEnabled() {
return this.PGBouncerEnabled;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return proxyType
*/
public Integer getProxyType() {
return this.proxyType;
}
/**
* @return readOnlyDBInstanceIds
*/
public ReadOnlyDBInstanceIds getReadOnlyDBInstanceIds() {
return this.readOnlyDBInstanceIds;
}
/**
* @return readOnlyStatus
*/
public String getReadOnlyStatus() {
return this.readOnlyStatus;
}
/**
* @return readonlyInstanceSQLDelayedTime
*/
public String getReadonlyInstanceSQLDelayedTime() {
return this.readonlyInstanceSQLDelayedTime;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return securityIPList
*/
public String getSecurityIPList() {
return this.securityIPList;
}
/**
* @return securityIPMode
*/
public String getSecurityIPMode() {
return this.securityIPMode;
}
/**
* @return serverlessConfig
*/
public ServerlessConfig getServerlessConfig() {
return this.serverlessConfig;
}
/**
* @return slaveZones
*/
public SlaveZones getSlaveZones() {
return this.slaveZones;
}
/**
* @return superPermissionMode
*/
public String getSuperPermissionMode() {
return this.superPermissionMode;
}
/**
* @return supportCompression
*/
public Boolean getSupportCompression() {
return this.supportCompression;
}
/**
* @return tempDBInstanceId
*/
public String getTempDBInstanceId() {
return this.tempDBInstanceId;
}
/**
* @return tempUpgradeTimeEnd
*/
public String getTempUpgradeTimeEnd() {
return this.tempUpgradeTimeEnd;
}
/**
* @return tempUpgradeTimeStart
*/
public String getTempUpgradeTimeStart() {
return this.tempUpgradeTimeStart;
}
/**
* @return timeZone
*/
public String getTimeZone() {
return this.timeZone;
}
/**
* @return tips
*/
public String getTips() {
return this.tips;
}
/**
* @return tipsLevel
*/
public Integer getTipsLevel() {
return this.tipsLevel;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcCloudInstanceId
*/
public String getVpcCloudInstanceId() {
return this.vpcCloudInstanceId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
/**
* @return kindCode
*/
public String getKindCode() {
return this.kindCode;
}
public static final class Builder {
private Integer accountMaxQuantity;
private String advancedFeatures;
private String autoUpgradeMinorVersion;
private String availabilityValue;
private BabelfishConfig babelfishConfig;
private String blueGreenDeploymentName;
private String blueInstanceName;
private String bpeEnabled;
private Boolean burstingEnabled;
private Boolean canTempUpgrade;
private String category;
private Boolean coldDataEnabled;
private String collation;
private String compressionMode;
private String compressionRatio;
private Boolean computeBurstEnabled;
private String connectionMode;
private String connectionString;
private String consoleVersion;
private String creationTime;
private String currentKernelVersion;
private DBClusterNodes DBClusterNodes;
private String DBInstanceCPU;
private String DBInstanceClass;
private String DBInstanceClassType;
private String DBInstanceDescription;
private String DBInstanceDiskUsed;
private String DBInstanceId;
private Long DBInstanceMemory;
private String DBInstanceNetType;
private String DBInstanceStatus;
private Integer DBInstanceStorage;
private String DBInstanceStorageType;
private String DBInstanceType;
private Integer DBMaxQuantity;
private String dedicatedHostGroupId;
private Boolean deletionProtection;
private String disasterRecoveryInfo;
private String disasterRecoveryInstances;
private String engine;
private String engineVersion;
private String expireTime;
private Extra extra;
private String generalGroupName;
private String greenInstanceName;
private String guardDBInstanceId;
private String IPType;
private String incrementSourceDBInstanceId;
private String instanceNetworkType;
private String instructionSetArch;
private String ioAccelerationEnabled;
private String latestKernelVersion;
private String lockMode;
private String lockReason;
private String maintainTime;
private String masterInstanceId;
private String masterZone;
private Integer maxConnections;
private Integer maxIOMBPS;
private Integer maxIOPS;
private Boolean multipleTempUpgrade;
private String optimizedWritesInfo;
private String PGBouncerEnabled;
private String payType;
private String port;
private Integer proxyType;
private ReadOnlyDBInstanceIds readOnlyDBInstanceIds;
private String readOnlyStatus;
private String readonlyInstanceSQLDelayedTime;
private String regionId;
private String resourceGroupId;
private String securityIPList;
private String securityIPMode;
private ServerlessConfig serverlessConfig;
private SlaveZones slaveZones;
private String superPermissionMode;
private Boolean supportCompression;
private String tempDBInstanceId;
private String tempUpgradeTimeEnd;
private String tempUpgradeTimeStart;
private String timeZone;
private String tips;
private Integer tipsLevel;
private String vSwitchId;
private String vpcCloudInstanceId;
private String vpcId;
private String zoneId;
private String kindCode;
private Builder() {
}
private Builder(DBInstanceAttribute model) {
this.accountMaxQuantity = model.accountMaxQuantity;
this.advancedFeatures = model.advancedFeatures;
this.autoUpgradeMinorVersion = model.autoUpgradeMinorVersion;
this.availabilityValue = model.availabilityValue;
this.babelfishConfig = model.babelfishConfig;
this.blueGreenDeploymentName = model.blueGreenDeploymentName;
this.blueInstanceName = model.blueInstanceName;
this.bpeEnabled = model.bpeEnabled;
this.burstingEnabled = model.burstingEnabled;
this.canTempUpgrade = model.canTempUpgrade;
this.category = model.category;
this.coldDataEnabled = model.coldDataEnabled;
this.collation = model.collation;
this.compressionMode = model.compressionMode;
this.compressionRatio = model.compressionRatio;
this.computeBurstEnabled = model.computeBurstEnabled;
this.connectionMode = model.connectionMode;
this.connectionString = model.connectionString;
this.consoleVersion = model.consoleVersion;
this.creationTime = model.creationTime;
this.currentKernelVersion = model.currentKernelVersion;
this.DBClusterNodes = model.DBClusterNodes;
this.DBInstanceCPU = model.DBInstanceCPU;
this.DBInstanceClass = model.DBInstanceClass;
this.DBInstanceClassType = model.DBInstanceClassType;
this.DBInstanceDescription = model.DBInstanceDescription;
this.DBInstanceDiskUsed = model.DBInstanceDiskUsed;
this.DBInstanceId = model.DBInstanceId;
this.DBInstanceMemory = model.DBInstanceMemory;
this.DBInstanceNetType = model.DBInstanceNetType;
this.DBInstanceStatus = model.DBInstanceStatus;
this.DBInstanceStorage = model.DBInstanceStorage;
this.DBInstanceStorageType = model.DBInstanceStorageType;
this.DBInstanceType = model.DBInstanceType;
this.DBMaxQuantity = model.DBMaxQuantity;
this.dedicatedHostGroupId = model.dedicatedHostGroupId;
this.deletionProtection = model.deletionProtection;
this.disasterRecoveryInfo = model.disasterRecoveryInfo;
this.disasterRecoveryInstances = model.disasterRecoveryInstances;
this.engine = model.engine;
this.engineVersion = model.engineVersion;
this.expireTime = model.expireTime;
this.extra = model.extra;
this.generalGroupName = model.generalGroupName;
this.greenInstanceName = model.greenInstanceName;
this.guardDBInstanceId = model.guardDBInstanceId;
this.IPType = model.IPType;
this.incrementSourceDBInstanceId = model.incrementSourceDBInstanceId;
this.instanceNetworkType = model.instanceNetworkType;
this.instructionSetArch = model.instructionSetArch;
this.ioAccelerationEnabled = model.ioAccelerationEnabled;
this.latestKernelVersion = model.latestKernelVersion;
this.lockMode = model.lockMode;
this.lockReason = model.lockReason;
this.maintainTime = model.maintainTime;
this.masterInstanceId = model.masterInstanceId;
this.masterZone = model.masterZone;
this.maxConnections = model.maxConnections;
this.maxIOMBPS = model.maxIOMBPS;
this.maxIOPS = model.maxIOPS;
this.multipleTempUpgrade = model.multipleTempUpgrade;
this.optimizedWritesInfo = model.optimizedWritesInfo;
this.PGBouncerEnabled = model.PGBouncerEnabled;
this.payType = model.payType;
this.port = model.port;
this.proxyType = model.proxyType;
this.readOnlyDBInstanceIds = model.readOnlyDBInstanceIds;
this.readOnlyStatus = model.readOnlyStatus;
this.readonlyInstanceSQLDelayedTime = model.readonlyInstanceSQLDelayedTime;
this.regionId = model.regionId;
this.resourceGroupId = model.resourceGroupId;
this.securityIPList = model.securityIPList;
this.securityIPMode = model.securityIPMode;
this.serverlessConfig = model.serverlessConfig;
this.slaveZones = model.slaveZones;
this.superPermissionMode = model.superPermissionMode;
this.supportCompression = model.supportCompression;
this.tempDBInstanceId = model.tempDBInstanceId;
this.tempUpgradeTimeEnd = model.tempUpgradeTimeEnd;
this.tempUpgradeTimeStart = model.tempUpgradeTimeStart;
this.timeZone = model.timeZone;
this.tips = model.tips;
this.tipsLevel = model.tipsLevel;
this.vSwitchId = model.vSwitchId;
this.vpcCloudInstanceId = model.vpcCloudInstanceId;
this.vpcId = model.vpcId;
this.zoneId = model.zoneId;
this.kindCode = model.kindCode;
}
/**
* <p>The maximum number of accounts that can be created on the instance.</p>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder accountMaxQuantity(Integer accountMaxQuantity) {
this.accountMaxQuantity = accountMaxQuantity;
return this;
}
/**
* <p>The advanced features that are enabled for the instance. If multiple advanced features are enabled, the advanced features are separated by commas (,). This parameter is available only to instances that run <strong>SQL Server</strong>. Valid values:</p>
* <ul>
* <li><strong>LinkedServer</strong></li>
* <li><strong>DistributeTransaction</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>LinkedServer</p>
*/
public Builder advancedFeatures(String advancedFeatures) {
this.advancedFeatures = advancedFeatures;
return this;
}
/**
* <p>The method that is used to update the minor engine version of the instance. Valid values:</p>
* <ul>
* <li><strong>Auto</strong>: automatic update.</li>
* <li><strong>Manual</strong>: manual update. The minor engine version of the instance is forcefully updated only when the in-use minor engine version is phased out.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Auto</p>
*/
public Builder autoUpgradeMinorVersion(String autoUpgradeMinorVersion) {
this.autoUpgradeMinorVersion = autoUpgradeMinorVersion;
return this;
}
/**
* <p>The availability status of the instance in percentage.</p>
*
* <strong>example:</strong>
* <p>100.0%</p>
*/
public Builder availabilityValue(String availabilityValue) {
this.availabilityValue = availabilityValue;
return this;
}
/**
* <p>The configuration of the Babelfish feature for the ApsaraDB RDS for PostgreSQL instance.</p>
* <blockquote>
* <p> This parameter applies only to ApsaraDB RDS for PostgreSQL instances for which Babelfish is enabled. For more information, see <a href="https://help.aliyun.com/document_detail/428613.html">Introduction to Babelfish</a>.</p>
* </blockquote>
*/
public Builder babelfishConfig(BabelfishConfig babelfishConfig) {
this.babelfishConfig = babelfishConfig;
return this;
}
/**
* <p>This is a reserved parameter and is not in use.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder blueGreenDeploymentName(String blueGreenDeploymentName) {
this.blueGreenDeploymentName = blueGreenDeploymentName;
return this;
}
/**
* <p>This is a reserved parameter and is not in use.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder blueInstanceName(String blueInstanceName) {
this.blueInstanceName = blueInstanceName;
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.bpeEnabled = bpeEnabled;
return this;
}
/**
* <p>Indicates whether the I/O burst feature is enabled for Premium ESSDs. Valid values:</p>
* <ul>
* <li>true</li>
* <li>false</li>
* </ul>
* <blockquote>
* <p> For more information about the I/O burst feature, 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.burstingEnabled = burstingEnabled;
return this;
}
/**
* <p>Indicates whether the conditions for a temporary upgrade are met.</p>
* <blockquote>
* <p> Pay-as-you-go instances do not support temporary upgrades.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder canTempUpgrade(Boolean canTempUpgrade) {
this.canTempUpgrade = canTempUpgrade;
return this;
}
/**
* <p>The RDS edition. Valid values:</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</li>
* <li><strong>AlwaysOn</strong>: RDS Cluster Edition for ApsaraDB RDS for SQL Server</li>
* <li><strong>Finance</strong>: RDS Enterprise Edition</li>
* <li><strong>Serverless_basic</strong>: RDS Basic Edition for serverless instances</li>
* </ul>
*
* <strong>example:</strong>
* <p>Basic</p>
*/
public Builder category(String category) {
this.category = category;
return this;
}
/**
* <p>Indicates whether the data archiving feature is enabled for Premium ESSDs. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
* <p>For more information about the data archiving feature, see <a href="https://help.aliyun.com/document_detail/2701832.html">Use the data archiving feature</a>.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder coldDataEnabled(Boolean coldDataEnabled) {
this.coldDataEnabled = coldDataEnabled;
return this;
}
/**
* <p>The character set collation of the instance.</p>
*
* <strong>example:</strong>
* <p>Chinese_PRC_CI_AS</p>
*/
public Builder collation(String collation) {
this.collation = collation;
return this;
}
/**
* <p>The storage compression mode of the instance.</p>
*
* <strong>example:</strong>
* <p>on, off</p>
*/
public Builder compressionMode(String compressionMode) {
this.compressionMode = compressionMode;
return this;
}
/**
* <p>The storage compression ratio.</p>
*
* <strong>example:</strong>
* <p>1.25</p>
*/
public Builder compressionRatio(String compressionRatio) {
this.compressionRatio = compressionRatio;
return this;
}
/**
* <p>This is a reserved parameter and is not in use.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder computeBurstEnabled(Boolean computeBurstEnabled) {
this.computeBurstEnabled = computeBurstEnabled;
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>
*
* <strong>example:</strong>
* <p>Standard</p>
*/
public Builder connectionMode(String connectionMode) {
this.connectionMode = connectionMode;
return this;
}
/**
* <p>The internal endpoint.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5*****.mysql.rds.aliyuncs.com</p>
*/
public Builder connectionString(String connectionString) {
this.connectionString = connectionString;
return this;
}
/**
* <p>The type of the proxy that is used by the instance. Valid values:</p>
* <ul>
* <li><strong>1</strong>: shared database proxy</li>
* <li><strong>2</strong>: dedicated database proxy</li>
* </ul>
* <blockquote>
* <p> We recommend that you use the <strong>ProxyType</strong> parameter instead of this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder consoleVersion(String consoleVersion) {
this.consoleVersion = consoleVersion;
return this;
}
/**
* <p>The creation 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>
*
* <strong>example:</strong>
* <p>2011-05-30T12:11:04Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The minor engine version.</p>
*
* <strong>example:</strong>
* <p>rds_20181010</p>
*/
public Builder currentKernelVersion(String currentKernelVersion) {
this.currentKernelVersion = currentKernelVersion;
return this;
}
/**
* <p>The information about the node in the cluster.</p>
*/
public Builder DBClusterNodes(DBClusterNodes DBClusterNodes) {
this.DBClusterNodes = DBClusterNodes;
return this;
}
/**
* <p>The number of CPU cores.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder DBInstanceCPU(String DBInstanceCPU) {
this.DBInstanceCPU = DBInstanceCPU;
return this;
}
/**
* <p>The instance type of the 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.mys2.small</p>
*/
public Builder DBInstanceClass(String DBInstanceClass) {
this.DBInstanceClass = DBInstanceClass;
return this;
}
/**
* <p>The instance family. Valid values:</p>
* <ul>
* <li><strong>s</strong>: shared instance family</li>
* <li><strong>x</strong>: general-purpose instance family</li>
* <li><strong>d</strong>: dedicated instance family</li>
* <li><strong>h</strong>: dedicated host instance family</li>
* </ul>
*
* <strong>example:</strong>
* <p>s</p>
*/
public Builder DBInstanceClassType(String DBInstanceClassType) {
this.DBInstanceClassType = DBInstanceClassType;
return this;
}
/**
* <p>The instance description.</p>
*
* <strong>example:</strong>
* <p>The number of cores that are configured for the instance.</p>
*/
public Builder DBInstanceDescription(String DBInstanceDescription) {
this.DBInstanceDescription = DBInstanceDescription;
return this;
}
/**
* <p>The disk usage of the instance. Unit: byte.</p>
*
* <strong>example:</strong>
* <p>300</p>
*/
public Builder DBInstanceDiskUsed(String DBInstanceDiskUsed) {
this.DBInstanceDiskUsed = DBInstanceDiskUsed;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5*****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The memory capacity of the instance. Unit: MB.</p>
*
* <strong>example:</strong>
* <p>4096</p>
*/
public Builder DBInstanceMemory(Long DBInstanceMemory) {
this.DBInstanceMemory = DBInstanceMemory;
return this;
}
/**
* <p>The type of the network over which the instance is connected. 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.DBInstanceNetType = DBInstanceNetType;
return this;
}
/**
* <p>The instance status. For more information, see <a href="https://help.aliyun.com/document_detail/26315.html">Instance statuses</a>.</p>
*
* <strong>example:</strong>
* <p>Running</p>
*/
public Builder DBInstanceStatus(String DBInstanceStatus) {
this.DBInstanceStatus = DBInstanceStatus;
return this;
}
/**
* <p>The storage capacity of the instance. Unit: GB.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder DBInstanceStorage(Integer DBInstanceStorage) {
this.DBInstanceStorage = DBInstanceStorage;
return this;
}
/**
* <p>The storage type of the instance. Valid values:</p>
* <ul>
* <li><strong>local_ssd</strong> and <strong>ephemeral_ssd</strong>: Premium Local SSD</li>
* <li><strong>cloud_ssd</strong>: standard SSD</li>
* <li><strong>cloud_essd</strong>: ESSD</li>
* <li><strong>cloud_essd</strong>: Premium ESSD</li>
* </ul>
*
* <strong>example:</strong>
* <p>local_ssd</p>
*/
public Builder DBInstanceStorageType(String DBInstanceStorageType) {
this.DBInstanceStorageType = DBInstanceStorageType;
return this;
}
/**
* <p>The type of the instance. Valid values:</p>
* <ul>
* <li><strong>Primary</strong>: primary instance</li>
* <li><strong>Readonly</strong>: read-only instance</li>
* <li><strong>Guard</strong>: disaster recovery instance</li>
* <li><strong>Temp</strong>: temporary instance</li>
* </ul>
*
* <strong>example:</strong>
* <p>Primary</p>
*/
public Builder DBInstanceType(String DBInstanceType) {
this.DBInstanceType = DBInstanceType;
return this;
}
/**
* <p>The maximum number of databases that can be created on the instance.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder DBMaxQuantity(Integer DBMaxQuantity) {
this.DBMaxQuantity = DBMaxQuantity;
return this;
}
/**
* <p>The ID of the dedicated cluster to which the instance belongs.</p>
*
* <strong>example:</strong>
* <p>dhg-7a9*****</p>
*/
public Builder dedicatedHostGroupId(String dedicatedHostGroupId) {
this.dedicatedHostGroupId = dedicatedHostGroupId;
return this;
}
/**
* <p>Indicates whether the release protection feature is enabled. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder deletionProtection(Boolean deletionProtection) {
this.deletionProtection = deletionProtection;
return this;
}
/**
* <p>Disaster Recovery Instance Information</p>
*
* <strong>example:</strong>
* <p>{"replicatorAccount": "<strong><strong><strong>","sourcePort":</strong></strong></strong>,"sourceAddress": "pgm-2ze******","sourceCategory": "aliyunRDS","sourceInstanceRegionId": "cn-<strong><strong><strong>","replicatorPassword": "</strong></strong></strong>","sourceInstanceName": "pgm-2ze******"}</p>
*/
public Builder disasterRecoveryInfo(String disasterRecoveryInfo) {
this.disasterRecoveryInfo = disasterRecoveryInfo;
return this;
}
/**
* <p>All disaster recovery instances of the current instance.</p>
*
* <strong>example:</strong>
* <p>[{"regionId":"cn-<strong><strong><strong>","insName":"pgm-2ze</strong></strong></strong>"},{"regionId":"cn-<strong><strong><strong>","insName":"pgm-2ze</strong></strong></strong>"}]</p>
*/
public Builder disasterRecoveryInstances(String disasterRecoveryInstances) {
this.disasterRecoveryInstances = disasterRecoveryInstances;
return this;
}
/**
* <p>The database engine of the instance. Valid values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>SQLServer</strong></li>
* <li><strong>MariaDB</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engine(String engine) {
this.engine = engine;
return this;
}
/**
* <p>The database engine version.</p>
*
* <strong>example:</strong>
* <p>5.5</p>
*/
public Builder engineVersion(String engineVersion) {
this.engineVersion = engineVersion;
return this;
}
/**
* <p>The expiration time of the instance. 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> Pay-as-you-go instances never expire.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2019-03-27T16:00:00Z</p>
*/
public Builder expireTime(String expireTime) {
this.expireTime = expireTime;
return this;
}
/**
* <p>The extended information about the instance.</p>
*/
public Builder extra(Extra extra) {
this.extra = extra;
return this;
}
/**
* <p>The name of the dedicated cluster to which the instance belongs. This parameter is returned only when the instance is created in an ApsaraDB MyBase cluster that runs MySQL on Standard Edition.</p>
*
* <strong>example:</strong>
* <p>TestGroup</p>
*/
public Builder generalGroupName(String generalGroupName) {
this.generalGroupName = generalGroupName;
return this;
}
/**
* <p>This is a reserved parameter and is not in use.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder greenInstanceName(String greenInstanceName) {
this.greenInstanceName = greenInstanceName;
return this;
}
/**
* <p>The ID of the disaster recovery instance that is attached to the primary instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf64zsu*****</p>
*/
public Builder guardDBInstanceId(String guardDBInstanceId) {
this.guardDBInstanceId = guardDBInstanceId;
return this;
}
/**
* <p>The IP address type. Only <strong>IPv4 addresses</strong> are supported.</p>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder IPType(String IPType) {
this.IPType = IPType;
return this;
}
/**
* <p>The ID of the instance from which incremental data comes. The incremental data of a disaster recovery instance comes from its primary instance. The incremental data of a read-only instance comes from its primary instance. If this parameter is not returned, the instance is a primary instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5*****</p>
*/
public Builder incrementSourceDBInstanceId(String incrementSourceDBInstanceId) {
this.incrementSourceDBInstanceId = incrementSourceDBInstanceId;
return this;
}
/**
* <p>The network type of the instance. Valid values:</p>
* <ul>
* <li><strong>Classic</strong></li>
* <li><strong>VPC</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Classic</p>
*/
public Builder instanceNetworkType(String instanceNetworkType) {
this.instanceNetworkType = instanceNetworkType;
return this;
}
/**
* <p>The architecture type of the instance. Valid values:</p>
* <ul>
* <li><strong>x86</strong></li>
* <li><strong>arm</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>x86</p>
*/
public Builder instructionSetArch(String instructionSetArch) {
this.instructionSetArch = instructionSetArch;
return this;
}
/**
* <p>Indicates whether Buffer Pool Extension (BPE) is enabled for Premium ESSDs.</p>
* <ul>
* <li><strong>1</strong>: enabled</li>
* <li><strong>0</strong>: disabled</li>
* </ul>
* <blockquote>
* <p> For more information, see <a href="https://help.aliyun.com/document_detail/2527067.html">Buffer Pool Extension(BPE)</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder ioAccelerationEnabled(String ioAccelerationEnabled) {
this.ioAccelerationEnabled = ioAccelerationEnabled;
return this;
}
/**
* <p>The latest minor engine version that is supported by the instance.</p>
*
* <strong>example:</strong>
* <p>rds_20201031</p>
*/
public Builder latestKernelVersion(String latestKernelVersion) {
this.latestKernelVersion = latestKernelVersion;
return this;
}
/**
* <p>The lock mode of the instance. Valid values:</p>
* <ul>
* <li><strong>Unlock</strong>: The instance is not locked.</li>
* <li><strong>ManualLock</strong>: The instance is manually locked.</li>
* <li><strong>LockByExpiration</strong>: The instance is automatically locked due to instance expiration.</li>
* <li><strong>LockByRestoration</strong>: The instance is automatically locked due to instance restoration.</li>
* <li><strong>LockByDiskQuota</strong>: The instance is automatically locked due to exhausted storage space.</li>
* <li><strong>LockReadInstanceByDiskQuota</strong>: The instance is a read-only instance and is automatically locked due to exhausted storage.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Unlock</p>
*/
public Builder lockMode(String lockMode) {
this.lockMode = lockMode;
return this;
}
/**
* <p>The reason why the instance was locked.</p>
*
* <strong>example:</strong>
* <p>instance_expired</p>
*/
public Builder lockReason(String lockReason) {
this.lockReason = lockReason;
return this;
}
/**
* <p>The maintenance window of the instance. The time is displayed in UTC. The maintenance window displayed in the ApsaraDB RDS console is equal to the value of this parameter plus 8 hours.</p>
*
* <strong>example:</strong>
* <p>00:00Z-02:00Z</p>
*/
public Builder maintainTime(String maintainTime) {
this.maintainTime = maintainTime;
return this;
}
/**
* <p>The primary instance ID.</p>
* <blockquote>
* <p> If this parameter is not returned, the instance is the primary instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5*****</p>
*/
public Builder masterInstanceId(String masterInstanceId) {
this.masterInstanceId = masterInstanceId;
return this;
}
/**
* <p>The zone ID of the primary instance.</p>
*
* <strong>example:</strong>
* <p>5454284</p>
*/
public Builder masterZone(String masterZone) {
this.masterZone = masterZone;
return this;
}
/**
* <p>The maximum number of concurrent connections.</p>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder maxConnections(Integer maxConnections) {
this.maxConnections = maxConnections;
return this;
}
/**
* <p>The maximum I/O throughput. Unit: MB/s.</p>
*
* <strong>example:</strong>
* <p>0MB/s</p>
*/
public Builder maxIOMBPS(Integer maxIOMBPS) {
this.maxIOMBPS = maxIOMBPS;
return this;
}
/**
* <p>The maximum number of I/O requests per second.</p>
*
* <strong>example:</strong>
* <p>150</p>
*/
public Builder maxIOPS(Integer maxIOPS) {
this.maxIOPS = maxIOPS;
return this;
}
/**
* <p>Indicates whether auto scaling is being performed on the instance. If the value <strong>true</strong> is returned, auto scaling is being performed on the instance. If no value is returned, auto scaling is not being performed on the instance.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder multipleTempUpgrade(Boolean multipleTempUpgrade) {
this.multipleTempUpgrade = multipleTempUpgrade;
return this;
}
/**
* <p>The OptimizedWritesInfo parameter contains the following fields:</p>
* <ul>
* <li><strong>optimized_writes</strong>: indicates whether the 16K atomic write feature is enabled for the current instance.</li>
* <li><strong>init_optimized_writes</strong>: indicates whether the 16K atomic write feature can be enabled for the current instance. If init_optimized_writes is set to false, the 16K atomic write switch is not displayed for the instance in the console.</li>
* </ul>
*
* <strong>example:</strong>
* <p>{"optimized_writes":true,"init_optimized_writes":true}</p>
*/
public Builder optimizedWritesInfo(String optimizedWritesInfo) {
this.optimizedWritesInfo = optimizedWritesInfo;
return this;
}
/**
* <p>Indicates whether PgBouncer is enabled.</p>
* <blockquote>
* <p> This parameter is returned only for RDS instances that run PostgreSQL. If PgBouncer is enabled, the return value is <strong>true</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder PGBouncerEnabled(String PGBouncerEnabled) {
this.PGBouncerEnabled = PGBouncerEnabled;
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></li>
* </ul>
*
* <strong>example:</strong>
* <p>Postpaid</p>
*/
public Builder payType(String payType) {
this.payType = payType;
return this;
}
/**
* <p>The port that is used to connect to the instance over an internal network.</p>
*
* <strong>example:</strong>
* <p>3306</p>
*/
public Builder port(String port) {
this.port = port;
return this;
}
/**
* <p>The type of the proxy that is supported by the instance. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The instance does not support database proxies.</li>
* <li><strong>1</strong>: The instance supports shared proxies, with which the instance runs in multi-tenant mode.</li>
* <li><strong>2</strong>: The instance supports dedicated proxies, with which the instance runs in single-tenant mode.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder proxyType(Integer proxyType) {
this.proxyType = proxyType;
return this;
}
/**
* <p>The IDs of the read-only instances that are attached to the primary instance.</p>
*/
public Builder readOnlyDBInstanceIds(ReadOnlyDBInstanceIds readOnlyDBInstanceIds) {
this.readOnlyDBInstanceIds = readOnlyDBInstanceIds;
return this;
}
/**
* <p>This is a reserved parameter and is not in use.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder readOnlyStatus(String readOnlyStatus) {
this.readOnlyStatus = readOnlyStatus;
return this;
}
/**
* <p>The latency at which the system replicates data to read-only instances. The system replicates data from the primary instance to the read-only instances 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 region ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String 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.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The IP addresses in the IP address whitelist.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX/24</p>
*/
public Builder securityIPList(String securityIPList) {
this.securityIPList = securityIPList;
return this;
}
/**
* <p>The whitelist mode. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: standard whitelist mode</li>
* <li><strong>safety</strong>: enhanced whitelist mode</li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder securityIPMode(String securityIPMode) {
this.securityIPMode = securityIPMode;
return this;
}
/**
* <p>The settings of the serverless instance.</p>
*/
public Builder serverlessConfig(ServerlessConfig serverlessConfig) {
this.serverlessConfig = serverlessConfig;
return this;
}
/**
* <p>The zone IDs of the secondary instances.</p>
*/
public Builder slaveZones(SlaveZones slaveZones) {
this.slaveZones = slaveZones;
return this;
}
/**
* <p>Indicates whether the instance supports superuser accounts, such as the system administrator (SA) account, Active Directory (AD) account, and host account. Valid values:</p>
* <ul>
* <li><strong>Enable</strong></li>
* <li><strong>Disabled</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Disabled</p>
*/
public Builder superPermissionMode(String superPermissionMode) {
this.superPermissionMode = superPermissionMode;
return this;
}
/**
* <p>Indicates whether storage compression can be enabled for the instance.</p>
*
* <strong>example:</strong>
* <p>true, false</p>
*/
public Builder supportCompression(Boolean supportCompression) {
this.supportCompression = supportCompression;
return this;
}
/**
* <p>The ID of the temporary instance that is attached to the primary instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf64zsu*****</p>
*/
public Builder tempDBInstanceId(String tempDBInstanceId) {
this.tempDBInstanceId = tempDBInstanceId;
return this;
}
/**
* <p>The end time of the temporary upgrade of the instance.</p>
* <blockquote>
* <p> This parameter is unavailable for pay-as-you-go instances.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2024-05-30 00:00:00</p>
*/
public Builder tempUpgradeTimeEnd(String tempUpgradeTimeEnd) {
this.tempUpgradeTimeEnd = tempUpgradeTimeEnd;
return this;
}
/**
* <p>The start time of the temporary upgrade of the instance.</p>
* <blockquote>
* <p> This parameter is unavailable for pay-as-you-go instances.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2024-05-29 00:00:00</p>
*/
public Builder tempUpgradeTimeStart(String tempUpgradeTimeStart) {
this.tempUpgradeTimeStart = tempUpgradeTimeStart;
return this;
}
/**
* <p>The time zone.</p>
*
* <strong>example:</strong>
* <p>Central Standard Time</p>
*/
public Builder timeZone(String timeZone) {
this.timeZone = timeZone;
return this;
}
/**
* <p>The information about the exception that is detected on the instance. This parameter is returned only when the instance is created in an ApsaraDB MyBase cluster that runs MySQL on Standard Edition.</p>
*
* <strong>example:</strong>
* <p>The IP addresses in the IP address whitelist.</p>
*/
public Builder tips(String tips) {
this.tips = tips;
return this;
}
/**
* <p>The severity of the exception that is detected on the instance. This parameter is returned only when the instance is created in an ApsaraDB MyBase cluster that runs MySQL on Standard Edition. Valid values:</p>
* <ul>
* <li><strong>1</strong>: The instance is normal.</li>
* <li><strong>2</strong>: The specifications of the read-only instances do not match the specifications of the primary instance. You must adjust the specifications of these instances based on your business requirements.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder tipsLevel(Integer tipsLevel) {
this.tipsLevel = tipsLevel;
return this;
}
/**
* <p>The vSwitch ID.</p>
*
* <strong>example:</strong>
* <p>vsw-*****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the VPC. This parameter is returned only when the instance resides in a VPC.</p>
*
* <strong>example:</strong>
* <p>vpc-23rsxdf*****</p>
*/
public Builder vpcCloudInstanceId(String vpcCloudInstanceId) {
this.vpcCloudInstanceId = vpcCloudInstanceId;
return this;
}
/**
* <p>The VPC ID.</p>
*
* <strong>example:</strong>
* <p>vpc-*****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* <p>The zone ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-a</p>
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
/**
* <p>An internal parameter. You do not need to specify this parameter.</p>
*
* <strong>example:</strong>
* <p>The architecture type of the instance. Valid values:</p>
* <ul>
* <li><strong>x86</strong></li>
* <li><strong>arm</strong></li>
* </ul>
*/
public Builder kindCode(String kindCode) {
this.kindCode = kindCode;
return this;
}
public DBInstanceAttribute build() {
return new DBInstanceAttribute(this);
}
}
}
/**
*
* {@link DescribeDBInstanceAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceAttributeResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceAttribute")
private java.util.List<DBInstanceAttribute> DBInstanceAttribute;
private Items(Builder builder) {
this.DBInstanceAttribute = builder.DBInstanceAttribute;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return DBInstanceAttribute
*/
public java.util.List<DBInstanceAttribute> getDBInstanceAttribute() {
return this.DBInstanceAttribute;
}
public static final class Builder {
private java.util.List<DBInstanceAttribute> DBInstanceAttribute;
private Builder() {
}
private Builder(Items model) {
this.DBInstanceAttribute = model.DBInstanceAttribute;
}
/**
* DBInstanceAttribute.
*/
public Builder DBInstanceAttribute(java.util.List<DBInstanceAttribute> DBInstanceAttribute) {
this.DBInstanceAttribute = DBInstanceAttribute;
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/DescribeDBInstanceByTagsRequest.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 DescribeDBInstanceByTagsRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceByTagsRequest</p>
*/
public class DescribeDBInstanceByTagsRequest 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")
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("PageNumber")
@com.aliyun.core.annotation.Validation(maximum = 2147483647)
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@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("proxyId")
private String proxyId;
private DescribeDBInstanceByTagsRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.proxyId = builder.proxyId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceByTagsRequest 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 ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return proxyId
*/
public String getProxyId() {
return this.proxyId;
}
public static final class Builder extends Request.Builder<DescribeDBInstanceByTagsRequest, Builder> {
private String clientToken;
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String proxyId;
private Builder() {
super();
}
private Builder(DescribeDBInstanceByTagsRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.proxyId = request.proxyId;
}
/**
* <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>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6w**********</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 page number. Pages start from page 1.</p>
* <p>Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Valid values: <strong>30 to 100</strong>. Default value: <strong>30</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
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>A deprecated parameter.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder proxyId(String proxyId) {
this.putQueryParameter("proxyId", proxyId);
this.proxyId = proxyId;
return this;
}
@Override
public DescribeDBInstanceByTagsRequest build() {
return new DescribeDBInstanceByTagsRequest(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/DescribeDBInstanceByTagsResponse.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 DescribeDBInstanceByTagsResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceByTagsResponse</p>
*/
public class DescribeDBInstanceByTagsResponse 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 DescribeDBInstanceByTagsResponseBody body;
private DescribeDBInstanceByTagsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceByTagsResponse 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 DescribeDBInstanceByTagsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceByTagsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceByTagsResponseBody body);
@Override
DescribeDBInstanceByTagsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceByTagsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceByTagsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceByTagsResponse 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(DescribeDBInstanceByTagsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceByTagsResponse build() {
return new DescribeDBInstanceByTagsResponse(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/DescribeDBInstanceByTagsResponseBody.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 DescribeDBInstanceByTagsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceByTagsResponseBody</p>
*/
public class DescribeDBInstanceByTagsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeDBInstanceByTagsResponseBody(Builder builder) {
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.requestId = builder.requestId;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceByTagsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private Items items;
private Integer pageNumber;
private Integer pageRecordCount;
private String requestId;
private Integer totalRecordCount;
private Builder() {
}
private Builder(DescribeDBInstanceByTagsResponseBody model) {
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageRecordCount = model.pageRecordCount;
this.requestId = model.requestId;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>The details about the instance.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
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 total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeDBInstanceByTagsResponseBody build() {
return new DescribeDBInstanceByTagsResponseBody(this);
}
}
/**
*
* {@link DescribeDBInstanceByTagsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceByTagsResponseBody</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TagKey")
private String tagKey;
@com.aliyun.core.annotation.NameInMap("TagValue")
private String tagValue;
private Tag(Builder builder) {
this.tagKey = builder.tagKey;
this.tagValue = builder.tagValue;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return tagKey
*/
public String getTagKey() {
return this.tagKey;
}
/**
* @return tagValue
*/
public String getTagValue() {
return this.tagValue;
}
public static final class Builder {
private String tagKey;
private String tagValue;
private Builder() {
}
private Builder(Tag model) {
this.tagKey = model.tagKey;
this.tagValue = model.tagValue;
}
/**
* <p>The tag key.</p>
*
* <strong>example:</strong>
* <p>key1</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>value1</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeDBInstanceByTagsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceByTagsResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List<Tag> tag;
private Builder() {
}
private Builder(Tags model) {
this.tag = model.tag;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeDBInstanceByTagsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceByTagsResponseBody</p>
*/
public static class DBInstanceTag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
private DBInstanceTag(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceTag create() {
return builder().build();
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
public static final class Builder {
private String DBInstanceId;
private Tags tags;
private Builder() {
}
private Builder(DBInstanceTag model) {
this.DBInstanceId = model.DBInstanceId;
this.tags = model.tags;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6w**********</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The details about the tag.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
public DBInstanceTag build() {
return new DBInstanceTag(this);
}
}
}
/**
*
* {@link DescribeDBInstanceByTagsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceByTagsResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceTag")
private java.util.List<DBInstanceTag> DBInstanceTag;
private Items(Builder builder) {
this.DBInstanceTag = builder.DBInstanceTag;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return DBInstanceTag
*/
public java.util.List<DBInstanceTag> getDBInstanceTag() {
return this.DBInstanceTag;
}
public static final class Builder {
private java.util.List<DBInstanceTag> DBInstanceTag;
private Builder() {
}
private Builder(Items model) {
this.DBInstanceTag = model.DBInstanceTag;
}
/**
* DBInstanceTag.
*/
public Builder DBInstanceTag(java.util.List<DBInstanceTag> DBInstanceTag) {
this.DBInstanceTag = DBInstanceTag;
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/DescribeDBInstanceConnectivityRequest.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 DescribeDBInstanceConnectivityRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceConnectivityRequest</p>
*/
public class DescribeDBInstanceConnectivityRequest 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("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;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIpAddress")
@com.aliyun.core.annotation.Validation(required = true)
private String sourceIpAddress;
private DescribeDBInstanceConnectivityRequest(Builder builder) {
super(builder);
this.dbInstanceName = builder.dbInstanceName;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.securityToken = builder.securityToken;
this.sourceIpAddress = builder.sourceIpAddress;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceConnectivityRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dbInstanceName
*/
public String getDbInstanceName() {
return this.dbInstanceName;
}
/**
* @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;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
/**
* @return sourceIpAddress
*/
public String getSourceIpAddress() {
return this.sourceIpAddress;
}
public static final class Builder extends Request.Builder<DescribeDBInstanceConnectivityRequest, Builder> {
private String dbInstanceName;
private String ownerAccount;
private Long ownerId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String securityToken;
private String sourceIpAddress;
private Builder() {
super();
}
private Builder(DescribeDBInstanceConnectivityRequest request) {
super(request);
this.dbInstanceName = request.dbInstanceName;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.securityToken = request.securityToken;
this.sourceIpAddress = request.sourceIpAddress;
}
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-t4ns09hgoy99i5gez</p>
*/
public Builder dbInstanceName(String dbInstanceName) {
this.putQueryParameter("DbInstanceName", dbInstanceName);
this.dbInstanceName = dbInstanceName;
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.</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 source IP address.</p>
* <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;
}
@Override
public DescribeDBInstanceConnectivityRequest build() {
return new DescribeDBInstanceConnectivityRequest(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/DescribeDBInstanceConnectivityResponse.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 DescribeDBInstanceConnectivityResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceConnectivityResponse</p>
*/
public class DescribeDBInstanceConnectivityResponse 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 DescribeDBInstanceConnectivityResponseBody body;
private DescribeDBInstanceConnectivityResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceConnectivityResponse 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 DescribeDBInstanceConnectivityResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceConnectivityResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceConnectivityResponseBody body);
@Override
DescribeDBInstanceConnectivityResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceConnectivityResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceConnectivityResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceConnectivityResponse 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(DescribeDBInstanceConnectivityResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceConnectivityResponse build() {
return new DescribeDBInstanceConnectivityResponse(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/DescribeDBInstanceConnectivityResponseBody.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 DescribeDBInstanceConnectivityResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceConnectivityResponseBody</p>
*/
public class DescribeDBInstanceConnectivityResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConnCheckErrorCode")
private String connCheckErrorCode;
@com.aliyun.core.annotation.NameInMap("ConnCheckErrorMessage")
private String connCheckErrorMessage;
@com.aliyun.core.annotation.NameInMap("ConnCheckResult")
private String connCheckResult;
@com.aliyun.core.annotation.NameInMap("DbInstanceName")
private String dbInstanceName;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDBInstanceConnectivityResponseBody(Builder builder) {
this.connCheckErrorCode = builder.connCheckErrorCode;
this.connCheckErrorMessage = builder.connCheckErrorMessage;
this.connCheckResult = builder.connCheckResult;
this.dbInstanceName = builder.dbInstanceName;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceConnectivityResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return connCheckErrorCode
*/
public String getConnCheckErrorCode() {
return this.connCheckErrorCode;
}
/**
* @return connCheckErrorMessage
*/
public String getConnCheckErrorMessage() {
return this.connCheckErrorMessage;
}
/**
* @return connCheckResult
*/
public String getConnCheckResult() {
return this.connCheckResult;
}
/**
* @return dbInstanceName
*/
public String getDbInstanceName() {
return this.dbInstanceName;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String connCheckErrorCode;
private String connCheckErrorMessage;
private String connCheckResult;
private String dbInstanceName;
private String requestId;
private Builder() {
}
private Builder(DescribeDBInstanceConnectivityResponseBody model) {
this.connCheckErrorCode = model.connCheckErrorCode;
this.connCheckErrorMessage = model.connCheckErrorMessage;
this.connCheckResult = model.connCheckResult;
this.dbInstanceName = model.dbInstanceName;
this.requestId = model.requestId;
}
/**
* <p>The error code for connection diagnosis. Valid values:</p>
* <ul>
* <li><strong>SRC_IP_NOT_IN_USER_WHITELIST</strong>: The source IP address is not added to the whitelist.</li>
* <li><strong>CONNECTION_ABNORMAL</strong>: The connection to the cluster is normal.</li>
* </ul>
*
* <strong>example:</strong>
* <p>SRC_IP_NOT_IN_USER_WHITELIST</p>
*/
public Builder connCheckErrorCode(String connCheckErrorCode) {
this.connCheckErrorCode = connCheckErrorCode;
return this;
}
/**
* <p>The error message for connection diagnosis.</p>
*
* <strong>example:</strong>
* <p>Src ip:39.106.64.59 not in user whitelist</p>
*/
public Builder connCheckErrorMessage(String connCheckErrorMessage) {
this.connCheckErrorMessage = connCheckErrorMessage;
return this;
}
/**
* <p>The connection diagnosis result. Valid values:</p>
* <ul>
* <li><strong>Success</strong></li>
* <li><strong>Failed</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Failed</p>
*/
public Builder connCheckResult(String connCheckResult) {
this.connCheckResult = connCheckResult;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-2ze2za3is7baay1w4</p>
*/
public Builder dbInstanceName(String dbInstanceName) {
this.dbInstanceName = dbInstanceName;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>D880212A-F21F-5722-8422-BD06B2874CC3</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDBInstanceConnectivityResponseBody build() {
return new DescribeDBInstanceConnectivityResponseBody(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/DescribeDBInstanceDetailRequest.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 DescribeDBInstanceDetailRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceDetailRequest</p>
*/
public class DescribeDBInstanceDetailRequest 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")
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("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 DescribeDBInstanceDetailRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.DBInstanceId = builder.DBInstanceId;
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 DescribeDBInstanceDetailRequest 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 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<DescribeDBInstanceDetailRequest, Builder> {
private String clientToken;
private String DBInstanceId;
private Long ownerId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDBInstanceDetailRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
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.</p>
* <blockquote>
* <p>You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCziJZNwH****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The ID of the instance. You can call the <a href="https://help.aliyun.com/document_detail/26232.html">DescribeDBInstances</a> operation to query the ID of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-bp6wjk5xxxxxxxxxx</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;
}
/**
* <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;
}
@Override
public DescribeDBInstanceDetailRequest build() {
return new DescribeDBInstanceDetailRequest(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/DescribeDBInstanceDetailResponse.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 DescribeDBInstanceDetailResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceDetailResponse</p>
*/
public class DescribeDBInstanceDetailResponse 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 DescribeDBInstanceDetailResponseBody body;
private DescribeDBInstanceDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceDetailResponse 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 DescribeDBInstanceDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceDetailResponseBody body);
@Override
DescribeDBInstanceDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceDetailResponse 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(DescribeDBInstanceDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceDetailResponse build() {
return new DescribeDBInstanceDetailResponse(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/DescribeDBInstanceDetailResponseBody.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 DescribeDBInstanceDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceDetailResponseBody</p>
*/
public class DescribeDBInstanceDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ActivationState")
private String activationState;
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("LicenseType")
private String licenseType;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDBInstanceDetailResponseBody(Builder builder) {
this.activationState = builder.activationState;
this.DBInstanceId = builder.DBInstanceId;
this.licenseType = builder.licenseType;
this.regionId = builder.regionId;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return activationState
*/
public String getActivationState() {
return this.activationState;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return licenseType
*/
public String getLicenseType() {
return this.licenseType;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String activationState;
private String DBInstanceId;
private String licenseType;
private String regionId;
private String requestId;
private Builder() {
}
private Builder(DescribeDBInstanceDetailResponseBody model) {
this.activationState = model.activationState;
this.DBInstanceId = model.DBInstanceId;
this.licenseType = model.licenseType;
this.regionId = model.regionId;
this.requestId = model.requestId;
}
/**
* <p>Indicates whether the instance is in the active state.</p>
*
* <strong>example:</strong>
* <p>Invalid</p>
*/
public Builder activationState(String activationState) {
this.activationState = activationState;
return this;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-bp6wjk5xxxxxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The type of the license.</p>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder licenseType(String licenseType) {
this.licenseType = licenseType;
return this;
}
/**
* <p>The region ID of the instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>06B220E2-EAC5-4DBE-A1FC-1B62DB6A****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDBInstanceDetailResponseBody build() {
return new DescribeDBInstanceDetailResponseBody(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/DescribeDBInstanceEncryptionKeyRequest.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 DescribeDBInstanceEncryptionKeyRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceEncryptionKeyRequest</p>
*/
public class DescribeDBInstanceEncryptionKeyRequest 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("EncryptionKey")
private String encryptionKey;
@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("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 DescribeDBInstanceEncryptionKeyRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.encryptionKey = builder.encryptionKey;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
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 DescribeDBInstanceEncryptionKeyRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return encryptionKey
*/
public String getEncryptionKey() {
return this.encryptionKey;
}
/**
* @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 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<DescribeDBInstanceEncryptionKeyRequest, Builder> {
private String DBInstanceId;
private String encryptionKey;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String securityToken;
private String targetRegionId;
private Builder() {
super();
}
private Builder(DescribeDBInstanceEncryptionKeyRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.encryptionKey = request.encryptionKey;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.securityToken = request.securityToken;
this.targetRegionId = request.targetRegionId;
}
/**
* <p>The ID of the instance You can call the <a href="https://help.aliyun.com/document_detail/26232.html">DescribeDBInstances</a> operation to query the IDs of instances.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The ID of the custom key.</p>
*
* <strong>example:</strong>
* <p>749c1df7-xxxx-xxxx-xxxx-xxxxxxxxxxxx</p>
*/
public Builder encryptionKey(String encryptionKey) {
this.putQueryParameter("EncryptionKey", encryptionKey);
this.encryptionKey = encryptionKey;
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 of the instance. 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>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
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 ID of the destination region. 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>
*
* <strong>example:</strong>
* <p>cn-qingdao</p>
*/
public Builder targetRegionId(String targetRegionId) {
this.putQueryParameter("TargetRegionId", targetRegionId);
this.targetRegionId = targetRegionId;
return this;
}
@Override
public DescribeDBInstanceEncryptionKeyRequest build() {
return new DescribeDBInstanceEncryptionKeyRequest(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/DescribeDBInstanceEncryptionKeyResponse.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 DescribeDBInstanceEncryptionKeyResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceEncryptionKeyResponse</p>
*/
public class DescribeDBInstanceEncryptionKeyResponse 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 DescribeDBInstanceEncryptionKeyResponseBody body;
private DescribeDBInstanceEncryptionKeyResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceEncryptionKeyResponse 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 DescribeDBInstanceEncryptionKeyResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceEncryptionKeyResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceEncryptionKeyResponseBody body);
@Override
DescribeDBInstanceEncryptionKeyResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceEncryptionKeyResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceEncryptionKeyResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceEncryptionKeyResponse 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(DescribeDBInstanceEncryptionKeyResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceEncryptionKeyResponse build() {
return new DescribeDBInstanceEncryptionKeyResponse(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/DescribeDBInstanceEncryptionKeyResponseBody.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 DescribeDBInstanceEncryptionKeyResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceEncryptionKeyResponseBody</p>
*/
public class DescribeDBInstanceEncryptionKeyResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Creator")
private String creator;
@com.aliyun.core.annotation.NameInMap("DeleteDate")
private String deleteDate;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EncryptionKey")
private String encryptionKey;
@com.aliyun.core.annotation.NameInMap("EncryptionKeyList")
private java.util.List<EncryptionKeyList> encryptionKeyList;
@com.aliyun.core.annotation.NameInMap("EncryptionKeyStatus")
private String encryptionKeyStatus;
@com.aliyun.core.annotation.NameInMap("KeyUsage")
private String keyUsage;
@com.aliyun.core.annotation.NameInMap("MaterialExpireTime")
private String materialExpireTime;
@com.aliyun.core.annotation.NameInMap("Origin")
private String origin;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDBInstanceEncryptionKeyResponseBody(Builder builder) {
this.creator = builder.creator;
this.deleteDate = builder.deleteDate;
this.description = builder.description;
this.encryptionKey = builder.encryptionKey;
this.encryptionKeyList = builder.encryptionKeyList;
this.encryptionKeyStatus = builder.encryptionKeyStatus;
this.keyUsage = builder.keyUsage;
this.materialExpireTime = builder.materialExpireTime;
this.origin = builder.origin;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceEncryptionKeyResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return creator
*/
public String getCreator() {
return this.creator;
}
/**
* @return deleteDate
*/
public String getDeleteDate() {
return this.deleteDate;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return encryptionKey
*/
public String getEncryptionKey() {
return this.encryptionKey;
}
/**
* @return encryptionKeyList
*/
public java.util.List<EncryptionKeyList> getEncryptionKeyList() {
return this.encryptionKeyList;
}
/**
* @return encryptionKeyStatus
*/
public String getEncryptionKeyStatus() {
return this.encryptionKeyStatus;
}
/**
* @return keyUsage
*/
public String getKeyUsage() {
return this.keyUsage;
}
/**
* @return materialExpireTime
*/
public String getMaterialExpireTime() {
return this.materialExpireTime;
}
/**
* @return origin
*/
public String getOrigin() {
return this.origin;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String creator;
private String deleteDate;
private String description;
private String encryptionKey;
private java.util.List<EncryptionKeyList> encryptionKeyList;
private String encryptionKeyStatus;
private String keyUsage;
private String materialExpireTime;
private String origin;
private String requestId;
private Builder() {
}
private Builder(DescribeDBInstanceEncryptionKeyResponseBody model) {
this.creator = model.creator;
this.deleteDate = model.deleteDate;
this.description = model.description;
this.encryptionKey = model.encryptionKey;
this.encryptionKeyList = model.encryptionKeyList;
this.encryptionKeyStatus = model.encryptionKeyStatus;
this.keyUsage = model.keyUsage;
this.materialExpireTime = model.materialExpireTime;
this.origin = model.origin;
this.requestId = model.requestId;
}
/**
* <p>The user who created the key.</p>
*
* <strong>example:</strong>
* <p>1443*****9604</p>
*/
public Builder creator(String creator) {
this.creator = creator;
return this;
}
/**
* <p>The scheduled time at which the key is deleted. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2022-05-08T08:14:16Z</p>
*/
public Builder deleteDate(String deleteDate) {
this.deleteDate = deleteDate;
return this;
}
/**
* <p>The description of the key.</p>
*
* <strong>example:</strong>
* <p>Description of the key</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The ID of the key.</p>
*
* <strong>example:</strong>
* <p>5306d1b6-7fd3-42d9-9511-xxxxxxx</p>
*/
public Builder encryptionKey(String encryptionKey) {
this.encryptionKey = encryptionKey;
return this;
}
/**
* <p>The details about the key.</p>
*/
public Builder encryptionKeyList(java.util.List<EncryptionKeyList> encryptionKeyList) {
this.encryptionKeyList = encryptionKeyList;
return this;
}
/**
* <p>The status of the key. Valid values:</p>
* <ul>
* <li><strong>Enabled</strong></li>
* <li><strong>Disabled</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Enabled</p>
*/
public Builder encryptionKeyStatus(String encryptionKeyStatus) {
this.encryptionKeyStatus = encryptionKeyStatus;
return this;
}
/**
* <p>The purpose of the key.</p>
*
* <strong>example:</strong>
* <p>ENCRYPT/DECRYPT</p>
*/
public Builder keyUsage(String keyUsage) {
this.keyUsage = keyUsage;
return this;
}
/**
* <p>The time at which the key expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2021-10-18T08:14:16Z</p>
*/
public Builder materialExpireTime(String materialExpireTime) {
this.materialExpireTime = materialExpireTime;
return this;
}
/**
* <p>The source of the key.</p>
*
* <strong>example:</strong>
* <p>Aliyun_KMS</p>
*/
public Builder origin(String origin) {
this.origin = origin;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>3BC2768E-DEDA-40FC-BBE9-6B884F3626AF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDBInstanceEncryptionKeyResponseBody build() {
return new DescribeDBInstanceEncryptionKeyResponseBody(this);
}
}
/**
*
* {@link DescribeDBInstanceEncryptionKeyResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceEncryptionKeyResponseBody</p>
*/
public static class EncryptionKeyList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AliasName")
private String aliasName;
@com.aliyun.core.annotation.NameInMap("Creator")
private String creator;
@com.aliyun.core.annotation.NameInMap("DeleteDate")
private String deleteDate;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EncryptionKey")
private String encryptionKey;
@com.aliyun.core.annotation.NameInMap("EncryptionKeyStatus")
private String encryptionKeyStatus;
@com.aliyun.core.annotation.NameInMap("KeyType")
private String keyType;
@com.aliyun.core.annotation.NameInMap("KeyUsage")
private String keyUsage;
@com.aliyun.core.annotation.NameInMap("MaterialExpireTime")
private String materialExpireTime;
@com.aliyun.core.annotation.NameInMap("Origin")
private String origin;
@com.aliyun.core.annotation.NameInMap("UsedBy")
private String usedBy;
private EncryptionKeyList(Builder builder) {
this.aliasName = builder.aliasName;
this.creator = builder.creator;
this.deleteDate = builder.deleteDate;
this.description = builder.description;
this.encryptionKey = builder.encryptionKey;
this.encryptionKeyStatus = builder.encryptionKeyStatus;
this.keyType = builder.keyType;
this.keyUsage = builder.keyUsage;
this.materialExpireTime = builder.materialExpireTime;
this.origin = builder.origin;
this.usedBy = builder.usedBy;
}
public static Builder builder() {
return new Builder();
}
public static EncryptionKeyList create() {
return builder().build();
}
/**
* @return aliasName
*/
public String getAliasName() {
return this.aliasName;
}
/**
* @return creator
*/
public String getCreator() {
return this.creator;
}
/**
* @return deleteDate
*/
public String getDeleteDate() {
return this.deleteDate;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return encryptionKey
*/
public String getEncryptionKey() {
return this.encryptionKey;
}
/**
* @return encryptionKeyStatus
*/
public String getEncryptionKeyStatus() {
return this.encryptionKeyStatus;
}
/**
* @return keyType
*/
public String getKeyType() {
return this.keyType;
}
/**
* @return keyUsage
*/
public String getKeyUsage() {
return this.keyUsage;
}
/**
* @return materialExpireTime
*/
public String getMaterialExpireTime() {
return this.materialExpireTime;
}
/**
* @return origin
*/
public String getOrigin() {
return this.origin;
}
/**
* @return usedBy
*/
public String getUsedBy() {
return this.usedBy;
}
public static final class Builder {
private String aliasName;
private String creator;
private String deleteDate;
private String description;
private String encryptionKey;
private String encryptionKeyStatus;
private String keyType;
private String keyUsage;
private String materialExpireTime;
private String origin;
private String usedBy;
private Builder() {
}
private Builder(EncryptionKeyList model) {
this.aliasName = model.aliasName;
this.creator = model.creator;
this.deleteDate = model.deleteDate;
this.description = model.description;
this.encryptionKey = model.encryptionKey;
this.encryptionKeyStatus = model.encryptionKeyStatus;
this.keyType = model.keyType;
this.keyUsage = model.keyUsage;
this.materialExpireTime = model.materialExpireTime;
this.origin = model.origin;
this.usedBy = model.usedBy;
}
/**
* <p>The alias of the key.</p>
*
* <strong>example:</strong>
* <p>alias/xxx</p>
*/
public Builder aliasName(String aliasName) {
this.aliasName = aliasName;
return this;
}
/**
* <p>The user who created the key.</p>
*
* <strong>example:</strong>
* <p>1443*****9604</p>
*/
public Builder creator(String creator) {
this.creator = creator;
return this;
}
/**
* <p>The scheduled time at which the key is deleted. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2022-05-08T08:14:16Z</p>
*/
public Builder deleteDate(String deleteDate) {
this.deleteDate = deleteDate;
return this;
}
/**
* <p>The description of the key.</p>
*
* <strong>example:</strong>
* <p>Description of the key</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The ID of the key.</p>
*
* <strong>example:</strong>
* <p>5306d1b6-7fd3-42d9-9511-xxxxxxx</p>
*/
public Builder encryptionKey(String encryptionKey) {
this.encryptionKey = encryptionKey;
return this;
}
/**
* <p>The status of the key. Valid values:</p>
* <ul>
* <li><strong>Enabled</strong></li>
* <li><strong>Disabled</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Enabled</p>
*/
public Builder encryptionKeyStatus(String encryptionKeyStatus) {
this.encryptionKeyStatus = encryptionKeyStatus;
return this;
}
/**
* <p>The type of the key. Valid values:</p>
* <ul>
* <li><strong>CMK</strong></li>
* <li><strong>ServiceKey</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>ServiceKey</p>
*/
public Builder keyType(String keyType) {
this.keyType = keyType;
return this;
}
/**
* <p>The purpose of the key.</p>
*
* <strong>example:</strong>
* <p>ENCRYPT/DECRYPT</p>
*/
public Builder keyUsage(String keyUsage) {
this.keyUsage = keyUsage;
return this;
}
/**
* <p>The time at which the key expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2021-10-18T08:14:16Z</p>
*/
public Builder materialExpireTime(String materialExpireTime) {
this.materialExpireTime = materialExpireTime;
return this;
}
/**
* <p>The source of the key.</p>
*
* <strong>example:</strong>
* <p>Aliyun_KMS</p>
*/
public Builder origin(String origin) {
this.origin = origin;
return this;
}
/**
* <p>The role of the instance. Valid values:</p>
* <ul>
* <li><strong>Master</strong>: primary instance</li>
* <li><strong>slave</strong>: read-only instance</li>
* </ul>
*
* <strong>example:</strong>
* <p>Master</p>
*/
public Builder usedBy(String usedBy) {
this.usedBy = usedBy;
return this;
}
public EncryptionKeyList build() {
return new EncryptionKeyList(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/DescribeDBInstanceEndpointsRequest.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 DescribeDBInstanceEndpointsRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceEndpointsRequest</p>
*/
public class DescribeDBInstanceEndpointsRequest 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("DBInstanceEndpointId")
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("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeDBInstanceEndpointsRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.DBInstanceEndpointId = builder.DBInstanceEndpointId;
this.DBInstanceId = builder.DBInstanceId;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceEndpointsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return DBInstanceEndpointId
*/
public String getDBInstanceEndpointId() {
return this.DBInstanceEndpointId;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeDBInstanceEndpointsRequest, Builder> {
private String clientToken;
private String DBInstanceEndpointId;
private String DBInstanceId;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDBInstanceEndpointsRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBInstanceEndpointId = request.DBInstanceEndpointId;
this.DBInstanceId = request.DBInstanceId;
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>ETnLKlblzczshOTUbOC****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The endpoint ID of the instance.</p>
* <blockquote>
* <p> If this parameter is not specified, the information about all endpoints is returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>ep-****-ro</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-u****</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 DescribeDBInstanceEndpointsRequest build() {
return new DescribeDBInstanceEndpointsRequest(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/DescribeDBInstanceEndpointsResponse.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 DescribeDBInstanceEndpointsResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceEndpointsResponse</p>
*/
public class DescribeDBInstanceEndpointsResponse 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 DescribeDBInstanceEndpointsResponseBody body;
private DescribeDBInstanceEndpointsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceEndpointsResponse 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 DescribeDBInstanceEndpointsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceEndpointsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceEndpointsResponseBody body);
@Override
DescribeDBInstanceEndpointsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceEndpointsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceEndpointsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceEndpointsResponse 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(DescribeDBInstanceEndpointsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceEndpointsResponse build() {
return new DescribeDBInstanceEndpointsResponse(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/DescribeDBInstanceEndpointsResponseBody.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 DescribeDBInstanceEndpointsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceEndpointsResponseBody</p>
*/
public class DescribeDBInstanceEndpointsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDBInstanceEndpointsResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceEndpointsResponseBody 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(DescribeDBInstanceEndpointsResponseBody 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>777C4593-8053-427B-****105593277CAB</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDBInstanceEndpointsResponseBody build() {
return new DescribeDBInstanceEndpointsResponseBody(this);
}
}
/**
*
* {@link DescribeDBInstanceEndpointsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceEndpointsResponseBody</p>
*/
public static class AddressItem extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConnectionString")
private String connectionString;
@com.aliyun.core.annotation.NameInMap("IpAddress")
private String ipAddress;
@com.aliyun.core.annotation.NameInMap("IpType")
private String ipType;
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private AddressItem(Builder builder) {
this.connectionString = builder.connectionString;
this.ipAddress = builder.ipAddress;
this.ipType = builder.ipType;
this.port = builder.port;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static AddressItem create() {
return builder().build();
}
/**
* @return connectionString
*/
public String getConnectionString() {
return this.connectionString;
}
/**
* @return ipAddress
*/
public String getIpAddress() {
return this.ipAddress;
}
/**
* @return ipType
*/
public String getIpType() {
return this.ipType;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private String connectionString;
private String ipAddress;
private String ipType;
private String port;
private String vSwitchId;
private String vpcId;
private Builder() {
}
private Builder(AddressItem model) {
this.connectionString = model.connectionString;
this.ipAddress = model.ipAddress;
this.ipType = model.ipType;
this.port = model.port;
this.vSwitchId = model.vSwitchId;
this.vpcId = model.vpcId;
}
/**
* <p>The endpoints of the instance.</p>
*
* <strong>example:</strong>
* <p>rm****.mysql.rds.aliyuncs.com</p>
*/
public Builder connectionString(String connectionString) {
this.connectionString = connectionString;
return this;
}
/**
* <p>The IP address.</p>
*
* <strong>example:</strong>
* <p>10.71.XX.XX</p>
*/
public Builder ipAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
/**
* <p>The type of the IP address. Valid values:</p>
* <ul>
* <li><strong>Public</strong>: Internet</li>
* <li><strong>Private</strong>: internal network</li>
* </ul>
*
* <strong>example:</strong>
* <p>Private</p>
*/
public Builder ipType(String ipType) {
this.ipType = ipType;
return this;
}
/**
* <p>The port number of the endpoint.</p>
*
* <strong>example:</strong>
* <p>3306</p>
*/
public Builder port(String port) {
this.port = port;
return this;
}
/**
* <p>The vSwitch ID.</p>
*
* <strong>example:</strong>
* <p>vsw-bp12u14ecz****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The VPC ID.</p>
*
* <strong>example:</strong>
* <p>vpc-bp17xdic25d****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public AddressItem build() {
return new AddressItem(this);
}
}
}
/**
*
* {@link DescribeDBInstanceEndpointsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceEndpointsResponseBody</p>
*/
public static class AddressItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AddressItem")
private java.util.List<AddressItem> addressItem;
private AddressItems(Builder builder) {
this.addressItem = builder.addressItem;
}
public static Builder builder() {
return new Builder();
}
public static AddressItems create() {
return builder().build();
}
/**
* @return addressItem
*/
public java.util.List<AddressItem> getAddressItem() {
return this.addressItem;
}
public static final class Builder {
private java.util.List<AddressItem> addressItem;
private Builder() {
}
private Builder(AddressItems model) {
this.addressItem = model.addressItem;
}
/**
* AddressItem.
*/
public Builder addressItem(java.util.List<AddressItem> addressItem) {
this.addressItem = addressItem;
return this;
}
public AddressItems build() {
return new AddressItems(this);
}
}
}
/**
*
* {@link DescribeDBInstanceEndpointsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceEndpointsResponseBody</p>
*/
public static class NodeItem extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.NameInMap("Weight")
private Integer weight;
private NodeItem(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.nodeId = builder.nodeId;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static NodeItem create() {
return builder().build();
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return weight
*/
public Integer getWeight() {
return this.weight;
}
public static final class Builder {
private String DBInstanceId;
private String nodeId;
private Integer weight;
private Builder() {
}
private Builder(NodeItem model) {
this.DBInstanceId = model.DBInstanceId;
this.nodeId = model.nodeId;
this.weight = model.weight;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-u****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The node ID.</p>
*
* <strong>example:</strong>
* <p>rn-****13p6tum4289h</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(Integer weight) {
this.weight = weight;
return this;
}
public NodeItem build() {
return new NodeItem(this);
}
}
}
/**
*
* {@link DescribeDBInstanceEndpointsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceEndpointsResponseBody</p>
*/
public static class NodeItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NodeItem")
private java.util.List<NodeItem> nodeItem;
private NodeItems(Builder builder) {
this.nodeItem = builder.nodeItem;
}
public static Builder builder() {
return new Builder();
}
public static NodeItems create() {
return builder().build();
}
/**
* @return nodeItem
*/
public java.util.List<NodeItem> getNodeItem() {
return this.nodeItem;
}
public static final class Builder {
private java.util.List<NodeItem> nodeItem;
private Builder() {
}
private Builder(NodeItems model) {
this.nodeItem = model.nodeItem;
}
/**
* NodeItem.
*/
public Builder nodeItem(java.util.List<NodeItem> nodeItem) {
this.nodeItem = nodeItem;
return this;
}
public NodeItems build() {
return new NodeItems(this);
}
}
}
/**
*
* {@link DescribeDBInstanceEndpointsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceEndpointsResponseBody</p>
*/
public static class DBInstanceEndpoint extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AddressItems")
private AddressItems addressItems;
@com.aliyun.core.annotation.NameInMap("EndpointDescription")
private String endpointDescription;
@com.aliyun.core.annotation.NameInMap("EndpointId")
private String endpointId;
@com.aliyun.core.annotation.NameInMap("EndpointType")
private String endpointType;
@com.aliyun.core.annotation.NameInMap("NodeItems")
private NodeItems nodeItems;
private DBInstanceEndpoint(Builder builder) {
this.addressItems = builder.addressItems;
this.endpointDescription = builder.endpointDescription;
this.endpointId = builder.endpointId;
this.endpointType = builder.endpointType;
this.nodeItems = builder.nodeItems;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceEndpoint create() {
return builder().build();
}
/**
* @return addressItems
*/
public AddressItems getAddressItems() {
return this.addressItems;
}
/**
* @return endpointDescription
*/
public String getEndpointDescription() {
return this.endpointDescription;
}
/**
* @return endpointId
*/
public String getEndpointId() {
return this.endpointId;
}
/**
* @return endpointType
*/
public String getEndpointType() {
return this.endpointType;
}
/**
* @return nodeItems
*/
public NodeItems getNodeItems() {
return this.nodeItems;
}
public static final class Builder {
private AddressItems addressItems;
private String endpointDescription;
private String endpointId;
private String endpointType;
private NodeItems nodeItems;
private Builder() {
}
private Builder(DBInstanceEndpoint model) {
this.addressItems = model.addressItems;
this.endpointDescription = model.endpointDescription;
this.endpointId = model.endpointId;
this.endpointType = model.endpointType;
this.nodeItems = model.nodeItems;
}
/**
* <p>The information about the endpoint.</p>
*/
public Builder addressItems(AddressItems addressItems) {
this.addressItems = addressItems;
return this;
}
/**
* <p>The user-defined description of the endpoint.</p>
*
* <strong>example:</strong>
* <p>for readonly business</p>
*/
public Builder endpointDescription(String endpointDescription) {
this.endpointDescription = endpointDescription;
return this;
}
/**
* <p>The endpoint ID of the instance.</p>
*
* <strong>example:</strong>
* <p>ep-****</p>
*/
public Builder endpointId(String endpointId) {
this.endpointId = endpointId;
return this;
}
/**
* <p>The type of the endpoint. Valid values:</p>
* <ul>
* <li><strong>Primary</strong>: the read/write endpoint of the instance</li>
* <li><strong>Readonly</strong>: the read-only endpoint of the instance</li>
* </ul>
*
* <strong>example:</strong>
* <p>Readonly</p>
*/
public Builder endpointType(String endpointType) {
this.endpointType = endpointType;
return this;
}
/**
* <p>The information about the node that is configured for the endpoint.</p>
*/
public Builder nodeItems(NodeItems nodeItems) {
this.nodeItems = nodeItems;
return this;
}
public DBInstanceEndpoint build() {
return new DBInstanceEndpoint(this);
}
}
}
/**
*
* {@link DescribeDBInstanceEndpointsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceEndpointsResponseBody</p>
*/
public static class DBInstanceEndpoints extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceEndpoint")
private java.util.List<DBInstanceEndpoint> DBInstanceEndpoint;
private DBInstanceEndpoints(Builder builder) {
this.DBInstanceEndpoint = builder.DBInstanceEndpoint;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceEndpoints create() {
return builder().build();
}
/**
* @return DBInstanceEndpoint
*/
public java.util.List<DBInstanceEndpoint> getDBInstanceEndpoint() {
return this.DBInstanceEndpoint;
}
public static final class Builder {
private java.util.List<DBInstanceEndpoint> DBInstanceEndpoint;
private Builder() {
}
private Builder(DBInstanceEndpoints model) {
this.DBInstanceEndpoint = model.DBInstanceEndpoint;
}
/**
* DBInstanceEndpoint.
*/
public Builder DBInstanceEndpoint(java.util.List<DBInstanceEndpoint> DBInstanceEndpoint) {
this.DBInstanceEndpoint = DBInstanceEndpoint;
return this;
}
public DBInstanceEndpoints build() {
return new DBInstanceEndpoints(this);
}
}
}
/**
*
* {@link DescribeDBInstanceEndpointsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceEndpointsResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceEndpoints")
private DBInstanceEndpoints DBInstanceEndpoints;
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
private String DBInstanceName;
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
private Data(Builder builder) {
this.DBInstanceEndpoints = builder.DBInstanceEndpoints;
this.DBInstanceName = builder.DBInstanceName;
this.ipVersion = builder.ipVersion;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return DBInstanceEndpoints
*/
public DBInstanceEndpoints getDBInstanceEndpoints() {
return this.DBInstanceEndpoints;
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
public static final class Builder {
private DBInstanceEndpoints DBInstanceEndpoints;
private String DBInstanceName;
private String ipVersion;
private Builder() {
}
private Builder(Data model) {
this.DBInstanceEndpoints = model.DBInstanceEndpoints;
this.DBInstanceName = model.DBInstanceName;
this.ipVersion = model.ipVersion;
}
/**
* <p>The information of the endpoints of the instance.</p>
*/
public Builder DBInstanceEndpoints(DBInstanceEndpoints DBInstanceEndpoints) {
this.DBInstanceEndpoints = DBInstanceEndpoints;
return this;
}
/**
* <p>The name of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-u****</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* <p>The version of the IP protocol. Valid values:</p>
* <ul>
* <li><strong>ipv4</strong></li>
* <li><strong>ipv6</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>ipv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.ipVersion = ipVersion;
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/DescribeDBInstanceHAConfigRequest.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 DescribeDBInstanceHAConfigRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceHAConfigRequest</p>
*/
public class DescribeDBInstanceHAConfigRequest 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("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 DescribeDBInstanceHAConfigRequest(Builder builder) {
super(builder);
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 DescribeDBInstanceHAConfigRequest 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 resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeDBInstanceHAConfigRequest, Builder> {
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDBInstanceHAConfigRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <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-uf6wjk5xxxxxx</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 DescribeDBInstanceHAConfigRequest build() {
return new DescribeDBInstanceHAConfigRequest(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/DescribeDBInstanceHAConfigResponse.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 DescribeDBInstanceHAConfigResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceHAConfigResponse</p>
*/
public class DescribeDBInstanceHAConfigResponse 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 DescribeDBInstanceHAConfigResponseBody body;
private DescribeDBInstanceHAConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceHAConfigResponse 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 DescribeDBInstanceHAConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceHAConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceHAConfigResponseBody body);
@Override
DescribeDBInstanceHAConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceHAConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceHAConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceHAConfigResponse 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(DescribeDBInstanceHAConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceHAConfigResponse build() {
return new DescribeDBInstanceHAConfigResponse(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/DescribeDBInstanceHAConfigResponseBody.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 DescribeDBInstanceHAConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceHAConfigResponseBody</p>
*/
public class DescribeDBInstanceHAConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("HAMode")
private String HAMode;
@com.aliyun.core.annotation.NameInMap("HostInstanceInfos")
private HostInstanceInfos hostInstanceInfos;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SyncMode")
private String syncMode;
private DescribeDBInstanceHAConfigResponseBody(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.HAMode = builder.HAMode;
this.hostInstanceInfos = builder.hostInstanceInfos;
this.requestId = builder.requestId;
this.syncMode = builder.syncMode;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceHAConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return HAMode
*/
public String getHAMode() {
return this.HAMode;
}
/**
* @return hostInstanceInfos
*/
public HostInstanceInfos getHostInstanceInfos() {
return this.hostInstanceInfos;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return syncMode
*/
public String getSyncMode() {
return this.syncMode;
}
public static final class Builder {
private String DBInstanceId;
private String HAMode;
private HostInstanceInfos hostInstanceInfos;
private String requestId;
private String syncMode;
private Builder() {
}
private Builder(DescribeDBInstanceHAConfigResponseBody model) {
this.DBInstanceId = model.DBInstanceId;
this.HAMode = model.HAMode;
this.hostInstanceInfos = model.hostInstanceInfos;
this.requestId = model.requestId;
this.syncMode = model.syncMode;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The high availability mode of the instance. Valid values:</p>
* <ul>
* <li><strong>RPO</strong>: Data consistency is preferred. The instance ensures data reliability to minimize data losses. If you have high requirements on data consistency, select this mode.</li>
* <li><strong>RTO</strong>: Service availability is preferred. The instance restores the database service at the earliest opportunity to ensure service availability. If you have high requirements on instance availability, select this mode.</li>
* </ul>
* <blockquote>
* <p>This parameter is returned only for instances that run MySQL.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>RPO</p>
*/
public Builder HAMode(String HAMode) {
this.HAMode = HAMode;
return this;
}
/**
* <p>An array that consists of the information of the primary and secondary instances.</p>
*/
public Builder hostInstanceInfos(HostInstanceInfos hostInstanceInfos) {
this.hostInstanceInfos = hostInstanceInfos;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>1AD222E9-E606-4A42-BF6D-8A4442913CEF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The data replication mode of the instance. Valid values:</p>
* <ul>
* <li><strong>Sync</strong>: the synchronous mode</li>
* <li><strong>Semi-sync</strong>: the semi-synchronous replication mode</li>
* <li><strong>Async</strong>: the asynchronous mode</li>
* </ul>
* <blockquote>
* <p>This parameter is returned only for instances that run MySQL.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Sync</p>
*/
public Builder syncMode(String syncMode) {
this.syncMode = syncMode;
return this;
}
public DescribeDBInstanceHAConfigResponseBody build() {
return new DescribeDBInstanceHAConfigResponseBody(this);
}
}
/**
*
* {@link DescribeDBInstanceHAConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceHAConfigResponseBody</p>
*/
public static class NodeInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DataSyncTime")
private String dataSyncTime;
@com.aliyun.core.annotation.NameInMap("LogSyncTime")
private String logSyncTime;
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.NameInMap("NodeType")
private String nodeType;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("SyncStatus")
private String syncStatus;
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private NodeInfo(Builder builder) {
this.dataSyncTime = builder.dataSyncTime;
this.logSyncTime = builder.logSyncTime;
this.nodeId = builder.nodeId;
this.nodeType = builder.nodeType;
this.regionId = builder.regionId;
this.syncStatus = builder.syncStatus;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static NodeInfo create() {
return builder().build();
}
/**
* @return dataSyncTime
*/
public String getDataSyncTime() {
return this.dataSyncTime;
}
/**
* @return logSyncTime
*/
public String getLogSyncTime() {
return this.logSyncTime;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return nodeType
*/
public String getNodeType() {
return this.nodeType;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return syncStatus
*/
public String getSyncStatus() {
return this.syncStatus;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private String dataSyncTime;
private String logSyncTime;
private String nodeId;
private String nodeType;
private String regionId;
private String syncStatus;
private String zoneId;
private Builder() {
}
private Builder(NodeInfo model) {
this.dataSyncTime = model.dataSyncTime;
this.logSyncTime = model.logSyncTime;
this.nodeId = model.nodeId;
this.nodeType = model.nodeType;
this.regionId = model.regionId;
this.syncStatus = model.syncStatus;
this.zoneId = model.zoneId;
}
/**
* <p>The time when the secondary instance completed the synchronization of data from the primary instance. 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>
*
* <strong>example:</strong>
* <p>2018-05-05T15:15:00Z</p>
*/
public Builder dataSyncTime(String dataSyncTime) {
this.dataSyncTime = dataSyncTime;
return this;
}
/**
* <p>The time when the secondary instance received logs from the primary instance. 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>
*
* <strong>example:</strong>
* <p>2018-05-05T15:15:00Z</p>
*/
public Builder logSyncTime(String logSyncTime) {
this.logSyncTime = logSyncTime;
return this;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>3397027</p>
*/
public Builder nodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
/**
* <p>The type of the node. Valid values:</p>
* <ul>
* <li><strong>Master</strong>: the primary node</li>
* <li><strong>Slave</strong>: the secondary node</li>
* </ul>
*
* <strong>example:</strong>
* <p>Master</p>
*/
public Builder nodeType(String nodeType) {
this.nodeType = nodeType;
return this;
}
/**
* <p>The region ID of the instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The synchronization status. Valid values:</p>
* <ul>
* <li><strong>NotAvailable</strong>: The synchronization fails. This means that faults occur.</li>
* <li><strong>Syncing</strong>: The synchronization is in process. In this case, a primary/secondary switchover may cause data losses.</li>
* <li><strong>Synchronized</strong>: The synchronization is completed.</li>
* <li><strong>NotSupport</strong>: The database engine or database engine version does not involve the synchronization between the primary and secondary instances.</li>
* </ul>
*
* <strong>example:</strong>
* <p>NotAvailable</p>
*/
public Builder syncStatus(String syncStatus) {
this.syncStatus = syncStatus;
return this;
}
/**
* <p>The ID of the zone.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-b</p>
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public NodeInfo build() {
return new NodeInfo(this);
}
}
}
/**
*
* {@link DescribeDBInstanceHAConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceHAConfigResponseBody</p>
*/
public static class HostInstanceInfos extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NodeInfo")
private java.util.List<NodeInfo> nodeInfo;
private HostInstanceInfos(Builder builder) {
this.nodeInfo = builder.nodeInfo;
}
public static Builder builder() {
return new Builder();
}
public static HostInstanceInfos create() {
return builder().build();
}
/**
* @return nodeInfo
*/
public java.util.List<NodeInfo> getNodeInfo() {
return this.nodeInfo;
}
public static final class Builder {
private java.util.List<NodeInfo> nodeInfo;
private Builder() {
}
private Builder(HostInstanceInfos model) {
this.nodeInfo = model.nodeInfo;
}
/**
* NodeInfo.
*/
public Builder nodeInfo(java.util.List<NodeInfo> nodeInfo) {
this.nodeInfo = nodeInfo;
return this;
}
public HostInstanceInfos build() {
return new HostInstanceInfos(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/DescribeDBInstanceIPArrayListRequest.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 DescribeDBInstanceIPArrayListRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceIPArrayListRequest</p>
*/
public class DescribeDBInstanceIPArrayListRequest 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("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("WhitelistNetworkType")
private String whitelistNetworkType;
private DescribeDBInstanceIPArrayListRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.whitelistNetworkType = builder.whitelistNetworkType;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceIPArrayListRequest 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 resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return whitelistNetworkType
*/
public String getWhitelistNetworkType() {
return this.whitelistNetworkType;
}
public static final class Builder extends Request.Builder<DescribeDBInstanceIPArrayListRequest, Builder> {
private String DBInstanceId;
private String ownerAccount;
private Long resourceOwnerId;
private String whitelistNetworkType;
private Builder() {
super();
}
private Builder(DescribeDBInstanceIPArrayListRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.whitelistNetworkType = request.whitelistNetworkType;
}
/**
* <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;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The network type of the IP address whitelist. Valid values:</p>
* <ul>
* <li><strong>Classic</strong>: classic network in enhanced whitelist mode</li>
* <li><strong>VPC</strong>: virtual private cloud (VPC) in enhanced whitelist mode</li>
* <li><strong>MIX</strong>: standard whitelist mode</li>
* </ul>
* <p>By default, this operation returns IP address whitelists of all network types.</p>
*
* <strong>example:</strong>
* <p>VPC</p>
*/
public Builder whitelistNetworkType(String whitelistNetworkType) {
this.putQueryParameter("WhitelistNetworkType", whitelistNetworkType);
this.whitelistNetworkType = whitelistNetworkType;
return this;
}
@Override
public DescribeDBInstanceIPArrayListRequest build() {
return new DescribeDBInstanceIPArrayListRequest(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/DescribeDBInstanceIPArrayListResponse.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 DescribeDBInstanceIPArrayListResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceIPArrayListResponse</p>
*/
public class DescribeDBInstanceIPArrayListResponse 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 DescribeDBInstanceIPArrayListResponseBody body;
private DescribeDBInstanceIPArrayListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceIPArrayListResponse 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 DescribeDBInstanceIPArrayListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceIPArrayListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceIPArrayListResponseBody body);
@Override
DescribeDBInstanceIPArrayListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceIPArrayListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceIPArrayListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceIPArrayListResponse 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(DescribeDBInstanceIPArrayListResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceIPArrayListResponse build() {
return new DescribeDBInstanceIPArrayListResponse(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/DescribeDBInstanceIPArrayListResponseBody.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 DescribeDBInstanceIPArrayListResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceIPArrayListResponseBody</p>
*/
public class DescribeDBInstanceIPArrayListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDBInstanceIPArrayListResponseBody(Builder builder) {
this.items = builder.items;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceIPArrayListResponseBody 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(DescribeDBInstanceIPArrayListResponseBody model) {
this.items = model.items;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of the details about the IP address whitelists.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>E2B6AF71-DC32-4055-B477-43B348798D10</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDBInstanceIPArrayListResponseBody build() {
return new DescribeDBInstanceIPArrayListResponseBody(this);
}
}
/**
*
* {@link DescribeDBInstanceIPArrayListResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceIPArrayListResponseBody</p>
*/
public static class DBInstanceIPArray extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceIPArrayAttribute")
private String DBInstanceIPArrayAttribute;
@com.aliyun.core.annotation.NameInMap("DBInstanceIPArrayName")
private String DBInstanceIPArrayName;
@com.aliyun.core.annotation.NameInMap("SecurityIPList")
private String securityIPList;
@com.aliyun.core.annotation.NameInMap("SecurityIPType")
private String securityIPType;
private DBInstanceIPArray(Builder builder) {
this.DBInstanceIPArrayAttribute = builder.DBInstanceIPArrayAttribute;
this.DBInstanceIPArrayName = builder.DBInstanceIPArrayName;
this.securityIPList = builder.securityIPList;
this.securityIPType = builder.securityIPType;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceIPArray create() {
return builder().build();
}
/**
* @return DBInstanceIPArrayAttribute
*/
public String getDBInstanceIPArrayAttribute() {
return this.DBInstanceIPArrayAttribute;
}
/**
* @return DBInstanceIPArrayName
*/
public String getDBInstanceIPArrayName() {
return this.DBInstanceIPArrayName;
}
/**
* @return securityIPList
*/
public String getSecurityIPList() {
return this.securityIPList;
}
/**
* @return securityIPType
*/
public String getSecurityIPType() {
return this.securityIPType;
}
public static final class Builder {
private String DBInstanceIPArrayAttribute;
private String DBInstanceIPArrayName;
private String securityIPList;
private String securityIPType;
private Builder() {
}
private Builder(DBInstanceIPArray model) {
this.DBInstanceIPArrayAttribute = model.DBInstanceIPArrayAttribute;
this.DBInstanceIPArrayName = model.DBInstanceIPArrayName;
this.securityIPList = model.securityIPList;
this.securityIPType = model.securityIPType;
}
/**
* <p>The attribute of the IP address whitelist. By default, this parameter is empty.</p>
* <blockquote>
* <p> A whitelist with the hidden attribute does not appear in the console. Such IP address whitelists are used to access Alibaba Cloud services, such as Data Transmission Service (DTS).</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>hidden</p>
*/
public Builder DBInstanceIPArrayAttribute(String DBInstanceIPArrayAttribute) {
this.DBInstanceIPArrayAttribute = DBInstanceIPArrayAttribute;
return this;
}
/**
* <p>The name of the IP address whitelist.</p>
*
* <strong>example:</strong>
* <p>rds_default</p>
*/
public Builder DBInstanceIPArrayName(String DBInstanceIPArrayName) {
this.DBInstanceIPArrayName = DBInstanceIPArrayName;
return this;
}
/**
* <p>The IP addresses in the IP address whitelist.</p>
*
* <strong>example:</strong>
* <p>192.168.1.0/24</p>
*/
public Builder securityIPList(String securityIPList) {
this.securityIPList = securityIPList;
return this;
}
/**
* <p>The type of the IP address.</p>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder securityIPType(String securityIPType) {
this.securityIPType = securityIPType;
return this;
}
public DBInstanceIPArray build() {
return new DBInstanceIPArray(this);
}
}
}
/**
*
* {@link DescribeDBInstanceIPArrayListResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceIPArrayListResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceIPArray")
private java.util.List<DBInstanceIPArray> DBInstanceIPArray;
private Items(Builder builder) {
this.DBInstanceIPArray = builder.DBInstanceIPArray;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return DBInstanceIPArray
*/
public java.util.List<DBInstanceIPArray> getDBInstanceIPArray() {
return this.DBInstanceIPArray;
}
public static final class Builder {
private java.util.List<DBInstanceIPArray> DBInstanceIPArray;
private Builder() {
}
private Builder(Items model) {
this.DBInstanceIPArray = model.DBInstanceIPArray;
}
/**
* DBInstanceIPArray.
*/
public Builder DBInstanceIPArray(java.util.List<DBInstanceIPArray> DBInstanceIPArray) {
this.DBInstanceIPArray = DBInstanceIPArray;
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/DescribeDBInstanceIpHostnameRequest.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 DescribeDBInstanceIpHostnameRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceIpHostnameRequest</p>
*/
public class DescribeDBInstanceIpHostnameRequest 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("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("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 DescribeDBInstanceIpHostnameRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.securityToken = builder.securityToken;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceIpHostnameRequest 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 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<DescribeDBInstanceIpHostnameRequest, Builder> {
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String securityToken;
private Builder() {
super();
}
private Builder(DescribeDBInstanceIpHostnameRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.securityToken = request.securityToken;
}
/**
* <p>The instance ID. You can call the <a href="https://help.aliyun.com/document_detail/2628785.html">DescribeDBInstances</a> 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;
}
/**
* <p>The region ID. You can call the <a href="https://help.aliyun.com/document_detail/2628783.html">DescribeDBInstanceAttribute</a> operation to query the region ID.</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;
}
/**
* 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 DescribeDBInstanceIpHostnameRequest build() {
return new DescribeDBInstanceIpHostnameRequest(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/DescribeDBInstanceIpHostnameResponse.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 DescribeDBInstanceIpHostnameResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceIpHostnameResponse</p>
*/
public class DescribeDBInstanceIpHostnameResponse 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 DescribeDBInstanceIpHostnameResponseBody body;
private DescribeDBInstanceIpHostnameResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceIpHostnameResponse 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 DescribeDBInstanceIpHostnameResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceIpHostnameResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceIpHostnameResponseBody body);
@Override
DescribeDBInstanceIpHostnameResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceIpHostnameResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceIpHostnameResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceIpHostnameResponse 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(DescribeDBInstanceIpHostnameResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceIpHostnameResponse build() {
return new DescribeDBInstanceIpHostnameResponse(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/DescribeDBInstanceIpHostnameResponseBody.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 DescribeDBInstanceIpHostnameResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceIpHostnameResponseBody</p>
*/
public class DescribeDBInstanceIpHostnameResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("IpHostnameInfos")
private String ipHostnameInfos;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDBInstanceIpHostnameResponseBody(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.ipHostnameInfos = builder.ipHostnameInfos;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceIpHostnameResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ipHostnameInfos
*/
public String getIpHostnameInfos() {
return this.ipHostnameInfos;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String DBInstanceId;
private String ipHostnameInfos;
private String requestId;
private Builder() {
}
private Builder(DescribeDBInstanceIpHostnameResponseBody model) {
this.DBInstanceId = model.DBInstanceId;
this.ipHostnameInfos = model.ipHostnameInfos;
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 internal IP addresses and hostnames of the ECS instance on which a primary ApsaraDB RDS for SQL Server instance and its secondary RDS instance reside. Format: <code>IP address 1, Hostname 1; IP address 2, Hostname 2</code>.</p>
*
* <strong>example:</strong>
* <p>172.16.xx.xx,sdxxxxxxxxB;172.16.xx.xx,sdxxxxxxxxA</p>
*/
public Builder ipHostnameInfos(String ipHostnameInfos) {
this.ipHostnameInfos = ipHostnameInfos;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>67CD4719-51E3-4A76-A38C-02F45FAE7E36</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDBInstanceIpHostnameResponseBody build() {
return new DescribeDBInstanceIpHostnameResponseBody(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/DescribeDBInstanceMetricsRequest.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 DescribeDBInstanceMetricsRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceMetricsRequest</p>
*/
public class DescribeDBInstanceMetricsRequest 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("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeDBInstanceMetricsRequest(Builder builder) {
super(builder);
this.DBInstanceName = builder.DBInstanceName;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceMetricsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeDBInstanceMetricsRequest, Builder> {
private String DBInstanceName;
private String resourceGroupId;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDBInstanceMetricsRequest request) {
super(request);
this.DBInstanceName = request.DBInstanceName;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <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-bp1s1j103lo6****</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.putQueryParameter("DBInstanceName", DBInstanceName);
this.DBInstanceName = DBInstanceName;
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;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeDBInstanceMetricsRequest build() {
return new DescribeDBInstanceMetricsRequest(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/DescribeDBInstanceMetricsResponse.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 DescribeDBInstanceMetricsResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceMetricsResponse</p>
*/
public class DescribeDBInstanceMetricsResponse 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 DescribeDBInstanceMetricsResponseBody body;
private DescribeDBInstanceMetricsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceMetricsResponse 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 DescribeDBInstanceMetricsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceMetricsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceMetricsResponseBody body);
@Override
DescribeDBInstanceMetricsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceMetricsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceMetricsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceMetricsResponse 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(DescribeDBInstanceMetricsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceMetricsResponse build() {
return new DescribeDBInstanceMetricsResponse(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/DescribeDBInstanceMetricsResponseBody.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 DescribeDBInstanceMetricsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceMetricsResponseBody</p>
*/
public class DescribeDBInstanceMetricsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
private String DBInstanceName;
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeDBInstanceMetricsResponseBody(Builder builder) {
this.DBInstanceName = builder.DBInstanceName;
this.items = builder.items;
this.requestId = builder.requestId;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceMetricsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private String DBInstanceName;
private java.util.List<Items> items;
private String requestId;
private Integer totalRecordCount;
private Builder() {
}
private Builder(DescribeDBInstanceMetricsResponseBody model) {
this.DBInstanceName = model.DBInstanceName;
this.items = model.items;
this.requestId = model.requestId;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-bp1*****</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* <p>An array consisting of the Enhanced Monitoring metrics that are enabled for the instance.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>318C3754-F6D0-54BB-A55C-23EAA04708B7</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of enhanced monitoring metrics that are enabled for the instance.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeDBInstanceMetricsResponseBody build() {
return new DescribeDBInstanceMetricsResponseBody(this);
}
}
/**
*
* {@link DescribeDBInstanceMetricsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceMetricsResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("Dimension")
private String dimension;
@com.aliyun.core.annotation.NameInMap("GroupKey")
private String groupKey;
@com.aliyun.core.annotation.NameInMap("GroupKeyType")
private String groupKeyType;
@com.aliyun.core.annotation.NameInMap("Method")
private String method;
@com.aliyun.core.annotation.NameInMap("MetricsKey")
private String metricsKey;
@com.aliyun.core.annotation.NameInMap("MetricsKeyAlias")
private String metricsKeyAlias;
@com.aliyun.core.annotation.NameInMap("SortRule")
private Integer sortRule;
@com.aliyun.core.annotation.NameInMap("Unit")
private String unit;
private Items(Builder builder) {
this.description = builder.description;
this.dimension = builder.dimension;
this.groupKey = builder.groupKey;
this.groupKeyType = builder.groupKeyType;
this.method = builder.method;
this.metricsKey = builder.metricsKey;
this.metricsKeyAlias = builder.metricsKeyAlias;
this.sortRule = builder.sortRule;
this.unit = builder.unit;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return dimension
*/
public String getDimension() {
return this.dimension;
}
/**
* @return groupKey
*/
public String getGroupKey() {
return this.groupKey;
}
/**
* @return groupKeyType
*/
public String getGroupKeyType() {
return this.groupKeyType;
}
/**
* @return method
*/
public String getMethod() {
return this.method;
}
/**
* @return metricsKey
*/
public String getMetricsKey() {
return this.metricsKey;
}
/**
* @return metricsKeyAlias
*/
public String getMetricsKeyAlias() {
return this.metricsKeyAlias;
}
/**
* @return sortRule
*/
public Integer getSortRule() {
return this.sortRule;
}
/**
* @return unit
*/
public String getUnit() {
return this.unit;
}
public static final class Builder {
private String description;
private String dimension;
private String groupKey;
private String groupKeyType;
private String method;
private String metricsKey;
private String metricsKeyAlias;
private Integer sortRule;
private String unit;
private Builder() {
}
private Builder(Items model) {
this.description = model.description;
this.dimension = model.dimension;
this.groupKey = model.groupKey;
this.groupKeyType = model.groupKeyType;
this.method = model.method;
this.metricsKey = model.metricsKey;
this.metricsKeyAlias = model.metricsKeyAlias;
this.sortRule = model.sortRule;
this.unit = model.unit;
}
/**
* <p>The description of the enhanced monitoring metric.</p>
*
* <strong>example:</strong>
* <p>OS CPU utilization, equal to the number of OS-consumed CPUs divided by the total number of CPUs</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The category of the enhanced monitoring metric. Valid values:</p>
* <ul>
* <li><strong>os</strong>: OS metric</li>
* <li><strong>db</strong>: database metric</li>
* </ul>
*
* <strong>example:</strong>
* <p>os</p>
*/
public Builder dimension(String dimension) {
this.dimension = dimension;
return this;
}
/**
* <p>The key of the group to which the enhanced monitoring metric belongs.</p>
*
* <strong>example:</strong>
* <p>os.cpu_usage</p>
*/
public Builder groupKey(String groupKey) {
this.groupKey = groupKey;
return this;
}
/**
* <p>The name of the group to which the enhanced monitoring metric belongs.</p>
*
* <strong>example:</strong>
* <p>CPU Utilization Rate</p>
*/
public Builder groupKeyType(String groupKeyType) {
this.groupKeyType = groupKeyType;
return this;
}
/**
* <p>The method that is used to aggregate the monitoring data of the enhanced monitoring metric. Valid values:</p>
* <ul>
* <li><strong>avg</strong>: The system calculates the average value of the enhanced monitoring metric.</li>
* <li><strong>min</strong>: The system calculates the minimum value of the enhanced monitoring metric.</li>
* <li><strong>max</strong>: The system calculates the maximum value of the enhanced monitoring metric.</li>
* </ul>
*
* <strong>example:</strong>
* <p>avg</p>
*/
public Builder method(String method) {
this.method = method;
return this;
}
/**
* <p>The key of the enhanced monitoring metric.</p>
*
* <strong>example:</strong>
* <p>os.cpu_usage.sys.avg</p>
*/
public Builder metricsKey(String metricsKey) {
this.metricsKey = metricsKey;
return this;
}
/**
* <p>The alias of the enhanced monitoring metric.</p>
*
* <strong>example:</strong>
* <p>os.cpu_usage.sys</p>
*/
public Builder metricsKeyAlias(String metricsKeyAlias) {
this.metricsKeyAlias = metricsKeyAlias;
return this;
}
/**
* <p>The serial number of the enhanced monitoring metric.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder sortRule(Integer sortRule) {
this.sortRule = sortRule;
return this;
}
/**
* <p>The unit of the enhanced monitoring metric.</p>
*
* <strong>example:</strong>
* <p>%</p>
*/
public Builder unit(String unit) {
this.unit = unit;
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/DescribeDBInstanceMonitorRequest.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 DescribeDBInstanceMonitorRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceMonitorRequest</p>
*/
public class DescribeDBInstanceMonitorRequest 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("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 DescribeDBInstanceMonitorRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
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 DescribeDBInstanceMonitorRequest 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 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<DescribeDBInstanceMonitorRequest, Builder> {
private String clientToken;
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDBInstanceMonitorRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
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>ETnLKlblzczshOTUbOCzxxxxxxx</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-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 DescribeDBInstanceMonitorRequest build() {
return new DescribeDBInstanceMonitorRequest(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/DescribeDBInstanceMonitorResponse.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 DescribeDBInstanceMonitorResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceMonitorResponse</p>
*/
public class DescribeDBInstanceMonitorResponse 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 DescribeDBInstanceMonitorResponseBody body;
private DescribeDBInstanceMonitorResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceMonitorResponse 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 DescribeDBInstanceMonitorResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceMonitorResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceMonitorResponseBody body);
@Override
DescribeDBInstanceMonitorResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceMonitorResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceMonitorResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceMonitorResponse 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(DescribeDBInstanceMonitorResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceMonitorResponse build() {
return new DescribeDBInstanceMonitorResponse(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/DescribeDBInstanceMonitorResponseBody.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 DescribeDBInstanceMonitorResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceMonitorResponseBody</p>
*/
public class DescribeDBInstanceMonitorResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Period")
private String period;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDBInstanceMonitorResponseBody(Builder builder) {
this.period = builder.period;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceMonitorResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return period
*/
public String getPeriod() {
return this.period;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String period;
private String requestId;
private Builder() {
}
private Builder(DescribeDBInstanceMonitorResponseBody model) {
this.period = model.period;
this.requestId = model.requestId;
}
/**
* <p>The monitoring frequency. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder period(String period) {
this.period = period;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>30829FD4-1A84-4C2A-A625-2EADECB95CA3</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDBInstanceMonitorResponseBody build() {
return new DescribeDBInstanceMonitorResponseBody(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/DescribeDBInstanceNetInfoForChannelRequest.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 DescribeDBInstanceNetInfoForChannelRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceNetInfoForChannelRequest</p>
*/
public class DescribeDBInstanceNetInfoForChannelRequest 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("DBInstanceNetRWSplitType")
private String DBInstanceNetRWSplitType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Flag")
private String flag;
@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 DescribeDBInstanceNetInfoForChannelRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceNetRWSplitType = builder.DBInstanceNetRWSplitType;
this.flag = builder.flag;
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 DescribeDBInstanceNetInfoForChannelRequest 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 DBInstanceNetRWSplitType
*/
public String getDBInstanceNetRWSplitType() {
return this.DBInstanceNetRWSplitType;
}
/**
* @return flag
*/
public String getFlag() {
return this.flag;
}
/**
* @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<DescribeDBInstanceNetInfoForChannelRequest, Builder> {
private String clientToken;
private String DBInstanceId;
private String DBInstanceNetRWSplitType;
private String flag;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDBInstanceNetInfoForChannelRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
this.DBInstanceNetRWSplitType = request.DBInstanceNetRWSplitType;
this.flag = request.flag;
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>0c593ea1-3bea-11e9-b96b-88**********</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The ID of the instance. You can call the <a href="https://help.aliyun.com/document_detail/26232.html">DescribeDBInstances</a> operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-bp1k8s41l2o52****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The type of the endpoint to query. Valid values:</p>
* <ul>
* <li><strong>0</strong>: a regular endpoint. This is the default value.</li>
* <li><strong>1</strong>: a read/write splitting endpoint that is assigned after the shared proxy feature is enabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder DBInstanceNetRWSplitType(String DBInstanceNetRWSplitType) {
this.putQueryParameter("DBInstanceNetRWSplitType", DBInstanceNetRWSplitType);
this.DBInstanceNetRWSplitType = DBInstanceNetRWSplitType;
return this;
}
/**
* <p>An internal parameter. You do not need to specify this parameter.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder flag(String flag) {
this.putQueryParameter("Flag", flag);
this.flag = flag;
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 DescribeDBInstanceNetInfoForChannelRequest build() {
return new DescribeDBInstanceNetInfoForChannelRequest(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/DescribeDBInstanceNetInfoForChannelResponse.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 DescribeDBInstanceNetInfoForChannelResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoForChannelResponse</p>
*/
public class DescribeDBInstanceNetInfoForChannelResponse 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 DescribeDBInstanceNetInfoForChannelResponseBody body;
private DescribeDBInstanceNetInfoForChannelResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceNetInfoForChannelResponse 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 DescribeDBInstanceNetInfoForChannelResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceNetInfoForChannelResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceNetInfoForChannelResponseBody body);
@Override
DescribeDBInstanceNetInfoForChannelResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceNetInfoForChannelResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceNetInfoForChannelResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceNetInfoForChannelResponse 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(DescribeDBInstanceNetInfoForChannelResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceNetInfoForChannelResponse build() {
return new DescribeDBInstanceNetInfoForChannelResponse(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/DescribeDBInstanceNetInfoForChannelResponseBody.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 DescribeDBInstanceNetInfoForChannelResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoForChannelResponseBody</p>
*/
public class DescribeDBInstanceNetInfoForChannelResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceNetInfos")
private DBInstanceNetInfos DBInstanceNetInfos;
@com.aliyun.core.annotation.NameInMap("InstanceNetworkType")
private String instanceNetworkType;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDBInstanceNetInfoForChannelResponseBody(Builder builder) {
this.DBInstanceNetInfos = builder.DBInstanceNetInfos;
this.instanceNetworkType = builder.instanceNetworkType;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceNetInfoForChannelResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceNetInfos
*/
public DBInstanceNetInfos getDBInstanceNetInfos() {
return this.DBInstanceNetInfos;
}
/**
* @return instanceNetworkType
*/
public String getInstanceNetworkType() {
return this.instanceNetworkType;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private DBInstanceNetInfos DBInstanceNetInfos;
private String instanceNetworkType;
private String requestId;
private Builder() {
}
private Builder(DescribeDBInstanceNetInfoForChannelResponseBody model) {
this.DBInstanceNetInfos = model.DBInstanceNetInfos;
this.instanceNetworkType = model.instanceNetworkType;
this.requestId = model.requestId;
}
/**
* <p>The information about the instance connection.</p>
*/
public Builder DBInstanceNetInfos(DBInstanceNetInfos DBInstanceNetInfos) {
this.DBInstanceNetInfos = DBInstanceNetInfos;
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>: classic network</li>
* </ul>
*
* <strong>example:</strong>
* <p>VPC</p>
*/
public Builder instanceNetworkType(String instanceNetworkType) {
this.instanceNetworkType = instanceNetworkType;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>61DF1F28-F409-50C0-B90A-CCE82D44****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDBInstanceNetInfoForChannelResponseBody build() {
return new DescribeDBInstanceNetInfoForChannelResponseBody(this);
}
}
/**
*
* {@link DescribeDBInstanceNetInfoForChannelResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoForChannelResponseBody</p>
*/
public static class DBInstanceWeight extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Availability")
private String availability;
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("DBInstanceType")
private String DBInstanceType;
@com.aliyun.core.annotation.NameInMap("Weight")
private String weight;
private DBInstanceWeight(Builder builder) {
this.availability = builder.availability;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceType = builder.DBInstanceType;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceWeight create() {
return builder().build();
}
/**
* @return availability
*/
public String getAvailability() {
return this.availability;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBInstanceType
*/
public String getDBInstanceType() {
return this.DBInstanceType;
}
/**
* @return weight
*/
public String getWeight() {
return this.weight;
}
public static final class Builder {
private String availability;
private String DBInstanceId;
private String DBInstanceType;
private String weight;
private Builder() {
}
private Builder(DBInstanceWeight model) {
this.availability = model.availability;
this.DBInstanceId = model.DBInstanceId;
this.DBInstanceType = model.DBInstanceType;
this.weight = model.weight;
}
/**
* <p>The availability of the instance. Valid values:</p>
* <ul>
* <li><strong>Unavailable</strong></li>
* <li><strong>Available</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Unavailable</p>
*/
public Builder availability(String availability) {
this.availability = availability;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5*****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The instance type. 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 weight of 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 DescribeDBInstanceNetInfoForChannelResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoForChannelResponseBody</p>
*/
public static class DBInstanceWeights extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceWeight")
private java.util.List<DBInstanceWeight> DBInstanceWeight;
private DBInstanceWeights(Builder builder) {
this.DBInstanceWeight = builder.DBInstanceWeight;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceWeights 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(DBInstanceWeights model) {
this.DBInstanceWeight = model.DBInstanceWeight;
}
/**
* DBInstanceWeight.
*/
public Builder DBInstanceWeight(java.util.List<DBInstanceWeight> DBInstanceWeight) {
this.DBInstanceWeight = DBInstanceWeight;
return this;
}
public DBInstanceWeights build() {
return new DBInstanceWeights(this);
}
}
}
/**
*
* {@link DescribeDBInstanceNetInfoForChannelResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoForChannelResponseBody</p>
*/
public static class SecurityIPGroup extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SecurityIPGroupName")
private String securityIPGroupName;
@com.aliyun.core.annotation.NameInMap("SecurityIPs")
private String securityIPs;
private SecurityIPGroup(Builder builder) {
this.securityIPGroupName = builder.securityIPGroupName;
this.securityIPs = builder.securityIPs;
}
public static Builder builder() {
return new Builder();
}
public static SecurityIPGroup create() {
return builder().build();
}
/**
* @return securityIPGroupName
*/
public String getSecurityIPGroupName() {
return this.securityIPGroupName;
}
/**
* @return securityIPs
*/
public String getSecurityIPs() {
return this.securityIPs;
}
public static final class Builder {
private String securityIPGroupName;
private String securityIPs;
private Builder() {
}
private Builder(SecurityIPGroup model) {
this.securityIPGroupName = model.securityIPGroupName;
this.securityIPs = model.securityIPs;
}
/**
* <p>The name of the IP address whitelist.</p>
*
* <strong>example:</strong>
* <p>Default</p>
*/
public Builder securityIPGroupName(String securityIPGroupName) {
this.securityIPGroupName = securityIPGroupName;
return this;
}
/**
* <p>The IP addresses that is contained in the IP address whitelist.</p>
*
* <strong>example:</strong>
* <p>127.0.XX.XX</p>
*/
public Builder securityIPs(String securityIPs) {
this.securityIPs = securityIPs;
return this;
}
public SecurityIPGroup build() {
return new SecurityIPGroup(this);
}
}
}
/**
*
* {@link DescribeDBInstanceNetInfoForChannelResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoForChannelResponseBody</p>
*/
public static class SecurityIPGroups extends TeaModel {
@com.aliyun.core.annotation.NameInMap("securityIPGroup")
private java.util.List<SecurityIPGroup> securityIPGroup;
private SecurityIPGroups(Builder builder) {
this.securityIPGroup = builder.securityIPGroup;
}
public static Builder builder() {
return new Builder();
}
public static SecurityIPGroups create() {
return builder().build();
}
/**
* @return securityIPGroup
*/
public java.util.List<SecurityIPGroup> getSecurityIPGroup() {
return this.securityIPGroup;
}
public static final class Builder {
private java.util.List<SecurityIPGroup> securityIPGroup;
private Builder() {
}
private Builder(SecurityIPGroups model) {
this.securityIPGroup = model.securityIPGroup;
}
/**
* securityIPGroup.
*/
public Builder securityIPGroup(java.util.List<SecurityIPGroup> securityIPGroup) {
this.securityIPGroup = securityIPGroup;
return this;
}
public SecurityIPGroups build() {
return new SecurityIPGroups(this);
}
}
}
/**
*
* {@link DescribeDBInstanceNetInfoForChannelResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoForChannelResponseBody</p>
*/
public static class DBInstanceNetInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Availability")
private String availability;
@com.aliyun.core.annotation.NameInMap("ConnectionString")
private String connectionString;
@com.aliyun.core.annotation.NameInMap("ConnectionStringType")
private String connectionStringType;
@com.aliyun.core.annotation.NameInMap("DBInstanceWeights")
private DBInstanceWeights DBInstanceWeights;
@com.aliyun.core.annotation.NameInMap("DistributionType")
private String distributionType;
@com.aliyun.core.annotation.NameInMap("IPAddress")
private String IPAddress;
@com.aliyun.core.annotation.NameInMap("IPType")
private String IPType;
@com.aliyun.core.annotation.NameInMap("MaxDelayTime")
private String maxDelayTime;
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.NameInMap("SecurityIPGroups")
private SecurityIPGroups securityIPGroups;
@com.aliyun.core.annotation.NameInMap("Upgradeable")
private String upgradeable;
@com.aliyun.core.annotation.NameInMap("VPCId")
private String VPCId;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("expiredTime")
private String expiredTime;
private DBInstanceNetInfo(Builder builder) {
this.availability = builder.availability;
this.connectionString = builder.connectionString;
this.connectionStringType = builder.connectionStringType;
this.DBInstanceWeights = builder.DBInstanceWeights;
this.distributionType = builder.distributionType;
this.IPAddress = builder.IPAddress;
this.IPType = builder.IPType;
this.maxDelayTime = builder.maxDelayTime;
this.port = builder.port;
this.securityIPGroups = builder.securityIPGroups;
this.upgradeable = builder.upgradeable;
this.VPCId = builder.VPCId;
this.vSwitchId = builder.vSwitchId;
this.expiredTime = builder.expiredTime;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceNetInfo create() {
return builder().build();
}
/**
* @return availability
*/
public String getAvailability() {
return this.availability;
}
/**
* @return connectionString
*/
public String getConnectionString() {
return this.connectionString;
}
/**
* @return connectionStringType
*/
public String getConnectionStringType() {
return this.connectionStringType;
}
/**
* @return DBInstanceWeights
*/
public DBInstanceWeights getDBInstanceWeights() {
return this.DBInstanceWeights;
}
/**
* @return distributionType
*/
public String getDistributionType() {
return this.distributionType;
}
/**
* @return IPAddress
*/
public String getIPAddress() {
return this.IPAddress;
}
/**
* @return IPType
*/
public String getIPType() {
return this.IPType;
}
/**
* @return maxDelayTime
*/
public String getMaxDelayTime() {
return this.maxDelayTime;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return securityIPGroups
*/
public SecurityIPGroups getSecurityIPGroups() {
return this.securityIPGroups;
}
/**
* @return upgradeable
*/
public String getUpgradeable() {
return this.upgradeable;
}
/**
* @return VPCId
*/
public String getVPCId() {
return this.VPCId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return expiredTime
*/
public String getExpiredTime() {
return this.expiredTime;
}
public static final class Builder {
private String availability;
private String connectionString;
private String connectionStringType;
private DBInstanceWeights DBInstanceWeights;
private String distributionType;
private String IPAddress;
private String IPType;
private String maxDelayTime;
private String port;
private SecurityIPGroups securityIPGroups;
private String upgradeable;
private String VPCId;
private String vSwitchId;
private String expiredTime;
private Builder() {
}
private Builder(DBInstanceNetInfo model) {
this.availability = model.availability;
this.connectionString = model.connectionString;
this.connectionStringType = model.connectionStringType;
this.DBInstanceWeights = model.DBInstanceWeights;
this.distributionType = model.distributionType;
this.IPAddress = model.IPAddress;
this.IPType = model.IPType;
this.maxDelayTime = model.maxDelayTime;
this.port = model.port;
this.securityIPGroups = model.securityIPGroups;
this.upgradeable = model.upgradeable;
this.VPCId = model.VPCId;
this.vSwitchId = model.vSwitchId;
this.expiredTime = model.expiredTime;
}
/**
* <p>The availability of the instance. Valid values:</p>
* <ul>
* <li><strong>Unavailable</strong></li>
* <li><strong>Available</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Unavailable</p>
*/
public Builder availability(String availability) {
this.availability = availability;
return this;
}
/**
* <p>The endpoint of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf6w*****.mysql.rds.aliyuncs.com</p>
*/
public Builder connectionString(String connectionString) {
this.connectionString = connectionString;
return this;
}
/**
* <p>The type of the endpoint. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: a regular endpoint</li>
* <li><strong>ReadWriteSplitting</strong>: a read/write splitting endpoint that is assigned after the shared proxy feature is enabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder connectionStringType(String connectionStringType) {
this.connectionStringType = connectionStringType;
return this;
}
/**
* <p>The information about read weights to implement read/write splitting after the shared proxy feature is enabled.</p>
*/
public Builder DBInstanceWeights(DBInstanceWeights DBInstanceWeights) {
this.DBInstanceWeights = DBInstanceWeights;
return this;
}
/**
* <p>The policy that is used to assign read weights. This parameter is returned only for a read/write splitting endpoint that is assigned after the shared proxy feature is enabled. Valid values:</p>
* <ul>
* <li><strong>Standard</strong>: The system automatically allocates read weights to the instance and its read-only instances based on the specifications of the instances.</li>
* <li><strong>Custom</strong>: You must manually allocate read weights to the instance and its read-only instances.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Standard</p>
*/
public Builder distributionType(String distributionType) {
this.distributionType = distributionType;
return this;
}
/**
* <p>The IP address of the instance.</p>
*
* <strong>example:</strong>
* <p>172.16.XX.XX</p>
*/
public Builder IPAddress(String IPAddress) {
this.IPAddress = IPAddress;
return this;
}
/**
* <p>The network type of the IP address. Valid values:</p>
* <ul>
* <li><strong>Public</strong>: the Internet</li>
* <li><strong>Inner</strong>: the classic network</li>
* <li><strong>Private</strong>: a virtual private cloud (VPC)</li>
* </ul>
*
* <strong>example:</strong>
* <p>Inner</p>
*/
public Builder IPType(String IPType) {
this.IPType = IPType;
return this;
}
/**
* <p>The latency threshold that is allowed for read/write splitting of the shared proxy feature. Unit: seconds.</p>
* <blockquote>
* <p> This parameter is returned only when <strong>ConnectionStringType</strong> is set to <strong>ReadWriteSplitting</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder maxDelayTime(String maxDelayTime) {
this.maxDelayTime = maxDelayTime;
return this;
}
/**
* <p>The port number of the instance.</p>
*
* <strong>example:</strong>
* <p>6379</p>
*/
public Builder port(String port) {
this.port = port;
return this;
}
/**
* <p>The details of the IP address whitelist.</p>
*/
public Builder securityIPGroups(SecurityIPGroups securityIPGroups) {
this.securityIPGroups = securityIPGroups;
return this;
}
/**
* <p>An internal parameter. You do not need to specify this parameter.</p>
*
* <strong>example:</strong>
* <p>Disabled</p>
*/
public Builder upgradeable(String upgradeable) {
this.upgradeable = upgradeable;
return this;
}
/**
* <p>The VPC ID of the instance.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1nme44gek34slfc****</p>
*/
public Builder VPCId(String VPCId) {
this.VPCId = VPCId;
return this;
}
/**
* <p>The vSwitch ID of the instance.</p>
*
* <strong>example:</strong>
* <p>vsw-bp1e7clcw529l773d****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The expiration time of the endpoint of the classic network type. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>5183779</p>
*/
public Builder expiredTime(String expiredTime) {
this.expiredTime = expiredTime;
return this;
}
public DBInstanceNetInfo build() {
return new DBInstanceNetInfo(this);
}
}
}
/**
*
* {@link DescribeDBInstanceNetInfoForChannelResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoForChannelResponseBody</p>
*/
public static class DBInstanceNetInfos extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceNetInfo")
private java.util.List<DBInstanceNetInfo> DBInstanceNetInfo;
private DBInstanceNetInfos(Builder builder) {
this.DBInstanceNetInfo = builder.DBInstanceNetInfo;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceNetInfos create() {
return builder().build();
}
/**
* @return DBInstanceNetInfo
*/
public java.util.List<DBInstanceNetInfo> getDBInstanceNetInfo() {
return this.DBInstanceNetInfo;
}
public static final class Builder {
private java.util.List<DBInstanceNetInfo> DBInstanceNetInfo;
private Builder() {
}
private Builder(DBInstanceNetInfos model) {
this.DBInstanceNetInfo = model.DBInstanceNetInfo;
}
/**
* DBInstanceNetInfo.
*/
public Builder DBInstanceNetInfo(java.util.List<DBInstanceNetInfo> DBInstanceNetInfo) {
this.DBInstanceNetInfo = DBInstanceNetInfo;
return this;
}
public DBInstanceNetInfos build() {
return new DBInstanceNetInfos(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/DescribeDBInstanceNetInfoRequest.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 DescribeDBInstanceNetInfoRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceNetInfoRequest</p>
*/
public class DescribeDBInstanceNetInfoRequest 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("DBInstanceNetRWSplitType")
private String DBInstanceNetRWSplitType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Flag")
private Integer flag;
@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("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeDBInstanceNetInfoRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceNetRWSplitType = builder.DBInstanceNetRWSplitType;
this.flag = builder.flag;
this.generalGroupName = builder.generalGroupName;
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 DescribeDBInstanceNetInfoRequest 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 DBInstanceNetRWSplitType
*/
public String getDBInstanceNetRWSplitType() {
return this.DBInstanceNetRWSplitType;
}
/**
* @return flag
*/
public Integer getFlag() {
return this.flag;
}
/**
* @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 resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeDBInstanceNetInfoRequest, Builder> {
private String clientToken;
private String DBInstanceId;
private String DBInstanceNetRWSplitType;
private Integer flag;
private String generalGroupName;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDBInstanceNetInfoRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
this.DBInstanceNetRWSplitType = request.DBInstanceNetRWSplitType;
this.flag = request.flag;
this.generalGroupName = request.generalGroupName;
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>ETnLKlblzczshOTUbOC*****</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-uf6wjk5*****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The type of the endpoint. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: regular endpoint</li>
* <li><strong>ReadWriteSplitting</strong>: read/write splitting endpoint</li>
* </ul>
* <blockquote>
* <p>By default, the system returns both types of endpoints.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder DBInstanceNetRWSplitType(String DBInstanceNetRWSplitType) {
this.putQueryParameter("DBInstanceNetRWSplitType", DBInstanceNetRWSplitType);
this.DBInstanceNetRWSplitType = DBInstanceNetRWSplitType;
return this;
}
/**
* <p>A reserved parameter. You do not need to specify this parameter.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder flag(Integer flag) {
this.putQueryParameter("Flag", flag);
this.flag = flag;
return this;
}
/**
* <p>The name of the dedicated cluster to which the instance belongs. This parameter takes effect only when the instance runs MySQL on RDS Standard Edition and is created in a dedicated cluster.</p>
*
* <strong>example:</strong>
* <p>rgc-2ze*****</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;
}
/**
* 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 DescribeDBInstanceNetInfoRequest build() {
return new DescribeDBInstanceNetInfoRequest(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/DescribeDBInstanceNetInfoResponse.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 DescribeDBInstanceNetInfoResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoResponse</p>
*/
public class DescribeDBInstanceNetInfoResponse 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 DescribeDBInstanceNetInfoResponseBody body;
private DescribeDBInstanceNetInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceNetInfoResponse 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 DescribeDBInstanceNetInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceNetInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceNetInfoResponseBody body);
@Override
DescribeDBInstanceNetInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceNetInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceNetInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceNetInfoResponse 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(DescribeDBInstanceNetInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceNetInfoResponse build() {
return new DescribeDBInstanceNetInfoResponse(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/DescribeDBInstanceNetInfoResponseBody.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 DescribeDBInstanceNetInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoResponseBody</p>
*/
public class DescribeDBInstanceNetInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceNetInfos")
private DBInstanceNetInfos DBInstanceNetInfos;
@com.aliyun.core.annotation.NameInMap("InstanceNetworkType")
private String instanceNetworkType;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SecurityIPMode")
private String securityIPMode;
private DescribeDBInstanceNetInfoResponseBody(Builder builder) {
this.DBInstanceNetInfos = builder.DBInstanceNetInfos;
this.instanceNetworkType = builder.instanceNetworkType;
this.requestId = builder.requestId;
this.securityIPMode = builder.securityIPMode;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceNetInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceNetInfos
*/
public DBInstanceNetInfos getDBInstanceNetInfos() {
return this.DBInstanceNetInfos;
}
/**
* @return instanceNetworkType
*/
public String getInstanceNetworkType() {
return this.instanceNetworkType;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return securityIPMode
*/
public String getSecurityIPMode() {
return this.securityIPMode;
}
public static final class Builder {
private DBInstanceNetInfos DBInstanceNetInfos;
private String instanceNetworkType;
private String requestId;
private String securityIPMode;
private Builder() {
}
private Builder(DescribeDBInstanceNetInfoResponseBody model) {
this.DBInstanceNetInfos = model.DBInstanceNetInfos;
this.instanceNetworkType = model.instanceNetworkType;
this.requestId = model.requestId;
this.securityIPMode = model.securityIPMode;
}
/**
* <p>The information about the endpoints of the instance.</p>
*/
public Builder DBInstanceNetInfos(DBInstanceNetInfos DBInstanceNetInfos) {
this.DBInstanceNetInfos = DBInstanceNetInfos;
return this;
}
/**
* <p>The network type of the instance. Valid values:</p>
* <ul>
* <li><strong>Classic</strong>: classic network</li>
* <li><strong>VPC</strong>: virtual private cloud (VPC)</li>
* </ul>
*
* <strong>example:</strong>
* <p>VPC</p>
*/
public Builder instanceNetworkType(String instanceNetworkType) {
this.instanceNetworkType = instanceNetworkType;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>777C4593-8053-427B-99E2-105593277CAB</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The whitelist mode of the instance. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: standard whitelist mode</li>
* <li><strong>safety</strong>: enhanced whitelist mode</li>
* </ul>
*
* <strong>example:</strong>
* <p>safety</p>
*/
public Builder securityIPMode(String securityIPMode) {
this.securityIPMode = securityIPMode;
return this;
}
public DescribeDBInstanceNetInfoResponseBody build() {
return new DescribeDBInstanceNetInfoResponseBody(this);
}
}
/**
*
* {@link DescribeDBInstanceNetInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoResponseBody</p>
*/
public static class DBInstanceWeight extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Availability")
private String availability;
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("DBInstanceType")
private String DBInstanceType;
@com.aliyun.core.annotation.NameInMap("Role")
private String role;
@com.aliyun.core.annotation.NameInMap("Weight")
private String weight;
private DBInstanceWeight(Builder builder) {
this.availability = builder.availability;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceType = builder.DBInstanceType;
this.role = builder.role;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceWeight create() {
return builder().build();
}
/**
* @return availability
*/
public String getAvailability() {
return this.availability;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBInstanceType
*/
public String getDBInstanceType() {
return this.DBInstanceType;
}
/**
* @return role
*/
public String getRole() {
return this.role;
}
/**
* @return weight
*/
public String getWeight() {
return this.weight;
}
public static final class Builder {
private String availability;
private String DBInstanceId;
private String DBInstanceType;
private String role;
private String weight;
private Builder() {
}
private Builder(DBInstanceWeight model) {
this.availability = model.availability;
this.DBInstanceId = model.DBInstanceId;
this.DBInstanceType = model.DBInstanceType;
this.role = model.role;
this.weight = model.weight;
}
/**
* <p>The availability of the instance. Valid values:</p>
* <ul>
* <li><strong>Unavailable</strong></li>
* <li><strong>Available</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Unavailable</p>
*/
public Builder availability(String availability) {
this.availability = availability;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5*****</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>A deprecated parameter.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder role(String role) {
this.role = role;
return this;
}
/**
* <p>The weight of 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 DescribeDBInstanceNetInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoResponseBody</p>
*/
public static class DBInstanceWeights extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceWeight")
private java.util.List<DBInstanceWeight> DBInstanceWeight;
private DBInstanceWeights(Builder builder) {
this.DBInstanceWeight = builder.DBInstanceWeight;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceWeights 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(DBInstanceWeights model) {
this.DBInstanceWeight = model.DBInstanceWeight;
}
/**
* DBInstanceWeight.
*/
public Builder DBInstanceWeight(java.util.List<DBInstanceWeight> DBInstanceWeight) {
this.DBInstanceWeight = DBInstanceWeight;
return this;
}
public DBInstanceWeights build() {
return new DBInstanceWeights(this);
}
}
}
/**
*
* {@link DescribeDBInstanceNetInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoResponseBody</p>
*/
public static class SecurityIPGroup extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SecurityIPGroupName")
private String securityIPGroupName;
@com.aliyun.core.annotation.NameInMap("SecurityIPs")
private String securityIPs;
private SecurityIPGroup(Builder builder) {
this.securityIPGroupName = builder.securityIPGroupName;
this.securityIPs = builder.securityIPs;
}
public static Builder builder() {
return new Builder();
}
public static SecurityIPGroup create() {
return builder().build();
}
/**
* @return securityIPGroupName
*/
public String getSecurityIPGroupName() {
return this.securityIPGroupName;
}
/**
* @return securityIPs
*/
public String getSecurityIPs() {
return this.securityIPs;
}
public static final class Builder {
private String securityIPGroupName;
private String securityIPs;
private Builder() {
}
private Builder(SecurityIPGroup model) {
this.securityIPGroupName = model.securityIPGroupName;
this.securityIPs = model.securityIPs;
}
/**
* <p>The name of the IP address whitelist.</p>
*
* <strong>example:</strong>
* <p>Default</p>
*/
public Builder securityIPGroupName(String securityIPGroupName) {
this.securityIPGroupName = securityIPGroupName;
return this;
}
/**
* <p>The IP address in the whitelist.</p>
*
* <strong>example:</strong>
* <p>127.0.XX.XX</p>
*/
public Builder securityIPs(String securityIPs) {
this.securityIPs = securityIPs;
return this;
}
public SecurityIPGroup build() {
return new SecurityIPGroup(this);
}
}
}
/**
*
* {@link DescribeDBInstanceNetInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoResponseBody</p>
*/
public static class SecurityIPGroups extends TeaModel {
@com.aliyun.core.annotation.NameInMap("securityIPGroup")
private java.util.List<SecurityIPGroup> securityIPGroup;
private SecurityIPGroups(Builder builder) {
this.securityIPGroup = builder.securityIPGroup;
}
public static Builder builder() {
return new Builder();
}
public static SecurityIPGroups create() {
return builder().build();
}
/**
* @return securityIPGroup
*/
public java.util.List<SecurityIPGroup> getSecurityIPGroup() {
return this.securityIPGroup;
}
public static final class Builder {
private java.util.List<SecurityIPGroup> securityIPGroup;
private Builder() {
}
private Builder(SecurityIPGroups model) {
this.securityIPGroup = model.securityIPGroup;
}
/**
* securityIPGroup.
*/
public Builder securityIPGroup(java.util.List<SecurityIPGroup> securityIPGroup) {
this.securityIPGroup = securityIPGroup;
return this;
}
public SecurityIPGroups build() {
return new SecurityIPGroups(this);
}
}
}
/**
*
* {@link DescribeDBInstanceNetInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoResponseBody</p>
*/
public static class DBInstanceNetInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BabelfishPort")
private String babelfishPort;
@com.aliyun.core.annotation.NameInMap("ConnectionString")
private String connectionString;
@com.aliyun.core.annotation.NameInMap("ConnectionStringType")
private String connectionStringType;
@com.aliyun.core.annotation.NameInMap("DBInstanceWeights")
private DBInstanceWeights DBInstanceWeights;
@com.aliyun.core.annotation.NameInMap("DistributionType")
private String distributionType;
@com.aliyun.core.annotation.NameInMap("ExpiredTime")
private String expiredTime;
@com.aliyun.core.annotation.NameInMap("IPAddress")
private String IPAddress;
@com.aliyun.core.annotation.NameInMap("IPType")
private String IPType;
@com.aliyun.core.annotation.NameInMap("MaxDelayTime")
private String maxDelayTime;
@com.aliyun.core.annotation.NameInMap("PGBouncerPort")
private String PGBouncerPort;
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.NameInMap("SecurityIPGroups")
private SecurityIPGroups securityIPGroups;
@com.aliyun.core.annotation.NameInMap("Upgradeable")
private String upgradeable;
@com.aliyun.core.annotation.NameInMap("VPCId")
private String VPCId;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
private DBInstanceNetInfo(Builder builder) {
this.babelfishPort = builder.babelfishPort;
this.connectionString = builder.connectionString;
this.connectionStringType = builder.connectionStringType;
this.DBInstanceWeights = builder.DBInstanceWeights;
this.distributionType = builder.distributionType;
this.expiredTime = builder.expiredTime;
this.IPAddress = builder.IPAddress;
this.IPType = builder.IPType;
this.maxDelayTime = builder.maxDelayTime;
this.PGBouncerPort = builder.PGBouncerPort;
this.port = builder.port;
this.securityIPGroups = builder.securityIPGroups;
this.upgradeable = builder.upgradeable;
this.VPCId = builder.VPCId;
this.vSwitchId = builder.vSwitchId;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceNetInfo create() {
return builder().build();
}
/**
* @return babelfishPort
*/
public String getBabelfishPort() {
return this.babelfishPort;
}
/**
* @return connectionString
*/
public String getConnectionString() {
return this.connectionString;
}
/**
* @return connectionStringType
*/
public String getConnectionStringType() {
return this.connectionStringType;
}
/**
* @return DBInstanceWeights
*/
public DBInstanceWeights getDBInstanceWeights() {
return this.DBInstanceWeights;
}
/**
* @return distributionType
*/
public String getDistributionType() {
return this.distributionType;
}
/**
* @return expiredTime
*/
public String getExpiredTime() {
return this.expiredTime;
}
/**
* @return IPAddress
*/
public String getIPAddress() {
return this.IPAddress;
}
/**
* @return IPType
*/
public String getIPType() {
return this.IPType;
}
/**
* @return maxDelayTime
*/
public String getMaxDelayTime() {
return this.maxDelayTime;
}
/**
* @return PGBouncerPort
*/
public String getPGBouncerPort() {
return this.PGBouncerPort;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return securityIPGroups
*/
public SecurityIPGroups getSecurityIPGroups() {
return this.securityIPGroups;
}
/**
* @return upgradeable
*/
public String getUpgradeable() {
return this.upgradeable;
}
/**
* @return VPCId
*/
public String getVPCId() {
return this.VPCId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
public static final class Builder {
private String babelfishPort;
private String connectionString;
private String connectionStringType;
private DBInstanceWeights DBInstanceWeights;
private String distributionType;
private String expiredTime;
private String IPAddress;
private String IPType;
private String maxDelayTime;
private String PGBouncerPort;
private String port;
private SecurityIPGroups securityIPGroups;
private String upgradeable;
private String VPCId;
private String vSwitchId;
private Builder() {
}
private Builder(DBInstanceNetInfo model) {
this.babelfishPort = model.babelfishPort;
this.connectionString = model.connectionString;
this.connectionStringType = model.connectionStringType;
this.DBInstanceWeights = model.DBInstanceWeights;
this.distributionType = model.distributionType;
this.expiredTime = model.expiredTime;
this.IPAddress = model.IPAddress;
this.IPType = model.IPType;
this.maxDelayTime = model.maxDelayTime;
this.PGBouncerPort = model.PGBouncerPort;
this.port = model.port;
this.securityIPGroups = model.securityIPGroups;
this.upgradeable = model.upgradeable;
this.VPCId = model.VPCId;
this.vSwitchId = model.vSwitchId;
}
/**
* <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.babelfishPort = babelfishPort;
return this;
}
/**
* <p>The endpoint of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf6w*****.mysql.rds.aliyuncs.com</p>
*/
public Builder connectionString(String connectionString) {
this.connectionString = connectionString;
return this;
}
/**
* <p>The type of the endpoint. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: a regular endpoint</li>
* <li><strong>ReadWriteSplitting</strong>: a read/write splitting endpoint</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder connectionStringType(String connectionStringType) {
this.connectionStringType = connectionStringType;
return this;
}
/**
* <p>The information about the instance weight.</p>
* <blockquote>
* <p> This parameter is returned only when the read/write splitting feature is enabled for the instance.</p>
* </blockquote>
*/
public Builder DBInstanceWeights(DBInstanceWeights DBInstanceWeights) {
this.DBInstanceWeights = DBInstanceWeights;
return this;
}
/**
* <p>The policy that is used to assign read weights. This parameter is returned only for a read/write splitting endpoint. Valid values:</p>
* <ul>
* <li><strong>Standard</strong>: The system automatically allocates read weights to the instance and its read-only instances based on the specifications of the instances.</li>
* <li><strong>Custom</strong>: You must manually allocate read weights to the instance and its read-only instances.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Standard</p>
*/
public Builder distributionType(String distributionType) {
this.distributionType = distributionType;
return this;
}
/**
* <p>The remaining validity period of the instance in the classic network in hybrid access mode. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>1209534</p>
*/
public Builder expiredTime(String expiredTime) {
this.expiredTime = expiredTime;
return this;
}
/**
* <p>The IP address.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder IPAddress(String IPAddress) {
this.IPAddress = IPAddress;
return this;
}
/**
* <p>The network type.</p>
* <ul>
* <li><p>Valid values when the instance resides in the classic network:</p>
* <ul>
* <li><strong>Inner</strong></li>
* <li><strong>Public</strong></li>
* </ul>
* </li>
* <li><p>Valid values when the instance resides in a virtual private cloud (VPC):</p>
* <ul>
* <li><strong>Private</strong></li>
* <li><strong>Public</strong></li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>Public</p>
*/
public Builder IPType(String IPType) {
this.IPType = IPType;
return this;
}
/**
* <p>The latency threshold. This parameter is returned only for a read/write splitting endpoint. Unit: seconds.</p>
* <blockquote>
* <p> If the latency on a read-only instance exceeds the specified threshold, ApsaraDB RDS no longer forwards read requests to the read-only instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder maxDelayTime(String maxDelayTime) {
this.maxDelayTime = maxDelayTime;
return this;
}
/**
* <p>The PgBouncer port.</p>
* <blockquote>
* <p> This parameter is returned only when PgBouncer is enabled for the instance that runs PostgreSQL.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>6432</p>
*/
public Builder PGBouncerPort(String PGBouncerPort) {
this.PGBouncerPort = PGBouncerPort;
return this;
}
/**
* <p>The port that is 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 IP addresses in the whitelist for the instance.</p>
*/
public Builder securityIPGroups(SecurityIPGroups securityIPGroups) {
this.securityIPGroups = securityIPGroups;
return this;
}
/**
* <p>Indicates whether the IP version can be updated. Valid values:</p>
* <ul>
* <li><strong>Enable</strong></li>
* <li><strong>Disabled</strong></li>
* </ul>
* <blockquote>
* <p> The IP version can be updated from IPv4 to IPv6.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Disabled</p>
*/
public Builder upgradeable(String upgradeable) {
this.upgradeable = upgradeable;
return this;
}
/**
* <p>The VPC ID of the instance.</p>
*
* <strong>example:</strong>
* <p>vpc-uf6f7l4fg90*****</p>
*/
public Builder VPCId(String VPCId) {
this.VPCId = VPCId;
return this;
}
/**
* <p>The vSwitch ID.</p>
*
* <strong>example:</strong>
* <p>vsw-uf6adz52c2p*****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
public DBInstanceNetInfo build() {
return new DBInstanceNetInfo(this);
}
}
}
/**
*
* {@link DescribeDBInstanceNetInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceNetInfoResponseBody</p>
*/
public static class DBInstanceNetInfos extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceNetInfo")
private java.util.List<DBInstanceNetInfo> DBInstanceNetInfo;
private DBInstanceNetInfos(Builder builder) {
this.DBInstanceNetInfo = builder.DBInstanceNetInfo;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceNetInfos create() {
return builder().build();
}
/**
* @return DBInstanceNetInfo
*/
public java.util.List<DBInstanceNetInfo> getDBInstanceNetInfo() {
return this.DBInstanceNetInfo;
}
public static final class Builder {
private java.util.List<DBInstanceNetInfo> DBInstanceNetInfo;
private Builder() {
}
private Builder(DBInstanceNetInfos model) {
this.DBInstanceNetInfo = model.DBInstanceNetInfo;
}
/**
* DBInstanceNetInfo.
*/
public Builder DBInstanceNetInfo(java.util.List<DBInstanceNetInfo> DBInstanceNetInfo) {
this.DBInstanceNetInfo = DBInstanceNetInfo;
return this;
}
public DBInstanceNetInfos build() {
return new DBInstanceNetInfos(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/DescribeDBInstancePerformanceRequest.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 DescribeDBInstancePerformanceRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstancePerformanceRequest</p>
*/
public class DescribeDBInstancePerformanceRequest 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("EndTime")
@com.aliyun.core.annotation.Validation(required = true)
private String endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Key")
@com.aliyun.core.annotation.Validation(required = true)
private String key;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
@com.aliyun.core.annotation.Validation(required = true)
private String startTime;
private DescribeDBInstancePerformanceRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.endTime = builder.endTime;
this.key = builder.key;
this.nodeId = builder.nodeId;
this.resourceOwnerId = builder.resourceOwnerId;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstancePerformanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder<DescribeDBInstancePerformanceRequest, Builder> {
private String DBInstanceId;
private String endTime;
private String key;
private String nodeId;
private Long resourceOwnerId;
private String startTime;
private Builder() {
super();
}
private Builder(DescribeDBInstancePerformanceRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.endTime = request.endTime;
this.key = request.key;
this.nodeId = request.nodeId;
this.resourceOwnerId = request.resourceOwnerId;
this.startTime = request.startTime;
}
/**
* <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;
}
/**
* <p>The end of the time range to query. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm</em>Z format. The time must be in UTC.</p>
* <blockquote>
* <p> The time span between the beginning time and the end time must be longer than the monitoring frequency. Otherwise, this operation may return an empty array.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2012-06-18T15:00Z</p>
*/
public Builder endTime(String endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>The performance metrics that you want to query. Separate multiple values with commas (,). You can specify up to 30 values. For more information, see <a href="https://help.aliyun.com/document_detail/26316.html">Performance parameters</a>.</p>
* <blockquote>
* <p> If you set <strong>Key</strong> to <strong>MySQL_SpaceUsage</strong> or <strong>SQLServer_SpaceUsage</strong>, you can query the monitoring data within only one day.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>MySQL_Sessions</p>
*/
public Builder key(String key) {
this.putQueryParameter("Key", key);
this.key = key;
return this;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>339****</p>
*/
public Builder nodeId(String nodeId) {
this.putQueryParameter("NodeId", nodeId);
this.nodeId = nodeId;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The beginning of the time range to query. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm</em>Z format. The time must be in UTC.</p>
* <blockquote>
* <p> The time span between the beginning time and the end time must be longer than the monitoring frequency. Otherwise, this operation may return an empty array.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2012-06-08T15:00Z</p>
*/
public Builder startTime(String startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public DescribeDBInstancePerformanceRequest build() {
return new DescribeDBInstancePerformanceRequest(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/DescribeDBInstancePerformanceResponse.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 DescribeDBInstancePerformanceResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstancePerformanceResponse</p>
*/
public class DescribeDBInstancePerformanceResponse 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 DescribeDBInstancePerformanceResponseBody body;
private DescribeDBInstancePerformanceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstancePerformanceResponse 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 DescribeDBInstancePerformanceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstancePerformanceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstancePerformanceResponseBody body);
@Override
DescribeDBInstancePerformanceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstancePerformanceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstancePerformanceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstancePerformanceResponse 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(DescribeDBInstancePerformanceResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstancePerformanceResponse build() {
return new DescribeDBInstancePerformanceResponse(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/DescribeDBInstancePerformanceResponseBody.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 DescribeDBInstancePerformanceResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancePerformanceResponseBody</p>
*/
public class DescribeDBInstancePerformanceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("EndTime")
private String endTime;
@com.aliyun.core.annotation.NameInMap("Engine")
private String engine;
@com.aliyun.core.annotation.NameInMap("PerformanceKeys")
private PerformanceKeys performanceKeys;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
private DescribeDBInstancePerformanceResponseBody(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.endTime = builder.endTime;
this.engine = builder.engine;
this.performanceKeys = builder.performanceKeys;
this.requestId = builder.requestId;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstancePerformanceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return performanceKeys
*/
public PerformanceKeys getPerformanceKeys() {
return this.performanceKeys;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
public static final class Builder {
private String DBInstanceId;
private String endTime;
private String engine;
private PerformanceKeys performanceKeys;
private String requestId;
private String startTime;
private Builder() {
}
private Builder(DescribeDBInstancePerformanceResponseBody model) {
this.DBInstanceId = model.DBInstanceId;
this.endTime = model.endTime;
this.engine = model.engine;
this.performanceKeys = model.performanceKeys;
this.requestId = model.requestId;
this.startTime = model.startTime;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The end time of the query. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm</em>Z format. The time must be in UTC.</p>
*
* <strong>example:</strong>
* <p>2012-06-19T15:00Z</p>
*/
public Builder endTime(String endTime) {
this.endTime = endTime;
return this;
}
/**
* <p>The database engine of the instance.</p>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engine(String engine) {
this.engine = engine;
return this;
}
/**
* <p>Details of the performance metrics.</p>
*/
public Builder performanceKeys(PerformanceKeys performanceKeys) {
this.performanceKeys = performanceKeys;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>A5409D02-D661-4BF3-8F3D-0A814D0574E7</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The start time of the query. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm</em>Z format. The time must be in UTC.</p>
*
* <strong>example:</strong>
* <p>2012-06-10T15:00Z</p>
*/
public Builder startTime(String startTime) {
this.startTime = startTime;
return this;
}
public DescribeDBInstancePerformanceResponseBody build() {
return new DescribeDBInstancePerformanceResponseBody(this);
}
}
/**
*
* {@link DescribeDBInstancePerformanceResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancePerformanceResponseBody</p>
*/
public static class PerformanceValue extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Date")
private String date;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private PerformanceValue(Builder builder) {
this.date = builder.date;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static PerformanceValue create() {
return builder().build();
}
/**
* @return date
*/
public String getDate() {
return this.date;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String date;
private String value;
private Builder() {
}
private Builder(PerformanceValue model) {
this.date = model.date;
this.value = model.value;
}
/**
* <p>The date and time when the value of the performance metric was recorded. 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>
*
* <strong>example:</strong>
* <p>2011-05-30T03:29:00Z</p>
*/
public Builder date(String date) {
this.date = date;
return this;
}
/**
* <p>The value of the performance metric.</p>
*
* <strong>example:</strong>
* <p>0.0&13.6</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public PerformanceValue build() {
return new PerformanceValue(this);
}
}
}
/**
*
* {@link DescribeDBInstancePerformanceResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancePerformanceResponseBody</p>
*/
public static class Values extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PerformanceValue")
private java.util.List<PerformanceValue> performanceValue;
private Values(Builder builder) {
this.performanceValue = builder.performanceValue;
}
public static Builder builder() {
return new Builder();
}
public static Values create() {
return builder().build();
}
/**
* @return performanceValue
*/
public java.util.List<PerformanceValue> getPerformanceValue() {
return this.performanceValue;
}
public static final class Builder {
private java.util.List<PerformanceValue> performanceValue;
private Builder() {
}
private Builder(Values model) {
this.performanceValue = model.performanceValue;
}
/**
* PerformanceValue.
*/
public Builder performanceValue(java.util.List<PerformanceValue> performanceValue) {
this.performanceValue = performanceValue;
return this;
}
public Values build() {
return new Values(this);
}
}
}
/**
*
* {@link DescribeDBInstancePerformanceResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancePerformanceResponseBody</p>
*/
public static class PerformanceKey extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Unit")
private String unit;
@com.aliyun.core.annotation.NameInMap("ValueFormat")
private String valueFormat;
@com.aliyun.core.annotation.NameInMap("Values")
private Values values;
private PerformanceKey(Builder builder) {
this.key = builder.key;
this.unit = builder.unit;
this.valueFormat = builder.valueFormat;
this.values = builder.values;
}
public static Builder builder() {
return new Builder();
}
public static PerformanceKey create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return unit
*/
public String getUnit() {
return this.unit;
}
/**
* @return valueFormat
*/
public String getValueFormat() {
return this.valueFormat;
}
/**
* @return values
*/
public Values getValues() {
return this.values;
}
public static final class Builder {
private String key;
private String unit;
private String valueFormat;
private Values values;
private Builder() {
}
private Builder(PerformanceKey model) {
this.key = model.key;
this.unit = model.unit;
this.valueFormat = model.valueFormat;
this.values = model.values;
}
/**
* <p>The name of the performance metric.</p>
*
* <strong>example:</strong>
* <p>MySQL_Sessions</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The unit of the performance metrics.</p>
*
* <strong>example:</strong>
* <p>KB</p>
*/
public Builder unit(String unit) {
this.unit = unit;
return this;
}
/**
* <p>The format in which the value of the performance metric is returned.</p>
* <blockquote>
* <p> If a performance metric value consists of multiple fields, the values are separated with ampersands (&). Example: com_delete&com_insert&com_insert_select&com_replace.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>recv_k&sent_k</p>
*/
public Builder valueFormat(String valueFormat) {
this.valueFormat = valueFormat;
return this;
}
/**
* <p>The performance metric values.</p>
*/
public Builder values(Values values) {
this.values = values;
return this;
}
public PerformanceKey build() {
return new PerformanceKey(this);
}
}
}
/**
*
* {@link DescribeDBInstancePerformanceResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancePerformanceResponseBody</p>
*/
public static class PerformanceKeys extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PerformanceKey")
private java.util.List<PerformanceKey> performanceKey;
private PerformanceKeys(Builder builder) {
this.performanceKey = builder.performanceKey;
}
public static Builder builder() {
return new Builder();
}
public static PerformanceKeys create() {
return builder().build();
}
/**
* @return performanceKey
*/
public java.util.List<PerformanceKey> getPerformanceKey() {
return this.performanceKey;
}
public static final class Builder {
private java.util.List<PerformanceKey> performanceKey;
private Builder() {
}
private Builder(PerformanceKeys model) {
this.performanceKey = model.performanceKey;
}
/**
* PerformanceKey.
*/
public Builder performanceKey(java.util.List<PerformanceKey> performanceKey) {
this.performanceKey = performanceKey;
return this;
}
public PerformanceKeys build() {
return new PerformanceKeys(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/DescribeDBInstancePromoteActivityRequest.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 DescribeDBInstancePromoteActivityRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstancePromoteActivityRequest</p>
*/
public class DescribeDBInstancePromoteActivityRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AliUid")
@com.aliyun.core.annotation.Validation(required = true)
private String aliUid;
@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("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 DescribeDBInstancePromoteActivityRequest(Builder builder) {
super(builder);
this.aliUid = builder.aliUid;
this.dbInstanceName = builder.dbInstanceName;
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 DescribeDBInstancePromoteActivityRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return aliUid
*/
public String getAliUid() {
return this.aliUid;
}
/**
* @return dbInstanceName
*/
public String getDbInstanceName() {
return this.dbInstanceName;
}
/**
* @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<DescribeDBInstancePromoteActivityRequest, Builder> {
private String aliUid;
private String dbInstanceName;
private Long ownerId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDBInstancePromoteActivityRequest request) {
super(request);
this.aliUid = request.aliUid;
this.dbInstanceName = request.dbInstanceName;
this.ownerId = request.ownerId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The ID of the Alibaba Cloud account.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>22973492**********</p>
*/
public Builder aliUid(String aliUid) {
this.putQueryParameter("AliUid", aliUid);
this.aliUid = aliUid;
return this;
}
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder dbInstanceName(String dbInstanceName) {
this.putQueryParameter("DbInstanceName", dbInstanceName);
this.dbInstanceName = dbInstanceName;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>111</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 DescribeDBInstancePromoteActivityRequest build() {
return new DescribeDBInstancePromoteActivityRequest(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/DescribeDBInstancePromoteActivityResponse.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 DescribeDBInstancePromoteActivityResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstancePromoteActivityResponse</p>
*/
public class DescribeDBInstancePromoteActivityResponse 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 DescribeDBInstancePromoteActivityResponseBody body;
private DescribeDBInstancePromoteActivityResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstancePromoteActivityResponse 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 DescribeDBInstancePromoteActivityResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstancePromoteActivityResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstancePromoteActivityResponseBody body);
@Override
DescribeDBInstancePromoteActivityResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstancePromoteActivityResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstancePromoteActivityResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstancePromoteActivityResponse 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(DescribeDBInstancePromoteActivityResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstancePromoteActivityResponse build() {
return new DescribeDBInstancePromoteActivityResponse(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/DescribeDBInstancePromoteActivityResponseBody.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 DescribeDBInstancePromoteActivityResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancePromoteActivityResponseBody</p>
*/
public class DescribeDBInstancePromoteActivityResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AliUid")
private String aliUid;
@com.aliyun.core.annotation.NameInMap("Bid")
private String bid;
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
private String DBInstanceName;
@com.aliyun.core.annotation.NameInMap("DBType")
private String DBType;
@com.aliyun.core.annotation.NameInMap("IsActivity")
private String isActivity;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDBInstancePromoteActivityResponseBody(Builder builder) {
this.aliUid = builder.aliUid;
this.bid = builder.bid;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceName = builder.DBInstanceName;
this.DBType = builder.DBType;
this.isActivity = builder.isActivity;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstancePromoteActivityResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return aliUid
*/
public String getAliUid() {
return this.aliUid;
}
/**
* @return bid
*/
public String getBid() {
return this.bid;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return DBType
*/
public String getDBType() {
return this.DBType;
}
/**
* @return isActivity
*/
public String getIsActivity() {
return this.isActivity;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String aliUid;
private String bid;
private String DBInstanceId;
private String DBInstanceName;
private String DBType;
private String isActivity;
private String requestId;
private Builder() {
}
private Builder(DescribeDBInstancePromoteActivityResponseBody model) {
this.aliUid = model.aliUid;
this.bid = model.bid;
this.DBInstanceId = model.DBInstanceId;
this.DBInstanceName = model.DBInstanceName;
this.DBType = model.DBType;
this.isActivity = model.isActivity;
this.requestId = model.requestId;
}
/**
* <p>The ID of the Alibaba Cloud account.</p>
*
* <strong>example:</strong>
* <p>22973492**********</p>
*/
public Builder aliUid(String aliUid) {
this.aliUid = aliUid;
return this;
}
/**
* <ul>
* <li>China site: 26842</li>
* <li>International site: 26888</li>
* </ul>
*
* <strong>example:</strong>
* <p>268**</p>
*/
public Builder bid(String bid) {
this.bid = bid;
return this;
}
/**
* <p>The instance ID. You can call the <a href="https://help.aliyun.com/document_detail/26232.html">DescribeDBInstances</a> operation to query the instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The instance name.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* <p>The type of the database engine. Valid values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>Oracle</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder DBType(String DBType) {
this.DBType = DBType;
return this;
}
/**
* <p>The activity information about the instance. For more information, see <a href="https://help.aliyun.com/document_detail/2391834.html">Instance activities</a>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder isActivity(String isActivity) {
this.isActivity = isActivity;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>94CB8D93-017A-5AE7-A118-6E0F89D93C0A</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDBInstancePromoteActivityResponseBody build() {
return new DescribeDBInstancePromoteActivityResponseBody(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/DescribeDBInstanceProxyConfigurationRequest.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 DescribeDBInstanceProxyConfigurationRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceProxyConfigurationRequest</p>
*/
public class DescribeDBInstanceProxyConfigurationRequest 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 DescribeDBInstanceProxyConfigurationRequest(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 DescribeDBInstanceProxyConfigurationRequest 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<DescribeDBInstanceProxyConfigurationRequest, Builder> {
private String DBInstanceId;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDBInstanceProxyConfigurationRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <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-uf6wjk5xxxxxxxxxx</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 DescribeDBInstanceProxyConfigurationRequest build() {
return new DescribeDBInstanceProxyConfigurationRequest(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/DescribeDBInstanceProxyConfigurationResponse.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 DescribeDBInstanceProxyConfigurationResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceProxyConfigurationResponse</p>
*/
public class DescribeDBInstanceProxyConfigurationResponse 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 DescribeDBInstanceProxyConfigurationResponseBody body;
private DescribeDBInstanceProxyConfigurationResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceProxyConfigurationResponse 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 DescribeDBInstanceProxyConfigurationResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceProxyConfigurationResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceProxyConfigurationResponseBody body);
@Override
DescribeDBInstanceProxyConfigurationResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceProxyConfigurationResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceProxyConfigurationResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceProxyConfigurationResponse 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(DescribeDBInstanceProxyConfigurationResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceProxyConfigurationResponse build() {
return new DescribeDBInstanceProxyConfigurationResponse(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/DescribeDBInstanceProxyConfigurationResponseBody.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 DescribeDBInstanceProxyConfigurationResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceProxyConfigurationResponseBody</p>
*/
public class DescribeDBInstanceProxyConfigurationResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AttacksProtectionConfiguration")
private String attacksProtectionConfiguration;
@com.aliyun.core.annotation.NameInMap("PersistentConnectionsConfiguration")
private String persistentConnectionsConfiguration;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TransparentSwitchConfiguration")
private String transparentSwitchConfiguration;
private DescribeDBInstanceProxyConfigurationResponseBody(Builder builder) {
this.attacksProtectionConfiguration = builder.attacksProtectionConfiguration;
this.persistentConnectionsConfiguration = builder.persistentConnectionsConfiguration;
this.requestId = builder.requestId;
this.transparentSwitchConfiguration = builder.transparentSwitchConfiguration;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceProxyConfigurationResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attacksProtectionConfiguration
*/
public String getAttacksProtectionConfiguration() {
return this.attacksProtectionConfiguration;
}
/**
* @return persistentConnectionsConfiguration
*/
public String getPersistentConnectionsConfiguration() {
return this.persistentConnectionsConfiguration;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return transparentSwitchConfiguration
*/
public String getTransparentSwitchConfiguration() {
return this.transparentSwitchConfiguration;
}
public static final class Builder {
private String attacksProtectionConfiguration;
private String persistentConnectionsConfiguration;
private String requestId;
private String transparentSwitchConfiguration;
private Builder() {
}
private Builder(DescribeDBInstanceProxyConfigurationResponseBody model) {
this.attacksProtectionConfiguration = model.attacksProtectionConfiguration;
this.persistentConnectionsConfiguration = model.persistentConnectionsConfiguration;
this.requestId = model.requestId;
this.transparentSwitchConfiguration = model.transparentSwitchConfiguration;
}
/**
* <p>Indicates whether the mechanism that is used to mitigate brute-force attacks is enabled:</p>
* <ul>
* <li><strong>Enable</strong></li>
* <li><strong>Disable</strong></li>
* </ul>
* <p>The return value is a JSON string. Example:</p>
* <pre><code>{"status":"Disable", "check_interval_seconds": 60,
* "max_failed_login_attempts": 60, "blocking_seconds": 600}
* </code></pre>
* <p>Description:</p>
* <ul>
* <li><p>Each client allows {max_failed_login_attempts} logon attempts that fail due to incorrect passwords within {check_interval_seconds} seconds. If one more such attempt is conducted, the client must wait for {blocking_seconds} seconds before you can try again.</p>
* </li>
* <li><p>Valid values:</p>
* <ul>
* <li>check_interval_seconds: <strong>30 to 600</strong>. Unit: seconds.</li>
* <li>max_failed_login_attempts: <strong>10 to 5000</strong>. Unit: times.</li>
* <li>blocking_seconds: <strong>30 to 3600</strong>. Unit: seconds.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>{"check_interval_seconds":"0","max_failed_login_attempts":"0","blocking_seconds":"0","status":"Disable"}</p>
*/
public Builder attacksProtectionConfiguration(String attacksProtectionConfiguration) {
this.attacksProtectionConfiguration = attacksProtectionConfiguration;
return this;
}
/**
* <p>Indicates whether the short-lived connection optimization feature is enabled.</p>
* <ul>
* <li><strong>Enable</strong></li>
* <li><strong>Disable</strong></li>
* </ul>
* <p>In this case, the return value is a JSON string. Examples:</p>
* <pre><code>{"status":"Disable"}.
* </code></pre>
*
* <strong>example:</strong>
* <p>{"status":"Disable"}</p>
*/
public Builder persistentConnectionsConfiguration(String persistentConnectionsConfiguration) {
this.persistentConnectionsConfiguration = persistentConnectionsConfiguration;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>E9DD55F4-1A5F-48CA-BA57-DFB3CA8C4C34</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the transparent switchover feature is enabled.</p>
* <ul>
* <li><strong>Enable</strong></li>
* <li><strong>Disable</strong></li>
* </ul>
* <p>The return value is a JSON string. Example:</p>
* <pre><code>{"status":"Enable"}
* </code></pre>
*
* <strong>example:</strong>
* <p>{"status":"Enable"}</p>
*/
public Builder transparentSwitchConfiguration(String transparentSwitchConfiguration) {
this.transparentSwitchConfiguration = transparentSwitchConfiguration;
return this;
}
public DescribeDBInstanceProxyConfigurationResponseBody build() {
return new DescribeDBInstanceProxyConfigurationResponseBody(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/DescribeDBInstanceReplicationRequest.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 DescribeDBInstanceReplicationRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceReplicationRequest</p>
*/
public class DescribeDBInstanceReplicationRequest 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("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;
private DescribeDBInstanceReplicationRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceReplicationRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
public static final class Builder extends Request.Builder<DescribeDBInstanceReplicationRequest, Builder> {
private String DBInstanceId;
private String regionId;
private String resourceGroupId;
private Builder() {
super();
}
private Builder(DescribeDBInstanceReplicationRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
}
/**
* <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 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-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID. You can leave this parameter empty.</p>
*
* <strong>example:</strong>
* <p>rg-acfmx****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
@Override
public DescribeDBInstanceReplicationRequest build() {
return new DescribeDBInstanceReplicationRequest(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/DescribeDBInstanceReplicationResponse.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 DescribeDBInstanceReplicationResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceReplicationResponse</p>
*/
public class DescribeDBInstanceReplicationResponse 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 DescribeDBInstanceReplicationResponseBody body;
private DescribeDBInstanceReplicationResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceReplicationResponse 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 DescribeDBInstanceReplicationResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceReplicationResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceReplicationResponseBody body);
@Override
DescribeDBInstanceReplicationResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceReplicationResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceReplicationResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceReplicationResponse 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(DescribeDBInstanceReplicationResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceReplicationResponse build() {
return new DescribeDBInstanceReplicationResponse(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/DescribeDBInstanceReplicationResponseBody.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 DescribeDBInstanceReplicationResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceReplicationResponseBody</p>
*/
public class DescribeDBInstanceReplicationResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ExternalReplication")
private String externalReplication;
@com.aliyun.core.annotation.NameInMap("ReplicationDelay")
private String replicationDelay;
@com.aliyun.core.annotation.NameInMap("ReplicationErrorMessage")
private String replicationErrorMessage;
@com.aliyun.core.annotation.NameInMap("ReplicationSource")
private String replicationSource;
@com.aliyun.core.annotation.NameInMap("ReplicationState")
private String replicationState;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDBInstanceReplicationResponseBody(Builder builder) {
this.externalReplication = builder.externalReplication;
this.replicationDelay = builder.replicationDelay;
this.replicationErrorMessage = builder.replicationErrorMessage;
this.replicationSource = builder.replicationSource;
this.replicationState = builder.replicationState;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceReplicationResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return externalReplication
*/
public String getExternalReplication() {
return this.externalReplication;
}
/**
* @return replicationDelay
*/
public String getReplicationDelay() {
return this.replicationDelay;
}
/**
* @return replicationErrorMessage
*/
public String getReplicationErrorMessage() {
return this.replicationErrorMessage;
}
/**
* @return replicationSource
*/
public String getReplicationSource() {
return this.replicationSource;
}
/**
* @return replicationState
*/
public String getReplicationState() {
return this.replicationState;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String externalReplication;
private String replicationDelay;
private String replicationErrorMessage;
private String replicationSource;
private String replicationState;
private String requestId;
private Builder() {
}
private Builder(DescribeDBInstanceReplicationResponseBody model) {
this.externalReplication = model.externalReplication;
this.replicationDelay = model.replicationDelay;
this.replicationErrorMessage = model.replicationErrorMessage;
this.replicationSource = model.replicationSource;
this.replicationState = model.replicationState;
this.requestId = model.requestId;
}
/**
* <p>Indicates whether the native replication mods is enabled. Valid values:</p>
* <ul>
* <li><strong>ON</strong></li>
* <li><strong>OFF</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>ON</p>
*/
public Builder externalReplication(String externalReplication) {
this.externalReplication = externalReplication;
return this;
}
/**
* <p>The replication latency. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder replicationDelay(String replicationDelay) {
this.replicationDelay = replicationDelay;
return this;
}
/**
* <p>The replication error message.</p>
*
* <strong>example:</strong>
* <p>Got fatal error 1236 from master when reading data from binary log...</p>
*/
public Builder replicationErrorMessage(String replicationErrorMessage) {
this.replicationErrorMessage = replicationErrorMessage;
return this;
}
/**
* <p>The source of the native replication.</p>
*
* <strong>example:</strong>
* <p>192.168.x.x</p>
*/
public Builder replicationSource(String replicationSource) {
this.replicationSource = replicationSource;
return this;
}
/**
* <p>The current replication status. Valid values:</p>
* <ul>
* <li><strong>Running</strong></li>
* <li><strong>Connecting</strong></li>
* <li><strong>Stopped</strong></li>
* <li><strong>Error</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Running
* Connecting
* Stopped
* Error</p>
*/
public Builder replicationState(String replicationState) {
this.replicationState = replicationState;
return this;
}
/**
* <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;
}
public DescribeDBInstanceReplicationResponseBody build() {
return new DescribeDBInstanceReplicationResponseBody(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/DescribeDBInstanceSSLRequest.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 DescribeDBInstanceSSLRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceSSLRequest</p>
*/
public class DescribeDBInstanceSSLRequest 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("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 DescribeDBInstanceSSLRequest(Builder builder) {
super(builder);
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 DescribeDBInstanceSSLRequest 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 resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeDBInstanceSSLRequest, Builder> {
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDBInstanceSSLRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <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-bp162dfr55g47****</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 DescribeDBInstanceSSLRequest build() {
return new DescribeDBInstanceSSLRequest(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/DescribeDBInstanceSSLResponse.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 DescribeDBInstanceSSLResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceSSLResponse</p>
*/
public class DescribeDBInstanceSSLResponse 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 DescribeDBInstanceSSLResponseBody body;
private DescribeDBInstanceSSLResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceSSLResponse 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 DescribeDBInstanceSSLResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceSSLResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceSSLResponseBody body);
@Override
DescribeDBInstanceSSLResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceSSLResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceSSLResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceSSLResponse 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(DescribeDBInstanceSSLResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceSSLResponse build() {
return new DescribeDBInstanceSSLResponse(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/DescribeDBInstanceSSLResponseBody.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 DescribeDBInstanceSSLResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceSSLResponseBody</p>
*/
public class DescribeDBInstanceSSLResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ACL")
private String ACL;
@com.aliyun.core.annotation.NameInMap("CAType")
private String CAType;
@com.aliyun.core.annotation.NameInMap("ClientCACert")
private String clientCACert;
@com.aliyun.core.annotation.NameInMap("ClientCACertExpireTime")
private String clientCACertExpireTime;
@com.aliyun.core.annotation.NameInMap("ClientCertRevocationList")
private String clientCertRevocationList;
@com.aliyun.core.annotation.NameInMap("ConnectionString")
private String connectionString;
@com.aliyun.core.annotation.NameInMap("ForceEncryption")
private String forceEncryption;
@com.aliyun.core.annotation.NameInMap("LastModifyStatus")
private String lastModifyStatus;
@com.aliyun.core.annotation.NameInMap("ModifyStatusReason")
private String modifyStatusReason;
@com.aliyun.core.annotation.NameInMap("ReplicationACL")
private String replicationACL;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RequireUpdate")
private String requireUpdate;
@com.aliyun.core.annotation.NameInMap("RequireUpdateItem")
private String requireUpdateItem;
@com.aliyun.core.annotation.NameInMap("RequireUpdateReason")
private String requireUpdateReason;
@com.aliyun.core.annotation.NameInMap("SSLCreateTime")
private String SSLCreateTime;
@com.aliyun.core.annotation.NameInMap("SSLEnabled")
private String SSLEnabled;
@com.aliyun.core.annotation.NameInMap("SSLExpireTime")
private String SSLExpireTime;
@com.aliyun.core.annotation.NameInMap("ServerCAUrl")
private String serverCAUrl;
@com.aliyun.core.annotation.NameInMap("ServerCert")
private String serverCert;
@com.aliyun.core.annotation.NameInMap("ServerKey")
private String serverKey;
@com.aliyun.core.annotation.NameInMap("TlsVersion")
private String tlsVersion;
private DescribeDBInstanceSSLResponseBody(Builder builder) {
this.ACL = builder.ACL;
this.CAType = builder.CAType;
this.clientCACert = builder.clientCACert;
this.clientCACertExpireTime = builder.clientCACertExpireTime;
this.clientCertRevocationList = builder.clientCertRevocationList;
this.connectionString = builder.connectionString;
this.forceEncryption = builder.forceEncryption;
this.lastModifyStatus = builder.lastModifyStatus;
this.modifyStatusReason = builder.modifyStatusReason;
this.replicationACL = builder.replicationACL;
this.requestId = builder.requestId;
this.requireUpdate = builder.requireUpdate;
this.requireUpdateItem = builder.requireUpdateItem;
this.requireUpdateReason = builder.requireUpdateReason;
this.SSLCreateTime = builder.SSLCreateTime;
this.SSLEnabled = builder.SSLEnabled;
this.SSLExpireTime = builder.SSLExpireTime;
this.serverCAUrl = builder.serverCAUrl;
this.serverCert = builder.serverCert;
this.serverKey = builder.serverKey;
this.tlsVersion = builder.tlsVersion;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceSSLResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ACL
*/
public String getACL() {
return this.ACL;
}
/**
* @return CAType
*/
public String getCAType() {
return this.CAType;
}
/**
* @return clientCACert
*/
public String getClientCACert() {
return this.clientCACert;
}
/**
* @return clientCACertExpireTime
*/
public String getClientCACertExpireTime() {
return this.clientCACertExpireTime;
}
/**
* @return clientCertRevocationList
*/
public String getClientCertRevocationList() {
return this.clientCertRevocationList;
}
/**
* @return connectionString
*/
public String getConnectionString() {
return this.connectionString;
}
/**
* @return forceEncryption
*/
public String getForceEncryption() {
return this.forceEncryption;
}
/**
* @return lastModifyStatus
*/
public String getLastModifyStatus() {
return this.lastModifyStatus;
}
/**
* @return modifyStatusReason
*/
public String getModifyStatusReason() {
return this.modifyStatusReason;
}
/**
* @return replicationACL
*/
public String getReplicationACL() {
return this.replicationACL;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return requireUpdate
*/
public String getRequireUpdate() {
return this.requireUpdate;
}
/**
* @return requireUpdateItem
*/
public String getRequireUpdateItem() {
return this.requireUpdateItem;
}
/**
* @return requireUpdateReason
*/
public String getRequireUpdateReason() {
return this.requireUpdateReason;
}
/**
* @return SSLCreateTime
*/
public String getSSLCreateTime() {
return this.SSLCreateTime;
}
/**
* @return SSLEnabled
*/
public String getSSLEnabled() {
return this.SSLEnabled;
}
/**
* @return SSLExpireTime
*/
public String getSSLExpireTime() {
return this.SSLExpireTime;
}
/**
* @return serverCAUrl
*/
public String getServerCAUrl() {
return this.serverCAUrl;
}
/**
* @return serverCert
*/
public String getServerCert() {
return this.serverCert;
}
/**
* @return serverKey
*/
public String getServerKey() {
return this.serverKey;
}
/**
* @return tlsVersion
*/
public String getTlsVersion() {
return this.tlsVersion;
}
public static final class Builder {
private String ACL;
private String CAType;
private String clientCACert;
private String clientCACertExpireTime;
private String clientCertRevocationList;
private String connectionString;
private String forceEncryption;
private String lastModifyStatus;
private String modifyStatusReason;
private String replicationACL;
private String requestId;
private String requireUpdate;
private String requireUpdateItem;
private String requireUpdateReason;
private String SSLCreateTime;
private String SSLEnabled;
private String SSLExpireTime;
private String serverCAUrl;
private String serverCert;
private String serverKey;
private String tlsVersion;
private Builder() {
}
private Builder(DescribeDBInstanceSSLResponseBody model) {
this.ACL = model.ACL;
this.CAType = model.CAType;
this.clientCACert = model.clientCACert;
this.clientCACertExpireTime = model.clientCACertExpireTime;
this.clientCertRevocationList = model.clientCertRevocationList;
this.connectionString = model.connectionString;
this.forceEncryption = model.forceEncryption;
this.lastModifyStatus = model.lastModifyStatus;
this.modifyStatusReason = model.modifyStatusReason;
this.replicationACL = model.replicationACL;
this.requestId = model.requestId;
this.requireUpdate = model.requireUpdate;
this.requireUpdateItem = model.requireUpdateItem;
this.requireUpdateReason = model.requireUpdateReason;
this.SSLCreateTime = model.SSLCreateTime;
this.SSLEnabled = model.SSLEnabled;
this.SSLExpireTime = model.SSLExpireTime;
this.serverCAUrl = model.serverCAUrl;
this.serverCert = model.serverCert;
this.serverKey = model.serverKey;
this.tlsVersion = model.tlsVersion;
}
/**
* <p>The method that is used to verify the instance. This parameter is supported only when the instance runs PostgreSQL with cloud disks.</p>
* <ul>
* <li><strong>cert</strong></li>
* <li><strong>prefer</strong></li>
* <li><strong>verify-ca</strong></li>
* <li><strong>verify-full</strong> (supported only when the instance runs PostgreSQL 12 or later)</li>
* </ul>
*
* <strong>example:</strong>
* <p>cert</p>
*/
public Builder ACL(String ACL) {
this.ACL = ACL;
return this;
}
/**
* <p>The type of the server certificate. This parameter is supported only when the instance runs PostgreSQL with cloud disks. Valid values:</p>
* <ul>
* <li><strong>aliyun</strong>: a cloud certificate</li>
* <li><strong>custom</strong>: a custom certificate</li>
* </ul>
*
* <strong>example:</strong>
* <p>aliyun</p>
*/
public Builder CAType(String CAType) {
this.CAType = CAType;
return this;
}
/**
* <p>The public key of the CA that issues client certificates. This parameter is supported only when the instance runs PostgreSQL with cloud disks.</p>
*
* <strong>example:</strong>
* <p>-----BEGIN CERTIFICATE-----MIID*****viXk=-----END CERTIFICATE-----</p>
*/
public Builder clientCACert(String clientCACert) {
this.clientCACert = clientCACert;
return this;
}
/**
* <p>The time when the public key of the CA that issues client certificates expires. This parameter is supported only when the instance runs PostgreSQL with cloud disks. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format and must be in UTC.</p>
* <p>This parameter is not supported.</p>
*
* <strong>example:</strong>
* <ul>
* <li></li>
* </ul>
*/
public Builder clientCACertExpireTime(String clientCACertExpireTime) {
this.clientCACertExpireTime = clientCACertExpireTime;
return this;
}
/**
* <p>The certificate revocation list (CRL) that contains revoked client certificates. This parameter is supported only when the instance runs PostgreSQL with cloud disks.</p>
*
* <strong>example:</strong>
* <p>-----BEGIN X509 CRL-----MIIB****19mg==-----END X509 CRL-----</p>
*/
public Builder clientCertRevocationList(String clientCertRevocationList) {
this.clientCertRevocationList = clientCertRevocationList;
return this;
}
/**
* <p>The endpoint that is protected by SSL encryption.</p>
*
* <strong>example:</strong>
* <p>rm-bp162dfr55g47****.mysql.rds.aliyuncs.com</p>
*/
public Builder connectionString(String connectionString) {
this.connectionString = connectionString;
return this;
}
/**
* <p>Indicates whether the <a href="https://help.aliyun.com/document_detail/95715.html">forceful SSL encryption</a> feature is enabled. This parameter is supported only for RDS for SQL Server instances.</p>
* <ul>
* <li><strong>1</strong>: The feature is enabled.</li>
* <li><strong>0</strong>: The feature is disabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder forceEncryption(String forceEncryption) {
this.forceEncryption = forceEncryption;
return this;
}
/**
* <p>The status of the SSL link. This parameter is supported only when the instance runs PostgreSQL with cloud disks.</p>
* <ul>
* <li><strong>success</strong>: The SSL link is successfully configured.</li>
* <li><strong>setting</strong>: The SSL link is being configured.</li>
* <li><strong>failed</strong>: The SSL link failed to be configured.</li>
* </ul>
*
* <strong>example:</strong>
* <p>setting</p>
*/
public Builder lastModifyStatus(String lastModifyStatus) {
this.lastModifyStatus = lastModifyStatus;
return this;
}
/**
* <p>The reason why the SSL link stays in the current state. This parameter is supported only when the instance runs PostgreSQL with cloud disks.</p>
*
* <strong>example:</strong>
* <p>Modify DB Instance SSL Config.</p>
*/
public Builder modifyStatusReason(String modifyStatusReason) {
this.modifyStatusReason = modifyStatusReason;
return this;
}
/**
* <p>The method that is used to verify the replication permission. This parameter is supported only when the instance runs PostgreSQL with cloud disks. Valid values:</p>
* <ul>
* <li><strong>cert</strong></li>
* <li><strong>prefer</strong></li>
* <li><strong>verify-ca</strong></li>
* <li><strong>verify-full</strong> (supported only when the instance runs PostgreSQL 12 or later)</li>
* </ul>
*
* <strong>example:</strong>
* <p>cert</p>
*/
public Builder replicationACL(String replicationACL) {
this.replicationACL = replicationACL;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>7705151C-E242-55AF-9929-2A3C39D979D2</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the SSL certificate needs to be updated. Valid values:</p>
* <blockquote>
* <p> An SSL certificate remains valid for one year. Before the used SSL certificate expires, you must update the validity period of the SSL certificate. If you do not update the validity period of the SSL certificate, your application or client that uses encrypted network connections cannot connect to your RDS instance.</p>
* </blockquote>
* <p><strong>RDS instances that run MySQL and SQL Server</strong></p>
* <ul>
* <li><strong>No</strong>: The SSL certificate does not need to be updated.</li>
* <li><strong>Yes</strong>: The SSL certificate needs to be updated.</li>
* </ul>
* <p><strong>RDS instances that run PostgreSQL</strong></p>
* <ul>
* <li><strong>0</strong>: The SSL certificate does not need to be updated.</li>
* <li><strong>1</strong>: The SSL certificate needs to be updated.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Yes</p>
*/
public Builder requireUpdate(String requireUpdate) {
this.requireUpdate = requireUpdate;
return this;
}
/**
* <p>The server certificate that needs to be updated. This parameter is supported only when the instance runs PostgreSQL with cloud disk.</p>
*
* <strong>example:</strong>
* <ul>
* <li></li>
* </ul>
*/
public Builder requireUpdateItem(String requireUpdateItem) {
this.requireUpdateItem = requireUpdateItem;
return this;
}
/**
* <p>The reason why the server certificate needs to be updated. This parameter is supported only when the instance runs PostgreSQL with cloud disks.</p>
*
* <strong>example:</strong>
* <ul>
* <li></li>
* </ul>
*/
public Builder requireUpdateReason(String requireUpdateReason) {
this.requireUpdateReason = requireUpdateReason;
return this;
}
/**
* <p>The time when the server certificate was created. This parameter is supported only when the instance runs PostgreSQL with cloud disks. In addition, this parameter is valid only when the CAType parameter value is aliyun.</p>
*
* <strong>example:</strong>
* <ul>
* <li></li>
* </ul>
*/
public Builder SSLCreateTime(String SSLCreateTime) {
this.SSLCreateTime = SSLCreateTime;
return this;
}
/**
* <p>Indicates whether SSL encryption is enabled. Valid values:</p>
* <p><strong>RDS instances that run MySQL and SQL Server</strong></p>
* <ul>
* <li><strong>Yes</strong>: SSL encryption is enabled.</li>
* <li><strong>No</strong>: SSL encryption is disabled.</li>
* </ul>
* <p><strong>RDS instances that run PostgreSQL</strong></p>
* <ul>
* <li><strong>on</strong>: SSL encryption is enabled.</li>
* <li><strong>off</strong>: SSL encryption is disabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Yes</p>
*/
public Builder SSLEnabled(String SSLEnabled) {
this.SSLEnabled = SSLEnabled;
return this;
}
/**
* <p>The time when the SSL certificate expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format and must be in UTC.</p>
*
* <strong>example:</strong>
* <p>2022-10-11T08:16:43Z</p>
*/
public Builder SSLExpireTime(String SSLExpireTime) {
this.SSLExpireTime = SSLExpireTime;
return this;
}
/**
* <p>The URL of the certificate that is used to issue the server certificate. This parameter is supported only when the instance runs PostgreSQL with cloud disk.</p>
*
* <strong>example:</strong>
* <ul>
* <li></li>
* </ul>
*/
public Builder serverCAUrl(String serverCAUrl) {
this.serverCAUrl = serverCAUrl;
return this;
}
/**
* <p>The content of the server certificate. This parameter is supported only when the instance runs PostgreSQL with cloud disks.</p>
*
* <strong>example:</strong>
* <p>-----BEGIN CERTIFICATE-----MIID*****QqEP-----END CERTIFICATE-----</p>
*/
public Builder serverCert(String serverCert) {
this.serverCert = serverCert;
return this;
}
/**
* <p>The private key of the server certificate. This parameter is supported only when the instance runs PostgreSQL with cloud disks.</p>
*
* <strong>example:</strong>
* <p>-----BEGIN PRIVATE KEY-----MIIE****ihfg==-----END PRIVATE KEY-----</p>
*/
public Builder serverKey(String serverKey) {
this.serverKey = serverKey;
return this;
}
/**
* <p>The <a href="https://help.aliyun.com/document_detail/95715.html">minimum Transport Layer Security (TLS) version</a>. Valid values: 1.0, 1.1, and 1.2. This parameter is supported only for ApsaraDB RDS for SQL Server instances.</p>
*
* <strong>example:</strong>
* <p>1.1</p>
*/
public Builder tlsVersion(String tlsVersion) {
this.tlsVersion = tlsVersion;
return this;
}
public DescribeDBInstanceSSLResponseBody build() {
return new DescribeDBInstanceSSLResponseBody(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/DescribeDBInstanceSecurityGroupRuleRequest.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 DescribeDBInstanceSecurityGroupRuleRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceSecurityGroupRuleRequest</p>
*/
public class DescribeDBInstanceSecurityGroupRuleRequest 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("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("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeDBInstanceSecurityGroupRuleRequest(Builder builder) {
super(builder);
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 DescribeDBInstanceSecurityGroupRuleRequest 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 String 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<DescribeDBInstanceSecurityGroupRuleRequest, Builder> {
private String DBInstanceId;
private String ownerAccount;
private String ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDBInstanceSecurityGroupRuleRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <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-2ze202******</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(String 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 DescribeDBInstanceSecurityGroupRuleRequest build() {
return new DescribeDBInstanceSecurityGroupRuleRequest(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/DescribeDBInstanceSecurityGroupRuleResponse.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 DescribeDBInstanceSecurityGroupRuleResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceSecurityGroupRuleResponse</p>
*/
public class DescribeDBInstanceSecurityGroupRuleResponse 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 DescribeDBInstanceSecurityGroupRuleResponseBody body;
private DescribeDBInstanceSecurityGroupRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceSecurityGroupRuleResponse 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 DescribeDBInstanceSecurityGroupRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceSecurityGroupRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceSecurityGroupRuleResponseBody body);
@Override
DescribeDBInstanceSecurityGroupRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceSecurityGroupRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceSecurityGroupRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceSecurityGroupRuleResponse 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(DescribeDBInstanceSecurityGroupRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceSecurityGroupRuleResponse build() {
return new DescribeDBInstanceSecurityGroupRuleResponse(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/DescribeDBInstanceSecurityGroupRuleResponseBody.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 DescribeDBInstanceSecurityGroupRuleResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceSecurityGroupRuleResponseBody</p>
*/
public class DescribeDBInstanceSecurityGroupRuleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private String data;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDBInstanceSecurityGroupRuleResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.message = builder.message;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceSecurityGroupRuleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public String getData() {
return this.data;
}
/**
* @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 data;
private String message;
private String requestId;
private Builder() {
}
private Builder(DescribeDBInstanceSecurityGroupRuleResponseBody model) {
this.code = model.code;
this.data = model.data;
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 details of the security group rule.</p>
*/
public Builder data(String data) {
this.data = data;
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>6BFF4136-10B9-130B-BF8E-D3504BCE4F43</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDBInstanceSecurityGroupRuleResponseBody build() {
return new DescribeDBInstanceSecurityGroupRuleResponseBody(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/DescribeDBInstanceTDERequest.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 DescribeDBInstanceTDERequest} extends {@link RequestModel}
*
* <p>DescribeDBInstanceTDERequest</p>
*/
public class DescribeDBInstanceTDERequest 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("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 DescribeDBInstanceTDERequest(Builder builder) {
super(builder);
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 DescribeDBInstanceTDERequest 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 resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeDBInstanceTDERequest, Builder> {
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDBInstanceTDERequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <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 DescribeDBInstanceTDERequest build() {
return new DescribeDBInstanceTDERequest(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/DescribeDBInstanceTDEResponse.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 DescribeDBInstanceTDEResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstanceTDEResponse</p>
*/
public class DescribeDBInstanceTDEResponse 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 DescribeDBInstanceTDEResponseBody body;
private DescribeDBInstanceTDEResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstanceTDEResponse 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 DescribeDBInstanceTDEResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstanceTDEResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstanceTDEResponseBody body);
@Override
DescribeDBInstanceTDEResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstanceTDEResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstanceTDEResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstanceTDEResponse 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(DescribeDBInstanceTDEResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstanceTDEResponse build() {
return new DescribeDBInstanceTDEResponse(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/DescribeDBInstanceTDEResponseBody.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 DescribeDBInstanceTDEResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceTDEResponseBody</p>
*/
public class DescribeDBInstanceTDEResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Databases")
private Databases databases;
@com.aliyun.core.annotation.NameInMap("EncryptionKey")
private String encryptionKey;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TDEMode")
private String TDEMode;
@com.aliyun.core.annotation.NameInMap("TDEStatus")
private String TDEStatus;
private DescribeDBInstanceTDEResponseBody(Builder builder) {
this.databases = builder.databases;
this.encryptionKey = builder.encryptionKey;
this.requestId = builder.requestId;
this.TDEMode = builder.TDEMode;
this.TDEStatus = builder.TDEStatus;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstanceTDEResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databases
*/
public Databases getDatabases() {
return this.databases;
}
/**
* @return encryptionKey
*/
public String getEncryptionKey() {
return this.encryptionKey;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return TDEMode
*/
public String getTDEMode() {
return this.TDEMode;
}
/**
* @return TDEStatus
*/
public String getTDEStatus() {
return this.TDEStatus;
}
public static final class Builder {
private Databases databases;
private String encryptionKey;
private String requestId;
private String TDEMode;
private String TDEStatus;
private Builder() {
}
private Builder(DescribeDBInstanceTDEResponseBody model) {
this.databases = model.databases;
this.encryptionKey = model.encryptionKey;
this.requestId = model.requestId;
this.TDEMode = model.TDEMode;
this.TDEStatus = model.TDEStatus;
}
/**
* <p>The TDE status at the database level.</p>
* <blockquote>
* <p> If your instance runs SQL Server 2019 SE or SQL Server EE, you can specify whether to enable TDE at the database level when you enable TDE at the instance level.</p>
* </blockquote>
*/
public Builder databases(Databases databases) {
this.databases = databases;
return this;
}
/**
* <p>The ID of the custom key.</p>
*
* <strong>example:</strong>
* <p>749c1df7-<strong><strong>-</strong></strong>-<strong><strong>-</strong></strong></p>
*/
public Builder encryptionKey(String encryptionKey) {
this.encryptionKey = encryptionKey;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>C816A4BF-A6EC-4722-95F9-2055859CCFD2</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The method that is used to generate the key for TDE at the instance level. Valid values:</p>
* <ul>
* <li><strong>Aliyun_Generate_Key</strong></li>
* <li><strong>Customer_Provided_Key</strong></li>
* <li><strong>Unknown</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Aliyun_Generate_Key</p>
*/
public Builder TDEMode(String TDEMode) {
this.TDEMode = TDEMode;
return this;
}
/**
* <p>The TDE status of the instance. Valid values:</p>
* <ul>
* <li><strong>Enabled</strong></li>
* <li><strong>Disabled</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Enabled</p>
*/
public Builder TDEStatus(String TDEStatus) {
this.TDEStatus = TDEStatus;
return this;
}
public DescribeDBInstanceTDEResponseBody build() {
return new DescribeDBInstanceTDEResponseBody(this);
}
}
/**
*
* {@link DescribeDBInstanceTDEResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceTDEResponseBody</p>
*/
public static class Database extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBName")
private String DBName;
@com.aliyun.core.annotation.NameInMap("TDEStatus")
private String TDEStatus;
private Database(Builder builder) {
this.DBName = builder.DBName;
this.TDEStatus = builder.TDEStatus;
}
public static Builder builder() {
return new Builder();
}
public static Database create() {
return builder().build();
}
/**
* @return DBName
*/
public String getDBName() {
return this.DBName;
}
/**
* @return TDEStatus
*/
public String getTDEStatus() {
return this.TDEStatus;
}
public static final class Builder {
private String DBName;
private String TDEStatus;
private Builder() {
}
private Builder(Database model) {
this.DBName = model.DBName;
this.TDEStatus = model.TDEStatus;
}
/**
* <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 TDE status at the database level. Valid values:</p>
* <ul>
* <li><strong>Enabled</strong></li>
* <li><strong>Disabled</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Enabled</p>
*/
public Builder TDEStatus(String TDEStatus) {
this.TDEStatus = TDEStatus;
return this;
}
public Database build() {
return new Database(this);
}
}
}
/**
*
* {@link DescribeDBInstanceTDEResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstanceTDEResponseBody</p>
*/
public static class Databases extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Database")
private java.util.List<Database> database;
private Databases(Builder builder) {
this.database = builder.database;
}
public static Builder builder() {
return new Builder();
}
public static Databases create() {
return builder().build();
}
/**
* @return database
*/
public java.util.List<Database> getDatabase() {
return this.database;
}
public static final class Builder {
private java.util.List<Database> database;
private Builder() {
}
private Builder(Databases model) {
this.database = model.database;
}
/**
* Database.
*/
public Builder database(java.util.List<Database> database) {
this.database = database;
return this;
}
public Databases build() {
return new Databases(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/DescribeDBInstancesAsCsvRequest.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 DescribeDBInstancesAsCsvRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstancesAsCsvRequest</p>
*/
public class DescribeDBInstancesAsCsvRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CachedAsync")
private Boolean cachedAsync;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ExportKey")
private String exportKey;
@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;
private DescribeDBInstancesAsCsvRequest(Builder builder) {
super(builder);
this.cachedAsync = builder.cachedAsync;
this.DBInstanceId = builder.DBInstanceId;
this.exportKey = builder.exportKey;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstancesAsCsvRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cachedAsync
*/
public Boolean getCachedAsync() {
return this.cachedAsync;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return exportKey
*/
public String getExportKey() {
return this.exportKey;
}
/**
* @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;
}
public static final class Builder extends Request.Builder<DescribeDBInstancesAsCsvRequest, Builder> {
private Boolean cachedAsync;
private String DBInstanceId;
private String exportKey;
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDBInstancesAsCsvRequest request) {
super(request);
this.cachedAsync = request.cachedAsync;
this.DBInstanceId = request.DBInstanceId;
this.exportKey = request.exportKey;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>A deprecated parameter. You do not need to configure this parameter.</p>
*
* <strong>example:</strong>
* <p>API</p>
*/
public Builder cachedAsync(Boolean cachedAsync) {
this.putQueryParameter("CachedAsync", cachedAsync);
this.cachedAsync = cachedAsync;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the IDs of instances.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>A deprecated parameter. You do not need to configure this parameter.</p>
*
* <strong>example:</strong>
* <p>API</p>
*/
public Builder exportKey(String exportKey) {
this.putQueryParameter("ExportKey", exportKey);
this.exportKey = exportKey;
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-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;
}
/**
* 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 DescribeDBInstancesAsCsvRequest build() {
return new DescribeDBInstancesAsCsvRequest(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/DescribeDBInstancesAsCsvResponse.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 DescribeDBInstancesAsCsvResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstancesAsCsvResponse</p>
*/
public class DescribeDBInstancesAsCsvResponse 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 DescribeDBInstancesAsCsvResponseBody body;
private DescribeDBInstancesAsCsvResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstancesAsCsvResponse 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 DescribeDBInstancesAsCsvResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstancesAsCsvResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstancesAsCsvResponseBody body);
@Override
DescribeDBInstancesAsCsvResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstancesAsCsvResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstancesAsCsvResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstancesAsCsvResponse 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(DescribeDBInstancesAsCsvResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstancesAsCsvResponse build() {
return new DescribeDBInstancesAsCsvResponse(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/DescribeDBInstancesAsCsvResponseBody.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 DescribeDBInstancesAsCsvResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancesAsCsvResponseBody</p>
*/
public class DescribeDBInstancesAsCsvResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDBInstancesAsCsvResponseBody(Builder builder) {
this.items = builder.items;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstancesAsCsvResponseBody 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(DescribeDBInstancesAsCsvResponseBody model) {
this.items = model.items;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of the fields in <strong>DBInstanceAttribute</strong>.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>1AD222E9-E606-4A42-BF6D-8A444291****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDBInstancesAsCsvResponseBody build() {
return new DescribeDBInstancesAsCsvResponseBody(this);
}
}
/**
*
* {@link DescribeDBInstancesAsCsvResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancesAsCsvResponseBody</p>
*/
public static class SlaveZones extends TeaModel {
@com.aliyun.core.annotation.NameInMap("slaveRegion")
private java.util.List<String> slaveRegion;
private SlaveZones(Builder builder) {
this.slaveRegion = builder.slaveRegion;
}
public static Builder builder() {
return new Builder();
}
public static SlaveZones create() {
return builder().build();
}
/**
* @return slaveRegion
*/
public java.util.List<String> getSlaveRegion() {
return this.slaveRegion;
}
public static final class Builder {
private java.util.List<String> slaveRegion;
private Builder() {
}
private Builder(SlaveZones model) {
this.slaveRegion = model.slaveRegion;
}
/**
* slaveRegion.
*/
public Builder slaveRegion(java.util.List<String> slaveRegion) {
this.slaveRegion = slaveRegion;
return this;
}
public SlaveZones build() {
return new SlaveZones(this);
}
}
}
/**
*
* {@link DescribeDBInstancesAsCsvResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancesAsCsvResponseBody</p>
*/
public static class DBInstanceAttribute extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccountMaxQuantity")
private Integer accountMaxQuantity;
@com.aliyun.core.annotation.NameInMap("AccountType")
private String accountType;
@com.aliyun.core.annotation.NameInMap("AvailabilityValue")
private String availabilityValue;
@com.aliyun.core.annotation.NameInMap("Category")
private String category;
@com.aliyun.core.annotation.NameInMap("ConnectionMode")
private String connectionMode;
@com.aliyun.core.annotation.NameInMap("ConnectionString")
private String connectionString;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("DBInstanceCPU")
private String DBInstanceCPU;
@com.aliyun.core.annotation.NameInMap("DBInstanceClass")
private String DBInstanceClass;
@com.aliyun.core.annotation.NameInMap("DBInstanceClassType")
private String DBInstanceClassType;
@com.aliyun.core.annotation.NameInMap("DBInstanceDescription")
private String DBInstanceDescription;
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("DBInstanceMemory")
private Long DBInstanceMemory;
@com.aliyun.core.annotation.NameInMap("DBInstanceNetType")
private String DBInstanceNetType;
@com.aliyun.core.annotation.NameInMap("DBInstanceStatus")
private String DBInstanceStatus;
@com.aliyun.core.annotation.NameInMap("DBInstanceStorage")
private Integer DBInstanceStorage;
@com.aliyun.core.annotation.NameInMap("DBInstanceStorageType")
private String DBInstanceStorageType;
@com.aliyun.core.annotation.NameInMap("DBInstanceType")
private String DBInstanceType;
@com.aliyun.core.annotation.NameInMap("DBMaxQuantity")
private Integer DBMaxQuantity;
@com.aliyun.core.annotation.NameInMap("Engine")
private String engine;
@com.aliyun.core.annotation.NameInMap("EngineVersion")
private String engineVersion;
@com.aliyun.core.annotation.NameInMap("ExpireTime")
private String expireTime;
@com.aliyun.core.annotation.NameInMap("ExportKey")
private String exportKey;
@com.aliyun.core.annotation.NameInMap("GuardDBInstanceId")
private String guardDBInstanceId;
@com.aliyun.core.annotation.NameInMap("IncrementSourceDBInstanceId")
private String incrementSourceDBInstanceId;
@com.aliyun.core.annotation.NameInMap("InstanceNetworkType")
private String instanceNetworkType;
@com.aliyun.core.annotation.NameInMap("LockMode")
private String lockMode;
@com.aliyun.core.annotation.NameInMap("LockReason")
private String lockReason;
@com.aliyun.core.annotation.NameInMap("MaintainTime")
private String maintainTime;
@com.aliyun.core.annotation.NameInMap("MasterInstanceId")
private String masterInstanceId;
@com.aliyun.core.annotation.NameInMap("MaxConnections")
private Integer maxConnections;
@com.aliyun.core.annotation.NameInMap("MaxIOPS")
private Integer maxIOPS;
@com.aliyun.core.annotation.NameInMap("PayType")
private String payType;
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.NameInMap("ReadDelayTime")
private String readDelayTime;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("SecurityIPList")
private String securityIPList;
@com.aliyun.core.annotation.NameInMap("SlaveZones")
private SlaveZones slaveZones;
@com.aliyun.core.annotation.NameInMap("SupportUpgradeAccountType")
private String supportUpgradeAccountType;
@com.aliyun.core.annotation.NameInMap("Tags")
private String tags;
@com.aliyun.core.annotation.NameInMap("TempDBInstanceId")
private String tempDBInstanceId;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private DBInstanceAttribute(Builder builder) {
this.accountMaxQuantity = builder.accountMaxQuantity;
this.accountType = builder.accountType;
this.availabilityValue = builder.availabilityValue;
this.category = builder.category;
this.connectionMode = builder.connectionMode;
this.connectionString = builder.connectionString;
this.creationTime = builder.creationTime;
this.DBInstanceCPU = builder.DBInstanceCPU;
this.DBInstanceClass = builder.DBInstanceClass;
this.DBInstanceClassType = builder.DBInstanceClassType;
this.DBInstanceDescription = builder.DBInstanceDescription;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceMemory = builder.DBInstanceMemory;
this.DBInstanceNetType = builder.DBInstanceNetType;
this.DBInstanceStatus = builder.DBInstanceStatus;
this.DBInstanceStorage = builder.DBInstanceStorage;
this.DBInstanceStorageType = builder.DBInstanceStorageType;
this.DBInstanceType = builder.DBInstanceType;
this.DBMaxQuantity = builder.DBMaxQuantity;
this.engine = builder.engine;
this.engineVersion = builder.engineVersion;
this.expireTime = builder.expireTime;
this.exportKey = builder.exportKey;
this.guardDBInstanceId = builder.guardDBInstanceId;
this.incrementSourceDBInstanceId = builder.incrementSourceDBInstanceId;
this.instanceNetworkType = builder.instanceNetworkType;
this.lockMode = builder.lockMode;
this.lockReason = builder.lockReason;
this.maintainTime = builder.maintainTime;
this.masterInstanceId = builder.masterInstanceId;
this.maxConnections = builder.maxConnections;
this.maxIOPS = builder.maxIOPS;
this.payType = builder.payType;
this.port = builder.port;
this.readDelayTime = builder.readDelayTime;
this.regionId = builder.regionId;
this.securityIPList = builder.securityIPList;
this.slaveZones = builder.slaveZones;
this.supportUpgradeAccountType = builder.supportUpgradeAccountType;
this.tags = builder.tags;
this.tempDBInstanceId = builder.tempDBInstanceId;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceAttribute create() {
return builder().build();
}
/**
* @return accountMaxQuantity
*/
public Integer getAccountMaxQuantity() {
return this.accountMaxQuantity;
}
/**
* @return accountType
*/
public String getAccountType() {
return this.accountType;
}
/**
* @return availabilityValue
*/
public String getAvailabilityValue() {
return this.availabilityValue;
}
/**
* @return category
*/
public String getCategory() {
return this.category;
}
/**
* @return connectionMode
*/
public String getConnectionMode() {
return this.connectionMode;
}
/**
* @return connectionString
*/
public String getConnectionString() {
return this.connectionString;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return DBInstanceCPU
*/
public String getDBInstanceCPU() {
return this.DBInstanceCPU;
}
/**
* @return DBInstanceClass
*/
public String getDBInstanceClass() {
return this.DBInstanceClass;
}
/**
* @return DBInstanceClassType
*/
public String getDBInstanceClassType() {
return this.DBInstanceClassType;
}
/**
* @return DBInstanceDescription
*/
public String getDBInstanceDescription() {
return this.DBInstanceDescription;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBInstanceMemory
*/
public Long getDBInstanceMemory() {
return this.DBInstanceMemory;
}
/**
* @return DBInstanceNetType
*/
public String getDBInstanceNetType() {
return this.DBInstanceNetType;
}
/**
* @return DBInstanceStatus
*/
public String getDBInstanceStatus() {
return this.DBInstanceStatus;
}
/**
* @return DBInstanceStorage
*/
public Integer getDBInstanceStorage() {
return this.DBInstanceStorage;
}
/**
* @return DBInstanceStorageType
*/
public String getDBInstanceStorageType() {
return this.DBInstanceStorageType;
}
/**
* @return DBInstanceType
*/
public String getDBInstanceType() {
return this.DBInstanceType;
}
/**
* @return DBMaxQuantity
*/
public Integer getDBMaxQuantity() {
return this.DBMaxQuantity;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return engineVersion
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
* @return expireTime
*/
public String getExpireTime() {
return this.expireTime;
}
/**
* @return exportKey
*/
public String getExportKey() {
return this.exportKey;
}
/**
* @return guardDBInstanceId
*/
public String getGuardDBInstanceId() {
return this.guardDBInstanceId;
}
/**
* @return incrementSourceDBInstanceId
*/
public String getIncrementSourceDBInstanceId() {
return this.incrementSourceDBInstanceId;
}
/**
* @return instanceNetworkType
*/
public String getInstanceNetworkType() {
return this.instanceNetworkType;
}
/**
* @return lockMode
*/
public String getLockMode() {
return this.lockMode;
}
/**
* @return lockReason
*/
public String getLockReason() {
return this.lockReason;
}
/**
* @return maintainTime
*/
public String getMaintainTime() {
return this.maintainTime;
}
/**
* @return masterInstanceId
*/
public String getMasterInstanceId() {
return this.masterInstanceId;
}
/**
* @return maxConnections
*/
public Integer getMaxConnections() {
return this.maxConnections;
}
/**
* @return maxIOPS
*/
public Integer getMaxIOPS() {
return this.maxIOPS;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return readDelayTime
*/
public String getReadDelayTime() {
return this.readDelayTime;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return securityIPList
*/
public String getSecurityIPList() {
return this.securityIPList;
}
/**
* @return slaveZones
*/
public SlaveZones getSlaveZones() {
return this.slaveZones;
}
/**
* @return supportUpgradeAccountType
*/
public String getSupportUpgradeAccountType() {
return this.supportUpgradeAccountType;
}
/**
* @return tags
*/
public String getTags() {
return this.tags;
}
/**
* @return tempDBInstanceId
*/
public String getTempDBInstanceId() {
return this.tempDBInstanceId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private Integer accountMaxQuantity;
private String accountType;
private String availabilityValue;
private String category;
private String connectionMode;
private String connectionString;
private String creationTime;
private String DBInstanceCPU;
private String DBInstanceClass;
private String DBInstanceClassType;
private String DBInstanceDescription;
private String DBInstanceId;
private Long DBInstanceMemory;
private String DBInstanceNetType;
private String DBInstanceStatus;
private Integer DBInstanceStorage;
private String DBInstanceStorageType;
private String DBInstanceType;
private Integer DBMaxQuantity;
private String engine;
private String engineVersion;
private String expireTime;
private String exportKey;
private String guardDBInstanceId;
private String incrementSourceDBInstanceId;
private String instanceNetworkType;
private String lockMode;
private String lockReason;
private String maintainTime;
private String masterInstanceId;
private Integer maxConnections;
private Integer maxIOPS;
private String payType;
private String port;
private String readDelayTime;
private String regionId;
private String securityIPList;
private SlaveZones slaveZones;
private String supportUpgradeAccountType;
private String tags;
private String tempDBInstanceId;
private String vSwitchId;
private String vpcId;
private String zoneId;
private Builder() {
}
private Builder(DBInstanceAttribute model) {
this.accountMaxQuantity = model.accountMaxQuantity;
this.accountType = model.accountType;
this.availabilityValue = model.availabilityValue;
this.category = model.category;
this.connectionMode = model.connectionMode;
this.connectionString = model.connectionString;
this.creationTime = model.creationTime;
this.DBInstanceCPU = model.DBInstanceCPU;
this.DBInstanceClass = model.DBInstanceClass;
this.DBInstanceClassType = model.DBInstanceClassType;
this.DBInstanceDescription = model.DBInstanceDescription;
this.DBInstanceId = model.DBInstanceId;
this.DBInstanceMemory = model.DBInstanceMemory;
this.DBInstanceNetType = model.DBInstanceNetType;
this.DBInstanceStatus = model.DBInstanceStatus;
this.DBInstanceStorage = model.DBInstanceStorage;
this.DBInstanceStorageType = model.DBInstanceStorageType;
this.DBInstanceType = model.DBInstanceType;
this.DBMaxQuantity = model.DBMaxQuantity;
this.engine = model.engine;
this.engineVersion = model.engineVersion;
this.expireTime = model.expireTime;
this.exportKey = model.exportKey;
this.guardDBInstanceId = model.guardDBInstanceId;
this.incrementSourceDBInstanceId = model.incrementSourceDBInstanceId;
this.instanceNetworkType = model.instanceNetworkType;
this.lockMode = model.lockMode;
this.lockReason = model.lockReason;
this.maintainTime = model.maintainTime;
this.masterInstanceId = model.masterInstanceId;
this.maxConnections = model.maxConnections;
this.maxIOPS = model.maxIOPS;
this.payType = model.payType;
this.port = model.port;
this.readDelayTime = model.readDelayTime;
this.regionId = model.regionId;
this.securityIPList = model.securityIPList;
this.slaveZones = model.slaveZones;
this.supportUpgradeAccountType = model.supportUpgradeAccountType;
this.tags = model.tags;
this.tempDBInstanceId = model.tempDBInstanceId;
this.vSwitchId = model.vSwitchId;
this.vpcId = model.vpcId;
this.zoneId = model.zoneId;
}
/**
* <p>The maximum number of accounts.</p>
*
* <strong>example:</strong>
* <p>500</p>
*/
public Builder accountMaxQuantity(Integer accountMaxQuantity) {
this.accountMaxQuantity = accountMaxQuantity;
return this;
}
/**
* <p>The type of the account.</p>
*
* <strong>example:</strong>
* <p>super</p>
*/
public Builder accountType(String accountType) {
this.accountType = accountType;
return this;
}
/**
* <p>The service availability of the instance in percentage.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder availabilityValue(String availabilityValue) {
this.availabilityValue = availabilityValue;
return this;
}
/**
* <p>The category of the instance.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder category(String category) {
this.category = category;
return this;
}
/**
* <p>The connection mode of the instance. Valid values:</p>
* <ul>
* <li><strong>Performance</strong>: standard mode.</li>
* <li><strong>Safety</strong>: enhanced mode</li>
* </ul>
*
* <strong>example:</strong>
* <p>Performance</p>
*/
public Builder connectionMode(String connectionMode) {
this.connectionMode = connectionMode;
return this;
}
/**
* <p>The internal endpoint.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx.mysql.rds.aliyuncs.com</p>
*/
public Builder connectionString(String connectionString) {
this.connectionString = connectionString;
return this;
}
/**
* <p>The creation time.</p>
*
* <strong>example:</strong>
* <p>2011-05-30T12:11:04Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The number of CPU cores.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder DBInstanceCPU(String DBInstanceCPU) {
this.DBInstanceCPU = DBInstanceCPU;
return this;
}
/**
* <p>The instance type of the instance.</p>
*
* <strong>example:</strong>
* <p>rds.mys2.small</p>
*/
public Builder DBInstanceClass(String DBInstanceClass) {
this.DBInstanceClass = DBInstanceClass;
return this;
}
/**
* <p>The instance family.</p>
*
* <strong>example:</strong>
* <p>s</p>
*/
public Builder DBInstanceClassType(String DBInstanceClassType) {
this.DBInstanceClassType = DBInstanceClassType;
return this;
}
/**
* <p>The instance description.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder DBInstanceDescription(String DBInstanceDescription) {
this.DBInstanceDescription = DBInstanceDescription;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The memory capacity of the instance. Unit: MB.</p>
*
* <strong>example:</strong>
* <p>4096</p>
*/
public Builder DBInstanceMemory(Long DBInstanceMemory) {
this.DBInstanceMemory = DBInstanceMemory;
return this;
}
/**
* <p>The network type of 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.DBInstanceNetType = DBInstanceNetType;
return this;
}
/**
* <p>The instance status.</p>
*
* <strong>example:</strong>
* <p>Running</p>
*/
public Builder DBInstanceStatus(String DBInstanceStatus) {
this.DBInstanceStatus = DBInstanceStatus;
return this;
}
/**
* <p>The storage capacity of the instance. Unit: GB.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder DBInstanceStorage(Integer DBInstanceStorage) {
this.DBInstanceStorage = DBInstanceStorage;
return this;
}
/**
* DBInstanceStorageType.
*/
public Builder DBInstanceStorageType(String DBInstanceStorageType) {
this.DBInstanceStorageType = DBInstanceStorageType;
return this;
}
/**
* <p>The instance type. Valid values:</p>
* <ul>
* <li><strong>Primary</strong>: primary instance</li>
* <li><strong>ReadOnly</strong>: read-only instance</li>
* <li><strong>Guard</strong>: disaster recovery instance</li>
* <li><strong>Temp</strong>: temporary instance</li>
* </ul>
*
* <strong>example:</strong>
* <p>Primary</p>
*/
public Builder DBInstanceType(String DBInstanceType) {
this.DBInstanceType = DBInstanceType;
return this;
}
/**
* <p>The maximum number of databases that can be created on the instance.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder DBMaxQuantity(Integer DBMaxQuantity) {
this.DBMaxQuantity = DBMaxQuantity;
return this;
}
/**
* <p>The database engine of the instance.</p>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engine(String engine) {
this.engine = engine;
return this;
}
/**
* <p>The engine version.</p>
*
* <strong>example:</strong>
* <p>8.0</p>
*/
public Builder engineVersion(String engineVersion) {
this.engineVersion = engineVersion;
return this;
}
/**
* <p>The expiration time.</p>
*
* <strong>example:</strong>
* <p>2019-03-27T16:00:00Z</p>
*/
public Builder expireTime(String expireTime) {
this.expireTime = expireTime;
return this;
}
/**
* <p>A deprecated parameter. You do not need to specify this parameter.</p>
*
* <strong>example:</strong>
* <p>API</p>
*/
public Builder exportKey(String exportKey) {
this.exportKey = exportKey;
return this;
}
/**
* <p>The ID of the disaster recovery instance that is attached to the primary instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf64zsuxxxxxxxxxx</p>
*/
public Builder guardDBInstanceId(String guardDBInstanceId) {
this.guardDBInstanceId = guardDBInstanceId;
return this;
}
/**
* <p>The ID of the instance from which incremental data comes. The incremental data of a disaster recovery instance comes from its primary instance. The incremental data of a read-only instance comes from its primary instance. If this parameter is not returned, the instance is a primary instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder incrementSourceDBInstanceId(String incrementSourceDBInstanceId) {
this.incrementSourceDBInstanceId = incrementSourceDBInstanceId;
return this;
}
/**
* <p>The network type.</p>
*
* <strong>example:</strong>
* <p>VPC</p>
*/
public Builder instanceNetworkType(String instanceNetworkType) {
this.instanceNetworkType = instanceNetworkType;
return this;
}
/**
* <p>The lock mode of the instance.</p>
*
* <strong>example:</strong>
* <p>Unlock</p>
*/
public Builder lockMode(String lockMode) {
this.lockMode = lockMode;
return this;
}
/**
* <p>The reason why the instance was locked.</p>
*
* <strong>example:</strong>
* <p>instance_expired</p>
*/
public Builder lockReason(String lockReason) {
this.lockReason = lockReason;
return this;
}
/**
* <p>The maintenance window of the instance. The time follows the ISO 8601 standard and is displayed in UTC. In the ApsaraDB RDS console, the maintenance window is displayed in UTC+8.</p>
*
* <strong>example:</strong>
* <p>00:00Z-02:00Z</p>
*/
public Builder maintainTime(String maintainTime) {
this.maintainTime = maintainTime;
return this;
}
/**
* <p>The primary instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder masterInstanceId(String masterInstanceId) {
this.masterInstanceId = masterInstanceId;
return this;
}
/**
* <p>The maximum number of concurrent connections.</p>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder maxConnections(Integer maxConnections) {
this.maxConnections = maxConnections;
return this;
}
/**
* <p>The maximum number of I/O requests per second.</p>
*
* <strong>example:</strong>
* <p>150</p>
*/
public Builder maxIOPS(Integer maxIOPS) {
this.maxIOPS = maxIOPS;
return this;
}
/**
* <p>The billing method of the instance.</p>
*
* <strong>example:</strong>
* <p>Postpaid</p>
*/
public Builder payType(String payType) {
this.payType = payType;
return this;
}
/**
* <p>The port that is used to connect to the instance over an internal network.</p>
*
* <strong>example:</strong>
* <p>3306</p>
*/
public Builder port(String port) {
this.port = port;
return this;
}
/**
* <p>The latency of data replication from the primary instance to the read-only instance. This parameter is valid for read-only instances.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder readDelayTime(String readDelayTime) {
this.readDelayTime = readDelayTime;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The IP addresses in the whitelist.</p>
*
* <strong>example:</strong>
* <p>42.xx.xx.xx</p>
*/
public Builder securityIPList(String securityIPList) {
this.securityIPList = securityIPList;
return this;
}
/**
* <p>A deprecated parameter. You do not need to specify this parameter.</p>
*/
public Builder slaveZones(SlaveZones slaveZones) {
this.slaveZones = slaveZones;
return this;
}
/**
* <p>N/A.</p>
*
* <strong>example:</strong>
* <p>No</p>
*/
public Builder supportUpgradeAccountType(String supportUpgradeAccountType) {
this.supportUpgradeAccountType = supportUpgradeAccountType;
return this;
}
/**
* <p>The tags.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder tags(String tags) {
this.tags = tags;
return this;
}
/**
* <p>The ID of the temporary instance that is attached to the primary instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf64zsuxxxxxxxxxx</p>
*/
public Builder tempDBInstanceId(String tempDBInstanceId) {
this.tempDBInstanceId = tempDBInstanceId;
return this;
}
/**
* <p>The vSwitch ID.</p>
*
* <strong>example:</strong>
* <p>vsw-uf6adz52c2pxxxxxxxxxx</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The virtual private cloud (VPC) ID.</p>
*
* <strong>example:</strong>
* <p>vpc-uf6f7l4fg90xxxxxxxxxx</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* <p>The zone ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-h</p>
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public DBInstanceAttribute build() {
return new DBInstanceAttribute(this);
}
}
}
/**
*
* {@link DescribeDBInstancesAsCsvResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancesAsCsvResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceAttribute")
private java.util.List<DBInstanceAttribute> DBInstanceAttribute;
private Items(Builder builder) {
this.DBInstanceAttribute = builder.DBInstanceAttribute;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return DBInstanceAttribute
*/
public java.util.List<DBInstanceAttribute> getDBInstanceAttribute() {
return this.DBInstanceAttribute;
}
public static final class Builder {
private java.util.List<DBInstanceAttribute> DBInstanceAttribute;
private Builder() {
}
private Builder(Items model) {
this.DBInstanceAttribute = model.DBInstanceAttribute;
}
/**
* DBInstanceAttribute.
*/
public Builder DBInstanceAttribute(java.util.List<DBInstanceAttribute> DBInstanceAttribute) {
this.DBInstanceAttribute = DBInstanceAttribute;
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/DescribeDBInstancesByExpireTimeRequest.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 DescribeDBInstancesByExpireTimeRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstancesByExpireTimeRequest</p>
*/
public class DescribeDBInstancesByExpireTimeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ExpirePeriod")
@com.aliyun.core.annotation.Validation(maximum = 180)
private Integer expirePeriod;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Expired")
private Boolean expired;
@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("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@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 DescribeDBInstancesByExpireTimeRequest(Builder builder) {
super(builder);
this.expirePeriod = builder.expirePeriod;
this.expired = builder.expired;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
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 DescribeDBInstancesByExpireTimeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return expirePeriod
*/
public Integer getExpirePeriod() {
return this.expirePeriod;
}
/**
* @return expired
*/
public Boolean getExpired() {
return this.expired;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @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<DescribeDBInstancesByExpireTimeRequest, Builder> {
private Integer expirePeriod;
private Boolean expired;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String tags;
private String proxyId;
private Builder() {
super();
}
private Builder(DescribeDBInstancesByExpireTimeRequest request) {
super(request);
this.expirePeriod = request.expirePeriod;
this.expired = request.expired;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tags = request.tags;
this.proxyId = request.proxyId;
}
/**
* <p>The number of remaining days for which the instances are available. Valid values: <strong>0 to 180</strong>.</p>
*
* <strong>example:</strong>
* <p>180</p>
*/
public Builder expirePeriod(Integer expirePeriod) {
this.putQueryParameter("ExpirePeriod", expirePeriod);
this.expirePeriod = expirePeriod;
return this;
}
/**
* <p>Specifies whether to query instances that have expired. Valid values:</p>
* <ul>
* <li><strong>True</strong>: queries instances that have expired.</li>
* <li><strong>False</strong>: does not query instances that have expired.</li>
* </ul>
*
* <strong>example:</strong>
* <p>True</p>
*/
public Builder expired(Boolean expired) {
this.putQueryParameter("Expired", expired);
this.expired = expired;
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 number of the page to return. Valid values: any <strong>non-zero</strong> positive integer.</p>
* <p>Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page. Valid values: <strong>1 to 100</strong>.</p>
* <p>Default value: <strong>30</strong>.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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. You can call the DescribeDBInstanceAttribute operation to obtain 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 tag that is added to the instance. Each tag is a key-value pair that consists of two parts: TagKey and TagValue. You can specify a maximum of five tags in the following format for each request: <code>{"key1":"value1","key2":"value2"...}</code>.</p>
*
* <strong>example:</strong>
* <p>{"key1":"value1"}</p>
*/
public Builder tags(String tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
/**
* <p>A deprecated parameter. You do not need to configure this parameter.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder proxyId(String proxyId) {
this.putQueryParameter("proxyId", proxyId);
this.proxyId = proxyId;
return this;
}
@Override
public DescribeDBInstancesByExpireTimeRequest build() {
return new DescribeDBInstancesByExpireTimeRequest(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/DescribeDBInstancesByExpireTimeResponse.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 DescribeDBInstancesByExpireTimeResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstancesByExpireTimeResponse</p>
*/
public class DescribeDBInstancesByExpireTimeResponse 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 DescribeDBInstancesByExpireTimeResponseBody body;
private DescribeDBInstancesByExpireTimeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstancesByExpireTimeResponse 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 DescribeDBInstancesByExpireTimeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstancesByExpireTimeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstancesByExpireTimeResponseBody body);
@Override
DescribeDBInstancesByExpireTimeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstancesByExpireTimeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstancesByExpireTimeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstancesByExpireTimeResponse 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(DescribeDBInstancesByExpireTimeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstancesByExpireTimeResponse build() {
return new DescribeDBInstancesByExpireTimeResponse(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/DescribeDBInstancesByExpireTimeResponseBody.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 DescribeDBInstancesByExpireTimeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancesByExpireTimeResponseBody</p>
*/
public class DescribeDBInstancesByExpireTimeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeDBInstancesByExpireTimeResponseBody(Builder builder) {
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.requestId = builder.requestId;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstancesByExpireTimeResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private Items items;
private Integer pageNumber;
private Integer pageRecordCount;
private String requestId;
private Integer totalRecordCount;
private Builder() {
}
private Builder(DescribeDBInstancesByExpireTimeResponseBody model) {
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageRecordCount = model.pageRecordCount;
this.requestId = model.requestId;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>The details of the instances.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The page number of the returned page. Valid values: any <strong>non-zero</strong> positive integer.</p>
* <p>Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of instances returned on the current page.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
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 total number of returned entries.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeDBInstancesByExpireTimeResponseBody build() {
return new DescribeDBInstancesByExpireTimeResponseBody(this);
}
}
/**
*
* {@link DescribeDBInstancesByExpireTimeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancesByExpireTimeResponseBody</p>
*/
public static class DBInstanceExpireTime extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceDescription")
private String DBInstanceDescription;
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("DBInstanceStatus")
private String DBInstanceStatus;
@com.aliyun.core.annotation.NameInMap("ExpireTime")
private String expireTime;
@com.aliyun.core.annotation.NameInMap("LockMode")
private String lockMode;
@com.aliyun.core.annotation.NameInMap("PayType")
private String payType;
private DBInstanceExpireTime(Builder builder) {
this.DBInstanceDescription = builder.DBInstanceDescription;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceStatus = builder.DBInstanceStatus;
this.expireTime = builder.expireTime;
this.lockMode = builder.lockMode;
this.payType = builder.payType;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceExpireTime create() {
return builder().build();
}
/**
* @return DBInstanceDescription
*/
public String getDBInstanceDescription() {
return this.DBInstanceDescription;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBInstanceStatus
*/
public String getDBInstanceStatus() {
return this.DBInstanceStatus;
}
/**
* @return expireTime
*/
public String getExpireTime() {
return this.expireTime;
}
/**
* @return lockMode
*/
public String getLockMode() {
return this.lockMode;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
public static final class Builder {
private String DBInstanceDescription;
private String DBInstanceId;
private String DBInstanceStatus;
private String expireTime;
private String lockMode;
private String payType;
private Builder() {
}
private Builder(DBInstanceExpireTime model) {
this.DBInstanceDescription = model.DBInstanceDescription;
this.DBInstanceId = model.DBInstanceId;
this.DBInstanceStatus = model.DBInstanceStatus;
this.expireTime = model.expireTime;
this.lockMode = model.lockMode;
this.payType = model.payType;
}
/**
* <p>The description of the instance.</p>
*
* <strong>example:</strong>
* <p>Test database</p>
*/
public Builder DBInstanceDescription(String DBInstanceDescription) {
this.DBInstanceDescription = DBInstanceDescription;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The status of the instance. For more information, see <a href="https://help.aliyun.com/document_detail/26315.html">Instance state table</a>.</p>
*
* <strong>example:</strong>
* <p>Running</p>
*/
public Builder DBInstanceStatus(String DBInstanceStatus) {
this.DBInstanceStatus = DBInstanceStatus;
return this;
}
/**
* <p>The expiration time of the instance. 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>: Pay-as-you-go instances never expire.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2019-03-27T16:00:00Z</p>
*/
public Builder expireTime(String expireTime) {
this.expireTime = expireTime;
return this;
}
/**
* <p>The lock mode of the instance. Valid values:</p>
* <ul>
* <li><strong>Unlock</strong>: The instance is not locked.</li>
* <li><strong>ManualLock</strong>: The instance is manually locked.</li>
* <li><strong>LockByExpiration</strong>: The instance is automatically locked after it expires.</li>
* <li><strong>LockByRestoration</strong>: The instance is automatically locked before it is rolled back.</li>
* <li><strong>LockByDiskQuota</strong>: The instance is automatically locked after its storage capacity is exhausted.</li>
* <li><strong>LockReadInstanceByDiskQuota</strong>: The instance is a read-only instance and is automatically locked after its storage capacity is exhausted.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Unlock</p>
*/
public Builder lockMode(String lockMode) {
this.lockMode = lockMode;
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>
*
* <strong>example:</strong>
* <p>Prepaid</p>
*/
public Builder payType(String payType) {
this.payType = payType;
return this;
}
public DBInstanceExpireTime build() {
return new DBInstanceExpireTime(this);
}
}
}
/**
*
* {@link DescribeDBInstancesByExpireTimeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancesByExpireTimeResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceExpireTime")
private java.util.List<DBInstanceExpireTime> DBInstanceExpireTime;
private Items(Builder builder) {
this.DBInstanceExpireTime = builder.DBInstanceExpireTime;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return DBInstanceExpireTime
*/
public java.util.List<DBInstanceExpireTime> getDBInstanceExpireTime() {
return this.DBInstanceExpireTime;
}
public static final class Builder {
private java.util.List<DBInstanceExpireTime> DBInstanceExpireTime;
private Builder() {
}
private Builder(Items model) {
this.DBInstanceExpireTime = model.DBInstanceExpireTime;
}
/**
* DBInstanceExpireTime.
*/
public Builder DBInstanceExpireTime(java.util.List<DBInstanceExpireTime> DBInstanceExpireTime) {
this.DBInstanceExpireTime = DBInstanceExpireTime;
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/DescribeDBInstancesByPerformanceRequest.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 DescribeDBInstancesByPerformanceRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstancesByPerformanceRequest</p>
*/
public class DescribeDBInstancesByPerformanceRequest 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")
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("PageNumber")
@com.aliyun.core.annotation.Validation(maximum = 2147483647)
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@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("SortKey")
private String sortKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SortMethod")
private String sortMethod;
@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 DescribeDBInstancesByPerformanceRequest(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.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.sortKey = builder.sortKey;
this.sortMethod = builder.sortMethod;
this.tags = builder.tags;
this.proxyId = builder.proxyId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstancesByPerformanceRequest 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 pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @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 sortKey
*/
public String getSortKey() {
return this.sortKey;
}
/**
* @return sortMethod
*/
public String getSortMethod() {
return this.sortMethod;
}
/**
* @return tags
*/
public String getTags() {
return this.tags;
}
/**
* @return proxyId
*/
public String getProxyId() {
return this.proxyId;
}
public static final class Builder extends Request.Builder<DescribeDBInstancesByPerformanceRequest, Builder> {
private java.util.List<Tag> tag;
private String clientToken;
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String sortKey;
private String sortMethod;
private String tags;
private String proxyId;
private Builder() {
super();
}
private Builder(DescribeDBInstancesByPerformanceRequest request) {
super(request);
this.tag = request.tag;
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.sortKey = request.sortKey;
this.sortMethod = request.sortMethod;
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 value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCzxxxxxx</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxx</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 number of the page to return. Valid values: any non-zero positive integer.</p>
* <p>Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page. Valid values: <strong>5</strong> to <strong>100</strong>.</p>
* <p>Default value: <strong>30</strong>.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the instance. 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>
*
* <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;
}
/**
* 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 sorting basis.</p>
*
* <strong>example:</strong>
* <p>CPU_Usage</p>
*/
public Builder sortKey(String sortKey) {
this.putQueryParameter("SortKey", sortKey);
this.sortKey = sortKey;
return this;
}
/**
* <p>The sorting method.</p>
*
* <strong>example:</strong>
* <p>ASC</p>
*/
public Builder sortMethod(String sortMethod) {
this.putQueryParameter("SortMethod", sortMethod);
this.sortMethod = sortMethod;
return this;
}
/**
* <p>The tags that are added to the instances. Each tag is a key-value pair that consists of two parts: TagKey and TagValue. Format: <code>{"key1":"value1"}</code>.</p>
*
* <strong>example:</strong>
* <p>{"key1":"value1"}</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 DescribeDBInstancesByPerformanceRequest build() {
return new DescribeDBInstancesByPerformanceRequest(this);
}
}
/**
*
* {@link DescribeDBInstancesByPerformanceRequest} extends {@link TeaModel}
*
* <p>DescribeDBInstancesByPerformanceRequest</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 key of tag 1 that is added to the instances.</p>
*
* <strong>example:</strong>
* <p>key1</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag 1 that is added to the instances.</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/DescribeDBInstancesByPerformanceResponse.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 DescribeDBInstancesByPerformanceResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstancesByPerformanceResponse</p>
*/
public class DescribeDBInstancesByPerformanceResponse 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 DescribeDBInstancesByPerformanceResponseBody body;
private DescribeDBInstancesByPerformanceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstancesByPerformanceResponse 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 DescribeDBInstancesByPerformanceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstancesByPerformanceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstancesByPerformanceResponseBody body);
@Override
DescribeDBInstancesByPerformanceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstancesByPerformanceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstancesByPerformanceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstancesByPerformanceResponse 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(DescribeDBInstancesByPerformanceResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstancesByPerformanceResponse build() {
return new DescribeDBInstancesByPerformanceResponse(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/DescribeDBInstancesByPerformanceResponseBody.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 DescribeDBInstancesByPerformanceResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancesByPerformanceResponseBody</p>
*/
public class DescribeDBInstancesByPerformanceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeDBInstancesByPerformanceResponseBody(Builder builder) {
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.requestId = builder.requestId;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstancesByPerformanceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private Items items;
private Integer pageNumber;
private Integer pageRecordCount;
private String requestId;
private Integer totalRecordCount;
private Builder() {
}
private Builder(DescribeDBInstancesByPerformanceResponseBody model) {
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageRecordCount = model.pageRecordCount;
this.requestId = model.requestId;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>The details about the instance.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>28</p>
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>23907437-79B9-411A-9EE6-75A8F0F1C619</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>28</p>
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeDBInstancesByPerformanceResponseBody build() {
return new DescribeDBInstancesByPerformanceResponseBody(this);
}
}
/**
*
* {@link DescribeDBInstancesByPerformanceResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancesByPerformanceResponseBody</p>
*/
public static class DBInstancePerformance extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CPUUsage")
private String CPUUsage;
@com.aliyun.core.annotation.NameInMap("DBInstanceDescription")
private String DBInstanceDescription;
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("DiskUsage")
private String diskUsage;
@com.aliyun.core.annotation.NameInMap("IOPSUsage")
private String IOPSUsage;
@com.aliyun.core.annotation.NameInMap("SessionUsage")
private String sessionUsage;
private DBInstancePerformance(Builder builder) {
this.CPUUsage = builder.CPUUsage;
this.DBInstanceDescription = builder.DBInstanceDescription;
this.DBInstanceId = builder.DBInstanceId;
this.diskUsage = builder.diskUsage;
this.IOPSUsage = builder.IOPSUsage;
this.sessionUsage = builder.sessionUsage;
}
public static Builder builder() {
return new Builder();
}
public static DBInstancePerformance create() {
return builder().build();
}
/**
* @return CPUUsage
*/
public String getCPUUsage() {
return this.CPUUsage;
}
/**
* @return DBInstanceDescription
*/
public String getDBInstanceDescription() {
return this.DBInstanceDescription;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return diskUsage
*/
public String getDiskUsage() {
return this.diskUsage;
}
/**
* @return IOPSUsage
*/
public String getIOPSUsage() {
return this.IOPSUsage;
}
/**
* @return sessionUsage
*/
public String getSessionUsage() {
return this.sessionUsage;
}
public static final class Builder {
private String CPUUsage;
private String DBInstanceDescription;
private String DBInstanceId;
private String diskUsage;
private String IOPSUsage;
private String sessionUsage;
private Builder() {
}
private Builder(DBInstancePerformance model) {
this.CPUUsage = model.CPUUsage;
this.DBInstanceDescription = model.DBInstanceDescription;
this.DBInstanceId = model.DBInstanceId;
this.diskUsage = model.diskUsage;
this.IOPSUsage = model.IOPSUsage;
this.sessionUsage = model.sessionUsage;
}
/**
* <p>The CPU utilization of the instance in percentage.</p>
*
* <strong>example:</strong>
* <p>0.70</p>
*/
public Builder CPUUsage(String CPUUsage) {
this.CPUUsage = CPUUsage;
return this;
}
/**
* <p>The name of the instance.</p>
*
* <strong>example:</strong>
* <p>DatabaseTest</p>
*/
public Builder DBInstanceDescription(String DBInstanceDescription) {
this.DBInstanceDescription = DBInstanceDescription;
return this;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The disk usage of the instance in percentage.</p>
*
* <strong>example:</strong>
* <p>14.56</p>
*/
public Builder diskUsage(String diskUsage) {
this.diskUsage = diskUsage;
return this;
}
/**
* <p>The IOPS usage of the instance in percentage.</p>
*
* <strong>example:</strong>
* <p>0.15</p>
*/
public Builder IOPSUsage(String IOPSUsage) {
this.IOPSUsage = IOPSUsage;
return this;
}
/**
* <p>The number of sessions.</p>
*
* <strong>example:</strong>
* <p>0.10</p>
*/
public Builder sessionUsage(String sessionUsage) {
this.sessionUsage = sessionUsage;
return this;
}
public DBInstancePerformance build() {
return new DBInstancePerformance(this);
}
}
}
/**
*
* {@link DescribeDBInstancesByPerformanceResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancesByPerformanceResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstancePerformance")
private java.util.List<DBInstancePerformance> DBInstancePerformance;
private Items(Builder builder) {
this.DBInstancePerformance = builder.DBInstancePerformance;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return DBInstancePerformance
*/
public java.util.List<DBInstancePerformance> getDBInstancePerformance() {
return this.DBInstancePerformance;
}
public static final class Builder {
private java.util.List<DBInstancePerformance> DBInstancePerformance;
private Builder() {
}
private Builder(Items model) {
this.DBInstancePerformance = model.DBInstancePerformance;
}
/**
* DBInstancePerformance.
*/
public Builder DBInstancePerformance(java.util.List<DBInstancePerformance> DBInstancePerformance) {
this.DBInstancePerformance = DBInstancePerformance;
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/DescribeDBInstancesForCloneRequest.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 DescribeDBInstancesForCloneRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstancesForCloneRequest</p>
*/
public class DescribeDBInstancesForCloneRequest 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("ConnectionMode")
private String connectionMode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentInstanceId")
private String currentInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceClass")
private String DBInstanceClass;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceStatus")
private String DBInstanceStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceType")
private String DBInstanceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Engine")
private String engine;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EngineVersion")
private String engineVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Expired")
private String expired;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceNetworkType")
private String instanceNetworkType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NodeType")
private String nodeType;
@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("PageNumber")
@com.aliyun.core.annotation.Validation(maximum = 2147483647)
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PayType")
private String payType;
@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("SearchKey")
private String searchKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("proxyId")
private String proxyId;
private DescribeDBInstancesForCloneRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.connectionMode = builder.connectionMode;
this.currentInstanceId = builder.currentInstanceId;
this.DBInstanceClass = builder.DBInstanceClass;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceStatus = builder.DBInstanceStatus;
this.DBInstanceType = builder.DBInstanceType;
this.engine = builder.engine;
this.engineVersion = builder.engineVersion;
this.expired = builder.expired;
this.instanceNetworkType = builder.instanceNetworkType;
this.nodeType = builder.nodeType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.payType = builder.payType;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.searchKey = builder.searchKey;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
this.zoneId = builder.zoneId;
this.proxyId = builder.proxyId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstancesForCloneRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return connectionMode
*/
public String getConnectionMode() {
return this.connectionMode;
}
/**
* @return currentInstanceId
*/
public String getCurrentInstanceId() {
return this.currentInstanceId;
}
/**
* @return DBInstanceClass
*/
public String getDBInstanceClass() {
return this.DBInstanceClass;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBInstanceStatus
*/
public String getDBInstanceStatus() {
return this.DBInstanceStatus;
}
/**
* @return DBInstanceType
*/
public String getDBInstanceType() {
return this.DBInstanceType;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return engineVersion
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
* @return expired
*/
public String getExpired() {
return this.expired;
}
/**
* @return instanceNetworkType
*/
public String getInstanceNetworkType() {
return this.instanceNetworkType;
}
/**
* @return nodeType
*/
public String getNodeType() {
return this.nodeType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @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 searchKey
*/
public String getSearchKey() {
return this.searchKey;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
/**
* @return proxyId
*/
public String getProxyId() {
return this.proxyId;
}
public static final class Builder extends Request.Builder<DescribeDBInstancesForCloneRequest, Builder> {
private String clientToken;
private String connectionMode;
private String currentInstanceId;
private String DBInstanceClass;
private String DBInstanceId;
private String DBInstanceStatus;
private String DBInstanceType;
private String engine;
private String engineVersion;
private String expired;
private String instanceNetworkType;
private String nodeType;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String payType;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String searchKey;
private String vSwitchId;
private String vpcId;
private String zoneId;
private String proxyId;
private Builder() {
super();
}
private Builder(DescribeDBInstancesForCloneRequest request) {
super(request);
this.clientToken = request.clientToken;
this.connectionMode = request.connectionMode;
this.currentInstanceId = request.currentInstanceId;
this.DBInstanceClass = request.DBInstanceClass;
this.DBInstanceId = request.DBInstanceId;
this.DBInstanceStatus = request.DBInstanceStatus;
this.DBInstanceType = request.DBInstanceType;
this.engine = request.engine;
this.engineVersion = request.engineVersion;
this.expired = request.expired;
this.instanceNetworkType = request.instanceNetworkType;
this.nodeType = request.nodeType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.payType = request.payType;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.searchKey = request.searchKey;
this.vSwitchId = request.vSwitchId;
this.vpcId = request.vpcId;
this.zoneId = request.zoneId;
this.proxyId = request.proxyId;
}
/**
* <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 instance. Valid values:</p>
* <ul>
* <li><strong>Standard</strong>: standard mode</li>
* <li><strong>Safe</strong>: database proxy mode</li>
* </ul>
* <p>By default, this operation queries the instances that use any of the supported connection modes.</p>
*
* <strong>example:</strong>
* <p>Standard</p>
*/
public Builder connectionMode(String connectionMode) {
this.putQueryParameter("ConnectionMode", connectionMode);
this.connectionMode = connectionMode;
return this;
}
/**
* <p>The ID of the current instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder currentInstanceId(String currentInstanceId) {
this.putQueryParameter("CurrentInstanceId", currentInstanceId);
this.currentInstanceId = currentInstanceId;
return this;
}
/**
* <p>The instance type of the instance. For more information, see <a href="https://help.aliyun.com/document_detail/26312.html">Instance types</a>.</p>
*
* <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 ID of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The status of the instance. For more information, see <a href="https://help.aliyun.com/document_detail/26315.html">Instance state table</a>.</p>
*
* <strong>example:</strong>
* <p>Running</p>
*/
public Builder DBInstanceStatus(String DBInstanceStatus) {
this.putQueryParameter("DBInstanceStatus", DBInstanceStatus);
this.DBInstanceStatus = DBInstanceStatus;
return this;
}
/**
* <p>The role of the instance that you want to query. Valid values:</p>
* <ul>
* <li><strong>Primary</strong>: primary instance</li>
* <li><strong>Readonly</strong>: read-only instance</li>
* <li><strong>Guard</strong>: disaster recovery instance</li>
* <li><strong>Temp</strong>: temporary instance</li>
* </ul>
* <p>By default, this operation queries the instances of all roles.</p>
*
* <strong>example:</strong>
* <p>Primary</p>
*/
public Builder DBInstanceType(String DBInstanceType) {
this.putQueryParameter("DBInstanceType", DBInstanceType);
this.DBInstanceType = DBInstanceType;
return this;
}
/**
* <p>The database engine of the instance. Valid values:</p>
* <ul>
* <li>MySQL</li>
* <li>SQLServer</li>
* <li>PostgreSQL</li>
* <li>PPAS</li>
* <li>MariaDB</li>
* </ul>
* <p>By default, this operation queries the instances that run any of the supported database engine types.</p>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engine(String engine) {
this.putQueryParameter("Engine", engine);
this.engine = engine;
return this;
}
/**
* <p>The version of the database engine.</p>
*
* <strong>example:</strong>
* <p>5.7</p>
*/
public Builder engineVersion(String engineVersion) {
this.putQueryParameter("EngineVersion", engineVersion);
this.engineVersion = engineVersion;
return this;
}
/**
* <p>Specifies whether the instance expires. Valid values:</p>
* <ul>
* <li><strong>True</strong>: queries the instances that have expired.</li>
* <li><strong>False</strong>: does not query instances that have expired.</li>
* </ul>
*
* <strong>example:</strong>
* <p>True</p>
*/
public Builder expired(String expired) {
this.putQueryParameter("Expired", expired);
this.expired = expired;
return this;
}
/**
* <p>The network type of the instance. Valid values:</p>
* <ul>
* <li><strong>Classic</strong></li>
* <li><strong>VPC</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Classic</p>
*/
public Builder instanceNetworkType(String instanceNetworkType) {
this.putQueryParameter("InstanceNetworkType", instanceNetworkType);
this.instanceNetworkType = instanceNetworkType;
return this;
}
/**
* <p>The type of the database node. Valid values:</p>
* <ul>
* <li><strong>Master</strong>: the primary node</li>
* <li><strong>Slave</strong>: the secondary node</li>
* </ul>
*
* <strong>example:</strong>
* <p>Master</p>
*/
public Builder nodeType(String nodeType) {
this.putQueryParameter("NodeType", nodeType);
this.nodeType = nodeType;
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 number of the page to return.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page. Valid values: <strong>1 to 100</strong>.</p>
* <p>Default value: <strong>30</strong>.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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>By default, this operation queries the instances that use any of the supported billing methods.</p>
*
* <strong>example:</strong>
* <p>Postpaid</p>
*/
public Builder payType(String payType) {
this.putQueryParameter("PayType", payType);
this.payType = payType;
return this;
}
/**
* <p>The region ID of the instance.</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;
}
/**
* 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 keyword that is used for the search. The keyword can be part of an instance ID or an instance description.</p>
*
* <strong>example:</strong>
* <p>rm-uf6w</p>
*/
public Builder searchKey(String searchKey) {
this.putQueryParameter("SearchKey", searchKey);
this.searchKey = searchKey;
return this;
}
/**
* <p>The ID of the vSwitch.</p>
*
* <strong>example:</strong>
* <p>vsw-j6csw46bgrgkxxxxxxxxxx</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC).</p>
*
* <strong>example:</strong>
* <p>vpc-j6cjvqms29yxxxxxxxxxx</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
/**
* <p>The zone ID of the instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-h</p>
*/
public Builder zoneId(String zoneId) {
this.putQueryParameter("ZoneId", zoneId);
this.zoneId = zoneId;
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 DescribeDBInstancesForCloneRequest build() {
return new DescribeDBInstancesForCloneRequest(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/DescribeDBInstancesForCloneResponse.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 DescribeDBInstancesForCloneResponse} extends {@link TeaModel}
*
* <p>DescribeDBInstancesForCloneResponse</p>
*/
public class DescribeDBInstancesForCloneResponse 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 DescribeDBInstancesForCloneResponseBody body;
private DescribeDBInstancesForCloneResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDBInstancesForCloneResponse 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 DescribeDBInstancesForCloneResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDBInstancesForCloneResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDBInstancesForCloneResponseBody body);
@Override
DescribeDBInstancesForCloneResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDBInstancesForCloneResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDBInstancesForCloneResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDBInstancesForCloneResponse 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(DescribeDBInstancesForCloneResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDBInstancesForCloneResponse build() {
return new DescribeDBInstancesForCloneResponse(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/DescribeDBInstancesForCloneResponseBody.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 DescribeDBInstancesForCloneResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancesForCloneResponseBody</p>
*/
public class DescribeDBInstancesForCloneResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeDBInstancesForCloneResponseBody(Builder builder) {
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.requestId = builder.requestId;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstancesForCloneResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private Items items;
private Integer pageNumber;
private Integer pageRecordCount;
private String requestId;
private Integer totalRecordCount;
private Builder() {
}
private Builder(DescribeDBInstancesForCloneResponseBody model) {
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageRecordCount = model.pageRecordCount;
this.requestId = model.requestId;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>An array that consists of the details about the instances.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
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>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>120</p>
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeDBInstancesForCloneResponseBody build() {
return new DescribeDBInstancesForCloneResponseBody(this);
}
}
/**
*
* {@link DescribeDBInstancesForCloneResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancesForCloneResponseBody</p>
*/
public static class ReadOnlyDBInstanceId extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
private ReadOnlyDBInstanceId(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
}
public static Builder builder() {
return new Builder();
}
public static ReadOnlyDBInstanceId create() {
return builder().build();
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
public static final class Builder {
private String DBInstanceId;
private Builder() {
}
private Builder(ReadOnlyDBInstanceId model) {
this.DBInstanceId = model.DBInstanceId;
}
/**
* <p>The ID of the read-only instance.</p>
*
* <strong>example:</strong>
* <p>rm-bpxxxxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
public ReadOnlyDBInstanceId build() {
return new ReadOnlyDBInstanceId(this);
}
}
}
/**
*
* {@link DescribeDBInstancesForCloneResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancesForCloneResponseBody</p>
*/
public static class ReadOnlyDBInstanceIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ReadOnlyDBInstanceId")
private java.util.List<ReadOnlyDBInstanceId> readOnlyDBInstanceId;
private ReadOnlyDBInstanceIds(Builder builder) {
this.readOnlyDBInstanceId = builder.readOnlyDBInstanceId;
}
public static Builder builder() {
return new Builder();
}
public static ReadOnlyDBInstanceIds create() {
return builder().build();
}
/**
* @return readOnlyDBInstanceId
*/
public java.util.List<ReadOnlyDBInstanceId> getReadOnlyDBInstanceId() {
return this.readOnlyDBInstanceId;
}
public static final class Builder {
private java.util.List<ReadOnlyDBInstanceId> readOnlyDBInstanceId;
private Builder() {
}
private Builder(ReadOnlyDBInstanceIds model) {
this.readOnlyDBInstanceId = model.readOnlyDBInstanceId;
}
/**
* ReadOnlyDBInstanceId.
*/
public Builder readOnlyDBInstanceId(java.util.List<ReadOnlyDBInstanceId> readOnlyDBInstanceId) {
this.readOnlyDBInstanceId = readOnlyDBInstanceId;
return this;
}
public ReadOnlyDBInstanceIds build() {
return new ReadOnlyDBInstanceIds(this);
}
}
}
/**
*
* {@link DescribeDBInstancesForCloneResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancesForCloneResponseBody</p>
*/
public static class DBInstance extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Category")
private String category;
@com.aliyun.core.annotation.NameInMap("ConnectionMode")
private String connectionMode;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("DBInstanceClass")
private String DBInstanceClass;
@com.aliyun.core.annotation.NameInMap("DBInstanceDescription")
private String DBInstanceDescription;
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("DBInstanceNetType")
private String DBInstanceNetType;
@com.aliyun.core.annotation.NameInMap("DBInstanceStatus")
private String DBInstanceStatus;
@com.aliyun.core.annotation.NameInMap("DBInstanceStorageType")
private String DBInstanceStorageType;
@com.aliyun.core.annotation.NameInMap("DBInstanceType")
private String DBInstanceType;
@com.aliyun.core.annotation.NameInMap("DestroyTime")
private String destroyTime;
@com.aliyun.core.annotation.NameInMap("Engine")
private String engine;
@com.aliyun.core.annotation.NameInMap("EngineVersion")
private String engineVersion;
@com.aliyun.core.annotation.NameInMap("ExpireTime")
private String expireTime;
@com.aliyun.core.annotation.NameInMap("GuardDBInstanceId")
private String guardDBInstanceId;
@com.aliyun.core.annotation.NameInMap("InsId")
private Integer insId;
@com.aliyun.core.annotation.NameInMap("InstanceNetworkType")
private String instanceNetworkType;
@com.aliyun.core.annotation.NameInMap("LockMode")
private String lockMode;
@com.aliyun.core.annotation.NameInMap("LockReason")
private String lockReason;
@com.aliyun.core.annotation.NameInMap("MasterInstanceId")
private String masterInstanceId;
@com.aliyun.core.annotation.NameInMap("MutriORsignle")
private Boolean mutriORsignle;
@com.aliyun.core.annotation.NameInMap("PayType")
private String payType;
@com.aliyun.core.annotation.NameInMap("ReadOnlyDBInstanceIds")
private ReadOnlyDBInstanceIds readOnlyDBInstanceIds;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ReplicateId")
private String replicateId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("TempDBInstanceId")
private String tempDBInstanceId;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("VpcCloudInstanceId")
private String vpcCloudInstanceId;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private DBInstance(Builder builder) {
this.category = builder.category;
this.connectionMode = builder.connectionMode;
this.createTime = builder.createTime;
this.DBInstanceClass = builder.DBInstanceClass;
this.DBInstanceDescription = builder.DBInstanceDescription;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceNetType = builder.DBInstanceNetType;
this.DBInstanceStatus = builder.DBInstanceStatus;
this.DBInstanceStorageType = builder.DBInstanceStorageType;
this.DBInstanceType = builder.DBInstanceType;
this.destroyTime = builder.destroyTime;
this.engine = builder.engine;
this.engineVersion = builder.engineVersion;
this.expireTime = builder.expireTime;
this.guardDBInstanceId = builder.guardDBInstanceId;
this.insId = builder.insId;
this.instanceNetworkType = builder.instanceNetworkType;
this.lockMode = builder.lockMode;
this.lockReason = builder.lockReason;
this.masterInstanceId = builder.masterInstanceId;
this.mutriORsignle = builder.mutriORsignle;
this.payType = builder.payType;
this.readOnlyDBInstanceIds = builder.readOnlyDBInstanceIds;
this.regionId = builder.regionId;
this.replicateId = builder.replicateId;
this.resourceGroupId = builder.resourceGroupId;
this.tempDBInstanceId = builder.tempDBInstanceId;
this.vSwitchId = builder.vSwitchId;
this.vpcCloudInstanceId = builder.vpcCloudInstanceId;
this.vpcId = builder.vpcId;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static DBInstance create() {
return builder().build();
}
/**
* @return category
*/
public String getCategory() {
return this.category;
}
/**
* @return connectionMode
*/
public String getConnectionMode() {
return this.connectionMode;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @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 DBInstanceNetType
*/
public String getDBInstanceNetType() {
return this.DBInstanceNetType;
}
/**
* @return DBInstanceStatus
*/
public String getDBInstanceStatus() {
return this.DBInstanceStatus;
}
/**
* @return DBInstanceStorageType
*/
public String getDBInstanceStorageType() {
return this.DBInstanceStorageType;
}
/**
* @return DBInstanceType
*/
public String getDBInstanceType() {
return this.DBInstanceType;
}
/**
* @return destroyTime
*/
public String getDestroyTime() {
return this.destroyTime;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return engineVersion
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
* @return expireTime
*/
public String getExpireTime() {
return this.expireTime;
}
/**
* @return guardDBInstanceId
*/
public String getGuardDBInstanceId() {
return this.guardDBInstanceId;
}
/**
* @return insId
*/
public Integer getInsId() {
return this.insId;
}
/**
* @return instanceNetworkType
*/
public String getInstanceNetworkType() {
return this.instanceNetworkType;
}
/**
* @return lockMode
*/
public String getLockMode() {
return this.lockMode;
}
/**
* @return lockReason
*/
public String getLockReason() {
return this.lockReason;
}
/**
* @return masterInstanceId
*/
public String getMasterInstanceId() {
return this.masterInstanceId;
}
/**
* @return mutriORsignle
*/
public Boolean getMutriORsignle() {
return this.mutriORsignle;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return readOnlyDBInstanceIds
*/
public ReadOnlyDBInstanceIds getReadOnlyDBInstanceIds() {
return this.readOnlyDBInstanceIds;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return replicateId
*/
public String getReplicateId() {
return this.replicateId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return tempDBInstanceId
*/
public String getTempDBInstanceId() {
return this.tempDBInstanceId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcCloudInstanceId
*/
public String getVpcCloudInstanceId() {
return this.vpcCloudInstanceId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private String category;
private String connectionMode;
private String createTime;
private String DBInstanceClass;
private String DBInstanceDescription;
private String DBInstanceId;
private String DBInstanceNetType;
private String DBInstanceStatus;
private String DBInstanceStorageType;
private String DBInstanceType;
private String destroyTime;
private String engine;
private String engineVersion;
private String expireTime;
private String guardDBInstanceId;
private Integer insId;
private String instanceNetworkType;
private String lockMode;
private String lockReason;
private String masterInstanceId;
private Boolean mutriORsignle;
private String payType;
private ReadOnlyDBInstanceIds readOnlyDBInstanceIds;
private String regionId;
private String replicateId;
private String resourceGroupId;
private String tempDBInstanceId;
private String vSwitchId;
private String vpcCloudInstanceId;
private String vpcId;
private String zoneId;
private Builder() {
}
private Builder(DBInstance model) {
this.category = model.category;
this.connectionMode = model.connectionMode;
this.createTime = model.createTime;
this.DBInstanceClass = model.DBInstanceClass;
this.DBInstanceDescription = model.DBInstanceDescription;
this.DBInstanceId = model.DBInstanceId;
this.DBInstanceNetType = model.DBInstanceNetType;
this.DBInstanceStatus = model.DBInstanceStatus;
this.DBInstanceStorageType = model.DBInstanceStorageType;
this.DBInstanceType = model.DBInstanceType;
this.destroyTime = model.destroyTime;
this.engine = model.engine;
this.engineVersion = model.engineVersion;
this.expireTime = model.expireTime;
this.guardDBInstanceId = model.guardDBInstanceId;
this.insId = model.insId;
this.instanceNetworkType = model.instanceNetworkType;
this.lockMode = model.lockMode;
this.lockReason = model.lockReason;
this.masterInstanceId = model.masterInstanceId;
this.mutriORsignle = model.mutriORsignle;
this.payType = model.payType;
this.readOnlyDBInstanceIds = model.readOnlyDBInstanceIds;
this.regionId = model.regionId;
this.replicateId = model.replicateId;
this.resourceGroupId = model.resourceGroupId;
this.tempDBInstanceId = model.tempDBInstanceId;
this.vSwitchId = model.vSwitchId;
this.vpcCloudInstanceId = model.vpcCloudInstanceId;
this.vpcId = model.vpcId;
this.zoneId = model.zoneId;
}
/**
* <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>Finance</strong>: RDS Enterprise Edition</li>
* </ul>
*
* <strong>example:</strong>
* <p>HighAvailability</p>
*/
public Builder category(String category) {
this.category = category;
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>
*
* <strong>example:</strong>
* <p>Standard</p>
*/
public Builder connectionMode(String connectionMode) {
this.connectionMode = connectionMode;
return this;
}
/**
* <p>The time when the instance was created. 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>
*
* <strong>example:</strong>
* <p>2018-11-05T11:26:02Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The instance type of the instance. For more information, see <a href="https://help.aliyun.com/document_detail/26312.html">Instance types</a>.</p>
*
* <strong>example:</strong>
* <p>mysql.n1.micro.1</p>
*/
public Builder DBInstanceClass(String DBInstanceClass) {
this.DBInstanceClass = DBInstanceClass;
return this;
}
/**
* <p>The name of the instance. It must be 2 to 256 characters in length. The value can contain letters, digits, underscores (_), and hyphens (-). The value must start with a letter.</p>
* <blockquote>
* <p>The value cannot start with http:// or https://.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Test</p>
*/
public Builder DBInstanceDescription(String DBInstanceDescription) {
this.DBInstanceDescription = DBInstanceDescription;
return this;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The network connection type of the instance. Valid values:</p>
* <ul>
* <li><strong>Internet</strong></li>
* <li><strong>Intranet</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Intranet</p>
*/
public Builder DBInstanceNetType(String DBInstanceNetType) {
this.DBInstanceNetType = DBInstanceNetType;
return this;
}
/**
* <p>The status of the instance. For more information, see <a href="https://help.aliyun.com/document_detail/26315.html">Instance state table</a>.</p>
*
* <strong>example:</strong>
* <p>Running</p>
*/
public Builder DBInstanceStatus(String DBInstanceStatus) {
this.DBInstanceStatus = DBInstanceStatus;
return this;
}
/**
* <p>The storage type of the instance. Valid values:</p>
* <ul>
* <li><strong>local_ssd/ephemeral_ssd</strong>: local SSD</li>
* <li><strong>cloud_ssd</strong>: standard SSD.</li>
* <li><strong>cloud_essd</strong>: enhanced SSD (ESSD)</li>
* </ul>
*
* <strong>example:</strong>
* <p>local_ssd</p>
*/
public Builder DBInstanceStorageType(String DBInstanceStorageType) {
this.DBInstanceStorageType = DBInstanceStorageType;
return this;
}
/**
* <p>The role of the instance. Valid values:</p>
* <ul>
* <li><strong>Primary</strong>: primary instance</li>
* <li><strong>Readonly</strong>: read-only instance</li>
* <li><strong>Guard</strong>: disaster recovery instance</li>
* <li><strong>Temp</strong>: temporary instance</li>
* </ul>
*
* <strong>example:</strong>
* <p>Primary</p>
*/
public Builder DBInstanceType(String DBInstanceType) {
this.DBInstanceType = DBInstanceType;
return this;
}
/**
* <p>The time when the instance was destroyed. 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>
*
* <strong>example:</strong>
* <p>2018-12-05T11:26:02Z</p>
*/
public Builder destroyTime(String destroyTime) {
this.destroyTime = destroyTime;
return this;
}
/**
* <p>The database engine of the instance. Valid values:</p>
* <ul>
* <li>MySQL</li>
* <li>SQLServer</li>
* <li>PostgreSQL</li>
* <li>PPAS</li>
* <li>MariaDB</li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engine(String engine) {
this.engine = engine;
return this;
}
/**
* <p>The version of the database engine.</p>
*
* <strong>example:</strong>
* <p>5.7</p>
*/
public Builder engineVersion(String engineVersion) {
this.engineVersion = engineVersion;
return this;
}
/**
* <p>The time when the instance expired. 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>
*
* <strong>example:</strong>
* <p>2018-11-28T11:26:02Z</p>
*/
public Builder expireTime(String expireTime) {
this.expireTime = expireTime;
return this;
}
/**
* <p>The ID of the disaster recovery instance. This parameter is returned only when the instance is a primary instance and has a disaster recovery instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf64zsuxxxxxxxxxx</p>
*/
public Builder guardDBInstanceId(String guardDBInstanceId) {
this.guardDBInstanceId = guardDBInstanceId;
return this;
}
/**
* <p>The ID of the instance role.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder insId(Integer insId) {
this.insId = insId;
return this;
}
/**
* <p>The network type of the instance. Valid values:</p>
* <ul>
* <li><strong>Classic</strong></li>
* <li><strong>VPC</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Classic</p>
*/
public Builder instanceNetworkType(String instanceNetworkType) {
this.instanceNetworkType = instanceNetworkType;
return this;
}
/**
* <p>The lock method of the instance. Valid values:</p>
* <ul>
* <li><strong>Unlock</strong>: The instance is not locked.</li>
* <li><strong>ManualLock</strong>: The instance is manually locked.</li>
* <li><strong>LockByExpiration</strong>: The instance is automatically locked after it expires.</li>
* <li><strong>LockByRestoration</strong>: The instance is automatically locked before a rollback.</li>
* <li><strong>LockByDiskQuota</strong>: The instance is automatically locked because its storage capacity is exhausted and the instance is inaccessible.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Unlock</p>
*/
public Builder lockMode(String lockMode) {
this.lockMode = lockMode;
return this;
}
/**
* <p>The reason why the instance was locked.</p>
*
* <strong>example:</strong>
* <p>instance_expired</p>
*/
public Builder lockReason(String lockReason) {
this.lockReason = lockReason;
return this;
}
/**
* <p>The ID of the primary instance. If the value of this parameter is null, the instance is a primary instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder masterInstanceId(String masterInstanceId) {
this.masterInstanceId = masterInstanceId;
return this;
}
/**
* <p>Indicates whether multi-region deployment is used. Valid values:</p>
* <ul>
* <li><strong>true</strong>: Multi-region deployment is used.</li>
* <li><strong>false</strong>: Multi-region deployment is not used.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder mutriORsignle(Boolean mutriORsignle) {
this.mutriORsignle = mutriORsignle;
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>
*
* <strong>example:</strong>
* <p>Postpaid</p>
*/
public Builder payType(String payType) {
this.payType = payType;
return this;
}
/**
* <p>An array consisting of the IDs of the read-only instances that are attached to the primary instance.</p>
*/
public Builder readOnlyDBInstanceIds(ReadOnlyDBInstanceIds readOnlyDBInstanceIds) {
this.readOnlyDBInstanceIds = readOnlyDBInstanceIds;
return this;
}
/**
* <p>The region ID of the instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>None.</p>
*
* <strong>example:</strong>
* <p>N/A</p>
*/
public Builder replicateId(String replicateId) {
this.replicateId = replicateId;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-acfmyxxxxx</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The ID of the temporary instance.</p>
*
* <strong>example:</strong>
* <p>sub138xxxxx_rm-xxxxx</p>
*/
public Builder tempDBInstanceId(String tempDBInstanceId) {
this.tempDBInstanceId = tempDBInstanceId;
return this;
}
/**
* <p>The ID of the vSwitch.</p>
*
* <strong>example:</strong>
* <p>vsw-uf6adz52c2pxxxxxxxxxx</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the instance in the VPC.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder vpcCloudInstanceId(String vpcCloudInstanceId) {
this.vpcCloudInstanceId = vpcCloudInstanceId;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC).</p>
*
* <strong>example:</strong>
* <p>vpc-bp1opxu1zkhxxxxxxxxxx</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* <p>The zone ID of the instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-h</p>
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public DBInstance build() {
return new DBInstance(this);
}
}
}
/**
*
* {@link DescribeDBInstancesForCloneResponseBody} extends {@link TeaModel}
*
* <p>DescribeDBInstancesForCloneResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstance")
private java.util.List<DBInstance> DBInstance;
private Items(Builder builder) {
this.DBInstance = builder.DBInstance;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return DBInstance
*/
public java.util.List<DBInstance> getDBInstance() {
return this.DBInstance;
}
public static final class Builder {
private java.util.List<DBInstance> DBInstance;
private Builder() {
}
private Builder(Items model) {
this.DBInstance = model.DBInstance;
}
/**
* DBInstance.
*/
public Builder DBInstance(java.util.List<DBInstance> DBInstance) {
this.DBInstance = DBInstance;
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/DescribeDBInstancesRequest.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 DescribeDBInstancesRequest} extends {@link RequestModel}
*
* <p>DescribeDBInstancesRequest</p>
*/
public class DescribeDBInstancesRequest extends Request {
@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("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("DBInstanceClass")
private String DBInstanceClass;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceStatus")
private String DBInstanceStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceType")
private String DBInstanceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DedicatedHostGroupId")
private String dedicatedHostGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DedicatedHostId")
private String dedicatedHostId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Engine")
private String engine;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EngineVersion")
private String engineVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Expired")
private String expired;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Filter")
private String filter;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceLevel")
private Integer instanceLevel;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceNetworkType")
private String instanceNetworkType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaxResults")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1)
private Integer maxResults;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@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("PageNumber")
@com.aliyun.core.annotation.Validation(maximum = 21474836)
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PayType")
private String payType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("QueryAutoRenewal")
private Boolean queryAutoRenewal;
@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("SearchKey")
private String searchKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tags")
private String tags;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("proxyId")
private String proxyId;
private DescribeDBInstancesRequest(Builder builder) {
super(builder);
this.category = builder.category;
this.clientToken = builder.clientToken;
this.connectionMode = builder.connectionMode;
this.connectionString = builder.connectionString;
this.DBInstanceClass = builder.DBInstanceClass;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceStatus = builder.DBInstanceStatus;
this.DBInstanceType = builder.DBInstanceType;
this.dedicatedHostGroupId = builder.dedicatedHostGroupId;
this.dedicatedHostId = builder.dedicatedHostId;
this.engine = builder.engine;
this.engineVersion = builder.engineVersion;
this.expired = builder.expired;
this.filter = builder.filter;
this.instanceLevel = builder.instanceLevel;
this.instanceNetworkType = builder.instanceNetworkType;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.payType = builder.payType;
this.queryAutoRenewal = builder.queryAutoRenewal;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.searchKey = builder.searchKey;
this.tags = builder.tags;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
this.zoneId = builder.zoneId;
this.proxyId = builder.proxyId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBInstancesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return category
*/
public String getCategory() {
return this.category;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return connectionMode
*/
public String getConnectionMode() {
return this.connectionMode;
}
/**
* @return connectionString
*/
public String getConnectionString() {
return this.connectionString;
}
/**
* @return DBInstanceClass
*/
public String getDBInstanceClass() {
return this.DBInstanceClass;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBInstanceStatus
*/
public String getDBInstanceStatus() {
return this.DBInstanceStatus;
}
/**
* @return DBInstanceType
*/
public String getDBInstanceType() {
return this.DBInstanceType;
}
/**
* @return dedicatedHostGroupId
*/
public String getDedicatedHostGroupId() {
return this.dedicatedHostGroupId;
}
/**
* @return dedicatedHostId
*/
public String getDedicatedHostId() {
return this.dedicatedHostId;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return engineVersion
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
* @return expired
*/
public String getExpired() {
return this.expired;
}
/**
* @return filter
*/
public String getFilter() {
return this.filter;
}
/**
* @return instanceLevel
*/
public Integer getInstanceLevel() {
return this.instanceLevel;
}
/**
* @return instanceNetworkType
*/
public String getInstanceNetworkType() {
return this.instanceNetworkType;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return queryAutoRenewal
*/
public Boolean getQueryAutoRenewal() {
return this.queryAutoRenewal;
}
/**
* @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 searchKey
*/
public String getSearchKey() {
return this.searchKey;
}
/**
* @return tags
*/
public String getTags() {
return this.tags;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
/**
* @return proxyId
*/
public String getProxyId() {
return this.proxyId;
}
public static final class Builder extends Request.Builder<DescribeDBInstancesRequest, Builder> {
private String category;
private String clientToken;
private String connectionMode;
private String connectionString;
private String DBInstanceClass;
private String DBInstanceId;
private String DBInstanceStatus;
private String DBInstanceType;
private String dedicatedHostGroupId;
private String dedicatedHostId;
private String engine;
private String engineVersion;
private String expired;
private String filter;
private Integer instanceLevel;
private String instanceNetworkType;
private Integer maxResults;
private String nextToken;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String payType;
private Boolean queryAutoRenewal;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String searchKey;
private String tags;
private String vSwitchId;
private String vpcId;
private String zoneId;
private String proxyId;
private Builder() {
super();
}
private Builder(DescribeDBInstancesRequest request) {
super(request);
this.category = request.category;
this.clientToken = request.clientToken;
this.connectionMode = request.connectionMode;
this.connectionString = request.connectionString;
this.DBInstanceClass = request.DBInstanceClass;
this.DBInstanceId = request.DBInstanceId;
this.DBInstanceStatus = request.DBInstanceStatus;
this.DBInstanceType = request.DBInstanceType;
this.dedicatedHostGroupId = request.dedicatedHostGroupId;
this.dedicatedHostId = request.dedicatedHostId;
this.engine = request.engine;
this.engineVersion = request.engineVersion;
this.expired = request.expired;
this.filter = request.filter;
this.instanceLevel = request.instanceLevel;
this.instanceNetworkType = request.instanceNetworkType;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.payType = request.payType;
this.queryAutoRenewal = request.queryAutoRenewal;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.searchKey = request.searchKey;
this.tags = request.tags;
this.vSwitchId = request.vSwitchId;
this.vpcId = request.vpcId;
this.zoneId = request.zoneId;
this.proxyId = request.proxyId;
}
/**
* <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>cluster</strong>: RDS Cluster Edition</li>
* <li><strong>serverless_basic</strong>: RDS Serverless Basic Edition</li>
* </ul>
*
* <strong>example:</strong>
* <p>cluster</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>ETnLKlblzczshOTUbOCzxxxxxxx</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
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>By default, this operation queries the instances that use any of the supported connection modes.</p>
*
* <strong>example:</strong>
* <p>Standard</p>
*/
public Builder connectionMode(String connectionMode) {
this.putQueryParameter("ConnectionMode", connectionMode);
this.connectionMode = connectionMode;
return this;
}
/**
* <p>The endpoint of the instance. You must specify this parameter only when you want to query a single instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx.mysql.rds.aliyuncs.com</p>
*/
public Builder connectionString(String connectionString) {
this.putQueryParameter("ConnectionString", connectionString);
this.connectionString = connectionString;
return this;
}
/**
* <p>The instance type of the instance. For information, see <a href="https://help.aliyun.com/document_detail/26312.html">Primary ApsaraDB RDS instance types</a>.</p>
*
* <strong>example:</strong>
* <p>rds.mys2.small</p>
*/
public Builder DBInstanceClass(String DBInstanceClass) {
this.putQueryParameter("DBInstanceClass", DBInstanceClass);
this.DBInstanceClass = DBInstanceClass;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The status of the instance. For more information, see <a href="https://help.aliyun.com/document_detail/26315.html">Instance states</a>.</p>
*
* <strong>example:</strong>
* <p>Running</p>
*/
public Builder DBInstanceStatus(String DBInstanceStatus) {
this.putQueryParameter("DBInstanceStatus", DBInstanceStatus);
this.DBInstanceStatus = DBInstanceStatus;
return this;
}
/**
* <p>The role of the instance. Valid values:</p>
* <ul>
* <li><strong>Primary</strong>: primary instance</li>
* <li><strong>Readonly</strong>: read-only instance</li>
* <li><strong>Guard</strong>: disaster recovery instance</li>
* <li><strong>Temp</strong>: temporary instance</li>
* </ul>
* <p>By default, this operation returns the instances that assume any of the supported roles.</p>
*
* <strong>example:</strong>
* <p>Primary</p>
*/
public Builder DBInstanceType(String DBInstanceType) {
this.putQueryParameter("DBInstanceType", DBInstanceType);
this.DBInstanceType = DBInstanceType;
return this;
}
/**
* <p>The dedicated cluster ID.</p>
*
* <strong>example:</strong>
* <p>dhg-7a9xxxxxxxx</p>
*/
public Builder dedicatedHostGroupId(String dedicatedHostGroupId) {
this.putQueryParameter("DedicatedHostGroupId", dedicatedHostGroupId);
this.dedicatedHostGroupId = dedicatedHostGroupId;
return this;
}
/**
* <p>The host ID of the instance in the dedicated cluster.</p>
*
* <strong>example:</strong>
* <p>i-bpxxxxxxx</p>
*/
public Builder dedicatedHostId(String dedicatedHostId) {
this.putQueryParameter("DedicatedHostId", dedicatedHostId);
this.dedicatedHostId = dedicatedHostId;
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>By default, this operation returns the instances that run any of the supported database engines.</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.</p>
*
* <strong>example:</strong>
* <p>5.7</p>
*/
public Builder engineVersion(String engineVersion) {
this.putQueryParameter("EngineVersion", engineVersion);
this.engineVersion = engineVersion;
return this;
}
/**
* <p>Specifies whether the instances have expired. Valid values:</p>
* <ul>
* <li><strong>True</strong></li>
* <li><strong>False</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>True</p>
*/
public Builder expired(String expired) {
this.putQueryParameter("Expired", expired);
this.expired = expired;
return this;
}
/**
* <p>The JSON string that consists of filter condition parameters and their values.</p>
*
* <strong>example:</strong>
* <p>{"babelfishEnabled":"true"}</p>
*/
public Builder filter(String filter) {
this.putQueryParameter("Filter", filter);
this.filter = filter;
return this;
}
/**
* <p>Specifies whether to return the RDS edition of the instance by using the Category parameter. Valid values:</p>
* <ul>
* <li><strong>0</strong>: returns the RDS edition of the instance.</li>
* <li><strong>1</strong>: does not return the RDS edition of the instance.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder instanceLevel(Integer instanceLevel) {
this.putQueryParameter("InstanceLevel", instanceLevel);
this.instanceLevel = instanceLevel;
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>By default, this operation returns the instances that reside in any of the supported network types.</p>
*
* <strong>example:</strong>
* <p>Classic</p>
*/
public Builder instanceNetworkType(String instanceNetworkType) {
this.putQueryParameter("InstanceNetworkType", instanceNetworkType);
this.instanceNetworkType = instanceNetworkType;
return this;
}
/**
* <p>The number of entries to return per page. Valid values: <strong>1 to 100</strong>.</p>
* <p>Default value: <strong>30</strong>.</p>
* <blockquote>
* <p>If you specify this parameter, <strong>PageSize</strong> and <strong>PageNumber</strong> are unavailable.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder maxResults(Integer maxResults) {
this.putQueryParameter("MaxResults", maxResults);
this.maxResults = maxResults;
return this;
}
/**
* <p>The token that is used to display the next page. You must set this parameter to the value that is returned from the most recent call of the <strong>DescribeDBInstances</strong> operation for <strong>NextToken</strong>. If the returned entries are displayed on multiple pages, the next page can be displayed when you call this operation again with this parameter specified.</p>
*
* <strong>example:</strong>
* <p>o7PORW5o2TJg**********</p>
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
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 page number. Pages start from 1.</p>
* <p>Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page. Valid values: <strong>1</strong> to <strong>100</strong>.</p>
* <p>Default value: <strong>30</strong>.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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>
*
* <strong>example:</strong>
* <p>Postpaid</p>
*/
public Builder payType(String payType) {
this.putQueryParameter("PayType", payType);
this.payType = payType;
return this;
}
/**
* QueryAutoRenewal.
*/
public Builder queryAutoRenewal(Boolean queryAutoRenewal) {
this.putQueryParameter("QueryAutoRenewal", queryAutoRenewal);
this.queryAutoRenewal = queryAutoRenewal;
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-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-acfmyxxxxx</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 keyword that is used for fuzzy search. The keyword can be part of an instance ID or an instance description.</p>
*
* <strong>example:</strong>
* <p>rm-uf6w</p>
*/
public Builder searchKey(String searchKey) {
this.putQueryParameter("SearchKey", searchKey);
this.searchKey = searchKey;
return this;
}
/**
* <p>The tag that is added to the instance. Each tag is a key-value pair that consists of two fields: TagKey and TagValue. You can specify a maximum of five tags in the following format for each request: {"key1":"value1","key2":"value2"...}.</p>
*
* <strong>example:</strong>
* <p>{"key1":"value1"}</p>
*/
public Builder tags(String tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
/**
* <p>The vSwitch ID.</p>
*
* <strong>example:</strong>
* <p>vsw-uf6adz52c2pxxxxxxxxxx</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The VPC ID.</p>
*
* <strong>example:</strong>
* <p>vpc-uf6f7l4fg90xxxxxxxxxx</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
/**
* <p>The zone ID of the instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-a</p>
*/
public Builder zoneId(String zoneId) {
this.putQueryParameter("ZoneId", zoneId);
this.zoneId = zoneId;
return this;
}
/**
* <p>A deprecated parameter. You do not need to configure this parameter.</p>
*
* <strong>example:</strong>
* <p>API</p>
*/
public Builder proxyId(String proxyId) {
this.putQueryParameter("proxyId", proxyId);
this.proxyId = proxyId;
return this;
}
@Override
public DescribeDBInstancesRequest build() {
return new DescribeDBInstancesRequest(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.