com.aliyun.sdk.service.gpdb20160503.models.DescribeDBInstancesResponseBody Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.gpdb20160503.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribeDBInstancesResponseBody} extends {@link TeaModel}
*
* DescribeDBInstancesResponseBody
*/
public class DescribeDBInstancesResponseBody extends TeaModel {
@NameInMap("Items")
private Items items;
@NameInMap("PageNumber")
private Integer pageNumber;
@NameInMap("PageRecordCount")
private Integer pageRecordCount;
@NameInMap("RequestId")
private String requestId;
@NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeDBInstancesResponseBody(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 DescribeDBInstancesResponseBody create() {
return builder().build();
}
/**
* @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;
/**
* The queried instances.
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* The page number.
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries per page.
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
return this;
}
/**
* The request ID.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The total number of entries returned.
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeDBInstancesResponseBody build() {
return new DescribeDBInstancesResponseBody(this);
}
}
public static class Tag extends TeaModel {
@NameInMap("Key")
private String key;
@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;
/**
* The key of tag N.
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* The value of tag N.
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
public static class Tags extends TeaModel {
@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;
/**
* Tag.
*/
public Builder tag(java.util.List < Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
public static class DBInstance extends TeaModel {
@NameInMap("ConnectionMode")
private String connectionMode;
@NameInMap("CreateTime")
private String createTime;
@NameInMap("DBInstanceCategory")
private String DBInstanceCategory;
@NameInMap("DBInstanceDescription")
private String DBInstanceDescription;
@NameInMap("DBInstanceId")
private String DBInstanceId;
@NameInMap("DBInstanceMode")
private String DBInstanceMode;
@NameInMap("DBInstanceNetType")
private String DBInstanceNetType;
@NameInMap("DBInstanceStatus")
private String DBInstanceStatus;
@NameInMap("Engine")
private String engine;
@NameInMap("EngineVersion")
private String engineVersion;
@NameInMap("ExpireTime")
private String expireTime;
@NameInMap("InstanceDeployType")
private String instanceDeployType;
@NameInMap("InstanceNetworkType")
private String instanceNetworkType;
@NameInMap("LockMode")
private String lockMode;
@NameInMap("LockReason")
private String lockReason;
@NameInMap("MasterNodeNum")
private Integer masterNodeNum;
@NameInMap("PayType")
private String payType;
@NameInMap("ProdType")
private String prodType;
@NameInMap("RegionId")
private String regionId;
@NameInMap("ResourceGroupId")
private String resourceGroupId;
@NameInMap("SegNodeNum")
private String segNodeNum;
@NameInMap("ServerlessMode")
private String serverlessMode;
@NameInMap("StorageSize")
private String storageSize;
@NameInMap("StorageType")
private String storageType;
@NameInMap("Tags")
private Tags tags;
@NameInMap("VSwitchId")
private String vSwitchId;
@NameInMap("VpcId")
private String vpcId;
@NameInMap("ZoneId")
private String zoneId;
private DBInstance(Builder builder) {
this.connectionMode = builder.connectionMode;
this.createTime = builder.createTime;
this.DBInstanceCategory = builder.DBInstanceCategory;
this.DBInstanceDescription = builder.DBInstanceDescription;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceMode = builder.DBInstanceMode;
this.DBInstanceNetType = builder.DBInstanceNetType;
this.DBInstanceStatus = builder.DBInstanceStatus;
this.engine = builder.engine;
this.engineVersion = builder.engineVersion;
this.expireTime = builder.expireTime;
this.instanceDeployType = builder.instanceDeployType;
this.instanceNetworkType = builder.instanceNetworkType;
this.lockMode = builder.lockMode;
this.lockReason = builder.lockReason;
this.masterNodeNum = builder.masterNodeNum;
this.payType = builder.payType;
this.prodType = builder.prodType;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.segNodeNum = builder.segNodeNum;
this.serverlessMode = builder.serverlessMode;
this.storageSize = builder.storageSize;
this.storageType = builder.storageType;
this.tags = builder.tags;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static DBInstance create() {
return builder().build();
}
/**
* @return connectionMode
*/
public String getConnectionMode() {
return this.connectionMode;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return DBInstanceCategory
*/
public String getDBInstanceCategory() {
return this.DBInstanceCategory;
}
/**
* @return DBInstanceDescription
*/
public String getDBInstanceDescription() {
return this.DBInstanceDescription;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBInstanceMode
*/
public String getDBInstanceMode() {
return this.DBInstanceMode;
}
/**
* @return DBInstanceNetType
*/
public String getDBInstanceNetType() {
return this.DBInstanceNetType;
}
/**
* @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 expireTime
*/
public String getExpireTime() {
return this.expireTime;
}
/**
* @return instanceDeployType
*/
public String getInstanceDeployType() {
return this.instanceDeployType;
}
/**
* @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 masterNodeNum
*/
public Integer getMasterNodeNum() {
return this.masterNodeNum;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return prodType
*/
public String getProdType() {
return this.prodType;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return segNodeNum
*/
public String getSegNodeNum() {
return this.segNodeNum;
}
/**
* @return serverlessMode
*/
public String getServerlessMode() {
return this.serverlessMode;
}
/**
* @return storageSize
*/
public String getStorageSize() {
return this.storageSize;
}
/**
* @return storageType
*/
public String getStorageType() {
return this.storageType;
}
/**
* @return tags
*/
public Tags 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;
}
public static final class Builder {
private String connectionMode;
private String createTime;
private String DBInstanceCategory;
private String DBInstanceDescription;
private String DBInstanceId;
private String DBInstanceMode;
private String DBInstanceNetType;
private String DBInstanceStatus;
private String engine;
private String engineVersion;
private String expireTime;
private String instanceDeployType;
private String instanceNetworkType;
private String lockMode;
private String lockReason;
private Integer masterNodeNum;
private String payType;
private String prodType;
private String regionId;
private String resourceGroupId;
private String segNodeNum;
private String serverlessMode;
private String storageSize;
private String storageType;
private Tags tags;
private String vSwitchId;
private String vpcId;
private String zoneId;
/**
* An invalid parameter. It is no longer returned when you call this operation.
*
*
* You can call the [DescribeDBInstanceAttribute](~~86910~~) operation to query the access mode of an instance.
*/
public Builder connectionMode(String connectionMode) {
this.connectionMode = connectionMode;
return this;
}
/**
* The time when the instance was created. The time is displayed in UTC.
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* The edition of the instance. Valid values:
*
*
* * **Basic**: Basic Edition.
* * **HighAvailability**: High-availability Edition.
* * **Finance**: Enterprise Edition.
*/
public Builder DBInstanceCategory(String DBInstanceCategory) {
this.DBInstanceCategory = DBInstanceCategory;
return this;
}
/**
* The description of the instance.
*/
public Builder DBInstanceDescription(String DBInstanceDescription) {
this.DBInstanceDescription = DBInstanceDescription;
return this;
}
/**
* The instance ID.
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* The resource type of the instance. Valid values:
*
*
* * **Serverless**: Serverless mode.
* * **StorageElastic**: elastic storage mode.
* * **Classic**: reserved storage mode.
*/
public Builder DBInstanceMode(String DBInstanceMode) {
this.DBInstanceMode = DBInstanceMode;
return this;
}
/**
* The type of the network interface card (NIC) that is used by the instance. Valid values:
*
*
* * **0**: Internet.
* * **1**: internal network.
* * **2**: VPC.
*/
public Builder DBInstanceNetType(String DBInstanceNetType) {
this.DBInstanceNetType = DBInstanceNetType;
return this;
}
/**
* The state of the instance. For more information, see [Instance statuses](~~86944~~).
*/
public Builder DBInstanceStatus(String DBInstanceStatus) {
this.DBInstanceStatus = DBInstanceStatus;
return this;
}
/**
* The database engine of the instance.
*/
public Builder engine(String engine) {
this.engine = engine;
return this;
}
/**
* The version of the database engine.
*/
public Builder engineVersion(String engineVersion) {
this.engineVersion = engineVersion;
return this;
}
/**
* The expiration time of the instance. The time is displayed in UTC.
*
*
* > The expiration time of a pay-as-you-go instance is `2999-09-08T16:00:00Z`.
*/
public Builder expireTime(String expireTime) {
this.expireTime = expireTime;
return this;
}
/**
* The resource type of the instance. Valid values:
*
*
* * **cluster**: Serverless mode or elastic storage mode.
* * **replicaSet**: reserved storage mode.
*/
public Builder instanceDeployType(String instanceDeployType) {
this.instanceDeployType = instanceDeployType;
return this;
}
/**
* The network type of the instance. Valid values:
*
*
* * **Classic**: classic network.
* * **VPC**: VPC.
*/
public Builder instanceNetworkType(String instanceNetworkType) {
this.instanceNetworkType = instanceNetworkType;
return this;
}
/**
* The lock mode of the instance. Valid values:
*
*
* * **Unlock**: The instance is not locked.
* * **ManualLock**: The instance is manually locked.
* * **LockByExpiration**: The instance is automatically locked due to instance expiration.
* * **LockByRestoration**: The instance is automatically locked due to instance restoration.
* * **LockByDiskQuota**: The instance is automatically locked due to exhausted storage.
* * **LockReadInstanceByDiskQuota**: The instance is a read-only instance and is automatically locked due to exhausted storage.
*/
public Builder lockMode(String lockMode) {
this.lockMode = lockMode;
return this;
}
/**
* The reason why the instance is locked. Valid values:
*
*
* * **0**: The instance is not locked.
* * **1**: The instance is manually locked.
* * **2**: The instance is automatically locked due to instance expiration.
* * **3**: The instance is automatically locked due to instance restoration.
* * **4**: The instance is automatically locked due to exhausted storage.
*
* > If the instance is in reserved storage mode and unlocked, null is returned.
*/
public Builder lockReason(String lockReason) {
this.lockReason = lockReason;
return this;
}
/**
* The number of coordinator nodes.
*/
public Builder masterNodeNum(Integer masterNodeNum) {
this.masterNodeNum = masterNodeNum;
return this;
}
/**
* The billing method of the instance. Valid values:
*
*
* * **Postpaid**: pay-as-you-go.
* * **Prepaid**: subscription.
*/
public Builder payType(String payType) {
this.payType = payType;
return this;
}
/**
* ProdType.
*/
public Builder prodType(String prodType) {
this.prodType = prodType;
return this;
}
/**
* The region ID.
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* The ID of the resource group to which the instance belongs.
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* The number of compute nodes.
*/
public Builder segNodeNum(String segNodeNum) {
this.segNodeNum = segNodeNum;
return this;
}
/**
* The type of the Serverless mode. Valid values:
*
*
* * **Manual**: manual scheduling.
* * **Auto**: automatic scheduling.
*
* > This parameter is returned only for instances in Serverless mode.
*/
public Builder serverlessMode(String serverlessMode) {
this.serverlessMode = serverlessMode;
return this;
}
/**
* The storage capacity of the instance. Unit: GB.
*/
public Builder storageSize(String storageSize) {
this.storageSize = storageSize;
return this;
}
/**
* The storage type of the instance. Valid values:
*
*
* * **cloud_essd**: enhanced SSD (ESSD).
* * **cloud_efficiency**: ultra disk.
*/
public Builder storageType(String storageType) {
this.storageType = storageType;
return this;
}
/**
* The tags that are added to the instance.
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* The vSwitch ID.
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* The VPC ID.
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* The zone ID.
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public DBInstance build() {
return new DBInstance(this);
}
}
}
public static class Items extends TeaModel {
@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;
/**
* DBInstance.
*/
public Builder DBInstance(java.util.List < DBInstance> DBInstance) {
this.DBInstance = DBInstance;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}